Update ooo320-m1
[ooovba.git] / svx / source / cui / textattr.hxx
blob63ef963b81600102f8f5b32419bec37782db583c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: textattr.hxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVX_TEXTATTR_HXX
31 #define _SVX_TEXTATTR_HXX
33 // include ---------------------------------------------------------------
35 #include <svx/dlgctrl.hxx>
37 #ifndef _GROUP_HXX //autogen
38 #include <vcl/group.hxx>
39 #endif
41 #ifndef _FIXED_HXX //autogen
42 #include <vcl/fixed.hxx>
43 #endif
44 #include <sfx2/basedlgs.hxx>
46 class SdrView;
48 /*************************************************************************
50 |* Dialog zum "Andern von TextAttributen
52 \************************************************************************/
54 class SvxTextAttrPage : public SvxTabPage
56 private:
57 FixedLine aFlText;
58 TriStateBox aTsbAutoGrowWidth;
59 TriStateBox aTsbAutoGrowHeight;
60 TriStateBox aTsbFitToSize;
61 TriStateBox aTsbContour;
62 TriStateBox aTsbWordWrapText;
63 TriStateBox aTsbAutoGrowSize;
66 FixedLine aFlDistance;
67 FixedText aFtLeft;
68 MetricField aMtrFldLeft;
69 FixedText aFtRight;
70 MetricField aMtrFldRight;
71 FixedText aFtTop;
72 MetricField aMtrFldTop;
73 FixedText aFtBottom;
74 MetricField aMtrFldBottom;
76 FixedLine aFlSeparator;
78 FixedLine aFlPosition;
79 SvxRectCtl aCtlPosition;
80 TriStateBox aTsbFullWidth;
82 const SfxItemSet& rOutAttrs;
83 const SdrView* pView;
85 BOOL bAutoGrowSizeEnabled;
86 BOOL bContourEnabled;
87 BOOL bAutoGrowWidthEnabled;
88 BOOL bAutoGrowHeightEnabled;
89 BOOL bWordWrapTextEnabled;
90 BOOL bFitToSizeEnabled;
93 #ifdef _SVX_TEXTATTR_CXX
94 DECL_LINK( ClickFullWidthHdl_Impl, void * );
95 DECL_LINK( ClickHdl_Impl, void * );
96 #endif
98 /** Return whether the text direction is from left to right (</TRUE>) or
99 top to bottom (</FALSE>).
101 bool IsTextDirectionLeftToRight (void) const;
103 public:
105 SvxTextAttrPage( Window* pWindow, const SfxItemSet& rInAttrs );
106 ~SvxTextAttrPage();
108 static SfxTabPage* Create( Window*, const SfxItemSet& );
109 static USHORT* GetRanges();
111 virtual BOOL FillItemSet( SfxItemSet& );
112 virtual void Reset( const SfxItemSet & );
114 virtual void PointChanged( Window* pWindow, RECT_POINT eRP );
116 void Construct();
117 void SetView( const SdrView* pSdrView ) { pView = pSdrView; }
118 virtual void PageCreated(SfxAllItemSet aSet); // add CHINA001
121 /*************************************************************************
123 |* Von SfxSingleTabDialog abgeleitet, um vom Control "uber virtuelle Methode
124 |* benachrichtigt werden zu k"onnen.
126 \************************************************************************/
128 //CHINA001 class SvxTextAttrDialog : public SfxSingleTabDialog
129 //CHINA001 {
130 //CHINA001 public:
131 //CHINA001 SvxTextAttrDialog( Window* pParent, const SfxItemSet& rAttr,
132 //CHINA001 const SdrView* pView );
133 //CHINA001 ~SvxTextAttrDialog();
134 //CHINA001 };
137 #endif // _SVX_TEXTATTR_HXX