merge the formfield patch from ooo-build
[ooovba.git] / svx / source / cui / align.hxx
blob4d93e16872976ae8f023fa60e63df78071c997b3
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: align.hxx,v $
10 * $Revision: 1.7 $
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_ALIGN_HXX
31 #define _SVX_ALIGN_HXX
33 // include ---------------------------------------------------------------
36 #ifndef _FIELD_HXX //autogen
37 #include <vcl/field.hxx>
38 #endif
39 #ifndef _IMAGEBTN_HXX //autogen
40 #include <vcl/imagebtn.hxx>
41 #endif
42 #ifndef _FIXED_HXX //autogen
43 #include <vcl/fixed.hxx>
44 #endif
45 #ifndef _LSTBOX_HXX //autogen
46 #include <vcl/lstbox.hxx>
47 #endif
48 #include <sfx2/tabdlg.hxx>
49 #include <svtools/valueset.hxx>
50 #include "dialcontrol.hxx"
51 #include "wrapfield.hxx"
52 #include "orienthelper.hxx"
53 #include <svx/frmdirlbox.hxx>
55 namespace svx {
57 // ============================================================================
59 class AlignmentTabPage : public SfxTabPage
61 using TabPage::DeactivatePage;
63 public:
64 virtual ~AlignmentTabPage();
66 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
67 static USHORT* GetRanges();
69 virtual void Reset( const SfxItemSet& rSet );
70 virtual int DeactivatePage( SfxItemSet* pSet );
71 virtual void DataChanged( const DataChangedEvent& rDCEvt );
73 private:
74 explicit AlignmentTabPage( Window* pParent, const SfxItemSet& rCoreSet );
76 void InitVsRefEgde();
77 void UpdateEnableControls();
79 DECL_LINK( UpdateEnableHdl, void* );
81 private:
82 FixedLine maFlAlignment;
83 FixedText maFtHorAlign;
84 ListBox maLbHorAlign;
85 FixedText maFtIndent;
86 MetricField maEdIndent;
87 FixedText maFtVerAlign;
88 ListBox maLbVerAlign;
90 FixedLine maFlOrient;
91 DialControl maCtrlDial;
92 FixedText maFtRotate;
93 WrapField maNfRotate;
94 FixedText maFtRefEdge;
95 ValueSet maVsRefEdge;
96 TriStateBox maCbStacked;
97 TriStateBox maCbAsianMode;
98 OrientationHelper maOrientHlp;
100 FixedLine maFlProperties;
101 TriStateBox maBtnWrap;
102 TriStateBox maBtnHyphen;
103 TriStateBox maBtnShrink;
104 FixedText maFtFrameDir;
105 FrameDirListBox maLbFrameDir;
108 // ============================================================================
110 } // namespace svx
112 #endif