drawsh.cxx (1e9c32af) | drawsh.cxx (cb0cd92e) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 35 unchanged lines hidden (view full) --- 44#include <swwait.hxx> 45#include <docstat.hxx> 46#include <IDocumentStatistics.hxx> 47 48#include <comphelper/processfactory.hxx> 49#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp> 50 51#include <svx/xtable.hxx> | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 35 unchanged lines hidden (view full) --- 44#include <swwait.hxx> 45#include <docstat.hxx> 46#include <IDocumentStatistics.hxx> 47 48#include <comphelper/processfactory.hxx> 49#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp> 50 51#include <svx/xtable.hxx> |
52#include <sfx2/sidebar/EnumContext.hxx> |
|
52#include <svx/svdoashp.hxx> 53 54#include "swundo.hxx" 55#include "wrtsh.hxx" 56#include "cmdid.h" 57#include "globals.hrc" 58#include "helpid.h" 59#include "popup.hrc" --- 104 unchanged lines hidden (view full) --- 164 } 165 rSh.EndUndo( UNDO_END ); 166 rBnd.Invalidate( SID_OBJECT_HELL ); 167 rBnd.Invalidate( SID_OBJECT_HEAVEN ); 168 } 169 break; 170 171 case FN_FLIP_HORZ_GRAFIC: | 53#include <svx/svdoashp.hxx> 54 55#include "swundo.hxx" 56#include "wrtsh.hxx" 57#include "cmdid.h" 58#include "globals.hrc" 59#include "helpid.h" 60#include "popup.hrc" --- 104 unchanged lines hidden (view full) --- 165 } 166 rSh.EndUndo( UNDO_END ); 167 rBnd.Invalidate( SID_OBJECT_HELL ); 168 rBnd.Invalidate( SID_OBJECT_HEAVEN ); 169 } 170 break; 171 172 case FN_FLIP_HORZ_GRAFIC: |
173 case SID_FLIP_HORIZONTAL: |
|
172 bMirror = sal_False; 173 /* no break */ 174 case FN_FLIP_VERT_GRAFIC: | 174 bMirror = sal_False; 175 /* no break */ 176 case FN_FLIP_VERT_GRAFIC: |
177 case SID_FLIP_VERTICAL: |
|
175 rSh.MirrorSelection( bMirror ); 176 break; 177 178 case SID_FONTWORK: 179 { 180 FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, &rSh.GetView())); 181 SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, static_cast< sal_uInt16 >(eMetric)) ); 182 SfxViewFrame* pVFrame = GetView().GetViewFrame(); --- 158 unchanged lines hidden (view full) --- 341 break; 342 343 case SID_BEZIER_EDIT: 344 if (!Disable(rSet, nWhich)) 345 rSet.Put( SfxBoolItem( nWhich, !GetView().IsDrawSelMode())); 346 break; 347 348 case FN_FLIP_HORZ_GRAFIC: | 178 rSh.MirrorSelection( bMirror ); 179 break; 180 181 case SID_FONTWORK: 182 { 183 FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, &rSh.GetView())); 184 SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, static_cast< sal_uInt16 >(eMetric)) ); 185 SfxViewFrame* pVFrame = GetView().GetViewFrame(); --- 158 unchanged lines hidden (view full) --- 344 break; 345 346 case SID_BEZIER_EDIT: 347 if (!Disable(rSet, nWhich)) 348 rSet.Put( SfxBoolItem( nWhich, !GetView().IsDrawSelMode())); 349 break; 350 351 case FN_FLIP_HORZ_GRAFIC: |
352 case SID_FLIP_HORIZONTAL: |
|
349 if ( !pSdrView->IsMirrorAllowed() || bProtected ) 350 rSet.DisableItem( nWhich ); 351 break; 352 353 case FN_FLIP_VERT_GRAFIC: | 353 if ( !pSdrView->IsMirrorAllowed() || bProtected ) 354 rSet.DisableItem( nWhich ); 355 break; 356 357 case FN_FLIP_VERT_GRAFIC: |
358 case SID_FLIP_VERTICAL: |
|
354 if ( !pSdrView->IsMirrorAllowed() || bProtected ) 355 rSet.DisableItem( nWhich ); 356 break; 357 358 case SID_FONTWORK: 359 { 360 if (bProtected) 361 rSet.DisableItem( nWhich ); --- 17 unchanged lines hidden (view full) --- 379 380 381 382SwDrawShell::SwDrawShell(SwView &_rView) : 383 SwDrawBaseShell(_rView) 384{ 385 SetHelpId(SW_DRAWSHELL); 386 SetName(String::CreateFromAscii("Draw")); | 359 if ( !pSdrView->IsMirrorAllowed() || bProtected ) 360 rSet.DisableItem( nWhich ); 361 break; 362 363 case SID_FONTWORK: 364 { 365 if (bProtected) 366 rSet.DisableItem( nWhich ); --- 17 unchanged lines hidden (view full) --- 384 385 386 387SwDrawShell::SwDrawShell(SwView &_rView) : 388 SwDrawBaseShell(_rView) 389{ 390 SetHelpId(SW_DRAWSHELL); 391 SetName(String::CreateFromAscii("Draw")); |
392 393 SfxShell::SetContextName(sfx2::sidebar::EnumContext::GetContextName(sfx2::sidebar::EnumContext::Context_Draw)); |
|
387} 388 389/************************************************************************* 390|* 391|* SfxRequests fuer FontWork bearbeiten 392|* 393\************************************************************************/ 394 --- 6 unchanged lines hidden (view full) --- 401 sal_Bool bChanged = pDrView->GetModel()->IsChanged(); 402 pDrView->GetModel()->SetChanged(sal_False); 403 404 const SdrMarkList& rMarkList = pDrView->GetMarkedObjectList(); 405 406 if ( rMarkList.GetMarkCount() == 1 && rReq.GetArgs() ) 407 { 408 const SfxItemSet& rSet = *rReq.GetArgs(); | 394} 395 396/************************************************************************* 397|* 398|* SfxRequests fuer FontWork bearbeiten 399|* 400\************************************************************************/ 401 --- 6 unchanged lines hidden (view full) --- 408 sal_Bool bChanged = pDrView->GetModel()->IsChanged(); 409 pDrView->GetModel()->SetChanged(sal_False); 410 411 const SdrMarkList& rMarkList = pDrView->GetMarkedObjectList(); 412 413 if ( rMarkList.GetMarkCount() == 1 && rReq.GetArgs() ) 414 { 415 const SfxItemSet& rSet = *rReq.GetArgs(); |
409 const SfxPoolItem* pItem; | |
410 411 if ( pDrView->IsTextEdit() ) 412 { 413 pDrView->SdrEndTextEdit( sal_True ); 414 GetView().AttrChangedNotify(&rSh); 415 } 416 417 pDrView->SetAttributes(rSet); --- 49 unchanged lines hidden (view full) --- 467 rSet.DisableItem(XATTR_FORMTXTSHADOW); 468 rSet.DisableItem(XATTR_FORMTXTSHDWCOLOR); 469 rSet.DisableItem(XATTR_FORMTXTSHDWXVAL); 470 rSet.DisableItem(XATTR_FORMTXTSHDWYVAL); 471 } 472 else 473 { 474 if ( pDlg ) | 416 417 if ( pDrView->IsTextEdit() ) 418 { 419 pDrView->SdrEndTextEdit( sal_True ); 420 GetView().AttrChangedNotify(&rSh); 421 } 422 423 pDrView->SetAttributes(rSet); --- 49 unchanged lines hidden (view full) --- 473 rSet.DisableItem(XATTR_FORMTXTSHADOW); 474 rSet.DisableItem(XATTR_FORMTXTSHDWCOLOR); 475 rSet.DisableItem(XATTR_FORMTXTSHDWXVAL); 476 rSet.DisableItem(XATTR_FORMTXTSHDWYVAL); 477 } 478 else 479 { 480 if ( pDlg ) |
475 pDlg->SetColorTable(XColorTable::GetStdColorTable()); | 481 pDlg->SetColorTable(XColorList::GetStdColorList()); |
476 477 pDrView->GetAttributes( rSet ); 478 } 479} | 482 483 pDrView->GetAttributes( rSet ); 484 } 485} |
480 481 482 483 | |