Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _DRPCPS_HXX
29 : : #define _DRPCPS_HXX
30 : :
31 : : #include <sfx2/basedlgs.hxx>
32 : : #include <sfx2/tabdlg.hxx>
33 : :
34 : : #include <vcl/button.hxx>
35 : :
36 : : #include <vcl/fixed.hxx>
37 : :
38 : : #include <vcl/field.hxx>
39 : :
40 : : #include <vcl/edit.hxx>
41 : :
42 : : #include <vcl/lstbox.hxx>
43 : :
44 : : class SwWrtShell;
45 : :
46 : : // class SwDropCapsDlg ******************************************************
47 : :
48 : : class SwDropCapsDlg : public SfxSingleTabDialog
49 : : {
50 : :
51 : : public:
52 : :
53 : : SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet );
54 : : ~SwDropCapsDlg();
55 : :
56 : : };
57 : :
58 : : class SwDropCapsPict;
59 : :
60 : : // class SwDropCapsPage *****************************************************
61 : :
62 : : class SwDropCapsPage : public SfxTabPage
63 : : {
64 : : friend class SwDropCapsPict;
65 : :
66 : : FixedLine aSettingsFL;
67 : : CheckBox aDropCapsBox;
68 : : CheckBox aWholeWordCB;
69 : : FixedText aSwitchText;
70 : : NumericField aDropCapsField;
71 : : FixedText aLinesText;
72 : : NumericField aLinesField;
73 : : FixedText aDistanceText;
74 : : MetricField aDistanceField;
75 : :
76 : : FixedLine aContentFL;
77 : : FixedText aTextText;
78 : : Edit aTextEdit;
79 : : FixedText aTemplateText;
80 : : ListBox aTemplateBox;
81 : :
82 : : SwDropCapsPict *pPict;
83 : :
84 : : sal_Bool bModified;
85 : : sal_Bool bFormat;
86 : : sal_Bool bHtmlMode;
87 : :
88 : : SwWrtShell &rSh;
89 : :
90 : : SwDropCapsPage(Window *pParent, const SfxItemSet &rSet);
91 : : ~SwDropCapsPage();
92 : :
93 : : virtual int DeactivatePage(SfxItemSet *pSet);
94 : : void FillSet( SfxItemSet &rSet );
95 : :
96 : : DECL_LINK(ClickHdl, void *);
97 : : DECL_LINK( ModifyHdl, Edit * );
98 : : DECL_LINK(SelectHdl, void *);
99 : : DECL_LINK(WholeWordHdl, void *);
100 : :
101 : : using SfxTabPage::ActivatePage;
102 : : using SfxTabPage::DeactivatePage;
103 : :
104 : : public:
105 : :
106 : : static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
107 : : static sal_uInt16* GetRanges();
108 : :
109 : : virtual sal_Bool FillItemSet( SfxItemSet &rSet);
110 : : virtual void Reset (const SfxItemSet &rSet);
111 : :
112 : 0 : void SetFormat(sal_Bool bSet){bFormat = bSet;}
113 : : };
114 : :
115 : : #endif
116 : :
117 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|