Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #ifndef _NUMPARA_HXX
20 : #define _NUMPARA_HXX
21 :
22 :
23 : #include <sfx2/tabdlg.hxx>
24 : #include <vcl/lstbox.hxx>
25 : #include <vcl/fixed.hxx>
26 : #include <vcl/field.hxx>
27 : #include <vcl/button.hxx>
28 :
29 :
30 : /* --- class SwParagraphNumTabPage ----------------------------------------
31 : with this TabPage numbering settings at the paragraph / paragraph style
32 : are performed.
33 :
34 : ---------------------------------------------------------------------------*/
35 : class SwParagraphNumTabPage : public SfxTabPage
36 : {
37 : VclHBox* m_pOutlineStartBX;
38 : ListBox* m_pOutlineLvLB;
39 :
40 : VclHBox* m_pNumberStyleBX;
41 : ListBox* m_pNumberStyleLB;
42 :
43 : TriStateBox* m_pNewStartCB;
44 : VclHBox* m_pNewStartBX;
45 : TriStateBox* m_pNewStartNumberCB;
46 : NumericField* m_pNewStartNF;
47 :
48 : VclFrame* m_pCountParaFram;
49 : TriStateBox* m_pCountParaCB;
50 : TriStateBox* m_pRestartParaCountCB;
51 :
52 : VclHBox* m_pRestartBX;
53 : NumericField* m_pRestartNF;
54 :
55 : // --> OD 2008-04-14 #outlinelevel#
56 : const OUString msOutlineNumbering;
57 :
58 : sal_Bool bModified : 1;
59 : sal_Bool bCurNumrule : 1;
60 :
61 : DECL_LINK(NewStartHdl_Impl, void *);
62 : DECL_LINK( StyleHdl_Impl, ListBox* );
63 : DECL_LINK(LineCountHdl_Impl, void *);
64 :
65 : protected:
66 : SwParagraphNumTabPage(Window* pParent, const SfxItemSet& rSet );
67 : void aCountParaFL();
68 :
69 : public:
70 : ~SwParagraphNumTabPage();
71 :
72 : static SfxTabPage* Create( Window* pParent,
73 : const SfxItemSet& rSet );
74 : static sal_uInt16* GetRanges();
75 :
76 : virtual sal_Bool FillItemSet( SfxItemSet& rSet );
77 : virtual void Reset( const SfxItemSet& rSet );
78 :
79 : void EnableNewStart();
80 : void DisableOutline();
81 : void DisableNumbering();
82 :
83 0 : ListBox& GetStyleBox() {return *m_pNumberStyleLB;};
84 : };
85 :
86 :
87 : #endif
88 :
89 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|