LibreOffice Module sd (master) 1
optsitem.hxx
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#pragma once
21
23#include <sfx2/module.hxx>
24#include <svx/optgrid.hxx>
25#include <tools/degree.hxx>
26#include <sddllapi.h>
27#include <memory>
28
29class SdOptions;
30
31namespace sd {
32class FrameView;
33}
34
36
38{
39
40private:
41
43
44 virtual void ImplCommit() override;
45
46public:
47
48 SdOptionsItem( const SdOptionsGeneric& rParent, const OUString& rSubTree );
49 virtual ~SdOptionsItem() override;
50
51 SdOptionsItem(SdOptionsItem const &) = default;
53 SdOptionsItem & operator =(SdOptionsItem const &) = delete; // due to ConfigItem
54 SdOptionsItem & operator =(SdOptionsItem &&) = delete; // due to ConfigItem
55
56 virtual void Notify( const css::uno::Sequence<OUString>& aPropertyNames) override;
57
58 css::uno::Sequence< css::uno::Any > GetProperties( const css::uno::Sequence< OUString >& rNames );
59 bool PutProperties( const css::uno::Sequence< OUString >& rNames,
60 const css::uno::Sequence< css::uno::Any>& rValues );
62};
63
65{
66friend class SdOptionsItem;
67
68private:
69
70 OUString maSubTree;
71 std::unique_ptr<SdOptionsItem>
74 bool mbInit : 1;
76
77 SAL_DLLPRIVATE void Commit( SdOptionsItem& rCfgItem ) const;
78 SAL_DLLPRIVATE css::uno::Sequence< OUString > GetPropertyNames() const;
79
80protected:
81
82 void Init() const;
83 void OptionsChanged() { if( mpCfgItem && mbEnableModify ) mpCfgItem->SetModified(); }
84
85protected:
86
87 virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const = 0;
88 virtual bool ReadData( const css::uno::Any* pValues ) = 0;
89 virtual bool WriteData( css::uno::Any* pValues ) const = 0;
90
91public:
92
93 SdOptionsGeneric(bool bImpress, const OUString& rSubTree);
95 virtual ~SdOptionsGeneric();
96
98
99 bool IsImpress() const { return mbImpress; }
100
101 void EnableModify( bool bModify ) { mbEnableModify = bModify; }
102
103 void Store();
104
105 static bool isMetricSystem();
106};
107
109{
110private:
111
112 bool bRuler; // Layout/Display/Ruler
113 bool bMoveOutline; // Layout/Display/Contour
114 bool bDragStripes; // Layout/Display/Guide
115 bool bHandlesBezier; // Layout/Display/Bezier
116 bool bHelplines; // Layout/Display/Helpline
117 sal_uInt16 nMetric; // Layout/Other/MeasureUnit
118 sal_uInt16 nDefTab; // Layout/Other/TabStop
119
120protected:
121
122 virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const override;
123 virtual bool ReadData( const css::uno::Any* pValues ) override;
124 virtual bool WriteData( css::uno::Any* pValues ) const override;
125
126public:
127 SdOptionsLayout(bool bImpress, bool bUseConfig);
128
129 bool operator==( const SdOptionsLayout& rOpt ) const;
130
131 bool IsRulerVisible() const { Init(); return bRuler; }
132 bool IsMoveOutline() const { Init(); return bMoveOutline; }
133 bool IsDragStripes() const { Init(); return bDragStripes; }
134 bool IsHandlesBezier() const { Init(); return bHandlesBezier; }
135 bool IsHelplines() const { Init(); return bHelplines; }
136 sal_uInt16 GetMetric() const { Init(); return( ( 0xffff == nMetric ) ? static_cast<sal_uInt16>(SfxModule::GetCurrentFieldUnit()) : nMetric ); }
137 sal_uInt16 GetDefTab() const { Init(); return nDefTab; }
138
139 void SetRulerVisible( bool bOn ) { if( bRuler != bOn ) { OptionsChanged(); bRuler = bOn; } }
140 void SetMoveOutline( bool bOn ) { if( bMoveOutline != bOn ) { OptionsChanged(); bMoveOutline = bOn; } }
141 void SetDragStripes( bool bOn ) { if( bDragStripes != bOn ) { OptionsChanged(); bDragStripes = bOn; } }
142 void SetHandlesBezier( bool bOn ) { if( bHandlesBezier != bOn ) { OptionsChanged(); bHandlesBezier = bOn; } }
143 void SetHelplines( bool bOn ) { if( bHelplines != bOn ) { OptionsChanged(); bHelplines = bOn; } }
144 void SetMetric( sal_uInt16 nInMetric ) { if( nMetric != nInMetric ) { OptionsChanged(); nMetric = nInMetric; } }
145 void SetDefTab( sal_uInt16 nTab ) { if( nDefTab != nTab ) { OptionsChanged(); nDefTab = nTab; } }
146};
147
149{
150public:
151
152 explicit SdOptionsLayoutItem();
153 SdOptionsLayoutItem( SdOptions const * pOpts, ::sd::FrameView const * pView );
154
155 virtual SdOptionsLayoutItem* Clone( SfxItemPool *pPool = nullptr ) const override;
156 virtual bool operator==( const SfxPoolItem& ) const override;
157
158 void SetOptions( SdOptions* pOpts ) const;
159
160 SdOptionsLayout& GetOptionsLayout() { return maOptionsLayout; }
161private:
163};
164
166{
167private:
168protected:
169
170 virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const override;
171 virtual bool ReadData( const css::uno::Any* pValues ) override;
172 virtual bool WriteData( css::uno::Any* pValues ) const override;
173
174public:
175
176 SdOptionsContents(bool bImpress);
177
178 bool operator==( const SdOptionsContents& rOpt ) const;
179};
180
182{
183private:
184
187
188 bool bStartWithTemplate : 1; // Misc/NewDoc/AutoPilot
189 bool bMarkedHitMovesAlways : 1; // Misc/ObjectMoveable
190 bool bMoveOnlyDragging : 1; // Currently, not in use !!!
191 bool bCrookNoContortion : 1; // Misc/NoDistort
192 bool bQuickEdit : 1; // Misc/TextObject/QuickEditing
193 bool bMasterPageCache : 1; // Misc/BackgroundCache
194 bool bDragWithCopy : 1; // Misc/CopyWhileMoving
195 bool bPickThrough : 1; // Misc/TextObject/Selectable
196 bool bDoubleClickTextEdit : 1; // Misc/DclickTextedit
197 bool bClickChangeRotation : 1; // Misc/RotateClick
198 bool bEnableSdremote : 1; // Misc/Start/EnableSdremote
199 bool bEnablePresenterScreen : 1; // Misc/Start/EnablePresenterScreen
200 bool bPresenterScreenFullScreen : 1; // Misc/Start/PresenterScreenFullScreen
201 bool bSolidDragging : 1; // Misc/ModifyWithAttributes
202 bool bSummationOfParagraphs : 1; // misc/SummationOfParagraphs
203 bool bTabBarVisible : 1; // Misc/TabBarVisible
204 bool bShowUndoDeleteWarning : 1; // Misc/ShowUndoDeleteWarning
205 // #i75315#
206 bool bSlideshowRespectZOrder : 1; // Misc/SlideshowRespectZOrder
207 bool bShowComments : 1; // Misc/ShowComments
208
212
213
214 sal_Int32 mnDisplay;
215
216 sal_Int32 mnPenColor;
218
224 sal_uInt16 mnPrinterIndependentLayout; // Misc/Compatibility/PrinterIndependentLayout
225
227 sal_Int32 mnDragThresholdPixels; // Misc/DragThresholdPixels
228// Misc
229
230protected:
231
232 virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const override;
233 virtual bool ReadData( const css::uno::Any* pValues ) override;
234 virtual bool WriteData( css::uno::Any* pValues ) const override;
235
236public:
237
238 SdOptionsMisc(bool bImpress, bool bUseConfig);
239
240 bool operator==( const SdOptionsMisc& rOpt ) const;
241
242 bool IsStartWithTemplate() const { Init(); return bStartWithTemplate; }
243 bool IsMarkedHitMovesAlways() const { Init(); return bMarkedHitMovesAlways; }
244 bool IsMoveOnlyDragging() const { Init(); return bMoveOnlyDragging; }
245 bool IsCrookNoContortion() const { Init(); return bCrookNoContortion; }
246 bool IsQuickEdit() const { Init(); return bQuickEdit; }
247 bool IsMasterPagePaintCaching() const { Init(); return bMasterPageCache; }
248 bool IsDragWithCopy() const { Init(); return bDragWithCopy; }
249 bool IsPickThrough() const { Init(); return bPickThrough; }
250 bool IsDoubleClickTextEdit() const { Init(); return bDoubleClickTextEdit; }
251 bool IsClickChangeRotation() const { Init(); return bClickChangeRotation; }
252 bool IsEnableSdremote() const { Init(); return bEnableSdremote; }
253 bool IsEnablePresenterScreen() const { Init(); return bEnablePresenterScreen; }
254 bool IsPresenterScreenFullScreen() const { Init(); return bPresenterScreenFullScreen; }
255 bool IsSolidDragging() const { Init(); return bSolidDragging; }
256 bool IsSummationOfParagraphs() const { Init(); return bSummationOfParagraphs; };
257 bool IsTabBarVisible() const { Init(); return bTabBarVisible; };
258
264 sal_uInt16 GetPrinterIndependentLayout() const { Init(); return mnPrinterIndependentLayout; };
265 bool IsShowUndoDeleteWarning() const { Init(); return bShowUndoDeleteWarning; }
266 bool IsSlideshowRespectZOrder() const { Init(); return bSlideshowRespectZOrder; }
267 sal_Int32 GetDefaultObjectSizeWidth() const { Init(); return nDefaultObjectSizeWidth; }
268 sal_Int32 GetDefaultObjectSizeHeight() const { Init(); return nDefaultObjectSizeHeight; }
269
270 bool IsPreviewNewEffects() const { Init(); return bPreviewNewEffects; }
271 bool IsPreviewChangedEffects() const { Init(); return bPreviewChangedEffects; }
272 bool IsPreviewTransitions() const { Init(); return bPreviewTransitions; }
273
274 sal_Int32 GetDisplay() const;
275 void SetDisplay( sal_Int32 nDisplay );
276
277 sal_Int32 GetPresentationPenColor() const { Init(); return mnPenColor; }
278 void SetPresentationPenColor( sal_Int32 nPenColor ) { if( mnPenColor != nPenColor ) { OptionsChanged(); mnPenColor = nPenColor; } }
279
280 double GetPresentationPenWidth() const { Init(); return mnPenWidth; }
281 void SetPresentationPenWidth( double nPenWidth ) { if( mnPenWidth != nPenWidth ) { OptionsChanged(); mnPenWidth = nPenWidth; } }
282
283 sal_Int32 GetDragThresholdPixels() const;
284 void SetDragThreshold(sal_Int32 nDragThresholdPixels);
285
286 void SetStartWithTemplate( bool bOn ) { if( bStartWithTemplate != bOn ) { OptionsChanged(); bStartWithTemplate = bOn; } }
287 void SetMarkedHitMovesAlways( bool bOn ) { if( bMarkedHitMovesAlways != bOn ) { OptionsChanged(); bMarkedHitMovesAlways = bOn; } }
288 void SetMoveOnlyDragging( bool bOn ) { if( bMoveOnlyDragging != bOn ) { OptionsChanged(); bMoveOnlyDragging = bOn; } }
289 void SetCrookNoContortion( bool bOn ) { if( bCrookNoContortion != bOn ) { OptionsChanged(); bCrookNoContortion = bOn; } }
290 void SetQuickEdit( bool bOn ) { if( bQuickEdit != bOn ) { OptionsChanged(); bQuickEdit = bOn; } }
291 void SetMasterPagePaintCaching( bool bOn ) { if( bMasterPageCache != bOn ) { OptionsChanged(); bMasterPageCache = bOn; } }
292 void SetDragWithCopy( bool bOn ) { if( bDragWithCopy != bOn ) { OptionsChanged(); bDragWithCopy = bOn; } }
293 void SetPickThrough( bool bOn ) { if( bPickThrough != bOn ) { OptionsChanged(); bPickThrough = bOn; } }
294 void SetDoubleClickTextEdit( bool bOn ) { if( bDoubleClickTextEdit != bOn ) { OptionsChanged(); bDoubleClickTextEdit = bOn; } }
295 void SetClickChangeRotation( bool bOn ) { if( bClickChangeRotation != bOn ) { OptionsChanged(); bClickChangeRotation = bOn; } }
296 void SetEnableSdremote( bool bOn ) { if( bEnableSdremote != bOn ) { OptionsChanged(); bEnableSdremote = bOn; } }
297 void SetEnablePresenterScreen( bool bOn ) { if( bEnablePresenterScreen != bOn ) { OptionsChanged(); bEnablePresenterScreen = bOn; } }
298 void SetPresenterScreenFullScreen( bool bOn ) { if ( bPresenterScreenFullScreen != bOn) { OptionsChanged(); bPresenterScreenFullScreen = bOn; } }
299 void SetSummationOfParagraphs( bool bOn ){ if ( bOn != bSummationOfParagraphs ) { OptionsChanged(); bSummationOfParagraphs = bOn; } }
300 void SetTabBarVisible( bool bOn ){ if ( bOn != bTabBarVisible ) { OptionsChanged(); bTabBarVisible = bOn; } }
307 void SetPrinterIndependentLayout (sal_uInt16 nOn ){ if ( nOn != mnPrinterIndependentLayout ) { OptionsChanged(); mnPrinterIndependentLayout = nOn; } }
308 void SetSolidDragging( bool bOn ) { if( bSolidDragging != bOn ) { OptionsChanged(); bSolidDragging = bOn; } }
309 void SetShowUndoDeleteWarning( bool bOn ) { if( bShowUndoDeleteWarning != bOn ) { OptionsChanged(); bShowUndoDeleteWarning = bOn; } }
310 void SetSlideshowRespectZOrder( bool bOn ) { if( bSlideshowRespectZOrder != bOn ) { OptionsChanged(); bSlideshowRespectZOrder = bOn; } }
311 void SetDefaultObjectSizeWidth( sal_Int32 nWidth ) { if( nDefaultObjectSizeWidth != nWidth ) { OptionsChanged(); nDefaultObjectSizeWidth = nWidth; } }
312 void SetDefaultObjectSizeHeight( sal_Int32 nHeight ) { if( nDefaultObjectSizeHeight != nHeight ) { OptionsChanged(); nDefaultObjectSizeHeight = nHeight; } }
313
314 void SetPreviewNewEffects( bool bOn ) { if( bPreviewNewEffects != bOn ) { OptionsChanged(); bPreviewNewEffects = bOn; } }
315 void SetPreviewChangedEffects( bool bOn ) { if( bPreviewChangedEffects != bOn ) { OptionsChanged(); bPreviewChangedEffects = bOn; } }
316 void SetPreviewTransitions( bool bOn ) { if( bPreviewTransitions != bOn ) { OptionsChanged(); bPreviewTransitions = bOn; } }
317
318 bool IsShowComments() const { Init(); return bShowComments; }
319 void SetShowComments( bool bShow ) { if( bShowComments != bShow ) { OptionsChanged(); bShowComments = bShow; } }
320};
321
323{
324public:
325
326 explicit SdOptionsMiscItem();
327 SdOptionsMiscItem( SdOptions const * pOpts, ::sd::FrameView const * pView );
328
329 virtual SdOptionsMiscItem* Clone( SfxItemPool *pPool = nullptr ) const override;
330 virtual bool operator==( const SfxPoolItem& ) const override;
331
332 void SetOptions( SdOptions* pOpts ) const;
333
334 SdOptionsMisc& GetOptionsMisc() { return maOptionsMisc; }
335 const SdOptionsMisc& GetOptionsMisc() const { return maOptionsMisc; }
336private:
338};
339
341{
342private:
343
344 bool bSnapHelplines : 1; // Snap/Object/SnapLine
345 bool bSnapBorder : 1; // Snap/Object/PageMargin
346 bool bSnapFrame : 1; // Snap/Object/ObjectFrame
347 bool bSnapPoints : 1; // Snap/Object/ObjectPoint
348 bool bOrtho : 1; // Snap/Position/CreatingMoving
349 bool bBigOrtho : 1; // Snap/Position/ExtendEdges
350 bool bRotate : 1; // Snap/Position/Rotating
351 sal_Int16 nSnapArea; // Snap/Object/Range
352 Degree100 nAngle; // Snap/Position/RotatingValue
353 Degree100 nBezAngle; // Snap/Position/PointReduction
354
355protected:
356
357 virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const override;
358 virtual bool ReadData( const css::uno::Any* pValues ) override;
359 virtual bool WriteData( css::uno::Any* pValues ) const override;
360
361public:
362
363 SdOptionsSnap(bool bImpress, bool bUseConfig);
364
365 bool operator==( const SdOptionsSnap& rOpt ) const;
366
367 bool IsSnapHelplines() const { Init(); return bSnapHelplines; }
368 bool IsSnapBorder() const { Init(); return bSnapBorder; }
369 bool IsSnapFrame() const { Init(); return bSnapFrame; }
370 bool IsSnapPoints() const { Init(); return bSnapPoints; }
371 bool IsOrtho() const { Init(); return bOrtho; }
372 bool IsBigOrtho() const { Init(); return bBigOrtho; }
373 bool IsRotate() const { Init(); return bRotate; }
374 sal_Int16 GetSnapArea() const { Init(); return nSnapArea; }
375 Degree100 GetAngle() const { Init(); return nAngle; }
376 Degree100 GetEliminatePolyPointLimitAngle() const { Init(); return nBezAngle; }
377
378 void SetSnapHelplines( bool bOn ) { if( bSnapHelplines != bOn ) { OptionsChanged(); bSnapHelplines = bOn; } }
379 void SetSnapBorder( bool bOn ) { if( bSnapBorder != bOn ) { OptionsChanged(); bSnapBorder = bOn; } }
380 void SetSnapFrame( bool bOn ) { if( bSnapFrame != bOn ) { OptionsChanged(); bSnapFrame = bOn; } }
381 void SetSnapPoints( bool bOn ) { if( bSnapPoints != bOn ) { OptionsChanged(); bSnapPoints = bOn; } }
382 void SetOrtho( bool bOn ) { if( bOrtho != bOn ) { OptionsChanged(); bOrtho = bOn; } }
383 void SetBigOrtho( bool bOn ) { if( bBigOrtho != bOn ) { OptionsChanged(); bBigOrtho = bOn; } }
384 void SetRotate( bool bOn ) { if( bRotate != bOn ) { OptionsChanged(); bRotate = bOn; } }
385 void SetSnapArea( sal_Int16 nIn ) { if( nSnapArea != nIn ) { OptionsChanged(); nSnapArea = nIn; } }
386 void SetAngle( Degree100 nIn ) { if( nAngle != nIn ) { OptionsChanged(); nAngle = nIn; } }
387 void SetEliminatePolyPointLimitAngle( Degree100 nIn ) { if( nBezAngle != nIn ) { OptionsChanged(); nBezAngle = nIn; } }
388};
389
391{
392public:
393
394 explicit SdOptionsSnapItem();
395 SdOptionsSnapItem( SdOptions const * pOpts, ::sd::FrameView const * pView );
396
397 virtual SdOptionsSnapItem* Clone( SfxItemPool *pPool = nullptr ) const override;
398 virtual bool operator==( const SfxPoolItem& ) const override;
399
400 void SetOptions( SdOptions* pOpts ) const;
401
402 SdOptionsSnap& GetOptionsSnap() { return maOptionsSnap; }
403private:
405};
406
408{
409private:
410
411 sal_Int32 nX; // Zoom/ScaleX
412 sal_Int32 nY; // Zoom/ScaleY
413
414protected:
415
416 virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const override;
417 virtual bool ReadData( const css::uno::Any* pValues ) override;
418 virtual bool WriteData( css::uno::Any* pValues ) const override;
419
420public:
421
422 explicit SdOptionsZoom(bool bImpress);
423
424 void GetScale( sal_Int32& rX, sal_Int32& rY ) const { Init(); rX = nX; rY = nY; }
425 void SetScale( sal_Int32 nInX, sal_Int32 nInY ) { if( nX != nInX || nY != nInY ) { OptionsChanged(); nX = nInX; nY = nInY; } }
426};
427
429{
430protected:
431
432 virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const override;
433 virtual bool ReadData( const css::uno::Any* pValues ) override;
434 virtual bool WriteData( css::uno::Any* pValues ) const override;
435
436public:
437
438 explicit SdOptionsGrid(bool bImpress);
439 virtual ~SdOptionsGrid() override;
440
441 void SetDefaults();
442
443 sal_uInt32 GetFieldDrawX() const { Init(); return SvxOptionsGrid::GetFieldDrawX(); }
444 sal_uInt32 GetFieldDivisionX() const { Init(); return SvxOptionsGrid::GetFieldDivisionX(); }
445 sal_uInt32 GetFieldDrawY() const { Init(); return SvxOptionsGrid::GetFieldDrawY(); }
446 sal_uInt32 GetFieldDivisionY() const { Init(); return SvxOptionsGrid::GetFieldDivisionY(); }
447 sal_uInt32 GetFieldSnapX() const { Init(); return SvxOptionsGrid::GetFieldSnapX(); }
448 sal_uInt32 GetFieldSnapY() const { Init(); return SvxOptionsGrid::GetFieldSnapY(); }
452 bool IsEqualGrid() const { Init(); return SvxOptionsGrid::GetEqualGrid(); }
453
454 void SetFieldDrawX( sal_uInt32 nSet ) { if( nSet != SvxOptionsGrid::GetFieldDrawX() ) { OptionsChanged(); SvxOptionsGrid::SetFieldDrawX( nSet ); } }
456 void SetFieldDrawY( sal_uInt32 nSet ) { if( nSet != SvxOptionsGrid::GetFieldDrawY() ) { OptionsChanged(); SvxOptionsGrid::SetFieldDrawY( nSet ); } }
458 void SetFieldSnapX( sal_uInt32 nSet ) { if( nSet != SvxOptionsGrid::GetFieldSnapX() ) { OptionsChanged(); SvxOptionsGrid::SetFieldSnapX( nSet ); } }
459 void SetFieldSnapY( sal_uInt32 nSet ) { if( nSet != SvxOptionsGrid::GetFieldSnapY() ) { OptionsChanged(); SvxOptionsGrid::SetFieldSnapY( nSet ); } }
463 void SetEqualGrid( bool bSet ) { if( bSet != SvxOptionsGrid::GetEqualGrid() ) { OptionsChanged(); SvxOptionsGrid::SetEqualGrid( bSet ); } }
464};
465
466class SdOptionsGridItem final : public SvxGridItem
467{
468
469public:
470 explicit SdOptionsGridItem( SdOptions const * pOpts );
471
472 void SetOptions( SdOptions* pOpts ) const;
473};
474
476{
477private:
478
479 bool bDraw : 1; // Print/Content/Drawing
480 bool bNotes : 1; // Print/Content/Note
481 bool bHandout : 1; // Print/Content/Handout
482 bool bOutline : 1; // Print/Content/Outline
483 bool bDate : 1; // Print/Other/Date
484 bool bTime : 1; // Print/Other/Time
485 bool bPagename : 1; // Print/Other/PageName
486 bool bHiddenPages : 1; // Print/Other/HiddenPage
487 bool bPagesize : 1; // Print/Page/PageSize
488 bool bPagetile : 1; // Print/Page/PageTile
489 bool bWarningPrinter : 1; // These flags you get
490 bool bWarningSize : 1; // from the common options,
491 bool bWarningOrientation : 1; // currently org.openoffice.Office.Common.xml (class OfaMiscCfg ; sfx2/misccfg.hxx )
492 bool bBooklet : 1; // Print/Page/Booklet
493 bool bFront : 1; // Print/Page/BookletFront
494 bool bBack : 1; // Print/Page/BookletFront
495 bool bCutPage : 1; // NOT persistent !!!
496 bool bPaperbin : 1; // Print/Other/FromPrinterSetup
497 bool mbHandoutHorizontal : 1; // Order Page previews on Handout Pages horizontal
498 sal_uInt16 mnHandoutPages; // Number of page previews on handout page (only 1/2/4/6/9 are supported)
499 sal_uInt16 nQuality; // Print/Other/Quality
500
501protected:
502
503 virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const override;
504 virtual bool ReadData( const css::uno::Any* pValues ) override;
505 virtual bool WriteData( css::uno::Any* pValues ) const override;
506
507public:
508
509 SdOptionsPrint(bool bImpress, bool bUseConfig);
510
511 bool operator==( const SdOptionsPrint& rOpt ) const;
512
513 bool IsDraw() const { Init(); return bDraw; }
514 bool IsNotes() const { Init(); return bNotes; }
515 bool IsHandout() const { Init(); return bHandout; }
516 bool IsOutline() const { Init(); return bOutline; }
517 bool IsDate() const { Init(); return bDate; }
518 bool IsTime() const { Init(); return bTime; }
519 bool IsPagename() const { Init(); return bPagename; }
520 bool IsHiddenPages() const { Init(); return bHiddenPages; }
521 bool IsPagesize() const { Init(); return bPagesize; }
522 bool IsPagetile() const { Init(); return bPagetile; }
523 bool IsWarningPrinter() const { Init(); return bWarningPrinter; }
524 bool IsWarningSize() const { Init(); return bWarningSize; }
525 bool IsWarningOrientation() const { Init(); return bWarningOrientation; }
526 bool IsBooklet() const { Init(); return bBooklet; }
527 bool IsFrontPage() const { Init(); return bFront; }
528 bool IsBackPage() const { Init(); return bBack; }
529 bool IsCutPage() const { Init(); return bCutPage; }
530 bool IsPaperbin() const { Init(); return bPaperbin; }
531 sal_uInt16 GetOutputQuality() const { Init(); return nQuality; }
532 bool IsHandoutHorizontal() const { Init(); return mbHandoutHorizontal; }
533 sal_uInt16 GetHandoutPages() const { Init(); return mnHandoutPages; }
534
535 void SetDraw( bool bOn ) { if( bDraw != bOn ) { OptionsChanged(); bDraw = bOn; } }
536 void SetNotes( bool bOn ) { if( bNotes != bOn ) { OptionsChanged(); bNotes = bOn; } }
537 void SetHandout( bool bOn ) { if( bHandout != bOn ) { OptionsChanged(); bHandout = bOn; } }
538 void SetOutline( bool bOn ) { if( bOutline != bOn ) { OptionsChanged(); bOutline = bOn; } }
539 void SetDate( bool bOn ) { if( bDate != bOn ) { OptionsChanged(); bDate = bOn; } }
540 void SetTime( bool bOn ) { if( bTime != bOn ) { OptionsChanged(); bTime = bOn; } }
541 void SetPagename( bool bOn ) { if( bPagename != bOn ) { OptionsChanged(); bPagename = bOn; } }
542 void SetHiddenPages( bool bOn ) { if( bHiddenPages != bOn ) { OptionsChanged(); bHiddenPages = bOn; } }
543 void SetPagesize( bool bOn ) { if( bPagesize != bOn ) { OptionsChanged(); bPagesize = bOn; } }
544 void SetPagetile( bool bOn ) { if( bPagetile != bOn ) { OptionsChanged(); bPagetile = bOn; } }
545 void SetWarningPrinter( bool bOn ) { if( bWarningPrinter != bOn ) { OptionsChanged(); bWarningPrinter = bOn; } }
546 void SetWarningSize( bool bOn ) { if( bWarningSize != bOn ) { OptionsChanged(); bWarningSize = bOn; } }
547 void SetWarningOrientation( bool bOn) { if( bWarningOrientation != bOn ) { OptionsChanged(); bWarningOrientation = bOn; } }
548 void SetBooklet( bool bOn ) { if( bBooklet != bOn ) { OptionsChanged(); bBooklet = bOn; } }
549 void SetFrontPage( bool bOn ) { if( bFront != bOn ) { OptionsChanged(); bFront = bOn; } }
550 void SetBackPage( bool bOn ) { if( bBack != bOn ) { OptionsChanged(); bBack = bOn; } }
551 void SetCutPage( bool bOn ) { if( bCutPage != bOn ) { OptionsChanged(); bCutPage = bOn; } }
552 void SetPaperbin( bool bOn ) { if( bPaperbin != bOn ) { OptionsChanged(); bPaperbin = bOn; } }
553 void SetOutputQuality( sal_uInt16 nInQuality ) { if( nQuality != nInQuality ) { OptionsChanged(); nQuality = nInQuality; } }
554 void SetHandoutHorizontal( bool bHandoutHorizontal ) { if( mbHandoutHorizontal != bHandoutHorizontal ) { OptionsChanged(); mbHandoutHorizontal = bHandoutHorizontal; } }
555 void SetHandoutPages( sal_uInt16 nHandoutPages ) { if( nHandoutPages != mnHandoutPages ) { OptionsChanged(); mnHandoutPages = nHandoutPages; } }
556};
557
559{
560public:
561
562 explicit SdOptionsPrintItem();
563 explicit SdOptionsPrintItem( SdOptions const * pOpts );
564
565 virtual SdOptionsPrintItem* Clone( SfxItemPool *pPool = nullptr ) const override;
566 virtual bool operator==( const SfxPoolItem& ) const override;
567
568 void SetOptions( SdOptions* pOpts ) const;
569
570 SdOptionsPrint& GetOptionsPrint() { return maOptionsPrint; }
571 const SdOptionsPrint& GetOptionsPrint() const { return maOptionsPrint; }
572private:
574};
575
576class SdOptions final : public SdOptionsLayout, public SdOptionsContents,
577 public SdOptionsMisc, public SdOptionsSnap,
578 public SdOptionsZoom, public SdOptionsGrid,
579 public SdOptionsPrint
580{
581public:
582
583 explicit SdOptions(bool bImpress);
584 virtual ~SdOptions() override;
585
586 void StoreConfig();
587};
588
589/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const PropertyValue * pValues
virtual void GetPropNameArray(const char **&ppNames, sal_uLong &rCount) const override
Definition: optsitem.cxx:358
bool operator==(const SdOptionsContents &rOpt) const
Definition: optsitem.cxx:353
SdOptionsContents(bool bImpress)
Definition: optsitem.cxx:345
virtual bool WriteData(css::uno::Any *pValues) const override
Definition: optsitem.cxx:377
virtual bool ReadData(const css::uno::Any *pValues) override
Definition: optsitem.cxx:372
bool IsImpress() const
Definition: optsitem.hxx:99
virtual bool WriteData(css::uno::Any *pValues) const =0
std::unique_ptr< SdOptionsItem > mpCfgItem
Definition: optsitem.hxx:72
void Init() const
Definition: optsitem.cxx:104
virtual bool ReadData(const css::uno::Any *pValues)=0
virtual void GetPropNameArray(const char **&ppNames, sal_uLong &rCount) const =0
void OptionsChanged()
Definition: optsitem.hxx:83
void EnableModify(bool bModify)
Definition: optsitem.hxx:101
OUString maSubTree
Definition: optsitem.hxx:70
void SetOptions(SdOptions *pOpts) const
Definition: optsitem.cxx:1114
SdOptionsGridItem(SdOptions const *pOpts)
Definition: optsitem.cxx:1098
sal_uInt32 GetFieldDrawX() const
Definition: optsitem.hxx:443
sal_uInt32 GetFieldDivisionX() const
Definition: optsitem.hxx:444
sal_uInt32 GetFieldSnapY() const
Definition: optsitem.hxx:448
void SetFieldDrawY(sal_uInt32 nSet)
Definition: optsitem.hxx:456
void SetFieldDrawX(sal_uInt32 nSet)
Definition: optsitem.hxx:454
virtual ~SdOptionsGrid() override
Definition: optsitem.cxx:989
void SetFieldSnapY(sal_uInt32 nSet)
Definition: optsitem.hxx:459
void SetDefaults()
Definition: optsitem.cxx:993
virtual bool ReadData(const css::uno::Any *pValues) override
Definition: optsitem.cxx:1049
sal_uInt32 GetFieldSnapX() const
Definition: optsitem.hxx:447
void SetFieldDivisionX(sal_uInt32 nSet)
Definition: optsitem.hxx:455
bool IsGridVisible() const
Definition: optsitem.hxx:451
bool IsUseGridSnap() const
Definition: optsitem.hxx:449
virtual bool WriteData(css::uno::Any *pValues) const override
Definition: optsitem.cxx:1076
sal_uInt32 GetFieldDivisionY() const
Definition: optsitem.hxx:446
void SetFieldDivisionY(sal_uInt32 nSet)
Definition: optsitem.hxx:457
void SetEqualGrid(bool bSet)
Definition: optsitem.hxx:463
SdOptionsGrid(bool bImpress)
Definition: optsitem.cxx:977
void SetUseGridSnap(bool bSet)
Definition: optsitem.hxx:460
sal_uInt32 GetFieldDrawY() const
Definition: optsitem.hxx:445
bool IsSynchronize() const
Definition: optsitem.hxx:450
void SetSynchronize(bool bSet)
Definition: optsitem.hxx:461
virtual void GetPropNameArray(const char **&ppNames, sal_uLong &rCount) const override
Definition: optsitem.cxx:1009
bool IsEqualGrid() const
Definition: optsitem.hxx:452
void SetGridVisible(bool bSet)
Definition: optsitem.hxx:462
void SetFieldSnapX(sal_uInt32 nSet)
Definition: optsitem.hxx:458
SdOptionsItem(SdOptionsItem &&)=default
const SdOptionsGeneric & mrParent
Definition: optsitem.hxx:42
SdOptionsItem(SdOptionsItem const &)=default
SdOptionsLayout maOptionsLayout
Definition: optsitem.hxx:162
SdOptionsLayout & GetOptionsLayout()
Definition: optsitem.hxx:160
void SetMetric(sal_uInt16 nInMetric)
Definition: optsitem.hxx:144
bool IsMoveOutline() const
Definition: optsitem.hxx:132
bool IsRulerVisible() const
Definition: optsitem.hxx:131
void SetHandlesBezier(bool bOn)
Definition: optsitem.hxx:142
sal_uInt16 nMetric
Definition: optsitem.hxx:117
sal_uInt16 GetDefTab() const
Definition: optsitem.hxx:137
bool IsDragStripes() const
Definition: optsitem.hxx:133
bool IsHelplines() const
Definition: optsitem.hxx:135
void SetDragStripes(bool bOn)
Definition: optsitem.hxx:141
sal_uInt16 GetMetric() const
Definition: optsitem.hxx:136
bool IsHandlesBezier() const
Definition: optsitem.hxx:134
void SetMoveOutline(bool bOn)
Definition: optsitem.hxx:140
sal_uInt16 nDefTab
Definition: optsitem.hxx:118
void SetRulerVisible(bool bOn)
Definition: optsitem.hxx:139
void SetHelplines(bool bOn)
Definition: optsitem.hxx:143
void SetDefTab(sal_uInt16 nTab)
Definition: optsitem.hxx:145
SdOptionsMisc maOptionsMisc
Definition: optsitem.hxx:337
SdOptionsMisc & GetOptionsMisc()
Definition: optsitem.hxx:334
const SdOptionsMisc & GetOptionsMisc() const
Definition: optsitem.hxx:335
bool bPickThrough
Definition: optsitem.hxx:195
bool IsPreviewChangedEffects() const
Definition: optsitem.hxx:271
bool IsMasterPagePaintCaching() const
Definition: optsitem.hxx:247
bool IsCrookNoContortion() const
Definition: optsitem.hxx:245
void SetShowUndoDeleteWarning(bool bOn)
Definition: optsitem.hxx:309
void SetSummationOfParagraphs(bool bOn)
Definition: optsitem.hxx:299
void SetDefaultObjectSizeHeight(sal_Int32 nHeight)
Definition: optsitem.hxx:312
bool bMasterPageCache
Definition: optsitem.hxx:193
void SetPresentationPenColor(sal_Int32 nPenColor)
Definition: optsitem.hxx:278
sal_uInt16 mnPrinterIndependentLayout
This value controls the device to use for formatting documents.
Definition: optsitem.hxx:224
bool IsShowUndoDeleteWarning() const
Definition: optsitem.hxx:265
double mnPenWidth
Definition: optsitem.hxx:217
void SetSlideshowRespectZOrder(bool bOn)
Definition: optsitem.hxx:310
bool IsShowComments() const
Definition: optsitem.hxx:318
bool IsEnableSdremote() const
Definition: optsitem.hxx:252
bool IsSlideshowRespectZOrder() const
Definition: optsitem.hxx:266
bool IsDragWithCopy() const
Definition: optsitem.hxx:248
void SetPreviewChangedEffects(bool bOn)
Definition: optsitem.hxx:315
bool IsDoubleClickTextEdit() const
Definition: optsitem.hxx:250
bool IsPresenterScreenFullScreen() const
Definition: optsitem.hxx:254
void SetPrinterIndependentLayout(sal_uInt16 nOn)
Set the printer independent layout mode.
Definition: optsitem.hxx:307
bool bPresenterScreenFullScreen
Definition: optsitem.hxx:200
bool IsEnablePresenterScreen() const
Definition: optsitem.hxx:253
bool bSlideshowRespectZOrder
Definition: optsitem.hxx:206
bool bPreviewChangedEffects
Definition: optsitem.hxx:210
bool bMoveOnlyDragging
Definition: optsitem.hxx:190
void SetPresenterScreenFullScreen(bool bOn)
Definition: optsitem.hxx:298
bool IsMarkedHitMovesAlways() const
Definition: optsitem.hxx:243
double GetPresentationPenWidth() const
Definition: optsitem.hxx:280
sal_Int32 mnDisplay
Definition: optsitem.hxx:214
bool bClickChangeRotation
Definition: optsitem.hxx:197
bool bDoubleClickTextEdit
Definition: optsitem.hxx:196
bool IsStartWithTemplate() const
Definition: optsitem.hxx:242
bool bShowUndoDeleteWarning
Definition: optsitem.hxx:204
sal_Int32 nDefaultObjectSizeHeight
Definition: optsitem.hxx:186
bool IsPreviewNewEffects() const
Definition: optsitem.hxx:270
void SetMarkedHitMovesAlways(bool bOn)
Definition: optsitem.hxx:287
void SetShowComments(bool bShow)
Definition: optsitem.hxx:319
sal_Int32 mnDragThresholdPixels
Minimum mouse move distance for it to register as a drag action.
Definition: optsitem.hxx:227
bool bPreviewTransitions
Definition: optsitem.hxx:211
bool IsQuickEdit() const
Definition: optsitem.hxx:246
void SetDoubleClickTextEdit(bool bOn)
Definition: optsitem.hxx:294
bool IsSummationOfParagraphs() const
Definition: optsitem.hxx:256
bool bStartWithTemplate
Definition: optsitem.hxx:188
void SetStartWithTemplate(bool bOn)
Definition: optsitem.hxx:286
sal_Int32 GetDefaultObjectSizeWidth() const
Definition: optsitem.hxx:267
void SetDefaultObjectSizeWidth(sal_Int32 nWidth)
Definition: optsitem.hxx:311
bool IsTabBarVisible() const
Definition: optsitem.hxx:257
void SetSolidDragging(bool bOn)
Definition: optsitem.hxx:308
void SetCrookNoContortion(bool bOn)
Definition: optsitem.hxx:289
bool IsPreviewTransitions() const
Definition: optsitem.hxx:272
sal_Int32 GetDefaultObjectSizeHeight() const
Definition: optsitem.hxx:268
void SetQuickEdit(bool bOn)
Definition: optsitem.hxx:290
void SetPresentationPenWidth(double nPenWidth)
Definition: optsitem.hxx:281
bool bSummationOfParagraphs
Definition: optsitem.hxx:202
void SetMasterPagePaintCaching(bool bOn)
Definition: optsitem.hxx:291
void SetEnablePresenterScreen(bool bOn)
Definition: optsitem.hxx:297
bool bSolidDragging
Definition: optsitem.hxx:201
void SetEnableSdremote(bool bOn)
Definition: optsitem.hxx:296
sal_Int32 mnPenColor
Definition: optsitem.hxx:216
bool IsMoveOnlyDragging() const
Definition: optsitem.hxx:244
void SetPreviewTransitions(bool bOn)
Definition: optsitem.hxx:316
bool bShowComments
Definition: optsitem.hxx:207
void SetDragWithCopy(bool bOn)
Definition: optsitem.hxx:292
void SetTabBarVisible(bool bOn)
Definition: optsitem.hxx:300
void SetPickThrough(bool bOn)
Definition: optsitem.hxx:293
bool bPreviewNewEffects
Definition: optsitem.hxx:209
void SetMoveOnlyDragging(bool bOn)
Definition: optsitem.hxx:288
void SetClickChangeRotation(bool bOn)
Definition: optsitem.hxx:295
void SetPreviewNewEffects(bool bOn)
Definition: optsitem.hxx:314
sal_uInt16 GetPrinterIndependentLayout() const
Return the currently selected printer independent layout mode.
Definition: optsitem.hxx:264
bool bCrookNoContortion
Definition: optsitem.hxx:191
bool bMarkedHitMovesAlways
Definition: optsitem.hxx:189
sal_Int32 nDefaultObjectSizeWidth
Definition: optsitem.hxx:185
bool bDragWithCopy
Definition: optsitem.hxx:194
sal_Int32 GetPresentationPenColor() const
Definition: optsitem.hxx:277
bool bEnablePresenterScreen
Definition: optsitem.hxx:199
bool IsPickThrough() const
Definition: optsitem.hxx:249
bool IsClickChangeRotation() const
Definition: optsitem.hxx:251
bool bTabBarVisible
Definition: optsitem.hxx:203
bool IsSolidDragging() const
Definition: optsitem.hxx:255
bool bEnableSdremote
Definition: optsitem.hxx:198
SdOptionsPrint & GetOptionsPrint()
Definition: optsitem.hxx:570
SdOptionsPrint maOptionsPrint
Definition: optsitem.hxx:573
const SdOptionsPrint & GetOptionsPrint() const
Definition: optsitem.hxx:571
bool IsBooklet() const
Definition: optsitem.hxx:526
sal_uInt16 GetHandoutPages() const
Definition: optsitem.hxx:533
bool IsCutPage() const
Definition: optsitem.hxx:529
bool IsTime() const
Definition: optsitem.hxx:518
sal_uInt16 nQuality
Definition: optsitem.hxx:499
void SetWarningPrinter(bool bOn)
Definition: optsitem.hxx:545
void SetPaperbin(bool bOn)
Definition: optsitem.hxx:552
void SetHandoutHorizontal(bool bHandoutHorizontal)
Definition: optsitem.hxx:554
sal_uInt16 mnHandoutPages
Definition: optsitem.hxx:498
bool IsDate() const
Definition: optsitem.hxx:517
bool IsNotes() const
Definition: optsitem.hxx:514
void SetNotes(bool bOn)
Definition: optsitem.hxx:536
void SetFrontPage(bool bOn)
Definition: optsitem.hxx:549
void SetCutPage(bool bOn)
Definition: optsitem.hxx:551
void SetDate(bool bOn)
Definition: optsitem.hxx:539
bool IsHandout() const
Definition: optsitem.hxx:515
bool bWarningPrinter
Definition: optsitem.hxx:489
void SetBackPage(bool bOn)
Definition: optsitem.hxx:550
void SetBooklet(bool bOn)
Definition: optsitem.hxx:548
void SetPagesize(bool bOn)
Definition: optsitem.hxx:543
void SetWarningSize(bool bOn)
Definition: optsitem.hxx:546
void SetHiddenPages(bool bOn)
Definition: optsitem.hxx:542
bool IsWarningSize() const
Definition: optsitem.hxx:524
bool IsOutline() const
Definition: optsitem.hxx:516
void SetDraw(bool bOn)
Definition: optsitem.hxx:535
bool IsFrontPage() const
Definition: optsitem.hxx:527
void SetTime(bool bOn)
Definition: optsitem.hxx:540
bool IsPagename() const
Definition: optsitem.hxx:519
void SetPagename(bool bOn)
Definition: optsitem.hxx:541
void SetWarningOrientation(bool bOn)
Definition: optsitem.hxx:547
void SetOutline(bool bOn)
Definition: optsitem.hxx:538
bool IsWarningOrientation() const
Definition: optsitem.hxx:525
bool IsPagetile() const
Definition: optsitem.hxx:522
void SetOutputQuality(sal_uInt16 nInQuality)
Definition: optsitem.hxx:553
bool IsPagesize() const
Definition: optsitem.hxx:521
bool IsHandoutHorizontal() const
Definition: optsitem.hxx:532
bool IsWarningPrinter() const
Definition: optsitem.hxx:523
bool mbHandoutHorizontal
Definition: optsitem.hxx:497
void SetPagetile(bool bOn)
Definition: optsitem.hxx:544
void SetHandoutPages(sal_uInt16 nHandoutPages)
Definition: optsitem.hxx:555
bool IsPaperbin() const
Definition: optsitem.hxx:530
bool IsHiddenPages() const
Definition: optsitem.hxx:520
bool IsDraw() const
Definition: optsitem.hxx:513
void SetHandout(bool bOn)
Definition: optsitem.hxx:537
bool bWarningOrientation
Definition: optsitem.hxx:491
bool IsBackPage() const
Definition: optsitem.hxx:528
sal_uInt16 GetOutputQuality() const
Definition: optsitem.hxx:531
SdOptionsSnap maOptionsSnap
Definition: optsitem.hxx:404
SdOptionsSnap & GetOptionsSnap()
Definition: optsitem.hxx:402
void SetAngle(Degree100 nIn)
Definition: optsitem.hxx:386
bool bSnapHelplines
Definition: optsitem.hxx:344
void SetRotate(bool bOn)
Definition: optsitem.hxx:384
void SetSnapFrame(bool bOn)
Definition: optsitem.hxx:380
bool IsBigOrtho() const
Definition: optsitem.hxx:372
void SetSnapArea(sal_Int16 nIn)
Definition: optsitem.hxx:385
Degree100 nBezAngle
Definition: optsitem.hxx:353
Degree100 nAngle
Definition: optsitem.hxx:352
void SetSnapPoints(bool bOn)
Definition: optsitem.hxx:381
bool IsSnapHelplines() const
Definition: optsitem.hxx:367
void SetSnapHelplines(bool bOn)
Definition: optsitem.hxx:378
void SetEliminatePolyPointLimitAngle(Degree100 nIn)
Definition: optsitem.hxx:387
bool IsSnapPoints() const
Definition: optsitem.hxx:370
sal_Int16 nSnapArea
Definition: optsitem.hxx:351
Degree100 GetAngle() const
Definition: optsitem.hxx:375
bool IsOrtho() const
Definition: optsitem.hxx:371
void SetSnapBorder(bool bOn)
Definition: optsitem.hxx:379
bool IsSnapBorder() const
Definition: optsitem.hxx:368
bool bSnapPoints
Definition: optsitem.hxx:347
Degree100 GetEliminatePolyPointLimitAngle() const
Definition: optsitem.hxx:376
void SetBigOrtho(bool bOn)
Definition: optsitem.hxx:383
sal_Int16 GetSnapArea() const
Definition: optsitem.hxx:374
void SetOrtho(bool bOn)
Definition: optsitem.hxx:382
bool bSnapBorder
Definition: optsitem.hxx:345
bool IsSnapFrame() const
Definition: optsitem.hxx:369
bool IsRotate() const
Definition: optsitem.hxx:373
virtual void GetPropNameArray(const char **&ppNames, sal_uLong &rCount) const override
Definition: optsitem.cxx:935
void GetScale(sal_Int32 &rX, sal_Int32 &rY) const
Definition: optsitem.hxx:424
virtual bool WriteData(css::uno::Any *pValues) const override
Definition: optsitem.cxx:959
void SetScale(sal_Int32 nInX, sal_Int32 nInY)
Definition: optsitem.hxx:425
SdOptionsZoom(bool bImpress)
Definition: optsitem.cxx:924
virtual bool ReadData(const css::uno::Any *pValues) override
Definition: optsitem.cxx:947
sal_Int32 nY
Definition: optsitem.hxx:412
sal_Int32 nX
Definition: optsitem.hxx:411
void StoreConfig()
Definition: optsitem.cxx:1401
virtual ~SdOptions() override
Definition: optsitem.cxx:1397
SdOptions(bool bImpress)
Definition: optsitem.cxx:1386
static FieldUnit GetCurrentFieldUnit()
bool GetGridVisible() const
bool GetUseGridSnap() const
sal_uInt32 GetFieldSnapY() const
void SetFieldSnapY(sal_uInt32 nSet)
void SetFieldDrawX(sal_uInt32 nSet)
void SetUseGridSnap(bool bSet)
void SetFieldDrawY(sal_uInt32 nSet)
sal_uInt32 GetFieldDivisionY() const
bool GetSynchronize() const
void SetSynchronize(bool bSet)
void SetEqualGrid(bool bSet)
sal_uInt32 GetFieldDrawY() const
void SetGridVisible(bool bSet)
void SetFieldSnapX(sal_uInt32 nSet)
void SetFieldDivisionY(sal_uInt32 nSet)
sal_uInt32 GetFieldSnapX() const
bool GetEqualGrid() const
void SetFieldDivisionX(sal_uInt32 nSet)
sal_uInt32 GetFieldDrawX() const
sal_uInt32 GetFieldDivisionX() const
View for MDIFrame.
Definition: FrameView.hxx:36
static bool PutProperties(css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues, bool bAllLocales)
ConfigItem & operator=(ConfigItem const &)=delete
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames)=0
virtual void ImplCommit()=0
static css::uno::Sequence< css::uno::Any > GetProperties(css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales)
void Init()
Reference< XAnimationNode > Clone(const Reference< XAnimationNode > &xSourceNode, const SdPage *pSource, const SdPage *pTarget)
bool operator==(const SharedUNOComponent< INTERFACE, COMPONENT > &_rLHS, const css::uno::Reference< INTERFACE > &_rRHS)
#define SD_DLLPUBLIC
Definition: sddllapi.h:27
sal_uIntPtr sal_uLong