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: align.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_ALIGN_HXX
31 #define _SVX_ALIGN_HXX
33 // include ---------------------------------------------------------------
36 #ifndef _FIELD_HXX //autogen
37 #include <vcl/field.hxx>
39 #ifndef _IMAGEBTN_HXX //autogen
40 #include <vcl/imagebtn.hxx>
42 #ifndef _FIXED_HXX //autogen
43 #include <vcl/fixed.hxx>
45 #ifndef _LSTBOX_HXX //autogen
46 #include <vcl/lstbox.hxx>
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>
57 // ============================================================================
59 class AlignmentTabPage
: public SfxTabPage
61 using TabPage::DeactivatePage
;
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
);
74 explicit AlignmentTabPage( Window
* pParent
, const SfxItemSet
& rCoreSet
);
77 void UpdateEnableControls();
79 DECL_LINK( UpdateEnableHdl
, void* );
82 FixedLine maFlAlignment
;
83 FixedText maFtHorAlign
;
86 MetricField maEdIndent
;
87 FixedText maFtVerAlign
;
91 DialControl maCtrlDial
;
94 FixedText maFtRefEdge
;
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 // ============================================================================