LibreOffice Module sd (master) 1
FrameView.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
22#include "ViewShell.hxx"
23#include <svx/svdview.hxx>
24#include <pres.hxx>
25
26class SdDrawDocument;
27class SdOptions;
28
29namespace sd {
30
35 : public SdrView
36{
37public:
38 FrameView(SdDrawDocument* pDrawDoc, FrameView* pFrameView = nullptr );
39 FrameView(const FrameView& rFrameView);
40 virtual ~FrameView() override;
41
42 void Connect();
43 void Disconnect();
44
45 void Update(SdOptions const * pOptions);
46
47 void SetStandardHelpLines(const SdrHelpLineList& rHelpLines)
48 { maStandardHelpLines = rHelpLines; }
49 const SdrHelpLineList& GetStandardHelpLines() const { return maStandardHelpLines; }
50 void SetNotesHelpLines(const SdrHelpLineList& rHelpLines)
51 { maNotesHelpLines = rHelpLines; }
52 const SdrHelpLineList& GetNotesHelpLines() const { return maNotesHelpLines; }
53 void SetHandoutHelpLines(const SdrHelpLineList& rHelpLines)
54 { maHandoutHelpLines = rHelpLines; }
55 const SdrHelpLineList& GetHandoutHelpLines() const { return maHandoutHelpLines; }
56
57 void SetVisibleLayers(const SdrLayerIDSet& rVisibleLayers)
58 { maVisibleLayers = rVisibleLayers; }
59 const SdrLayerIDSet& GetVisibleLayers() const { return maVisibleLayers; }
60
61 void SetLockedLayers(const SdrLayerIDSet& rLockedLayers)
62 { maLockedLayers = rLockedLayers; }
63 const SdrLayerIDSet& GetLockedLayers() const { return maLockedLayers; }
64
65 void SetPrintableLayers(const SdrLayerIDSet& rPrintableLayers)
66 { maPrintableLayers = rPrintableLayers; }
67 const SdrLayerIDSet& GetPrintableLayers() const { return maPrintableLayers; }
68
69 void SetRuler(const bool bRulerOn)
70 { mbRuler = bRulerOn; }
71 bool HasRuler() const { return mbRuler; }
72
73 void SetNoColors(const bool bNoCol)
74 { mbNoColors = bNoCol; }
75 bool IsNoColors() const { return mbNoColors; }
76
77 void SetNoAttribs(const bool bNoAttr)
78 { mbNoAttribs = bNoAttr; }
79 bool IsNoAttribs() const { return mbNoAttribs; }
80
81 void SetVisArea(const ::tools::Rectangle& rVisArea)
82 { maVisArea = rVisArea; }
83 const ::tools::Rectangle& GetVisArea() const { return maVisArea; }
84
85 void SetPageKind(PageKind eKind) { mePageKind = eKind; }
86 PageKind GetPageKind() const { return mePageKind; }
87
90 void SetPageKindOnLoad(PageKind eKind) { mePageKindOnLoad = eKind; }
91
93 PageKind GetPageKindOnLoad() const { return mePageKindOnLoad; }
94
95 void SetSelectedPage (sal_uInt16 nPage);
96 sal_uInt16 GetSelectedPage () const { return mnSelectedPage;}
97
100 void SetSelectedPageOnLoad (sal_uInt16 nPage) { mnSelectedPageOnLoad = nPage; }
101
103 sal_uInt16 GetSelectedPageOnLoad () const { return mnSelectedPageOnLoad; }
104
105 void SetViewShEditMode(EditMode eMode);
106 EditMode GetViewShEditMode () const;
107
111 void SetViewShEditModeOnLoad (const EditMode eMode);
112
116 EditMode GetViewShEditModeOnLoad() const { return meEditModeOnLoad;}
117
118 void SetLayerMode(bool bMode)
119 { mbLayerMode = bMode; }
120 bool IsLayerMode() const { return mbLayerMode; }
121
122 void SetQuickEdit(bool bQEdit)
123 { mbQuickEdit = bQEdit; }
124 bool IsQuickEdit() const { return mbQuickEdit; }
125
126 void SetDoubleClickTextEdit( bool bOn ) { mbDoubleClickTextEdit = bOn; }
127 bool IsDoubleClickTextEdit() const { return mbDoubleClickTextEdit; }
128
129 void SetClickChangeRotation( bool bOn ) { mbClickChangeRotation = bOn; }
130 bool IsClickChangeRotation() const { return mbClickChangeRotation; }
131
138 void SetPreviousViewShellType (ViewShell::ShellType eType);
139
143 ViewShell::ShellType GetPreviousViewShellType() const { return mePreviousViewShellType;}
144
148 void SetViewShellTypeOnLoad (ViewShell::ShellType eType);
149
150 ViewShell::ShellType GetViewShellTypeOnLoad() const { return meViewShellTypeOnLoad;}
151
152 void SetPresentationViewShellId(sal_uInt16 nId)
153 { mnPresViewShellId = nId; }
154 sal_uInt16 GetPresentationViewShellId() const { return mnPresViewShellId; }
155
156 void SetSlidesPerRow(sal_uInt16 nSlides) { mnSlidesPerRow = nSlides; }
157 sal_uInt16 GetSlidesPerRow() const { return mnSlidesPerRow; }
158
159 void SetDrawMode(DrawModeFlags nNewDrawMode) { mnDrawMode = nNewDrawMode; };
160 DrawModeFlags GetDrawMode() const { return mnDrawMode; };
161
162 void SetIsNavigatorShowingAllShapes (const bool bIsNavigatorShowingAllShapes);
163 bool IsNavigatorShowingAllShapes() const { return mbIsNavigatorShowingAllShapes;}
164
165 void WriteUserDataSequence ( css::uno::Sequence < css::beans::PropertyValue >& );
166 void ReadUserDataSequence ( const css::uno::Sequence < css::beans::PropertyValue >& );
167
168private:
169 sal_uInt16 mnRefCount;
181 sal_uInt16 mnSelectedPage;
185 // EditMode meStandardEditMode; ///< edit mode in drawing mode (Page/MasterPage)
186 // EditMode meNotesEditMode; ///< edit mode in notes mode (Page/MasterPage)
187 // EditMode meHandoutEditMode; ///< edit mode in handout mode (Page/MasterPage)
193 sal_uInt16 mnPresViewShellId;
194 sal_uInt16 mnSlidesPerRow;
200
207
209};
210
211} // end of namespace sd
212
213/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DrawModeFlags
View for MDIFrame.
Definition: FrameView.hxx:36
sal_uInt16 mnSelectedPage
Definition: FrameView.hxx:181
sal_uInt16 mnRefCount
Definition: FrameView.hxx:169
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 SetDrawMode(DrawModeFlags nNewDrawMode)
Definition: FrameView.hxx:159
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
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
bool IsClickChangeRotation() const
Definition: FrameView.hxx:130
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
sal_uInt16 GetPresentationViewShellId() const
Definition: FrameView.hxx:154
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
FrameView(const FrameView &rFrameView)
bool IsDoubleClickTextEdit() const
Definition: FrameView.hxx:127
const SdrLayerIDSet & GetVisibleLayers() const
Definition: FrameView.hxx:59
const SdrHelpLineList & GetNotesHelpLines() const
Definition: FrameView.hxx:52
bool mbIsNavigatorShowingAllShapes
Remember whether the navigator shows all shapes (<TRUE>) or only the names ones (<FALSE>).
Definition: FrameView.hxx:199
void SetPresentationViewShellId(sal_uInt16 nId)
Definition: FrameView.hxx:152
bool mbNoAttribs
structuring mode
Definition: FrameView.hxx:178
PageKind GetPageKind() const
Definition: FrameView.hxx:86
::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
bool IsQuickEdit() const
Definition: FrameView.hxx:124
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 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
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
sal_Int16 nId
EditMode
Definition: pres.hxx:53
PageKind
Definition: pres.hxx:45
#define SD_DLLPUBLIC
Definition: sddllapi.h:27