1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: textattr.hxx,v $
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>
41 #ifndef _FIXED_HXX //autogen
42 #include <vcl/fixed.hxx>
44 #include <sfx2/basedlgs.hxx>
48 /*************************************************************************
50 |* Dialog zum "Andern von TextAttributen
52 \************************************************************************/
54 class SvxTextAttrPage
: public SvxTabPage
58 TriStateBox aTsbAutoGrowWidth
;
59 TriStateBox aTsbAutoGrowHeight
;
60 TriStateBox aTsbFitToSize
;
61 TriStateBox aTsbContour
;
62 TriStateBox aTsbWordWrapText
;
63 TriStateBox aTsbAutoGrowSize
;
66 FixedLine aFlDistance
;
68 MetricField aMtrFldLeft
;
70 MetricField aMtrFldRight
;
72 MetricField aMtrFldTop
;
74 MetricField aMtrFldBottom
;
76 FixedLine aFlSeparator
;
78 FixedLine aFlPosition
;
79 SvxRectCtl aCtlPosition
;
80 TriStateBox aTsbFullWidth
;
82 const SfxItemSet
& rOutAttrs
;
85 BOOL bAutoGrowSizeEnabled
;
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 * );
98 /** Return whether the text direction is from left to right (</TRUE>) or
99 top to bottom (</FALSE>).
101 bool IsTextDirectionLeftToRight (void) const;
105 SvxTextAttrPage( Window
* pWindow
, const SfxItemSet
& rInAttrs
);
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
);
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
131 //CHINA001 SvxTextAttrDialog( Window* pParent, const SfxItemSet& rAttr,
132 //CHINA001 const SdrView* pView );
133 //CHINA001 ~SvxTextAttrDialog();
137 #endif // _SVX_TEXTATTR_HXX