xref: /trunk/main/sw/source/ui/inc/numpara.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _NUMPARA_HXX
28 #define _NUMPARA_HXX
29 
30 
31 #include <sfx2/tabdlg.hxx>
32 #include <vcl/lstbox.hxx>
33 #include <vcl/fixed.hxx>
34 #include <vcl/field.hxx>
35 #ifndef _SV_BUTTON_HXX //autogen
36 #include <vcl/button.hxx>
37 #endif
38 
39 
40 /* --- class SwParagraphNumTabPage ----------------------------------------
41     Mit dieser TabPage werden Numerierungseinstellungen am Absatz bzw. der
42     Absatzvorlage vorgenommen.
43 
44  ---------------------------------------------------------------------------*/
45 class SwParagraphNumTabPage : public SfxTabPage
46 {
47     FixedLine               aOutlineStartFL;
48     FixedText               aOutlineLvFT;
49     ListBox                 aOutlineLvLB;
50 
51     FixedLine               aNewStartFL;
52     FixedText               aNumberStyleFT;
53     ListBox                 aNumberStyleLB;
54 
55     TriStateBox             aNewStartCB;
56     TriStateBox             aNewStartNumberCB;
57     NumericField            aNewStartNF;
58 
59     FixedLine               aCountParaFL;
60     TriStateBox             aCountParaCB;
61     TriStateBox             aRestartParaCountCB;
62     FixedText               aRestartFT;
63     NumericField            aRestartNF;
64 
65     // --> OD 2008-04-14 #outlinelevel#
66     const String msOutlineNumbering;
67     // <--
68 
69     sal_Bool                    bModified : 1;
70     sal_Bool                    bCurNumrule : 1;
71 
72     DECL_LINK( NewStartHdl_Impl, CheckBox* );
73     DECL_LINK( StyleHdl_Impl, ListBox* );
74     DECL_LINK( LineCountHdl_Impl, CheckBox* );
75 
76 protected:
77         SwParagraphNumTabPage(Window* pParent, const SfxItemSet& rSet );
78 
79 public:
80         ~SwParagraphNumTabPage();
81 
82     static SfxTabPage*  Create( Window* pParent,
83                                 const SfxItemSet& rSet );
84     static sal_uInt16*      GetRanges();
85 
86     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
87     virtual void        Reset( const SfxItemSet& rSet );
88 
89     void                EnableNewStart();
90     void                DisableOutline();
91     void                DisableNumbering();
92 
93     ListBox&            GetStyleBox() {return aNumberStyleLB;};
94 };
95 
96 
97 #endif
98 
99