1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
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>
30 /* --- class SwParagraphNumTabPage ----------------------------------------
31 with this TabPage numbering settings at the paragraph / paragraph style
34 ---------------------------------------------------------------------------*/
35 class SwParagraphNumTabPage
: public SfxTabPage
37 VclHBox
* m_pOutlineStartBX
;
38 ListBox
* m_pOutlineLvLB
;
40 VclHBox
* m_pNumberStyleBX
;
41 ListBox
* m_pNumberStyleLB
;
43 TriStateBox
* m_pNewStartCB
;
44 VclHBox
* m_pNewStartBX
;
45 TriStateBox
* m_pNewStartNumberCB
;
46 NumericField
* m_pNewStartNF
;
48 VclFrame
* m_pCountParaFram
;
49 TriStateBox
* m_pCountParaCB
;
50 TriStateBox
* m_pRestartParaCountCB
;
52 VclHBox
* m_pRestartBX
;
53 NumericField
* m_pRestartNF
;
55 // --> OD 2008-04-14 #outlinelevel#
56 const OUString msOutlineNumbering
;
58 sal_Bool bModified
: 1;
59 sal_Bool bCurNumrule
: 1;
61 DECL_LINK(NewStartHdl_Impl
, void *);
62 DECL_LINK( StyleHdl_Impl
, ListBox
* );
63 DECL_LINK(LineCountHdl_Impl
, void *);
66 SwParagraphNumTabPage(Window
* pParent
, const SfxItemSet
& rSet
);
70 ~SwParagraphNumTabPage();
72 static SfxTabPage
* Create( Window
* pParent
,
73 const SfxItemSet
& rSet
);
74 static sal_uInt16
* GetRanges();
76 virtual sal_Bool
FillItemSet( SfxItemSet
& rSet
);
77 virtual void Reset( const SfxItemSet
& rSet
);
79 void EnableNewStart();
80 void DisableOutline();
81 void DisableNumbering();
83 ListBox
& GetStyleBox() {return *m_pNumberStyleLB
;};
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */