xref: /AOO42X/main/cui/source/inc/chardlg.hxx (revision 9bce9b0d387299c68bd81d539e1478357a103de5)
1*c4eee24dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*c4eee24dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*c4eee24dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*c4eee24dSAndrew Rist  * distributed with this work for additional information
6*c4eee24dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*c4eee24dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*c4eee24dSAndrew Rist  * "License"); you may not use this file except in compliance
9*c4eee24dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*c4eee24dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*c4eee24dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*c4eee24dSAndrew Rist  * software distributed under the License is distributed on an
15*c4eee24dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*c4eee24dSAndrew Rist  * KIND, either express or implied.  See the License for the
17*c4eee24dSAndrew Rist  * specific language governing permissions and limitations
18*c4eee24dSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*c4eee24dSAndrew Rist  *************************************************************/
21*c4eee24dSAndrew Rist 
22*c4eee24dSAndrew Rist 
23cdf0e10cSrcweir #ifndef _SVX_CHARDLG_HXX
24cdf0e10cSrcweir #define _SVX_CHARDLG_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir // include ---------------------------------------------------------------
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <svtools/ctrlbox.hxx>
29cdf0e10cSrcweir #include <svtools/stdctrl.hxx>
30cdf0e10cSrcweir #include <sfx2/tabdlg.hxx>
31cdf0e10cSrcweir #include <svx/fntctrl.hxx>
32cdf0e10cSrcweir #include <svx/checklbx.hxx>
33cdf0e10cSrcweir #include <svx/langbox.hxx>
34cdf0e10cSrcweir 
35cdf0e10cSrcweir // forward ---------------------------------------------------------------
36cdf0e10cSrcweir 
37cdf0e10cSrcweir class SvxFontListItem;
38cdf0e10cSrcweir class FontList;
39cdf0e10cSrcweir 
40cdf0e10cSrcweir // -----------------------------------------------------------------------
41cdf0e10cSrcweir 
42cdf0e10cSrcweir #define DISABLE_CASEMAP             ((sal_uInt16)0x0001)
43cdf0e10cSrcweir #define DISABLE_WORDLINE            ((sal_uInt16)0x0002)
44cdf0e10cSrcweir #define DISABLE_BLINK               ((sal_uInt16)0x0004)
45cdf0e10cSrcweir #define DISABLE_UNDERLINE_COLOR     ((sal_uInt16)0x0008)
46cdf0e10cSrcweir 
47cdf0e10cSrcweir #define DISABLE_LANGUAGE            ((sal_uInt16)0x0010)
48cdf0e10cSrcweir #define DISABLE_HIDE_LANGUAGE       ((sal_uInt16)0x0020)
49cdf0e10cSrcweir 
50cdf0e10cSrcweir // class SvxCharBasePage -------------------------------------------------
51cdf0e10cSrcweir 
52cdf0e10cSrcweir class SvxCharBasePage : public SfxTabPage
53cdf0e10cSrcweir {
54cdf0e10cSrcweir protected:
55cdf0e10cSrcweir     SvxFontPrevWindow   m_aPreviewWin;
56cdf0e10cSrcweir     FixedInfo           m_aFontTypeFT;
57cdf0e10cSrcweir 
58cdf0e10cSrcweir     sal_Bool                m_bPreviewBackgroundToCharacter;
59cdf0e10cSrcweir 
60cdf0e10cSrcweir                         SvxCharBasePage( Window* pParent, const ResId& rResIdTabPage, const SfxItemSet&,
61cdf0e10cSrcweir                                             sal_uInt16 nResIdPrewievWin, sal_uInt16 nResIdFontTypeFT );
62cdf0e10cSrcweir     virtual             ~SvxCharBasePage();
63cdf0e10cSrcweir 
64cdf0e10cSrcweir     void                SetPrevFontSize( const SfxItemSet& rSet, sal_uInt16 nSlot, SvxFont& rFont );
65cdf0e10cSrcweir     void                SetPrevFont( const SfxItemSet& rSet, sal_uInt16 nSlot, SvxFont& rFont );
66cdf0e10cSrcweir     void                SetPrevFontStyle( const SfxItemSet& rSet, sal_uInt16 nSlotPosture, sal_uInt16 nSlotWeight, SvxFont& rFont ); // posture/weight
67cdf0e10cSrcweir     void                SetPrevFontWidthScale( const SfxItemSet& rSet );
68cdf0e10cSrcweir 
69cdf0e10cSrcweir     void                SetPrevFontEscapement( sal_uInt8 nProp, sal_uInt8 nEscProp, short nEsc );
70cdf0e10cSrcweir 
71cdf0e10cSrcweir     inline SvxFont&     GetPreviewFont();
72cdf0e10cSrcweir     inline SvxFont&     GetPreviewCJKFont();
73cdf0e10cSrcweir     inline SvxFont&     GetPreviewCTLFont();
74cdf0e10cSrcweir 
75cdf0e10cSrcweir public:
76cdf0e10cSrcweir     using SfxTabPage::ActivatePage;
77cdf0e10cSrcweir     using SfxTabPage::DeactivatePage;
78cdf0e10cSrcweir 
79cdf0e10cSrcweir     virtual void        ActivatePage( const SfxItemSet& rSet );
80cdf0e10cSrcweir //    virtual int         DeactivatePage( SfxItemSet* pSet = 0 );
81cdf0e10cSrcweir 
82cdf0e10cSrcweir };
83cdf0e10cSrcweir 
84cdf0e10cSrcweir // class SvxCharNamePage -------------------------------------------------
85cdf0e10cSrcweir 
86cdf0e10cSrcweir struct SvxCharNamePage_Impl;
87cdf0e10cSrcweir 
88cdf0e10cSrcweir class SvxCharNamePage : public SvxCharBasePage
89cdf0e10cSrcweir {
90cdf0e10cSrcweir 
91cdf0e10cSrcweir private:
92cdf0e10cSrcweir     FixedLine*          m_pWestLine;
93cdf0e10cSrcweir     FixedText*          m_pWestFontNameFT;
94cdf0e10cSrcweir     FontNameBox*        m_pWestFontNameLB;
95cdf0e10cSrcweir     FixedText*          m_pWestFontStyleFT;
96cdf0e10cSrcweir     FontStyleBox*       m_pWestFontStyleLB;
97cdf0e10cSrcweir     FixedText*          m_pWestFontSizeFT;
98cdf0e10cSrcweir     FontSizeBox*        m_pWestFontSizeLB;
99cdf0e10cSrcweir     FixedText*          m_pWestFontLanguageFT;
100cdf0e10cSrcweir     SvxLanguageBox*     m_pWestFontLanguageLB;
101cdf0e10cSrcweir 
102cdf0e10cSrcweir     FixedLine*          m_pEastLine;
103cdf0e10cSrcweir     FixedText*          m_pEastFontNameFT;
104cdf0e10cSrcweir     FontNameBox*        m_pEastFontNameLB;
105cdf0e10cSrcweir     FixedText*          m_pEastFontStyleFT;
106cdf0e10cSrcweir     FontStyleBox*       m_pEastFontStyleLB;
107cdf0e10cSrcweir     FixedText*          m_pEastFontSizeFT;
108cdf0e10cSrcweir     FontSizeBox*        m_pEastFontSizeLB;
109cdf0e10cSrcweir     FixedText*          m_pEastFontLanguageFT;
110cdf0e10cSrcweir     SvxLanguageBox*     m_pEastFontLanguageLB;
111cdf0e10cSrcweir 
112cdf0e10cSrcweir     FixedLine*          m_pCTLLine;
113cdf0e10cSrcweir     FixedText*          m_pCTLFontNameFT;
114cdf0e10cSrcweir     FontNameBox*        m_pCTLFontNameLB;
115cdf0e10cSrcweir     FixedText*          m_pCTLFontStyleFT;
116cdf0e10cSrcweir     FontStyleBox*       m_pCTLFontStyleLB;
117cdf0e10cSrcweir     FixedText*          m_pCTLFontSizeFT;
118cdf0e10cSrcweir     FontSizeBox*        m_pCTLFontSizeLB;
119cdf0e10cSrcweir     FixedText*          m_pCTLFontLanguageFT;
120cdf0e10cSrcweir     SvxLanguageBox*     m_pCTLFontLanguageLB;
121cdf0e10cSrcweir 
122cdf0e10cSrcweir     FixedLine*          m_pColorFL;
123cdf0e10cSrcweir     FixedText*          m_pColorFT;
124cdf0e10cSrcweir     ColorListBox*       m_pColorLB;
125cdf0e10cSrcweir 
126cdf0e10cSrcweir     SvxCharNamePage_Impl*   m_pImpl;
127cdf0e10cSrcweir 
128cdf0e10cSrcweir                         SvxCharNamePage( Window* pParent, const SfxItemSet& rSet );
129cdf0e10cSrcweir 
130cdf0e10cSrcweir     void                Initialize();
131cdf0e10cSrcweir     const FontList*     GetFontList() const;
132cdf0e10cSrcweir     void                UpdatePreview_Impl();
133cdf0e10cSrcweir     void                FillStyleBox_Impl( const FontNameBox* rBox );
134cdf0e10cSrcweir     void                FillSizeBox_Impl( const FontNameBox* rBox );
135cdf0e10cSrcweir 
136cdf0e10cSrcweir     enum LanguageGroup
137cdf0e10cSrcweir     {
138cdf0e10cSrcweir         /** Language for western text.
139cdf0e10cSrcweir          */
140cdf0e10cSrcweir         Western = 0,
141cdf0e10cSrcweir 
142cdf0e10cSrcweir         /** Language for asian text.
143cdf0e10cSrcweir          */
144cdf0e10cSrcweir         Asian,
145cdf0e10cSrcweir 
146cdf0e10cSrcweir         /** Language for ctl text.
147cdf0e10cSrcweir          */
148cdf0e10cSrcweir         Ctl
149cdf0e10cSrcweir     };
150cdf0e10cSrcweir 
151cdf0e10cSrcweir     void                Reset_Impl( const SfxItemSet& rSet, LanguageGroup eLangGrp );
152cdf0e10cSrcweir     sal_Bool                FillItemSet_Impl( SfxItemSet& rSet, LanguageGroup eLangGrp );
153cdf0e10cSrcweir     void                ResetColor_Impl( const SfxItemSet& rSet );
154cdf0e10cSrcweir 
155cdf0e10cSrcweir     DECL_LINK(          UpdateHdl_Impl, Timer* );
156cdf0e10cSrcweir     DECL_LINK(          FontModifyHdl_Impl, void* );
157cdf0e10cSrcweir     DECL_LINK(          ColorBoxSelectHdl_Impl, ColorListBox* );
158cdf0e10cSrcweir 
159cdf0e10cSrcweir public:
160cdf0e10cSrcweir     using SfxTabPage::ActivatePage;
161cdf0e10cSrcweir     using SfxTabPage::DeactivatePage;
162cdf0e10cSrcweir 
163cdf0e10cSrcweir     virtual void        ActivatePage( const SfxItemSet& rSet );
164cdf0e10cSrcweir     virtual int         DeactivatePage( SfxItemSet* pSet = 0 );
165cdf0e10cSrcweir 
166cdf0e10cSrcweir public:
167cdf0e10cSrcweir                         ~SvxCharNamePage();
168cdf0e10cSrcweir 
169cdf0e10cSrcweir     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rSet );
170cdf0e10cSrcweir     static sal_uInt16*      GetRanges();
171cdf0e10cSrcweir 
172cdf0e10cSrcweir     virtual void        Reset( const SfxItemSet& rSet );
173cdf0e10cSrcweir     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
174cdf0e10cSrcweir 
175cdf0e10cSrcweir     void                SetFontList( const SvxFontListItem& rItem );
176cdf0e10cSrcweir     void                EnableRelativeMode();
177cdf0e10cSrcweir     void                EnableSearchMode();
178cdf0e10cSrcweir     //                  the writer uses SID_ATTR_BRUSH as font background
179cdf0e10cSrcweir     void                SetPreviewBackgroundToCharacter();
180cdf0e10cSrcweir 
181cdf0e10cSrcweir     void                DisableControls( sal_uInt16 nDisable );
182cdf0e10cSrcweir     virtual void        PageCreated (SfxAllItemSet aSet);
183cdf0e10cSrcweir };
184cdf0e10cSrcweir 
185cdf0e10cSrcweir // class SvxCharEffectsPage ----------------------------------------------
186cdf0e10cSrcweir 
187cdf0e10cSrcweir class SvxCharEffectsPage : public SvxCharBasePage
188cdf0e10cSrcweir {
189cdf0e10cSrcweir 
190cdf0e10cSrcweir private:
191cdf0e10cSrcweir     FixedText           m_aFontColorFT;
192cdf0e10cSrcweir     ColorListBox        m_aFontColorLB;
193cdf0e10cSrcweir 
194cdf0e10cSrcweir     FixedText           m_aEffectsFT;
195cdf0e10cSrcweir     SvxCheckListBox     m_aEffectsLB;
196cdf0e10cSrcweir 
197cdf0e10cSrcweir     ListBox             m_aEffects2LB;
198cdf0e10cSrcweir 
199cdf0e10cSrcweir     FixedText           m_aReliefFT;
200cdf0e10cSrcweir     ListBox             m_aReliefLB;
201cdf0e10cSrcweir 
202cdf0e10cSrcweir     TriStateBox         m_aOutlineBtn;
203cdf0e10cSrcweir     TriStateBox         m_aShadowBtn;
204cdf0e10cSrcweir     TriStateBox         m_aBlinkingBtn;
205cdf0e10cSrcweir     TriStateBox         m_aHiddenBtn;
206cdf0e10cSrcweir 
207cdf0e10cSrcweir     FixedLine           m_aVerticalLine;
208cdf0e10cSrcweir 
209cdf0e10cSrcweir     FixedText           m_aOverlineFT;
210cdf0e10cSrcweir     ListBox             m_aOverlineLB;
211cdf0e10cSrcweir     FixedText           m_aOverlineColorFT;
212cdf0e10cSrcweir     ColorListBox        m_aOverlineColorLB;
213cdf0e10cSrcweir 
214cdf0e10cSrcweir     FixedText           m_aStrikeoutFT;
215cdf0e10cSrcweir     ListBox             m_aStrikeoutLB;
216cdf0e10cSrcweir 
217cdf0e10cSrcweir     FixedText           m_aUnderlineFT;
218cdf0e10cSrcweir     ListBox             m_aUnderlineLB;
219cdf0e10cSrcweir     FixedText           m_aUnderlineColorFT;
220cdf0e10cSrcweir     ColorListBox        m_aUnderlineColorLB;
221cdf0e10cSrcweir 
222cdf0e10cSrcweir     CheckBox            m_aIndividualWordsBtn;
223cdf0e10cSrcweir 
224cdf0e10cSrcweir     FixedLine           m_aAsianLine;
225cdf0e10cSrcweir 
226cdf0e10cSrcweir     FixedText           m_aEmphasisFT;
227cdf0e10cSrcweir     ListBox             m_aEmphasisLB;
228cdf0e10cSrcweir 
229cdf0e10cSrcweir     FixedText           m_aPositionFT;
230cdf0e10cSrcweir     ListBox             m_aPositionLB;
231cdf0e10cSrcweir 
232cdf0e10cSrcweir     sal_uInt16              m_nHtmlMode;
233cdf0e10cSrcweir 
234cdf0e10cSrcweir     String              m_aTransparentColorName;
235cdf0e10cSrcweir 
236cdf0e10cSrcweir                         SvxCharEffectsPage( Window* pParent, const SfxItemSet& rSet );
237cdf0e10cSrcweir 
238cdf0e10cSrcweir     void                Initialize();
239cdf0e10cSrcweir     void                UpdatePreview_Impl();
240cdf0e10cSrcweir     void                SetCaseMap_Impl( SvxCaseMap eCaseMap );
241cdf0e10cSrcweir     void                ResetColor_Impl( const SfxItemSet& rSet );
242cdf0e10cSrcweir     sal_Bool                FillItemSetColor_Impl( SfxItemSet& rSet );
243cdf0e10cSrcweir 
244cdf0e10cSrcweir     DECL_LINK(          SelectHdl_Impl, ListBox* );
245cdf0e10cSrcweir     DECL_LINK(          CbClickHdl_Impl, CheckBox* );
246cdf0e10cSrcweir     DECL_LINK(          TristClickHdl_Impl, TriStateBox* );
247cdf0e10cSrcweir     DECL_LINK(          UpdatePreview_Impl, ListBox* );
248cdf0e10cSrcweir     DECL_LINK(          ColorBoxSelectHdl_Impl, ColorListBox* );
249cdf0e10cSrcweir 
250cdf0e10cSrcweir public:
251cdf0e10cSrcweir //    using SfxTabPage::ActivatePage;
252cdf0e10cSrcweir     using SfxTabPage::DeactivatePage;
253cdf0e10cSrcweir 
254cdf0e10cSrcweir //    virtual void        ActivatePage( const SfxItemSet& rSet );
255cdf0e10cSrcweir     virtual int         DeactivatePage( SfxItemSet* pSet = 0 );
256cdf0e10cSrcweir 
257cdf0e10cSrcweir public:
258cdf0e10cSrcweir     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rSet );
259cdf0e10cSrcweir     static sal_uInt16*      GetRanges();
260cdf0e10cSrcweir 
261cdf0e10cSrcweir     virtual void        Reset( const SfxItemSet& rSet );
262cdf0e10cSrcweir     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
263cdf0e10cSrcweir 
264cdf0e10cSrcweir     void                DisableControls( sal_uInt16 nDisable );
265cdf0e10cSrcweir     void                EnableFlash();
266cdf0e10cSrcweir     //                  the writer uses SID_ATTR_BRUSH as font background
267cdf0e10cSrcweir     void                SetPreviewBackgroundToCharacter();
268cdf0e10cSrcweir     virtual void        PageCreated (SfxAllItemSet aSet);
269cdf0e10cSrcweir };
270cdf0e10cSrcweir 
271cdf0e10cSrcweir // class SvxCharPositionPage ---------------------------------------------
272cdf0e10cSrcweir 
273cdf0e10cSrcweir class SvxCharPositionPage : public SvxCharBasePage
274cdf0e10cSrcweir {
275cdf0e10cSrcweir 
276cdf0e10cSrcweir private:
277cdf0e10cSrcweir     FixedLine           m_aPositionLine;
278cdf0e10cSrcweir     RadioButton         m_aHighPosBtn;
279cdf0e10cSrcweir     RadioButton         m_aNormalPosBtn;
280cdf0e10cSrcweir     RadioButton         m_aLowPosBtn;
281cdf0e10cSrcweir     FixedText           m_aHighLowFT;
282cdf0e10cSrcweir     MetricField         m_aHighLowEdit;
283cdf0e10cSrcweir     CheckBox            m_aHighLowRB;
284cdf0e10cSrcweir     FixedText           m_aFontSizeFT;
285cdf0e10cSrcweir     MetricField         m_aFontSizeEdit;
286cdf0e10cSrcweir     FixedLine           m_aRotationScalingFL;
287cdf0e10cSrcweir     FixedLine           m_aScalingFL;
288cdf0e10cSrcweir     RadioButton         m_a0degRB;
289cdf0e10cSrcweir     RadioButton         m_a90degRB;
290cdf0e10cSrcweir     RadioButton         m_a270degRB;
291cdf0e10cSrcweir     CheckBox            m_aFitToLineCB;
292cdf0e10cSrcweir     FixedText           m_aScaleWidthFT;
293cdf0e10cSrcweir     MetricField         m_aScaleWidthMF;
294cdf0e10cSrcweir 
295cdf0e10cSrcweir     FixedLine           m_aKerningLine;
296cdf0e10cSrcweir     ListBox             m_aKerningLB;
297cdf0e10cSrcweir     FixedText           m_aKerningFT;
298cdf0e10cSrcweir     MetricField         m_aKerningEdit;
299cdf0e10cSrcweir     CheckBox            m_aPairKerningBtn;
300cdf0e10cSrcweir 
301cdf0e10cSrcweir     short               m_nSuperEsc;
302cdf0e10cSrcweir     short               m_nSubEsc;
303cdf0e10cSrcweir 
304cdf0e10cSrcweir     sal_uInt16              m_nScaleWidthItemSetVal;
305cdf0e10cSrcweir     sal_uInt16              m_nScaleWidthInitialVal;
306cdf0e10cSrcweir 
307cdf0e10cSrcweir     sal_uInt8                m_nSuperProp;
308cdf0e10cSrcweir     sal_uInt8                m_nSubProp;
309cdf0e10cSrcweir 
310cdf0e10cSrcweir                         SvxCharPositionPage( Window* pParent, const SfxItemSet& rSet );
311cdf0e10cSrcweir 
312cdf0e10cSrcweir     void                Initialize();
313cdf0e10cSrcweir     void                UpdatePreview_Impl( sal_uInt8 nProp, sal_uInt8 nEscProp, short nEsc );
314cdf0e10cSrcweir     void                SetEscapement_Impl( sal_uInt16 nEsc );
315cdf0e10cSrcweir 
316cdf0e10cSrcweir     DECL_LINK(          PositionHdl_Impl, RadioButton* );
317cdf0e10cSrcweir     DECL_LINK(          RotationHdl_Impl, RadioButton* );
318cdf0e10cSrcweir     DECL_LINK(          FontModifyHdl_Impl, MetricField* );
319cdf0e10cSrcweir     DECL_LINK(          AutoPositionHdl_Impl, CheckBox* );
320cdf0e10cSrcweir     DECL_LINK(          FitToLineHdl_Impl, CheckBox* );
321cdf0e10cSrcweir     DECL_LINK(          KerningSelectHdl_Impl, ListBox* );
322cdf0e10cSrcweir     DECL_LINK(          KerningModifyHdl_Impl, MetricField* );
323cdf0e10cSrcweir     DECL_LINK(          PairKerningHdl_Impl, CheckBox* );
324cdf0e10cSrcweir     DECL_LINK(          LoseFocusHdl_Impl, MetricField* );
325cdf0e10cSrcweir     DECL_LINK(          ScaleWidthModifyHdl_Impl, MetricField* );
326cdf0e10cSrcweir 
327cdf0e10cSrcweir public:
328cdf0e10cSrcweir     using SfxTabPage::ActivatePage;
329cdf0e10cSrcweir     using SfxTabPage::DeactivatePage;
330cdf0e10cSrcweir 
331cdf0e10cSrcweir     virtual int         DeactivatePage( SfxItemSet* pSet = 0 );
332cdf0e10cSrcweir     virtual void        ActivatePage( const SfxItemSet& rSet );
333cdf0e10cSrcweir 
334cdf0e10cSrcweir public:
335cdf0e10cSrcweir     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rSet );
336cdf0e10cSrcweir     static sal_uInt16*      GetRanges();
337cdf0e10cSrcweir 
338cdf0e10cSrcweir     virtual void        Reset( const SfxItemSet& rSet );
339cdf0e10cSrcweir     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
340cdf0e10cSrcweir     virtual void        FillUserData();
341cdf0e10cSrcweir     //                  the writer uses SID_ATTR_BRUSH as font background
342cdf0e10cSrcweir     void                SetPreviewBackgroundToCharacter();
343cdf0e10cSrcweir     virtual void        PageCreated (SfxAllItemSet aSet);
344cdf0e10cSrcweir };
345cdf0e10cSrcweir 
346cdf0e10cSrcweir // class SvxCharTwoLinesPage ---------------------------------------------
347cdf0e10cSrcweir 
348cdf0e10cSrcweir class SvxCharTwoLinesPage : public SvxCharBasePage
349cdf0e10cSrcweir {
350cdf0e10cSrcweir private:
351cdf0e10cSrcweir     FixedLine           m_aSwitchOnLine;
352cdf0e10cSrcweir     CheckBox            m_aTwoLinesBtn;
353cdf0e10cSrcweir 
354cdf0e10cSrcweir     FixedLine           m_aEncloseLine;
355cdf0e10cSrcweir     FixedText           m_aStartBracketFT;
356cdf0e10cSrcweir     ListBox             m_aStartBracketLB;
357cdf0e10cSrcweir     FixedText           m_aEndBracketFT;
358cdf0e10cSrcweir     ListBox             m_aEndBracketLB;
359cdf0e10cSrcweir 
360cdf0e10cSrcweir     sal_uInt16              m_nStartBracketPosition;
361cdf0e10cSrcweir     sal_uInt16              m_nEndBracketPosition;
362cdf0e10cSrcweir 
363cdf0e10cSrcweir                         SvxCharTwoLinesPage( Window* pParent, const SfxItemSet& rSet );
364cdf0e10cSrcweir 
365cdf0e10cSrcweir     void                UpdatePreview_Impl();
366cdf0e10cSrcweir     void                Initialize();
367cdf0e10cSrcweir     void                SelectCharacter( ListBox* pBox );
368cdf0e10cSrcweir     void                SetBracket( sal_Unicode cBracket, sal_Bool bStart );
369cdf0e10cSrcweir 
370cdf0e10cSrcweir     DECL_LINK(          TwoLinesHdl_Impl, CheckBox* );
371cdf0e10cSrcweir     DECL_LINK(          CharacterMapHdl_Impl, ListBox* );
372cdf0e10cSrcweir 
373cdf0e10cSrcweir public:
374cdf0e10cSrcweir     using SfxTabPage::ActivatePage;
375cdf0e10cSrcweir     using SfxTabPage::DeactivatePage;
376cdf0e10cSrcweir 
377cdf0e10cSrcweir     virtual void        ActivatePage( const SfxItemSet& rSet );
378cdf0e10cSrcweir     virtual int         DeactivatePage( SfxItemSet* pSet = 0 );
379cdf0e10cSrcweir 
380cdf0e10cSrcweir public:
381cdf0e10cSrcweir     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rSet );
382cdf0e10cSrcweir     static sal_uInt16*      GetRanges();
383cdf0e10cSrcweir 
384cdf0e10cSrcweir     virtual void        Reset( const SfxItemSet& rSet );
385cdf0e10cSrcweir     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
386cdf0e10cSrcweir     //                  the writer uses SID_ATTR_BRUSH as font background
387cdf0e10cSrcweir     void                SetPreviewBackgroundToCharacter();
388cdf0e10cSrcweir     virtual void        PageCreated (SfxAllItemSet aSet);
389cdf0e10cSrcweir };
390cdf0e10cSrcweir 
391cdf0e10cSrcweir #endif // #ifndef _SVX_CHARDLG_HXX
392