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 INCLUDED_SW_SOURCE_UI_INC_NUMPARA_HXX
20 : #define INCLUDED_SW_SOURCE_UI_INC_NUMPARA_HXX
21 :
22 : #include <sfx2/tabdlg.hxx>
23 : #include <vcl/lstbox.hxx>
24 : #include <vcl/fixed.hxx>
25 : #include <vcl/field.hxx>
26 : #include <vcl/button.hxx>
27 :
28 : /* --- class SwParagraphNumTabPage ----------------------------------------
29 : with this TabPage numbering settings at the paragraph / paragraph style
30 : are performed.
31 :
32 : ---------------------------------------------------------------------------*/
33 : class SwParagraphNumTabPage : public SfxTabPage
34 : {
35 : VclHBox* m_pOutlineStartBX;
36 : ListBox* m_pOutlineLvLB;
37 :
38 : VclHBox* m_pNumberStyleBX;
39 : ListBox* m_pNumberStyleLB;
40 :
41 : TriStateBox* m_pNewStartCB;
42 : VclHBox* m_pNewStartBX;
43 : TriStateBox* m_pNewStartNumberCB;
44 : NumericField* m_pNewStartNF;
45 :
46 : VclFrame* m_pCountParaFram;
47 : TriStateBox* m_pCountParaCB;
48 : TriStateBox* m_pRestartParaCountCB;
49 :
50 : VclHBox* m_pRestartBX;
51 : NumericField* m_pRestartNF;
52 :
53 : // --> OD 2008-04-14 #outlinelevel#
54 : const OUString msOutlineNumbering;
55 :
56 : sal_Bool bModified : 1;
57 : sal_Bool bCurNumrule : 1;
58 :
59 : DECL_LINK(NewStartHdl_Impl, void *);
60 : DECL_LINK( StyleHdl_Impl, ListBox* );
61 : DECL_LINK(LineCountHdl_Impl, void *);
62 :
63 : protected:
64 : SwParagraphNumTabPage(Window* pParent, const SfxItemSet& rSet );
65 : void aCountParaFL();
66 :
67 : public:
68 : virtual ~SwParagraphNumTabPage();
69 :
70 : static SfxTabPage* Create( Window* pParent,
71 : const SfxItemSet& rSet );
72 : static sal_uInt16* GetRanges();
73 :
74 : virtual bool FillItemSet( SfxItemSet& rSet ) SAL_OVERRIDE;
75 : virtual void Reset( const SfxItemSet& rSet ) SAL_OVERRIDE;
76 :
77 : void EnableNewStart();
78 : void DisableOutline();
79 : void DisableNumbering();
80 :
81 0 : ListBox& GetStyleBox() {return *m_pNumberStyleLB;};
82 : };
83 :
84 : #endif
85 :
86 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|