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