LibreOffice Module sd (master) 1
drawview.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#include <vcl/svapp.hxx>
21#include <vcl/weld.hxx>
22#include <svl/style.hxx>
23#include <editeng/outliner.hxx>
24#include <svx/svdotext.hxx>
25#include <svl/poolitem.hxx>
26#include <editeng/eeitem.hxx>
27#include <svl/whiter.hxx>
28#include <sal/log.hxx>
29#include <tools/debug.hxx>
30
31#include <svx/svdundo.hxx>
32#include <svx/strings.hrc>
33#include <svx/dialmgr.hxx>
34
35#include <strings.hrc>
36#include <View.hxx>
37#include <drawview.hxx>
38#include <drawdoc.hxx>
39#include <DrawDocShell.hxx>
40#include <sdpage.hxx>
41#include <ViewShellBase.hxx>
42#include <DrawViewShell.hxx>
43#include <pres.hxx>
44#include <sdresid.hxx>
45#include <unchss.hxx>
46#include <slideshow.hxx>
47
48#include <undo/undomanager.hxx>
49
50using namespace ::com::sun::star;
51
52namespace sd {
53
54
61 DrawDocShell* pDocSh,
62 OutputDevice* pOutDev,
63 DrawViewShell* pShell)
64: ::sd::View(*pDocSh->GetDoc(), pOutDev, pShell)
65 ,mpDocShell(pDocSh)
66 ,mpDrawViewShell(pShell)
67 ,mnPOCHSmph(0)
68{
69 SetCurrentObj(SdrObjKind::Rectangle);
70}
71
73{
74}
75
81{
83
86}
87
93{
95
96 // force framer to rerender
99
100 if( mpDrawViewShell )
102
103}
104
111 bool bReplaceAll, bool bSlide, bool bMaster)
112{
113 bool bOk = false;
114
115 if (mpDrawViewShell && bMaster)
116 {
119 SdrPage& rMasterPage = rPage.TRG_GetMasterPage();
120 size_t nObjCount = rMasterPage.GetObjCount();
121 for (size_t nObj = 0; nObj < nObjCount; ++nObj)
122 {
123 SdrObject* pObject = rMasterPage.GetObj(nObj);
124 SetMasterAttributes(pObject, rPage, rSet, pStShPool, bOk, bMaster, bSlide);
125 }
126 return bOk;
127 }
128 if (mpDrawViewShell && bSlide)
129 {
132 size_t nObjCount = rPage.GetObjCount();
133 for (size_t nObj = 0; nObj < nObjCount; ++nObj)
134 {
135 SdrObject* pObject = rPage.GetObj(nObj);
136 SetMasterAttributes(pObject, rPage, rSet, pStShPool, bOk, bMaster, bSlide);
137 }
138 return bOk;
139 }
140
141 // is there a masterpage edit?
143 {
146 SdrTextObj* pEditObject = GetTextEditObject();
147
148 if (pEditObject)
149 {
150 // Textedit
151
152 SdrInventor nInv = pEditObject->GetObjInventor();
153
154 if (nInv == SdrInventor::Default)
155 {
156 SdrObjKind eObjKind = pEditObject->GetObjIdentifier();
157 PresObjKind ePresObjKind = rPage.GetPresObjKind(pEditObject);
158
159 if ( ePresObjKind == PresObjKind::Title ||
160 ePresObjKind == PresObjKind::Notes )
161 {
162 // Presentation object (except outline)
163 SfxStyleSheet* pSheet = rPage.GetStyleSheetForPresObj( ePresObjKind );
164 DBG_ASSERT(pSheet, "StyleSheet not found");
165
166 SfxItemSet aTempSet( pSheet->GetItemSet() );
167 aTempSet.Put( rSet );
168 aTempSet.ClearInvalidItems();
169
170 // Undo-Action
172 std::make_unique<StyleSheetUndoAction>(&mrDoc, pSheet, &aTempSet));
173
174 pSheet->GetItemSet().Put(aTempSet);
175 pSheet->Broadcast(SfxHint(SfxHintId::DataChanged));
176 bOk = true;
177 }
178 else if (eObjKind == SdrObjKind::OutlineText)
179 {
180 // Presentation object outline
182 ::Outliner* pOutliner = pOV->GetOutliner();
183
184 pOutliner->SetUpdateLayout(false);
185 mpDocSh->SetWaitCursor( true );
186
187 // replace placeholder by template name
188 OUString aComment(SdResId(STR_UNDO_CHANGE_PRES_OBJECT));
189 aComment = aComment.replaceFirst("$", SdResId(STR_PSEUDOSHEET_OUTLINE));
191
192 std::vector<Paragraph*> aSelList;
193 pOV->CreateSelectionList(aSelList);
194
195 std::vector<Paragraph*>::reverse_iterator iter = aSelList.rbegin();
196 Paragraph* pPara = iter != aSelList.rend() ? *iter : nullptr;
197
198 while (pPara)
199 {
200 sal_Int32 nParaPos = pOutliner->GetAbsPos( pPara );
201 sal_Int16 nDepth = pOutliner->GetDepth( nParaPos );
202 OUString aName = rPage.GetLayoutName() + " " +
203 OUString::number((nDepth <= 0) ? 1 : nDepth + 1);
204 SfxStyleSheet* pSheet = static_cast<SfxStyleSheet*>(pStShPool->Find(aName, SfxStyleFamily::Page));
205 //We have no stylesheet if we access outline level 10
206 //in the master preview, there is no true style backing
207 //that entry
208 SAL_WARN_IF(!pSheet, "sd", "StyleSheet " << aName << " not found");
209 if (pSheet)
210 {
211 SfxItemSet aTempSet( pSheet->GetItemSet() );
212 aTempSet.Put( rSet );
213 aTempSet.ClearInvalidItems();
214
215 if( nDepth > 0 && aTempSet.GetItemState( EE_PARA_NUMBULLET ) == SfxItemState::SET )
216 {
217 // no SvxNumBulletItem in outline level 1 to 8!
218 aTempSet.ClearItem( EE_PARA_NUMBULLET );
219 }
220
221 // Undo-Action
223 std::make_unique<StyleSheetUndoAction>(&mrDoc, pSheet, &aTempSet));
224
225 pSheet->GetItemSet().Put(aTempSet);
226 pSheet->Broadcast(SfxHint(SfxHintId::DataChanged));
227
228 // now also broadcast any child sheets
229 sal_Int16 nChild;
230 for( nChild = nDepth + 1; nChild < 9; nChild++ )
231 {
232 OUString aSheetName = rPage.GetLayoutName() + " " +
233 OUString::number((nChild <= 0) ? 1 : nChild + 1);
234 SfxStyleSheet* pOutlSheet = static_cast< SfxStyleSheet* >(pStShPool->Find(aSheetName, SfxStyleFamily::Page));
235
236 if( pOutlSheet )
237 pOutlSheet->Broadcast(SfxHint(SfxHintId::DataChanged));
238 }
239 }
240
241 ++iter;
242 pPara = iter != aSelList.rend() ? *iter : nullptr;
243
244 bool bJumpToLevel1 = false;
245 if( !pPara && nDepth > 0 && rSet.GetItemState( EE_PARA_NUMBULLET ) == SfxItemState::SET )
246 bJumpToLevel1 = true;
247
248 if (bJumpToLevel1)
249 {
250 iter = aSelList.rend();
251 --iter;
252
253 if (pOutliner->GetDepth(pOutliner->GetAbsPos(*iter)) > 0)
254 pPara = pOutliner->GetParagraph( 0 ); // Put NumBulletItem in outline level 1
255 }
256 }
257
258 mpDocSh->SetWaitCursor( false );
259 pOV->GetOutliner()->SetUpdateLayout(true);
260
262
263 bOk = true;
264 }
265 else
266 {
267 bOk = ::sd::View::SetAttributes(rSet, bReplaceAll);
268 }
269 }
270 }
271 else
272 {
273 // Selection
274 const SdrMarkList& rList = GetMarkedObjectList();
275 const size_t nMarkCount = rList.GetMarkCount();
276 for (size_t nMark = 0; nMark < nMarkCount; ++nMark)
277 {
278 SdrObject* pObject = rList.GetMark(nMark)->GetMarkedSdrObj();
279 SetMasterAttributes(pObject, rPage, rSet, pStShPool, bOk, bMaster, bSlide);
280 }
281
282 if(!bOk)
283 bOk = ::sd::View::SetAttributes(rSet, bReplaceAll);
284 }
285 }
286 else // not at masterpage
287 {
288 bOk = ::sd::View::SetAttributes(rSet, bReplaceAll);
289 }
290
291 return bOk;
292}
293
294void DrawView::SetMasterAttributes( SdrObject* pObject, const SdPage& rPage, SfxItemSet rSet, SfxStyleSheetBasePool* pStShPool, bool& bOk, bool bMaster, bool bSlide )
295{
296 SdrInventor nInv = pObject->GetObjInventor();
297
298 if (nInv != SdrInventor::Default)
299 return;
300
301 SdrObjKind eObjKind = pObject->GetObjIdentifier();
302 PresObjKind ePresObjKind = rPage.GetPresObjKind(pObject);
303 if (bSlide && eObjKind == SdrObjKind::Text)
304 {
305 // Presentation object (except outline)
307 DBG_ASSERT(pSheet, "StyleSheet not found");
308
309 SfxItemSet aTempSet( pSheet->GetItemSet() );
310 aTempSet.Put( rSet );
311 aTempSet.ClearInvalidItems();
312
313 // Undo-Action
315 std::make_unique<StyleSheetUndoAction>(&mrDoc, pSheet, &aTempSet));
316
317 pSheet->GetItemSet().Put(aTempSet,false);
318 pSheet->Broadcast(SfxHint(SfxHintId::DataChanged));
319 bOk = true;
320 }
321
322 if (!bSlide &&
323 (ePresObjKind == PresObjKind::Title ||
324 ePresObjKind == PresObjKind::Notes))
325 {
326 // Presentation object (except outline)
327 SfxStyleSheet* pSheet = rPage.GetStyleSheetForPresObj( ePresObjKind );
328 DBG_ASSERT(pSheet, "StyleSheet not found");
329
330 SfxItemSet aTempSet( pSheet->GetItemSet() );
331 aTempSet.Put( rSet );
332 aTempSet.ClearInvalidItems();
333
334 // Undo-Action
336 std::make_unique<StyleSheetUndoAction>(&mrDoc, pSheet, &aTempSet));
337
338 pSheet->GetItemSet().Put(aTempSet,false);
339 pSheet->Broadcast(SfxHint(SfxHintId::DataChanged));
340 bOk = true;
341 }
342 else if (eObjKind == SdrObjKind::OutlineText)
343 {
344 // tdf#127900: do not forget to apply master style to placeholders
345 if (!rSet.HasItem(EE_PARA_NUMBULLET) || bMaster)
346 {
347 // Presentation object outline
348 for (sal_uInt16 nLevel = 9; nLevel > 0; nLevel--)
349 {
350 OUString aName = rPage.GetLayoutName() + " " +
351 OUString::number(nLevel);
352 SfxStyleSheet* pSheet = static_cast<SfxStyleSheet*>(pStShPool->
353 Find(aName, SfxStyleFamily::Page));
354 DBG_ASSERT(pSheet, "StyleSheet not found");
355
356 SfxItemSet aTempSet( pSheet->GetItemSet() );
357
358 if( nLevel > 1 )
359 {
360 // for all levels over 1, clear all items that will be
361 // hard set to level 1
362 SfxWhichIter aWhichIter(rSet);
363 sal_uInt16 nWhich(aWhichIter.FirstWhich());
364 while( nWhich )
365 {
366 if( SfxItemState::SET == aWhichIter.GetItemState() )
367 aTempSet.ClearItem( nWhich );
368 nWhich = aWhichIter.NextWhich();
369 }
370
371 }
372 else
373 {
374 // put the items hard into level one
375 aTempSet.Put( rSet );
376 }
377
378 aTempSet.ClearInvalidItems();
379
380 // Undo-Action
382 std::make_unique<StyleSheetUndoAction>(&mrDoc, pSheet, &aTempSet));
383
384 pSheet->GetItemSet().Set(aTempSet,false);
385 pSheet->Broadcast(SfxHint(SfxHintId::DataChanged));
386 }
387
388 // remove all hard set items from shape that are now set in style
389 SfxWhichIter aWhichIter(rSet);
390 sal_uInt16 nWhich(aWhichIter.FirstWhich());
391 while( nWhich )
392 {
393 if( SfxItemState::SET == aWhichIter.GetItemState() )
394 pObject->ClearMergedItem( nWhich );
395 nWhich = aWhichIter.NextWhich();
396 }
397 }
398 else
399 pObject->SetMergedItemSet(rSet);
400
401 bOk = true;
402 }
403}
404
410{
411 if ( mpDrawViewShell && rHint.GetId() == SfxHintId::ThisIsAnSdrHint )
412 {
413 SdrHintKind eHintKind = static_cast<const SdrHint&>(rHint).GetKind();
414
415 if ( mnPOCHSmph == 0 && eHintKind == SdrHintKind::PageOrderChange )
416 {
418 }
419 else if ( eHintKind == SdrHintKind::LayerChange || eHintKind == SdrHintKind::LayerOrderChange )
420 {
422 }
423
424 // switch to that page when it's not a master page
425 if(SdrHintKind::SwitchToPage == eHintKind)
426 {
427 // We switch page only in the current view, which triggered this event
428 // and keep other views untouched.
429 SfxViewShell* pViewShell = SfxViewShell::Current();
430 if(pViewShell && pViewShell != &mpDrawViewShell->GetViewShellBase())
431 return;
432
433 const SdrPage* pPage = static_cast<const SdrHint&>(rHint).GetPage();
434 if(pPage && !pPage->IsMasterPage())
435 {
436 if(mpDrawViewShell->GetActualPage() != pPage)
437 {
438 sal_uInt16 nPageNum = (pPage->GetPageNum() - 1) / 2; // Sdr --> Sd
439 mpDrawViewShell->SwitchPage(nPageNum);
440 }
441 }
442 }
443 }
444
445 ::sd::View::Notify(rBC, rHint);
446}
447
453{
454 if (bBlock)
455 mnPOCHSmph++;
456 else
457 {
458 DBG_ASSERT(mnPOCHSmph, "counter overflow");
459 mnPOCHSmph--;
460 }
461}
462
468bool DrawView::SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr)
469{
470 bool bResult = true;
471
472 // is there a masterpage edit?
474 {
475 if (IsPresObjSelected(false))
476 {
477 std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(mpDrawViewShell->GetFrameWeld(),
478 VclMessageType::Info, VclButtonsType::Ok,
479 SdResId(STR_ACTION_NOTPOSSIBLE)));
480 xInfoBox->run();
481 bResult = false;
482 }
483 else
484 {
485 bResult = ::sd::View::SetStyleSheet(pStyleSheet, bDontRemoveHardAttr);
486 }
487 }
488 else
489 {
490 bResult = ::sd::View::SetStyleSheet(pStyleSheet, bDontRemoveHardAttr);
491 }
492 return bResult;
493}
494
500{
502 if( pDoc && pDoc->GetDocumentType() == DocumentType::Impress)
503 {
505 if(xSlideshow.is() && xSlideshow->isRunning())
506 {
507 OutputDevice* pShowWindow = xSlideshow->getShowWindow();
508 if( (pShowWindow == pOutDev) || (xSlideshow->getAnimationMode() == ANIMATIONMODE_PREVIEW) )
509 {
510 if( pShowWindow == pOutDev && mpViewSh )
511 xSlideshow->paint();
512 return;
513 }
514 }
515 }
516
517 ::sd::View::CompleteRedraw(pOutDev, rReg, pRedirector);
518}
519
524void DrawView::MakeVisible(const ::tools::Rectangle& rRect, vcl::Window& rWin)
525{
526 if (!rRect.IsEmpty() && mpDrawViewShell)
527 {
528 mpDrawViewShell->MakeVisible(rRect, rWin);
529 }
530}
531
537{
538 if (mpDrawViewShell)
539 {
541 }
542
544}
545
547{
548 sd::UndoManager* pUndoManager = mrDoc.GetUndoManager();
549 DBG_ASSERT( pUndoManager, "sd::DrawView::DeleteMarked(), ui action without undo manager!?" );
550
551 if( pUndoManager )
552 {
553 OUString aUndo(SvxResId(STR_EditDelete));
554 aUndo = aUndo.replaceFirst("%1", GetDescriptionOfMarkedObjects());
556 pUndoManager->EnterListAction(aUndo, aUndo, 0, nViewShellId);
557 }
558
559 SdPage* pPage = nullptr;
560 bool bResetLayout = false;
561
562 const size_t nMarkCount = GetMarkedObjectList().GetMarkCount();
563 if( nMarkCount )
564 {
566 for (size_t nMark = 0; nMark < nMarkCount; ++nMark)
567 {
568 SdrObject* pObj = aList.GetMark(nMark)->GetMarkedSdrObj();
569 if( pObj && !pObj->IsEmptyPresObj() && pObj->GetUserCall() )
570 {
571 pPage = static_cast< SdPage* >( pObj->getSdrPageFromSdrObject() );
572 if (pPage)
573 {
574 PresObjKind ePresObjKind(pPage->GetPresObjKind(pObj));
575 switch( ePresObjKind )
576 {
578 continue; // ignore it
586 ePresObjKind = PresObjKind::Outline;
587 break;
588 default:
589 break;
590 }
591 SdrTextObj* pTextObj = DynCastSdrTextObj( pObj );
592 bool bVertical = pTextObj && pTextObj->IsVerticalWriting();
593 ::tools::Rectangle aRect( pObj->GetLogicRect() );
594 SdrObject* pNewObj = pPage->InsertAutoLayoutShape( nullptr, ePresObjKind, bVertical, aRect, true );
595
596 // pUndoManager should not be NULL (see assert above)
597 // but since we have defensive code
598 // for it earlier and later in the function
599 // we might as well be consistent
600 if(pUndoManager)
601 {
602 // Move the new PresObj to the position before the
603 // object it will replace.
604 pUndoManager->AddUndoAction(
606 *pNewObj,
607 pNewObj->GetOrdNum(),
608 pObj->GetOrdNum()));
609 }
610 pPage->SetObjectOrdNum( pNewObj->GetOrdNum(), pObj->GetOrdNum() );
611
612 bResetLayout = true;
613 }
614 }
615 }
616 }
617
619
620 if( pPage && bResetLayout )
621 pPage->SetAutoLayout( pPage->GetAutoLayout() );
622
623 if( pUndoManager )
624 pUndoManager->LeaveListAction();
625}
626
627} // end of namespace sd
628
629/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
virtual void HideSdrPage() override
void CreateSelectionList(std::vector< Paragraph * > &aSelList)
Outliner * GetOutliner() const
Paragraph * GetParagraph(sal_Int32 nAbsPos) const
sal_Int16 GetDepth(sal_Int32 nPara) const
bool SetUpdateLayout(bool bUpdate)
sal_Int32 GetAbsPos(Paragraph const *pPara) const
sd::UndoManager * GetUndoManager() const
Definition: drawdoc2.cxx:1377
SAL_DLLPRIVATE DocumentType GetDocumentType() const
Definition: drawdoc.hxx:251
virtual SfxStyleSheet * GetTextStyleSheetForObject(SdrObject *pObj) const override
Definition: sdpage2.cxx:437
SfxStyleSheet * GetStyleSheetForPresObj(PresObjKind eObjKind) const
Definition: sdpage.cxx:625
PresObjKind GetPresObjKind(SdrObject *pObj) const
Definition: sdpage.cxx:2309
void SetAutoLayout(AutoLayout eLayout, bool bInit=false, bool bCreate=false)
Definition: sdpage.cxx:1610
virtual OUString GetLayoutName() const override
Definition: sdpage.hxx:255
SdrObject * InsertAutoLayoutShape(SdrObject *pObj, PresObjKind eObjKind, bool bVertical, const ::tools::Rectangle &rRect, bool bInit)
reuses or creates a presentation shape for an auto layout that fits the given parameter
Definition: sdpage.cxx:2194
AutoLayout GetAutoLayout() const
Definition: sdpage.hxx:190
void SetCurrentObj(SdrObjKind nIdent, SdrInventor nInvent=SdrInventor::Default)
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
const SdrMarkList & GetMarkedObjectList() const
OUString const & GetDescriptionOfMarkedObjects() const
SdrObject * GetMarkedSdrObj() const
SfxStyleSheetBasePool * GetStyleSheetPool() const
SdrUndoFactory & GetSdrUndoFactory() const
SdrTextObj * GetTextEditObject() const
const OutlinerView * GetTextEditOutlinerView() const
virtual void ModelHasChanged() override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual SdrObject * SetObjectOrdNum(size_t nOldObjNum, size_t nNewObjNum)
SdrObject * GetObj(size_t nNum) const
size_t GetObjCount() const
SdrObjUserCall * GetUserCall() const
virtual SdrInventor GetObjInventor() const
sal_uInt32 GetOrdNum() const
bool IsEmptyPresObj() const
SdrPage * getSdrPageFromSdrObject() const
virtual const tools::Rectangle & GetLogicRect() const
SdrPage & TRG_GetMasterPage() const
sal_uInt16 GetPageNum() const
bool IsMasterPage() const
virtual SdrObjKind GetObjIdentifier() const override
virtual bool IsVerticalWriting() const
virtual std::unique_ptr< SdrUndoAction > CreateUndoObjectOrdNum(SdrObject &rObject, sal_uInt32 nOldOrdNum1, sal_uInt32 nNewOrdNum1)
virtual void DeleteMarked()
void Broadcast(const SfxHint &rHint)
SfxHintId GetId() const
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
void ClearInvalidItems()
bool HasItem(sal_uInt16 nWhich, const SfxPoolItem **ppItem=nullptr) const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
bool Set(const SfxItemSet &, bool bDeep=true)
void SetWaitCursor(bool bSet) const
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
virtual SfxItemSet & GetItemSet()
size_t LeaveListAction()
virtual void EnterListAction(const OUString &rComment, const OUString &rRepeatComment, sal_uInt16 nId, ViewShellId nViewShellId)
virtual void AddUndoAction(std::unique_ptr< SfxUndoAction > pAction, bool bTryMerg=false)
ViewShellId GetViewShellId() const override
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
sal_uInt16 FirstWhich()
SfxItemState GetItemState(bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
sal_uInt16 NextWhich()
virtual SfxUndoManager * GetUndoManager() override
Definition: docshell.cxx:363
SdDrawDocument * GetDoc()
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
virtual SdPage * getCurrentPage() const override
inherited from sd::ViewShell
Definition: drviews1.cxx:636
EditMode GetEditMode() const
void MakeVisible(const ::tools::Rectangle &rRect, vcl::Window &rWin)
Make area visible (scroll part of picture) |* .
Definition: drviewsh.cxx:48
virtual SdPage * GetActualPage() override
void ModelHasChanged()
Definition: drviews5.cxx:62
bool SwitchPage(sal_uInt16 nPage, bool bAllowChangeFocus=true)
Switch to desired page.
Definition: drviews1.cxx:831
void ResetActualPage()
Select new refreshed page, in case of a page order change (eg.
Definition: drviews1.cxx:661
void SelectionHasChanged()
Called, if state of selection of view is changed.
Definition: drviews1.cxx:156
void ResetActualLayer()
Select new refreshed page, in case of a page order change (eg.
Definition: drviews1.cxx:1211
sal_uInt16 mnPOCHSmph
for blocking PageOrderChangedHint
Definition: drawview.hxx:67
DrawView(DrawDocShell *pDocSh, OutputDevice *pOutDev, DrawViewShell *pShell)
Shows the first page of document at position 0,0.
Definition: drawview.cxx:60
virtual bool SetAttributes(const SfxItemSet &rSet, bool bReplaceAll=false, bool bSlide=false, bool bMaster=false) override
Redirect attributes onto title and outline text and background rectangle of a masterpage into templat...
Definition: drawview.cxx:110
virtual void HideSdrPage() override
Hide page.
Definition: drawview.cxx:536
DrawViewShell * mpDrawViewShell
Definition: drawview.hxx:65
void SetMasterAttributes(SdrObject *pObject, const SdPage &rPage, SfxItemSet rSet, SfxStyleSheetBasePool *pStShPool, bool &bOk, bool bMaster, bool bSlide)
Definition: drawview.cxx:294
DrawDocShell * mpDocShell
Definition: drawview.hxx:64
void BlockPageOrderChangedHint(bool bBlock)
Lock/Unlock PageOrderChangedHint.
Definition: drawview.cxx:452
virtual void DeleteMarked() override
Definition: drawview.cxx:546
virtual void ModelHasChanged() override
Virtual method from SdrView, called at model change.
Definition: drawview.cxx:92
bool SetStyleSheet(SfxStyleSheet *pStyleSheet, bool bDontRemoveHardAttr=false) override
If presentation objects are selected, intercept stylesheet-positioning at masterpage.
Definition: drawview.cxx:468
virtual void MakeVisible(const ::tools::Rectangle &rRect, vcl::Window &rWin) override
Make passed region visible (scrolling if necessary)
Definition: drawview.cxx:524
virtual ~DrawView() override
Definition: drawview.cxx:72
virtual void MarkListHasChanged() override
Virtual method from SdrView, called at selection change.
Definition: drawview.cxx:80
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Notify for change of site arrangement.
Definition: drawview.cxx:409
void CompleteRedraw(OutputDevice *pOutDev, const vcl::Region &rReg, sdr::contact::ViewObjectContactRedirector *pRedirector=nullptr) override
Paint-method: Redirect event to the view.
Definition: drawview.cxx:499
static rtl::Reference< SlideShow > GetSlideShow(SdDrawDocument const *pDocument)
Definition: slideshow.cxx:157
virtual void AddUndoAction(std::unique_ptr< SfxUndoAction > pAction, bool bTryMerg=false) override
Definition: undomanager.cxx:38
virtual void EnterListAction(const OUString &rComment, const OUString &rRepeatComment, sal_uInt16 nId, ViewShellId nViewShellId) override
Definition: undomanager.cxx:29
SD_DLLPUBLIC weld::Window * GetFrameWeld() const
Definition: viewshel.cxx:1582
SD_DLLPUBLIC ViewShellBase & GetViewShellBase() const
Definition: viewshel.cxx:1397
bool IsPresObjSelected(bool bOnPage=true, bool bOnMasterPage=true, bool bCheckPresObjListOnly=false, bool bCheckLayoutOnly=false) const
Is a presentation object selected?
Definition: sdview.cxx:523
virtual bool SetStyleSheet(SfxStyleSheet *pStyleSheet, bool bDontRemoveHardAttr=false)
Definition: sdview.cxx:601
virtual bool SetAttributes(const SfxItemSet &rSet, bool bReplaceAll=false, bool bSlide=false, bool bMaster=false)
Definition: sdview.cxx:509
DrawDocShell * mpDocSh
Definition: View.hxx:262
ViewShell * mpViewSh
Definition: View.hxx:263
void CompleteRedraw(OutputDevice *pOutDev, const vcl::Region &rReg, sdr::contact::ViewObjectContactRedirector *pRedirector=nullptr) override
The event will be forwarded to the View.
Definition: sdview.cxx:469
SdPage * GetPage()
Definition: sdview5.cxx:45
SdDrawDocument & mrDoc
Definition: View.hxx:261
virtual void MarkListHasChanged() override
Definition: sdview.cxx:501
#define DBG_ASSERT(sCon, aError)
SVXCORE_DLLPUBLIC OUString SvxResId(TranslateId aId)
constexpr TypedWhichId< SvxNumBulletItem > EE_PARA_NUMBULLET(EE_PARA_START+5)
EmbeddedObjectRef * pObject
OUString aName
#define SAL_WARN_IF(condition, area, stream)
@ ANIMATIONMODE_PREVIEW
Definition: slideshow.hxx:73
PresObjKind
Definition: pres.hxx:22
OUString SdResId(TranslateId aId)
Definition: sdmod.cxx:83
static SfxItemSet & rSet
SdrHintKind
SdrInventor
SVXCORE_DLLPUBLIC SdrTextObj * DynCastSdrTextObj(SdrObject *)
SdrObjKind