LibreOffice Module sd (master) 1
frmview.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 <FrameView.hxx>
21
22#include <svx/svxids.hrc>
23#include <com/sun/star/drawing/framework/ResourceId.hpp>
24#include <com/sun/star/drawing/framework/XView.hpp>
25#include <rtl/ustrbuf.hxx>
26#include <unokywds.hxx>
27#include <vcl/settings.hxx>
28#include <vcl/svapp.hxx>
29#include <o3tl/string_view.hxx>
30#include <osl/diagnose.h>
31
32#include <vector>
33#include <ViewShell.hxx>
34#include <drawdoc.hxx>
35#include <DrawDocShell.hxx>
36#include <optsitem.hxx>
37#include <ViewShellBase.hxx>
38#include <sdmod.hxx>
39#include <pres.hxx>
42#include <sfx2/viewfrm.hxx>
43#include <officecfg/Office/Common.hxx>
44
45using namespace ::com::sun::star;
46using namespace ::com::sun::star::uno;
47using namespace ::com::sun::star::beans;
48
49namespace sd {
50
51FrameView::FrameView(SdDrawDocument* pDrawDoc, FrameView* pFrameView /* = NULL */)
52: SdrView(*pDrawDoc, nullptr), // TTTT SdDrawDocument* -> should be reference
53 mnRefCount(0),
54 mnPresViewShellId(SID_VIEWSHELL0),
55 mbIsNavigatorShowingAllShapes(false)
56{
57 EndListening(*pDrawDoc);
58
61
62 SetGridFront( false );
63 SetHlplFront( false );
64 SetOConSnap( false );
67
68 if( nullptr == pFrameView )
69 {
70 DrawDocShell* pDocShell = pDrawDoc->GetDocSh();
71
72 if ( pDocShell )
73 {
74 // document is loaded, is there a FrameView?
75 sal_uLong nSdViewShellCount = 0;
76 SfxViewFrame* pSfxViewFrame = SfxViewFrame::GetFirst(pDocShell);
77
78 while (pSfxViewFrame)
79 {
80 // Count the FrameViews and remember the type of the main
81 // view shell.
82 SfxViewShell* pSfxViewSh = pSfxViewFrame->GetViewShell();
83 ViewShellBase* pBase = dynamic_cast<ViewShellBase*>( pSfxViewSh );
84
85 if (pBase != nullptr)
86 {
87 nSdViewShellCount++;
88
89 OUString sViewURL;
90 Reference<drawing::framework::XView> xView (
92 drawing::framework::ResourceId::create(
93 ::comphelper::getProcessComponentContext(),
95 if (xView.is())
96 sViewURL = xView->getResourceId()->getResourceURL();
97
99 {
100 default:
101// case ViewShell::ST_IMPRESS:
102// case ViewShell::ST_NOTES:
103// case ViewShell::ST_HANDOUT:
104 mnPresViewShellId = SID_VIEWSHELL0;
105 break;
106
108 mnPresViewShellId = SID_VIEWSHELL1;
109 break;
110
112 mnPresViewShellId = SID_VIEWSHELL2;
113 break;
114 }
115 }
116
117 pSfxViewFrame = SfxViewFrame::GetNext(*pSfxViewFrame, pDocShell);
118 }
119
120 SdDrawDocument* pDoc = pDocShell->GetDoc();
121 pFrameView = pDoc->GetFrameView(nSdViewShellCount);
122 }
123 }
124
125 if (pFrameView)
126 {
127 // initialize FrameView with the FrameView of the DocShell
128 SetRuler( pFrameView->HasRuler() );
129 SetGridCoarse( pFrameView->GetGridCoarse() );
130 SetGridFine( pFrameView->GetGridFine() );
131 SetSnapGridWidth(pFrameView->GetSnapGridWidthX(), pFrameView->GetSnapGridWidthY());
132 SetGridVisible( pFrameView->IsGridVisible() );
133 SetGridFront( pFrameView->IsGridFront() );
134 SetSnapAngle( pFrameView->GetSnapAngle() );
135 SetGridSnap( pFrameView->IsGridSnap() );
136 SetBordSnap( pFrameView->IsBordSnap() );
137 SetHlplSnap( pFrameView->IsHlplSnap() );
138 SetOFrmSnap( pFrameView->IsOFrmSnap() );
139 SetOPntSnap( pFrameView->IsOPntSnap() );
140 SetOConSnap( pFrameView->IsOConSnap() );
141 SetHlplVisible( pFrameView->IsHlplVisible() );
142 SetDragStripes( pFrameView->IsDragStripes() );
149 SetSlantButShear( pFrameView->IsSlantButShear() );
150 SetNoDragXorPolys( pFrameView->IsNoDragXorPolys() );
152 SetBigOrtho( pFrameView->IsBigOrtho() );
153 SetOrtho( pFrameView->IsOrtho() );
156 SetDesignMode( pFrameView->IsDesignMode() );
157
158 SetSolidDragging( pFrameView->IsSolidDragging() );
159
160 maVisibleLayers = pFrameView->GetVisibleLayers();
162 maLockedLayers = pFrameView->GetLockedLayers();
164 maNotesHelpLines = pFrameView->GetNotesHelpLines();
166 SetActiveLayer( pFrameView->GetActiveLayer() );
167 mbNoColors = pFrameView->IsNoColors();
168 mbNoAttribs = pFrameView->IsNoAttribs() ;
169 maVisArea = pFrameView->GetVisArea();
170 mePageKind = pFrameView->GetPageKind();
171 mePageKindOnLoad = pFrameView->GetPageKindOnLoad();
172 mnSelectedPage = pFrameView->GetSelectedPage();
174 mePageEditMode = pFrameView->GetViewShEditMode();
175 // meStandardEditMode = pFrameView->GetViewShEditMode(PageKind::Standard);
176 // meNotesEditMode = pFrameView->GetViewShEditMode(PageKind::Notes);
177 // meHandoutEditMode = pFrameView->GetViewShEditMode(PageKind::Handout);
179 mbLayerMode = pFrameView->IsLayerMode();
180 mbQuickEdit = pFrameView->IsQuickEdit();
181
182 // #i26631#
184
185 SetDragWithCopy( pFrameView->IsDragWithCopy() );
188 mnSlidesPerRow = pFrameView->GetSlidesPerRow();
189 mnDrawMode = pFrameView->GetDrawMode();
193 }
194 else
195 {
196 // initialize FrameView with the application data
197
198 // Layers need to be set, otherwise they are not visible and not printable in
199 // Impress documents. The document contains already the actual layers and their
200 // settings for visible, printable and locked. In case not read from <draw:layer-set>,
201 // ODF defaults are used.
202 SdrLayerAdmin rLayerAdmin = pDrawDoc -> GetLayerAdmin();
206 SetGridCoarse( Size( 1000, 1000 ) );
207 SetSnapGridWidth(Fraction(1000, 1), Fraction(1000, 1));
209 mbNoColors = true;
210 mbNoAttribs = false;
214 mnSelectedPage = 0;
217 // meStandardEditMode = EditMode::Page;
218 // meNotesEditMode = EditMode::Page;
219 // meHandoutEditMode = EditMode::MasterPage;
221 mbLayerMode = false;
223 mbDoubleClickTextEdit = false;
224 mbClickChangeRotation = false;
225 mnSlidesPerRow = 4;
226
227 {
230 }
234
235 // get default for design mode
236 bool bInitDesignMode = pDrawDoc->GetOpenInDesignMode();
237 if( pDrawDoc->OpenInDesignModeIsDefaulted() )
238 {
239 bInitDesignMode = true;
240 }
241
242 SfxObjectShell* pObjShell = pDrawDoc->GetObjectShell();
243 if( pObjShell && pObjShell->IsReadOnly() )
244 bInitDesignMode = false;
245 SetDesignMode( bInitDesignMode );
246
247 Update( SD_MOD()->GetSdOptions(pDrawDoc->GetDocumentType()) );
248 }
249
250}
251
253{
254}
255
257{
258 mnRefCount++;
259}
260
262{
263 if (mnRefCount > 0)
264 {
265 mnRefCount--;
266 }
267
268 if (mnRefCount == 0)
269 {
270 delete this;
271 }
272}
273
277void FrameView::Update(SdOptions const * pOptions)
278{
279 if (!pOptions)
280 return;
281
282 mbRuler = pOptions->IsRulerVisible();
283 SetGridVisible( pOptions->IsGridVisible() );
284 SetSnapAngle( pOptions->GetAngle() );
285 SetGridSnap( pOptions->IsUseGridSnap() );
286 SetBordSnap( pOptions->IsSnapBorder() );
287 SetHlplSnap( pOptions->IsSnapHelplines() );
288 SetOFrmSnap( pOptions->IsSnapFrame() );
289 SetOPntSnap( pOptions->IsSnapPoints() );
290 SetHlplVisible( pOptions->IsHelplines() );
291 SetDragStripes( pOptions->IsDragStripes() );
293 SetSnapMagneticPixel( pOptions->GetSnapArea() );
297 SetNoDragXorPolys ( !pOptions->IsMoveOutline() );
299 SetAngleSnapEnabled( pOptions->IsRotate() );
300 SetBigOrtho( pOptions->IsBigOrtho() );
301 SetOrtho( pOptions->IsOrtho() );
304
305 SetSolidDragging( pOptions->IsSolidDragging() );
306
307 SetGridCoarse( Size( pOptions->GetFieldDrawX(), pOptions->GetFieldDrawY() ) );
308 SetGridFine( Size( pOptions->GetFieldDivisionX(), pOptions->GetFieldDivisionY() ) );
309 Fraction aFractX(pOptions->GetFieldDrawX(), pOptions->GetFieldDrawX() / ( pOptions->GetFieldDivisionX() ? pOptions->GetFieldDivisionX() : 1 ));
310 Fraction aFractY(pOptions->GetFieldDrawY(), pOptions->GetFieldDrawY() / ( pOptions->GetFieldDivisionY() ? pOptions->GetFieldDivisionY() : 1 ));
311 SetSnapGridWidth(aFractX, aFractY);
312 SetQuickEdit(pOptions->IsQuickEdit());
313
314 // #i26631#
316
317 SetDragWithCopy(pOptions->IsDragWithCopy());
321}
322
327{
329}
330
335{
336 return mePageEditMode;
337}
338
340{
342}
343
344static OUString createHelpLinesString( const SdrHelpLineList& rHelpLines )
345{
346 OUStringBuffer aLines;
347
348 const sal_uInt16 nCount = rHelpLines.GetCount();
349 for( sal_uInt16 nHlpLine = 0; nHlpLine < nCount; nHlpLine++ )
350 {
351 const SdrHelpLine& rHelpLine = rHelpLines[nHlpLine];
352 const Point& rPos = rHelpLine.GetPos();
353
354 switch( rHelpLine.GetKind() )
355 {
356 case SdrHelpLineKind::Point:
357 aLines.append( 'P' );
358 aLines.append( static_cast<sal_Int32>(rPos.X()) );
359 aLines.append( ',' );
360 aLines.append( static_cast<sal_Int32>(rPos.Y()) );
361 break;
362 case SdrHelpLineKind::Vertical:
363 aLines.append( 'V' );
364 aLines.append( static_cast<sal_Int32>(rPos.X()) );
365 break;
366 case SdrHelpLineKind::Horizontal:
367 aLines.append( 'H' );
368 aLines.append( static_cast<sal_Int32>(rPos.Y()) );
369 break;
370 default:
371 OSL_FAIL( "Unsupported helpline Kind!" );
372 }
373 }
374
375 return aLines.makeStringAndClear();
376}
377
378void FrameView::WriteUserDataSequence ( css::uno::Sequence < css::beans::PropertyValue >& rValues )
379{
380 std::vector< std::pair< OUString, Any > > aUserData;
381 aUserData.reserve(41); // worst case
382
383 aUserData.emplace_back( sUNO_View_GridIsVisible, Any( IsGridVisible() ) );
384 aUserData.emplace_back( sUNO_View_GridIsFront, Any( IsGridFront() ) );
385 aUserData.emplace_back( sUNO_View_IsSnapToGrid, Any( IsGridSnap() ) );
386 aUserData.emplace_back( sUNO_View_IsSnapToPageMargins, Any( IsBordSnap() ) );
387 aUserData.emplace_back( sUNO_View_IsSnapToSnapLines, Any( IsHlplSnap() ) );
388 aUserData.emplace_back( sUNO_View_IsSnapToObjectFrame, Any( IsOFrmSnap() ) );
389 aUserData.emplace_back( sUNO_View_IsSnapToObjectPoints, Any( IsOPntSnap() ) );
390
392 aUserData.emplace_back( sUNO_View_IsFrameDragSingles, Any( IsFrameDragSingles() ) );
393
394 aUserData.emplace_back( sUNO_View_EliminatePolyPointLimitAngle, Any( static_cast<sal_Int32>(GetEliminatePolyPointLimitAngle()) ) );
395 aUserData.emplace_back( sUNO_View_IsEliminatePolyPoints, Any( IsEliminatePolyPoints() ) );
396
397 if ( officecfg::Office::Common::Misc::WriteLayerStateAsConfigItem::get() )
398 {
400 Any aAny;
401 rLayerAdmin.QueryValue(GetVisibleLayers(), aAny);
402 aUserData.emplace_back( sUNO_View_VisibleLayers, aAny );
403
404 rLayerAdmin.QueryValue(GetPrintableLayers(), aAny);
405 aUserData.emplace_back( sUNO_View_PrintableLayers, aAny );
406
407 rLayerAdmin.QueryValue(GetLockedLayers(), aAny);
408 aUserData.emplace_back( sUNO_View_LockedLayers, aAny );
409 }
410
411 aUserData.emplace_back( sUNO_View_NoAttribs, Any( IsNoAttribs() ) );
412 aUserData.emplace_back( sUNO_View_NoColors, Any( IsNoColors() ) );
413
414 if( GetStandardHelpLines().GetCount() )
416
417 if( GetNotesHelpLines().GetCount() )
418 aUserData.emplace_back( sUNO_View_SnapLinesNotes, Any( createHelpLinesString( GetNotesHelpLines() ) ) );
419
420 if( GetHandoutHelpLines().GetCount() )
422
423 aUserData.emplace_back( sUNO_View_RulerIsVisible, Any( HasRuler() ) );
424 aUserData.emplace_back( sUNO_View_PageKind, Any( static_cast<sal_Int16>(GetPageKind()) ) );
425 aUserData.emplace_back( sUNO_View_SelectedPage, Any( static_cast<sal_Int16>(GetSelectedPage()) ) );
426 aUserData.emplace_back( sUNO_View_IsLayerMode, Any( IsLayerMode() ) );
427
428 aUserData.emplace_back( sUNO_View_IsDoubleClickTextEdit, Any( IsDoubleClickTextEdit() ) );
429 aUserData.emplace_back( sUNO_View_IsClickChangeRotation, Any( IsClickChangeRotation() ) );
430
431 aUserData.emplace_back( sUNO_View_SlidesPerRow, Any( static_cast<sal_Int16>(GetSlidesPerRow()) ) );
432 aUserData.emplace_back( sUNO_View_EditMode, Any( static_cast<sal_Int32>(GetViewShEditMode()) ) );
433 // aUserData.emplace_back( sUNO_View_EditModeStandard, makeAny( (sal_Int32)GetViewShEditMode( PageKind::Standard ) ) );
434 // aUserData.emplace_back( sUNO_View_EditModeNotes, makeAny( (sal_Int32)GetViewShEditMode( PageKind::Notes ) ) );
435 // aUserData.emplace_back( sUNO_View_EditModeHandout, makeAny( (sal_Int32)GetViewShEditMode( PageKind::Handout ) ) );
436
437 {
438 const ::tools::Rectangle aVisArea = GetVisArea();
439
440 aUserData.emplace_back( sUNO_View_VisibleAreaTop, Any( static_cast<sal_Int32>(aVisArea.Top()) ) );
441 aUserData.emplace_back( sUNO_View_VisibleAreaLeft, Any( static_cast<sal_Int32>(aVisArea.Left()) ) );
442 aUserData.emplace_back( sUNO_View_VisibleAreaWidth, Any( static_cast<sal_Int32>(aVisArea.GetWidth()) ) );
443 aUserData.emplace_back( sUNO_View_VisibleAreaHeight, Any( static_cast<sal_Int32>(aVisArea.GetHeight()) ) );
444 }
445
446 aUserData.emplace_back( sUNO_View_GridCoarseWidth, Any( static_cast<sal_Int32>(GetGridCoarse().Width()) ) );
447 aUserData.emplace_back( sUNO_View_GridCoarseHeight, Any( static_cast<sal_Int32>(GetGridCoarse().Height()) ) );
448 aUserData.emplace_back( sUNO_View_GridFineWidth, Any( static_cast<sal_Int32>(GetGridFine().Width()) ) );
449 aUserData.emplace_back( sUNO_View_GridFineHeight, Any( static_cast<sal_Int32>(GetGridFine().Height()) ) );
450 aUserData.emplace_back( sUNO_View_GridSnapWidthXNumerator, Any( GetSnapGridWidthX().GetNumerator() ) );
451 aUserData.emplace_back( sUNO_View_GridSnapWidthXDenominator, Any( GetSnapGridWidthX().GetDenominator() ) );
452 aUserData.emplace_back( sUNO_View_GridSnapWidthYNumerator, Any( GetSnapGridWidthY().GetNumerator() ) );
453 aUserData.emplace_back( sUNO_View_GridSnapWidthYDenominator, Any( GetSnapGridWidthY().GetDenominator() ) );
454 aUserData.emplace_back( sUNO_View_IsAngleSnapEnabled, Any( IsAngleSnapEnabled() ) );
455 aUserData.emplace_back( sUNO_View_SnapAngle, Any( static_cast<sal_Int32>(GetSnapAngle()) ) );
456
457 const sal_Int32 nOldLength = rValues.getLength();
458 rValues.realloc( nOldLength + aUserData.size() );
459
460 PropertyValue* pValue = &(rValues.getArray()[nOldLength]);
461
462 for( const auto& rItem : aUserData )
463 {
464 pValue->Name = rItem.first;
465 pValue->Value = rItem.second;
466 ++pValue;
467 }
468}
469
470static void createHelpLinesFromString( const OUString& rLines, SdrHelpLineList& rHelpLines )
471{
472 const sal_Unicode * pStr = rLines.getStr();
473 SdrHelpLine aNewHelpLine;
474 OUStringBuffer sBuffer;
475
476 while( *pStr )
477 {
478 Point aPoint;
479
480 switch( *pStr )
481 {
482 case 'P':
483 aNewHelpLine.SetKind( SdrHelpLineKind::Point );
484 break;
485 case 'V':
486 aNewHelpLine.SetKind( SdrHelpLineKind::Vertical );
487 break;
488 case 'H':
489 aNewHelpLine.SetKind( SdrHelpLineKind::Horizontal );
490 break;
491 default:
492 OSL_FAIL( "syntax error in snap lines settings string" );
493 return;
494 }
495
496 pStr++;
497
498 while( (*pStr >= '0' && *pStr <= '9') || (*pStr == '+') || (*pStr == '-') )
499 {
500 sBuffer.append( *pStr++ );
501 }
502
503 sal_Int32 nValue = o3tl::toInt32(sBuffer);
504 sBuffer.setLength(0);
505
506 if( aNewHelpLine.GetKind() == SdrHelpLineKind::Horizontal )
507 {
508 aPoint.setY( nValue );
509 }
510 else
511 {
512 aPoint.setX( nValue );
513
514 if( aNewHelpLine.GetKind() == SdrHelpLineKind::Point )
515 {
516 if( *pStr++ != ',' )
517 return;
518
519 while( (*pStr >= '0' && *pStr <= '9') || (*pStr == '+') || (*pStr == '-') )
520 {
521 sBuffer.append( *pStr++ );
522 }
523
524 aPoint.setY( o3tl::toInt32(sBuffer) );
525 sBuffer.setLength(0);
526
527 }
528 }
529
530 aNewHelpLine.SetPos( aPoint );
531 rHelpLines.Insert( aNewHelpLine );
532 }
533}
534
535void FrameView::ReadUserDataSequence ( const css::uno::Sequence < css::beans::PropertyValue >& rSequence )
536{
537 const sal_Int32 nLength = rSequence.getLength();
538 if (!nLength)
539 return;
540
541 SdDrawDocument* pDrawDocument = dynamic_cast<SdDrawDocument*>(&GetModel());
542 const bool bImpress = pDrawDocument && pDrawDocument->GetDocumentType() == DocumentType::Impress;
543
544 bool bBool = false;
545 sal_Int32 nInt32 = 0;
546 sal_Int16 nInt16 = 0;
547 OUString aString;
548
549 sal_Int32 aSnapGridWidthXNum = GetSnapGridWidthX().GetNumerator();
550 sal_Int32 aSnapGridWidthXDom = GetSnapGridWidthX().GetDenominator();
551
552 sal_Int32 aSnapGridWidthYNum = GetSnapGridWidthY().GetNumerator();
553 sal_Int32 aSnapGridWidthYDom = GetSnapGridWidthY().GetDenominator();
554
555 for (const css::beans::PropertyValue& rValue : rSequence)
556 {
557 if ( rValue.Name == sUNO_View_ViewId )
558 {
559 }
560 else if ( rValue.Name == sUNO_View_SnapLinesDrawing )
561 {
562 if( rValue.Value >>= aString )
563 {
564 SdrHelpLineList aHelpLines;
565 createHelpLinesFromString( aString, aHelpLines );
566 SetStandardHelpLines( aHelpLines );
567 }
568 }
569 else if ( rValue.Name == sUNO_View_SnapLinesNotes )
570 {
571 if( rValue.Value >>= aString )
572 {
573 SdrHelpLineList aHelpLines;
574 createHelpLinesFromString( aString, aHelpLines );
575 SetNotesHelpLines( aHelpLines );
576 }
577 }
578 else if ( rValue.Name == sUNO_View_SnapLinesHandout )
579 {
580 if( rValue.Value >>= aString )
581 {
582 SdrHelpLineList aHelpLines;
583 createHelpLinesFromString( aString, aHelpLines );
584 SetHandoutHelpLines( aHelpLines );
585 }
586 }
587 else if ( rValue.Name == sUNO_View_RulerIsVisible )
588 {
589 if( rValue.Value >>= bBool )
590 {
591 SetRuler( bBool );
592 }
593 }
594 else if ( rValue.Name == sUNO_View_PageKind )
595 {
596 if( rValue.Value >>= nInt16 )
597 {
598 SdDrawDocument* pDoc = dynamic_cast<SdDrawDocument*>(&GetModel());
599 if( pDoc && pDoc->GetDocSh() && ( SfxObjectCreateMode::EMBEDDED == pDoc->GetDocSh()->GetCreateMode() ) )
600 SetPageKind( static_cast<PageKind>(nInt16) );
601
602 SetPageKindOnLoad( static_cast<PageKind>(nInt16) );
603 }
604 }
605 else if ( rValue.Name == sUNO_View_SelectedPage )
606 {
607 if( rValue.Value >>= nInt16 )
608 {
609 SdDrawDocument* pDoc = dynamic_cast<SdDrawDocument*>(&GetModel());
610 if( pDoc && pDoc->GetDocSh() && ( SfxObjectCreateMode::EMBEDDED == pDoc->GetDocSh()->GetCreateMode() ) )
611 SetSelectedPage( static_cast<sal_uInt16>(nInt16) );
612
613 SetSelectedPageOnLoad( static_cast<sal_uInt16>(nInt16) );
614 }
615 }
616 else if ( rValue.Name == sUNO_View_IsLayerMode )
617 {
618 if( rValue.Value >>= bBool )
619 {
620 SetLayerMode( bBool );
621 }
622 }
623 else if ( rValue.Name == sUNO_View_IsDoubleClickTextEdit )
624 {
625 if( rValue.Value >>= bBool )
626 {
627 SetDoubleClickTextEdit( bBool );
628 }
629 }
630 else if ( rValue.Name == sUNO_View_IsClickChangeRotation )
631 {
632 if( rValue.Value >>= bBool )
633 {
634 SetClickChangeRotation( bBool );
635 }
636 }
637 else if ( rValue.Name == sUNO_View_SlidesPerRow )
638 {
639 if( rValue.Value >>= nInt16 )
640 {
641 SetSlidesPerRow( static_cast<sal_uInt16>(nInt16) );
642 }
643 }
644 else if ( rValue.Name == sUNO_View_EditMode )
645 {
646 if( rValue.Value >>= nInt32 )
647 {
648 SdDrawDocument* pDoc = dynamic_cast<SdDrawDocument*>(&GetModel());
649 if( pDoc && pDoc->GetDocSh() && ( SfxObjectCreateMode::EMBEDDED == pDoc->GetDocSh()->GetCreateMode() ) )
650 SetViewShEditMode( static_cast<EditMode>(nInt32) );
651 }
652 }
653 // This one is kept for compatibility. Old value read from sUNO_View_EditModeStandard
654 // is used. New value will be written into sUNO_View_EditMode.
655 // Values from sUNO_View_EditModeNotes and sUNO_View_EditModeHangout will be ignored.
656 else if ( rValue.Name == sUNO_View_EditModeStandard )
657 {
658 if( rValue.Value >>= nInt32 )
659 {
660 SdDrawDocument* pDoc = dynamic_cast<SdDrawDocument*>(&GetModel());
661 if( pDoc && pDoc->GetDocSh() && ( SfxObjectCreateMode::EMBEDDED == pDoc->GetDocSh()->GetCreateMode() ) )
662 SetViewShEditMode( static_cast<EditMode>(nInt32) );
663 }
664 }
665 else if ( rValue.Name == sUNO_View_VisibleAreaTop )
666 {
667 sal_Int32 nTop = 0;
668 if( rValue.Value >>= nTop )
669 {
670 ::tools::Rectangle aVisArea( GetVisArea() );
671 aVisArea.AdjustBottom(nTop - aVisArea.Top() );
672 aVisArea.SetTop( nTop );
673 SetVisArea( aVisArea );
674 }
675 }
676 else if ( rValue.Name == sUNO_View_VisibleAreaLeft )
677 {
678 sal_Int32 nLeft = 0;
679 if( rValue.Value >>= nLeft )
680 {
681 ::tools::Rectangle aVisArea( GetVisArea() );
682 aVisArea.AdjustRight(nLeft - aVisArea.Left() );
683 aVisArea.SetLeft( nLeft );
684 SetVisArea( aVisArea );
685 }
686 }
687 else if ( rValue.Name == sUNO_View_VisibleAreaWidth )
688 {
689 sal_Int32 nWidth = 0;
690 if( rValue.Value >>= nWidth )
691 {
692 ::tools::Rectangle aVisArea( GetVisArea() );
693 aVisArea.SetRight( aVisArea.Left() + nWidth - 1 );
694 SetVisArea( aVisArea );
695 }
696 }
697 else if ( rValue.Name == sUNO_View_VisibleAreaHeight )
698 {
699 sal_Int32 nHeight = 0;
700 if( rValue.Value >>= nHeight )
701 {
702 ::tools::Rectangle aVisArea( GetVisArea() );
703 aVisArea.SetBottom( nHeight + aVisArea.Top() - 1 );
704 SetVisArea( aVisArea );
705 }
706 }
707
708 else if ( rValue.Name == sUNO_View_GridIsVisible )
709 {
710 if( rValue.Value >>= bBool )
711 {
712 SetGridVisible( bBool );
713 }
714 }
715
716 else if ( rValue.Name == sUNO_View_IsSnapToGrid )
717 {
718 if( rValue.Value >>= bBool )
719 {
720 SetGridSnap( bBool );
721 }
722 }
723 else if ( rValue.Name == sUNO_View_GridIsFront )
724 {
725 if( rValue.Value >>= bBool )
726 {
727 SetGridFront( bBool );
728 }
729 }
730 else if ( rValue.Name == sUNO_View_IsSnapToPageMargins )
731 {
732 if( rValue.Value >>= bBool )
733 {
734 SetBordSnap( bBool );
735 }
736 }
737 else if ( rValue.Name == sUNO_View_IsSnapToSnapLines )
738 {
739 if( rValue.Value >>= bBool )
740 {
741 SetHlplSnap( bBool );
742 }
743 }
744 else if ( rValue.Name == sUNO_View_IsSnapToObjectFrame )
745 {
746 if( rValue.Value >>= bBool )
747 {
748 SetOFrmSnap( bBool );
749 }
750 }
751 else if ( rValue.Name == sUNO_View_IsSnapToObjectPoints )
752 {
753 if( rValue.Value >>= bBool )
754 {
755 SetOPntSnap( bBool );
756 }
757 }
758 else if ( rValue.Name == sUNO_View_IsPlusHandlesAlwaysVisible )
759 {
760 if( rValue.Value >>= bBool )
761 {
763 }
764 }
765 else if ( rValue.Name == sUNO_View_IsFrameDragSingles )
766 {
767 if( rValue.Value >>= bBool )
768 {
769 SetFrameDragSingles( bBool );
770 }
771 }
772 else if ( rValue.Name == sUNO_View_EliminatePolyPointLimitAngle )
773 {
774 if( rValue.Value >>= nInt32 )
775 {
777 }
778 }
779 else if ( rValue.Name == sUNO_View_IsEliminatePolyPoints )
780 {
781 if( rValue.Value >>= bBool )
782 {
783 SetEliminatePolyPoints( bBool );
784 }
785 }
786 else if ( rValue.Name == sUNO_View_ActiveLayer )
787 {
788 if( rValue.Value >>= aString )
789 {
790 SetActiveLayer( aString );
791 }
792 }
793 else if ( rValue.Name == sUNO_View_NoAttribs )
794 {
795 if( rValue.Value >>= bBool )
796 {
797 SetNoAttribs( bBool );
798 }
799 }
800 else if ( rValue.Name == sUNO_View_NoColors )
801 {
802 if( rValue.Value >>= bBool )
803 {
804 SetNoColors( bBool );
805 }
806 }
807 else if ( rValue.Name == sUNO_View_GridCoarseWidth )
808 {
809 if( rValue.Value >>= nInt32 )
810 {
811 const Size aCoarse( nInt32, GetGridCoarse().Height() );
812 SetGridCoarse( aCoarse );
813 }
814 }
815 else if ( rValue.Name == sUNO_View_GridCoarseHeight )
816 {
817 if( rValue.Value >>= nInt32 )
818 {
819 const Size aCoarse( GetGridCoarse().Width(), nInt32 );
820 SetGridCoarse( aCoarse );
821 }
822 }
823 else if ( rValue.Name == sUNO_View_GridFineWidth )
824 {
825 if( rValue.Value >>= nInt32 )
826 {
827 const Size aCoarse( nInt32, GetGridFine().Height() );
828 SetGridFine( aCoarse );
829 }
830 }
831 else if ( rValue.Name == sUNO_View_GridFineHeight )
832 {
833 if( rValue.Value >>= nInt32 )
834 {
835 const Size aCoarse( GetGridFine().Width(), nInt32 );
836 SetGridFine( aCoarse );
837 }
838 }
839 else if ( rValue.Name == sUNO_View_IsAngleSnapEnabled )
840 {
841 if( rValue.Value >>= bBool )
842 {
843 SetAngleSnapEnabled( bBool );
844 }
845 }
846 else if ( rValue.Name == sUNO_View_SnapAngle )
847 {
848 if( rValue.Value >>= nInt32 )
849 {
850 SetSnapAngle( Degree100(nInt32) );
851 }
852 }
853 else if ( rValue.Name == sUNO_View_GridSnapWidthXNumerator )
854 {
855 rValue.Value >>= aSnapGridWidthXNum;
856 }
857 else if ( rValue.Name == sUNO_View_GridSnapWidthXDenominator )
858 {
859 rValue.Value >>= aSnapGridWidthXDom;
860 }
861 else if ( rValue.Name == sUNO_View_GridSnapWidthYNumerator )
862 {
863 rValue.Value >>= aSnapGridWidthYNum;
864 }
865 else if ( rValue.Name == sUNO_View_GridSnapWidthYDenominator )
866 {
867 rValue.Value >>= aSnapGridWidthYDom;
868 }
869 else if (!bImpress && rValue.Name == sUNO_View_VisibleLayers )
870 {
871 SdrLayerIDSet aSdrLayerIDSets;
872 aSdrLayerIDSets.PutValue( rValue.Value );
873 SetVisibleLayers( aSdrLayerIDSets );
874 }
875 else if (!bImpress && rValue.Name == sUNO_View_PrintableLayers )
876 {
877 SdrLayerIDSet aSdrLayerIDSets;
878 aSdrLayerIDSets.PutValue( rValue.Value );
879 SetPrintableLayers( aSdrLayerIDSets );
880 }
881 else if (!bImpress && rValue.Name == sUNO_View_LockedLayers )
882 {
883 SdrLayerIDSet aSdrLayerIDSets;
884 aSdrLayerIDSets.PutValue( rValue.Value );
885 SetLockedLayers( aSdrLayerIDSets );
886 }
887 }
888
890
891 const Fraction aSnapGridWidthX( aSnapGridWidthXNum, aSnapGridWidthXDom );
892 const Fraction aSnapGridWidthY( aSnapGridWidthYNum, aSnapGridWidthYDom );
893
894 SetSnapGridWidth( aSnapGridWidthX, aSnapGridWidthY );
895}
896
898{
900}
901
903{
905}
906
907void FrameView::SetSelectedPage(sal_uInt16 nPage)
908{
909 mnSelectedPage = nPage;
910}
911
912void FrameView::SetIsNavigatorShowingAllShapes (const bool bIsNavigatorShowingAllShapes)
913{
914 mbIsNavigatorShowingAllShapes = bIsNavigatorShowingAllShapes;
915}
916
917} // end of namespace sd
918
919/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
SfxObjectShell * GetObjectShell() const
bool GetOpenInDesignMode() const
bool OpenInDesignModeIsDefaulted()
sal_Int32 GetNumerator() const
sal_Int32 GetDenominator() const
constexpr tools::Long Y() const
void setX(tools::Long nX)
void setY(tools::Long nY)
constexpr tools::Long X() const
SAL_DLLPRIVATE::sd::FrameView * GetFrameView(sal_uLong nPos)
Definition: drawdoc.hxx:460
SAL_DLLPRIVATE::sd::DrawDocShell * GetDocSh() const
Definition: drawdoc.hxx:242
SAL_DLLPRIVATE DocumentType GetDocumentType() const
Definition: drawdoc.hxx:251
sal_uInt32 GetFieldDrawX() const
Definition: optsitem.hxx:443
sal_uInt32 GetFieldDivisionX() const
Definition: optsitem.hxx:444
bool IsGridVisible() const
Definition: optsitem.hxx:451
bool IsUseGridSnap() const
Definition: optsitem.hxx:449
sal_uInt32 GetFieldDivisionY() const
Definition: optsitem.hxx:446
sal_uInt32 GetFieldDrawY() const
Definition: optsitem.hxx:445
bool IsMoveOutline() const
Definition: optsitem.hxx:132
bool IsRulerVisible() const
Definition: optsitem.hxx:131
bool IsDragStripes() const
Definition: optsitem.hxx:133
bool IsHelplines() const
Definition: optsitem.hxx:135
bool IsHandlesBezier() const
Definition: optsitem.hxx:134
bool IsMasterPagePaintCaching() const
Definition: optsitem.hxx:247
bool IsCrookNoContortion() const
Definition: optsitem.hxx:245
bool IsDragWithCopy() const
Definition: optsitem.hxx:248
bool IsDoubleClickTextEdit() const
Definition: optsitem.hxx:250
bool IsMarkedHitMovesAlways() const
Definition: optsitem.hxx:243
bool IsQuickEdit() const
Definition: optsitem.hxx:246
bool IsMoveOnlyDragging() const
Definition: optsitem.hxx:244
bool IsPickThrough() const
Definition: optsitem.hxx:249
bool IsClickChangeRotation() const
Definition: optsitem.hxx:251
bool IsSolidDragging() const
Definition: optsitem.hxx:255
sal_Int32 GetDragThresholdPixels() const
Definition: optsitem.cxx:1412
bool IsBigOrtho() const
Definition: optsitem.hxx:372
bool IsSnapHelplines() const
Definition: optsitem.hxx:367
bool IsSnapPoints() const
Definition: optsitem.hxx:370
Degree100 GetAngle() const
Definition: optsitem.hxx:375
bool IsOrtho() const
Definition: optsitem.hxx:371
bool IsSnapBorder() const
Definition: optsitem.hxx:368
Degree100 GetEliminatePolyPointLimitAngle() const
Definition: optsitem.hxx:376
sal_Int16 GetSnapArea() const
Definition: optsitem.hxx:374
bool IsSnapFrame() const
Definition: optsitem.hxx:369
bool IsRotate() const
Definition: optsitem.hxx:373
void SetDragStripes(bool bOn)
void SetNoDragXorPolys(bool bOn)
bool IsSolidDragging() const
bool IsDragWithCopy() const
bool IsNoDragXorPolys() const
void SetDragWithCopy(bool bOn)
bool IsDragStripes() const
void SetDragThresholdPixels(sal_Int32 nDragThresholdPixels)
void SetSolidDragging(bool bOn)
void SetMarkedHitMovesAlways(bool bOn)
bool IsMarkedHitMovesAlways() const
void Insert(const SdrHelpLine &rHL)
sal_uInt16 GetCount() const
const Point & GetPos() const
SdrHelpLineKind GetKind() const
void SetKind(SdrHelpLineKind eNewKind)
void SetPos(const Point &rPnt)
void QueryValue(const SdrLayerIDSet &rViewLayerSet, css::uno::Any &rAny)
void getPrintableLayersODF(SdrLayerIDSet &rOutSet) const
void getLockedLayersODF(SdrLayerIDSet &rOutSet) const
void getVisibleLayersODF(SdrLayerIDSet &rOutSet) const
void PutValue(const css::uno::Any &rAny)
void SetFrameDragSingles(bool bOn=true)
bool IsFrameDragSingles() const
bool IsDesignMode() const
void SetPlusHandlesAlwaysVisible(bool bOn)
void SetDesignMode(bool bOn=true)
bool IsPlusHandlesAlwaysVisible() const
void SetPickThroughTransparentTextFrames(bool bOn)
const SdrLayerAdmin & GetLayerAdmin() const
bool IsGridFront() const
void SetHlplVisible(bool bOn=true)
const Size & GetGridFine() const
void SetActiveLayer(const OUString &rName)
const Size & GetGridCoarse() const
void SetGridFine(const Size &rSiz)
SdrModel & getSdrModelFromSdrView() const
void SetGridFront(bool bOn)
bool IsHlplVisible() const
void SetGridCoarse(const Size &rSiz)
void SetHlplFront(bool bOn)
SdrModel & GetModel() const
const OUString & GetActiveLayer() const
void SetGridVisible(bool bOn)
bool IsGridVisible() const
bool IsCrookNoContortion() const
void SetOFrmSnap(bool bOn)
Degree100 GetEliminatePolyPointLimitAngle() const
bool IsBigOrtho() const
void SetSnapGridWidth(const Fraction &rX, const Fraction &rY)
void SetOPntSnap(bool bOn)
void SetSnapMagneticPixel(sal_uInt16 nPix)
void SetHlplSnap(bool bOn)
bool IsOrtho() const
const Fraction & GetSnapGridWidthY() const
void SetBordSnap(bool bOn)
void SetGridSnap(bool bOn)
void SetSnapAngle(Degree100 nAngle)
void SetOrtho(bool bOn)
bool IsHlplSnap() const
void SetAngleSnapEnabled(bool bOn)
bool IsAngleSnapEnabled() const
bool IsOFrmSnap() const
Degree100 GetSnapAngle() const
bool IsGridSnap() const
bool IsOPntSnap() const
void SetBigOrtho(bool bOn)
void SetMoveOnlyDragging(bool bOn)
void SetEliminatePolyPointLimitAngle(Degree100 nAngle)
bool IsMoveOnlyDragging() const
bool IsOConSnap() const
const Fraction & GetSnapGridWidthX() const
void SetEliminatePolyPoints(bool bOn)
bool IsBordSnap() const
void SetOConSnap(bool bOn)
void SetCrookNoContortion(bool bOn)
sal_uInt16 GetSnapMagneticPixel() const
bool IsSlantButShear() const
bool IsEliminatePolyPoints() const
void SetSlantButShear(bool bOn)
void EnableExtendedMouseEventDispatcher(bool bOn)
bool IsMasterPagePaintCaching() const
void SetMasterPagePaintCaching(bool bOn)
void EnableExtendedKeyInputDispatcher(bool bOn)
bool IsReadOnly() const
SfxViewShell * GetViewShell() const
static SAL_WARN_UNUSED_RESULT SfxViewFrame * GetNext(const SfxViewFrame &rPrev, const SfxObjectShell *pDoc=nullptr, bool bOnlyVisible=true)
static SAL_WARN_UNUSED_RESULT SfxViewFrame * GetFirst(const SfxObjectShell *pDoc=nullptr, bool bOnlyVisible=true)
bool GetHighContrastMode() const
SdDrawDocument * GetDoc()
View for MDIFrame.
Definition: FrameView.hxx:36
sal_uInt16 mnSelectedPage
Definition: FrameView.hxx:181
sal_uInt16 mnRefCount
Definition: FrameView.hxx:169
EditMode GetViewShEditMode() const
Return EditMode (Page or MasterPage) of working mode.
Definition: frmview.cxx:334
void ReadUserDataSequence(const css::uno::Sequence< css::beans::PropertyValue > &)
Definition: frmview.cxx:535
ViewShell::ShellType GetViewShellTypeOnLoad() const
Definition: FrameView.hxx:150
bool IsNoColors() const
Definition: FrameView.hxx:75
PageKind mePageKind
kind of page (standard, notes, handout)
Definition: FrameView.hxx:180
sal_uInt16 GetSelectedPage() const
Definition: FrameView.hxx:96
void SetLockedLayers(const SdrLayerIDSet &rLockedLayers)
Definition: FrameView.hxx:61
ViewShell::ShellType meViewShellTypeOnLoad
Definition: FrameView.hxx:208
void SetLayerMode(bool bMode)
Definition: FrameView.hxx:118
SdrLayerIDSet maVisibleLayers
Definition: FrameView.hxx:171
bool IsNavigatorShowingAllShapes() const
Definition: FrameView.hxx:163
PageKind GetPageKindOnLoad() const
can be used to get the page kind that was selected on last save of this document
Definition: FrameView.hxx:93
void SetDoubleClickTextEdit(bool bOn)
Definition: FrameView.hxx:126
bool HasRuler() const
Definition: FrameView.hxx:71
void Connect()
Definition: frmview.cxx:256
void SetNoAttribs(const bool bNoAttr)
Definition: FrameView.hxx:77
void SetNotesHelpLines(const SdrHelpLineList &rHelpLines)
Definition: FrameView.hxx:50
SdrLayerIDSet maLockedLayers
Definition: FrameView.hxx:172
void SetPageKindOnLoad(PageKind eKind)
is used in FrameView::ReadUserDataSequence() only to store the page kind that was selected while last...
Definition: FrameView.hxx:90
void SetViewShEditModeOnLoad(const EditMode eMode)
Remember the edit mode of the main view shell at the time when the document is loaded.
Definition: frmview.cxx:339
const SdrHelpLineList & GetStandardHelpLines() const
Definition: FrameView.hxx:49
sal_uInt16 GetSlidesPerRow() const
Definition: FrameView.hxx:157
void SetSlidesPerRow(sal_uInt16 nSlides)
Definition: FrameView.hxx:156
bool IsNoAttribs() const
Definition: FrameView.hxx:79
void Disconnect()
Definition: frmview.cxx:261
bool IsClickChangeRotation() const
Definition: FrameView.hxx:130
void SetIsNavigatorShowingAllShapes(const bool bIsNavigatorShowingAllShapes)
Definition: frmview.cxx:912
EditMode GetViewShEditModeOnLoad() const
Return the value of the edit mode as it was when the document was loaded.
Definition: FrameView.hxx:116
void SetQuickEdit(bool bQEdit)
Definition: FrameView.hxx:122
bool mbNoColors
structuring mode
Definition: FrameView.hxx:177
bool mbDoubleClickTextEdit
text mode after double click
Definition: FrameView.hxx:191
ViewShell::ShellType GetPreviousViewShellType() const
Return the type of the view shell previously associated with this frame view.
Definition: FrameView.hxx:143
void SetPrintableLayers(const SdrLayerIDSet &rPrintableLayers)
Definition: FrameView.hxx:65
bool mbClickChangeRotation
single click switches between selection/rotation mode
Definition: FrameView.hxx:192
SdrHelpLineList maNotesHelpLines
Definition: FrameView.hxx:175
const ::tools::Rectangle & GetVisArea() const
Definition: FrameView.hxx:83
void SetNoColors(const bool bNoCol)
Definition: FrameView.hxx:73
const SdrHelpLineList & GetHandoutHelpLines() const
Definition: FrameView.hxx:55
PageKind mePageKindOnLoad
Definition: FrameView.hxx:182
bool mbLayerMode
layer on/off
Definition: FrameView.hxx:189
EditMode meEditModeOnLoad
Definition: FrameView.hxx:188
bool IsLayerMode() const
Definition: FrameView.hxx:120
const SdrLayerIDSet & GetLockedLayers() const
Definition: FrameView.hxx:63
bool IsDoubleClickTextEdit() const
Definition: FrameView.hxx:127
const SdrLayerIDSet & GetVisibleLayers() const
Definition: FrameView.hxx:59
const SdrHelpLineList & GetNotesHelpLines() const
Definition: FrameView.hxx:52
void SetSelectedPage(sal_uInt16 nPage)
Definition: frmview.cxx:907
bool mbIsNavigatorShowingAllShapes
Remember whether the navigator shows all shapes (<TRUE>) or only the names ones (<FALSE>).
Definition: FrameView.hxx:199
void Update(SdOptions const *pOptions)
Update with data from the specified SdOptions.
Definition: frmview.cxx:277
bool mbNoAttribs
structuring mode
Definition: FrameView.hxx:178
PageKind GetPageKind() const
Definition: FrameView.hxx:86
void WriteUserDataSequence(css::uno::Sequence< css::beans::PropertyValue > &)
Definition: frmview.cxx:378
::tools::Rectangle maVisArea
visible area
Definition: FrameView.hxx:179
void SetSelectedPageOnLoad(sal_uInt16 nPage)
is used in FrameView::ReadUserDataSequence() only to store the page that was selected while last savi...
Definition: FrameView.hxx:100
sal_uInt16 mnSlidesPerRow
slides per row on the slide-desk
Definition: FrameView.hxx:194
void SetPreviousViewShellType(ViewShell::ShellType eType)
Remember the type of the view shell that was (or soon will be) previously associated with this frame ...
Definition: frmview.cxx:897
bool IsQuickEdit() const
Definition: FrameView.hxx:124
void SetViewShellTypeOnLoad(ViewShell::ShellType eType)
Remember the type of the view shell at the time when the document is loaded or, rather,...
Definition: frmview.cxx:902
EditMode mePageEditMode
edit mode in drawing mode (Page/MasterPage)
Definition: FrameView.hxx:184
void SetPageKind(PageKind eKind)
Definition: FrameView.hxx:85
ViewShell::ShellType mePreviousViewShellType
The type of the previous view shell.
Definition: FrameView.hxx:206
sal_uInt16 mnSelectedPageOnLoad
Definition: FrameView.hxx:183
DrawModeFlags GetDrawMode() const
Definition: FrameView.hxx:160
sal_uInt16 GetSelectedPageOnLoad() const
can be used to get the page that was selected on last save of this document
Definition: FrameView.hxx:103
void SetClickChangeRotation(bool bOn)
Definition: FrameView.hxx:129
void SetViewShEditMode(EditMode eMode)
Set EditMode (Page or MasterPage) of working mode.
Definition: frmview.cxx:326
void SetHandoutHelpLines(const SdrHelpLineList &rHelpLines)
Definition: FrameView.hxx:53
DrawModeFlags mnDrawMode
draw mode for the normal window
Definition: FrameView.hxx:195
SdrHelpLineList maStandardHelpLines
Definition: FrameView.hxx:174
FrameView(SdDrawDocument *pDrawDoc, FrameView *pFrameView=nullptr)
Definition: frmview.cxx:51
SdrLayerIDSet maPrintableLayers
Definition: FrameView.hxx:173
void SetStandardHelpLines(const SdrHelpLineList &rHelpLines)
Definition: FrameView.hxx:47
bool mbQuickEdit
QuickEdit on/off.
Definition: FrameView.hxx:190
void SetVisibleLayers(const SdrLayerIDSet &rVisibleLayers)
Definition: FrameView.hxx:57
const SdrLayerIDSet & GetPrintableLayers() const
Definition: FrameView.hxx:67
void SetVisArea(const ::tools::Rectangle &rVisArea)
Definition: FrameView.hxx:81
sal_uInt16 mnPresViewShellId
ViewShell from which the presentation was started.
Definition: FrameView.hxx:193
void SetRuler(const bool bRulerOn)
Definition: FrameView.hxx:69
SdrHelpLineList maHandoutHelpLines
Definition: FrameView.hxx:176
virtual ~FrameView() override
Definition: frmview.cxx:252
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
static const OUString msCenterPaneURL
static ViewShell::ShellType GetViewId(const OUString &rsViewURL)
Return an identifier for the given view URL.
static ::std::shared_ptr< FrameworkHelper > Instance(ViewShellBase &rBase)
Return the FrameworkHelper object that is associated with the given ViewShellBase.
constexpr void SetLeft(tools::Long v)
constexpr void SetTop(tools::Long v)
constexpr tools::Long Top() const
constexpr void SetRight(tools::Long v)
tools::Long AdjustRight(tools::Long nHorzMoveDelta)
constexpr void SetBottom(tools::Long v)
tools::Long AdjustBottom(tools::Long nVertMoveDelta)
constexpr tools::Long Left() const
int nCount
DocumentType eType
sal_Int16 nValue
Mode eMode
sal_Int32 toInt32(std::u16string_view str, sal_Int16 radix=10)
const DrawModeFlags OUTPUT_DRAWMODE_CONTRAST
Definition: ViewShell.hxx:72
static void createHelpLinesFromString(const OUString &rLines, SdrHelpLineList &rHelpLines)
Definition: frmview.cxx:470
const DrawModeFlags OUTPUT_DRAWMODE_COLOR
Definition: ViewShell.hxx:62
static OUString createHelpLinesString(const SdrHelpLineList &rHelpLines)
Definition: frmview.cxx:344
EditMode
Definition: pres.hxx:53
PageKind
Definition: pres.hxx:45
#define SD_MOD()
Definition: sdmod.hxx:184
sal_uIntPtr sal_uLong
sal_uInt16 sal_Unicode
constexpr OUStringLiteral sUNO_View_IsClickChangeRotation
Definition: unokywds.hxx:75
constexpr OUStringLiteral sUNO_View_VisibleAreaLeft
Definition: unokywds.hxx:113
constexpr OUStringLiteral sUNO_View_GridCoarseWidth
Definition: unokywds.hxx:98
constexpr OUStringLiteral sUNO_View_IsSnapToObjectFrame
Definition: unokywds.hxx:87
constexpr OUStringLiteral sUNO_View_GridFineHeight
Definition: unokywds.hxx:101
constexpr OUStringLiteral sUNO_View_SnapLinesHandout
Definition: unokywds.hxx:69
constexpr OUStringLiteral sUNO_View_IsAngleSnapEnabled
Definition: unokywds.hxx:102
constexpr OUStringLiteral sUNO_View_IsSnapToSnapLines
Definition: unokywds.hxx:86
constexpr OUStringLiteral sUNO_View_GridSnapWidthXNumerator
Definition: unokywds.hxx:104
constexpr OUStringLiteral sUNO_View_LockedLayers
Definition: unokywds.hxx:110
constexpr OUStringLiteral sUNO_View_IsSnapToGrid
Definition: unokywds.hxx:84
constexpr OUStringLiteral sUNO_View_IsSnapToPageMargins
Definition: unokywds.hxx:85
constexpr OUStringLiteral sUNO_View_PageKind
Definition: unokywds.hxx:71
constexpr OUStringLiteral sUNO_View_IsDoubleClickTextEdit
Definition: unokywds.hxx:74
constexpr OUStringLiteral sUNO_LayerName_layout
Definition: unokywds.hxx:31
constexpr OUStringLiteral sUNO_View_VisibleAreaWidth
Definition: unokywds.hxx:114
constexpr OUStringLiteral sUNO_View_GridSnapWidthYNumerator
Definition: unokywds.hxx:106
constexpr OUStringLiteral sUNO_View_ViewId
Definition: unokywds.hxx:66
constexpr OUStringLiteral sUNO_View_PrintableLayers
Definition: unokywds.hxx:109
constexpr OUStringLiteral sUNO_View_GridIsVisible
Definition: unokywds.hxx:82
constexpr OUStringLiteral sUNO_View_GridIsFront
Definition: unokywds.hxx:83
constexpr OUStringLiteral sUNO_View_RulerIsVisible
Definition: unokywds.hxx:70
constexpr OUStringLiteral sUNO_View_VisibleAreaHeight
Definition: unokywds.hxx:115
constexpr OUStringLiteral sUNO_View_SnapLinesDrawing
Definition: unokywds.hxx:67
constexpr OUStringLiteral sUNO_View_GridCoarseHeight
Definition: unokywds.hxx:99
constexpr OUStringLiteral sUNO_View_SlidesPerRow
Definition: unokywds.hxx:76
const char sUNO_View_ActiveLayer[]
Definition: unokywds.hxx:95
constexpr OUStringLiteral sUNO_View_GridSnapWidthXDenominator
Definition: unokywds.hxx:105
constexpr OUStringLiteral sUNO_View_IsEliminatePolyPoints
Definition: unokywds.hxx:94
constexpr OUStringLiteral sUNO_View_SnapLinesNotes
Definition: unokywds.hxx:68
constexpr OUStringLiteral sUNO_View_SnapAngle
Definition: unokywds.hxx:103
constexpr OUStringLiteral sUNO_View_SelectedPage
Definition: unokywds.hxx:72
constexpr OUStringLiteral sUNO_View_NoColors
Definition: unokywds.hxx:97
constexpr OUStringLiteral sUNO_View_EditMode
Definition: unokywds.hxx:77
constexpr OUStringLiteral sUNO_View_VisibleAreaTop
Definition: unokywds.hxx:112
constexpr OUStringLiteral sUNO_View_IsFrameDragSingles
Definition: unokywds.hxx:91
constexpr OUStringLiteral sUNO_View_EliminatePolyPointLimitAngle
Definition: unokywds.hxx:93
constexpr OUStringLiteral sUNO_View_IsPlusHandlesAlwaysVisible
Definition: unokywds.hxx:90
constexpr OUStringLiteral sUNO_View_IsLayerMode
Definition: unokywds.hxx:73
constexpr OUStringLiteral sUNO_View_GridFineWidth
Definition: unokywds.hxx:100
constexpr OUStringLiteral sUNO_View_IsSnapToObjectPoints
Definition: unokywds.hxx:88
const char sUNO_View_EditModeStandard[]
Definition: unokywds.hxx:78
constexpr OUStringLiteral sUNO_View_VisibleLayers
Definition: unokywds.hxx:108
constexpr OUStringLiteral sUNO_View_NoAttribs
Definition: unokywds.hxx:96
constexpr OUStringLiteral sUNO_View_GridSnapWidthYDenominator
Definition: unokywds.hxx:107
sal_Int32 nLength