LibreOffice Module sw (master) 1
cfgitems.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#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_CFGITEMS_HXX
20#define INCLUDED_SW_SOURCE_UIBASE_INC_CFGITEMS_HXX
21
22#include <svl/poolitem.hxx>
23#include <swdllapi.h>
24#include <printdata.hxx>
25
26#include <cmdid.h>
27
28class SwModule;
29#ifdef DBG_UTIL
30class SwTestTabPage;
31#endif
33class SfxPrinter;
34class SwViewShell;
35class SwViewOption;
38enum class SwFillMode;
39
42{
44 friend class SwModule;
45
47 bool m_bTab :1;
48 bool m_bSpace :1;
52 bool m_bBookmarks :1;
55
56public:
58 SwDocDisplayItem( const SwViewOption& rVOpt );
59
60 virtual SwDocDisplayItem* Clone( SfxItemPool *pPool = nullptr ) const override;
61 virtual bool operator==( const SfxPoolItem& ) const override;
62 void FillViewOptions( SwViewOption& rVOpt) const;
63};
64
65// OS 12.01.95
66// Item for settings dialog, element page
68{
69 //view
70 bool m_bVertRuler :1;
73 //visual aids
74 bool m_bCrosshair :1;
75 //display
76 bool m_bTable :1;
77 bool m_bGraphic :1;
78 bool m_bDrawing :1;
79 bool m_bNotes :1;
86
87 friend class SwContentOptPage;
88
89public:
90 SwElemItem();
91 SwElemItem(const SwViewOption& rVOpt);
92
93 virtual SwElemItem* Clone( SfxItemPool *pPool = nullptr ) const override;
94 virtual bool operator==( const SfxPoolItem& ) const override;
95
96 void FillViewOptions( SwViewOption& rVOpt) const;
97
98};
99
100// OS 12.01.95
101// Item for settings dialog - printer/add-ons
103{
104 using SwPrintData::operator ==;
105
106public:
108 SwAddPrinterItem( const SwPrintData& rPrtData );
109
110 virtual SwAddPrinterItem* Clone( SfxItemPool *pPool = nullptr ) const override;
111
112 virtual bool operator==( const SfxPoolItem& ) const override;
113};
114
117{
119 bool m_bOn;
120public:
122 SwShadowCursorItem( const SwViewOption& rVOpt );
123
124 virtual SwShadowCursorItem* Clone( SfxItemPool *pPool = nullptr ) const override;
125 virtual bool operator==( const SfxPoolItem& ) const override;
126
127 void FillViewOptions( SwViewOption& rVOpt) const;
128
129 SwFillMode GetMode() const { return m_eMode; }
130 bool IsOn() const { return m_bOn; }
131
132 void SetMode( SwFillMode eM ) { m_eMode = eM; }
133 void SetOn( bool bFlag ) { m_bOn = bFlag; }
134};
135
136#ifdef DBG_UTIL
137
138// Item for settings dialog - test settings
140{
141 friend class SwModule;
142 friend class SwTestTabPage;
143
144 bool m_bTest1:1;
145 bool m_bTest2:1;
146 bool m_bTest3:1;
147 bool m_bTest4:1;
148 bool m_bTest5:1;
149 bool m_bTest6:1;
150 bool m_bTest7:1;
151 bool m_bTest8:1;
152 bool m_bTest9:1;
153 bool m_bTest10:1;
154
155public:
157
158 virtual SwTestItem* Clone( SfxItemPool *pPool = nullptr ) const override;
159 virtual bool operator==( const SfxPoolItem& ) const override;
160
161};
162#endif
163
164#endif
165
166/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool operator==(const SfxPoolItem &) const=0
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
SfxItemPool * pPool
Item for settings dialog - document view.
Definition: cfgitems.hxx:42
bool m_bNonbreakingSpace
Definition: cfgitems.hxx:49
bool m_bParagraphEnd
Definition: cfgitems.hxx:46
sal_Int32 m_xDefaultAnchor
Definition: cfgitems.hxx:54
bool m_bCharHiddenText
Definition: cfgitems.hxx:51
bool m_bCrosshair
Definition: cfgitems.hxx:74
bool m_bSmoothScroll
Definition: cfgitems.hxx:72
bool m_bShowChangesInMargin
Definition: cfgitems.hxx:83
bool m_bNotes
Definition: cfgitems.hxx:79
bool m_bVertRulerRight
Definition: cfgitems.hxx:71
bool m_bShowHiddenPara
Definition: cfgitems.hxx:85
bool m_bFieldHiddenText
Definition: cfgitems.hxx:84
bool m_bShowInlineTooltips
Definition: cfgitems.hxx:80
bool m_bTreatSubOutlineLevelsAsContent
Definition: cfgitems.hxx:82
bool m_bShowOutlineContentVisibilityButton
Definition: cfgitems.hxx:81
bool m_bDrawing
Definition: cfgitems.hxx:78
bool m_bTable
Definition: cfgitems.hxx:76
bool m_bGraphic
Definition: cfgitems.hxx:77
bool m_bVertRuler
Definition: cfgitems.hxx:70
Item for settings dialog, ShadowCursorPage.
Definition: cfgitems.hxx:117
SwFillMode GetMode() const
Definition: cfgitems.hxx:129
void SetMode(SwFillMode eM)
Definition: cfgitems.hxx:132
bool IsOn() const
Definition: cfgitems.hxx:130
void SetOn(bool bFlag)
Definition: cfgitems.hxx:133
SwFillMode m_eMode
Definition: cfgitems.hxx:118
bool m_bTest8
Definition: cfgitems.hxx:151
bool m_bTest7
Definition: cfgitems.hxx:150
bool m_bTest6
Definition: cfgitems.hxx:149
bool m_bTest9
Definition: cfgitems.hxx:152
bool m_bTest1
Definition: cfgitems.hxx:144
bool m_bTest5
Definition: cfgitems.hxx:148
bool m_bTest2
Definition: cfgitems.hxx:145
bool m_bTest4
Definition: cfgitems.hxx:147
bool m_bTest10
Definition: cfgitems.hxx:153
bool m_bTest3
Definition: cfgitems.hxx:146
#define FN_PARAM_SWTEST
Definition: cmdid.h:787
SwFillMode
Definition: crstate.hxx:29
#define SW_DLLPUBLIC
Definition: swdllapi.h:28