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 _BREAK_HXX
20 : #define _BREAK_HXX
21 :
22 : #include <svx/stddlg.hxx>
23 :
24 : #include <vcl/button.hxx>
25 :
26 : #include <vcl/fixed.hxx>
27 :
28 : #include <vcl/lstbox.hxx>
29 :
30 : #include <vcl/field.hxx>
31 :
32 : class SwWrtShell;
33 :
34 : class SwBreakDlg: public SvxStandardDialog
35 : {
36 : SwWrtShell &rSh;
37 : RadioButton* m_pLineBtn;
38 : RadioButton* m_pColumnBtn;
39 : RadioButton* m_pPageBtn;
40 : FixedText* m_pPageCollText;
41 : ListBox* m_pPageCollBox;
42 : CheckBox* m_pPageNumBox;
43 : NumericField* m_pPageNumEdit;
44 :
45 : String aTemplate;
46 : sal_uInt16 nKind;
47 : sal_uInt16 nPgNum;
48 :
49 : sal_Bool bHtmlMode;
50 :
51 : DECL_LINK( ClickHdl, void * );
52 : DECL_LINK( PageNumHdl, CheckBox * );
53 : DECL_LINK(PageNumModifyHdl, void *);
54 : DECL_LINK(OkHdl, void *);
55 :
56 : void CheckEnable();
57 :
58 : protected:
59 : virtual void Apply();
60 :
61 : public:
62 : SwBreakDlg( Window *pParent, SwWrtShell &rSh );
63 : ~SwBreakDlg();
64 :
65 0 : String GetTemplateName() { return aTemplate; }
66 0 : sal_uInt16 GetKind() { return nKind; }
67 0 : sal_uInt16 GetPageNumber() { return nPgNum; }
68 : };
69 :
70 : #endif
71 :
72 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|