xref: /aoo41x/main/cui/source/inc/align.hxx (revision c4eee24d)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SVX_ALIGN_HXX
24 #define _SVX_ALIGN_HXX
25 
26 // include ---------------------------------------------------------------
27 
28 #include <svx/orienthelper.hxx>
29 #include <vcl/field.hxx>
30 #include <vcl/button.hxx>
31 #include <vcl/fixed.hxx>
32 #include <vcl/lstbox.hxx>
33 #include <sfx2/tabdlg.hxx>
34 #include <svtools/valueset.hxx>
35 #include <svx/dialcontrol.hxx>
36 #include <svx/wrapfield.hxx>
37 #include <svx/frmdirlbox.hxx>
38 
39 namespace svx {
40 
41 // ============================================================================
42 
43 class AlignmentTabPage : public SfxTabPage
44 {
45 	using TabPage::DeactivatePage;
46 
47 public:
48     virtual             ~AlignmentTabPage();
49 
50     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rAttrSet );
51     static sal_uInt16*      GetRanges();
52 
53     virtual void        Reset( const SfxItemSet& rSet );
54     virtual int         DeactivatePage( SfxItemSet* pSet );
55     virtual void        DataChanged( const DataChangedEvent& rDCEvt );
56 
57 private:
58     explicit            AlignmentTabPage( Window* pParent, const SfxItemSet& rCoreSet );
59 
60     void                InitVsRefEgde();
61     void                UpdateEnableControls();
62 
63     DECL_LINK( UpdateEnableHdl, void* );
64 
65 private:
66     FixedLine           maFlAlignment;
67     FixedText           maFtHorAlign;
68     ListBox             maLbHorAlign;
69     FixedText           maFtIndent;
70     MetricField         maEdIndent;
71     FixedText           maFtVerAlign;
72     ListBox             maLbVerAlign;
73 
74     FixedLine           maFlOrient;
75     DialControl         maCtrlDial;
76     FixedText           maFtRotate;
77     WrapField           maNfRotate;
78     FixedText           maFtRefEdge;
79     ValueSet            maVsRefEdge;
80     TriStateBox         maCbStacked;
81     TriStateBox         maCbAsianMode;
82     OrientationHelper   maOrientHlp;
83 
84     FixedLine           maFlProperties;
85     TriStateBox         maBtnWrap;
86     TriStateBox         maBtnHyphen;
87     TriStateBox         maBtnShrink;
88     FixedText           maFtFrameDir;
89     FrameDirListBox     maLbFrameDir;
90 };
91 
92 // ============================================================================
93 
94 } // namespace svx
95 
96 #endif
97 
98