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 _DRPCPS_HXX
20 : #define _DRPCPS_HXX
21 :
22 : #include <sfx2/basedlgs.hxx>
23 : #include <sfx2/tabdlg.hxx>
24 :
25 : #include <vcl/button.hxx>
26 :
27 : #include <vcl/fixed.hxx>
28 :
29 : #include <vcl/field.hxx>
30 :
31 : #include <vcl/edit.hxx>
32 :
33 : #include <vcl/lstbox.hxx>
34 :
35 : class SwWrtShell;
36 :
37 : // class SwDropCapsDlg ******************************************************
38 :
39 : class SwDropCapsDlg : public SfxNoLayoutSingleTabDialog
40 : {
41 :
42 : public:
43 :
44 : SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet );
45 : ~SwDropCapsDlg();
46 :
47 : };
48 :
49 : class SwDropCapsPict;
50 :
51 : // class SwDropCapsPage *****************************************************
52 :
53 : class SwDropCapsPage : public SfxTabPage
54 : {
55 : friend class SwDropCapsPict;
56 : CheckBox* m_pDropCapsBox;
57 : CheckBox* m_pWholeWordCB;
58 : FixedText* m_pSwitchText;
59 : NumericField* m_pDropCapsField;
60 : FixedText* m_pLinesText;
61 : NumericField* m_pLinesField;
62 : FixedText* m_pDistanceText;
63 : MetricField* m_pDistanceField;
64 : FixedText* m_pTextText;
65 : Edit* m_pTextEdit;
66 : FixedText* m_pTemplateText;
67 : ListBox* m_pTemplateBox;
68 :
69 : SwDropCapsPict* m_pPict;
70 :
71 : sal_Bool bModified;
72 : sal_Bool bFormat;
73 : sal_Bool bHtmlMode;
74 :
75 : SwWrtShell &rSh;
76 :
77 : SwDropCapsPage(Window *pParent, const SfxItemSet &rSet);
78 : ~SwDropCapsPage();
79 :
80 : virtual int DeactivatePage(SfxItemSet *pSet);
81 : void FillSet( SfxItemSet &rSet );
82 :
83 : DECL_LINK(ClickHdl, void *);
84 : DECL_LINK( ModifyHdl, Edit * );
85 : DECL_LINK(SelectHdl, void *);
86 : DECL_LINK(WholeWordHdl, void *);
87 :
88 : using SfxTabPage::ActivatePage;
89 : using SfxTabPage::DeactivatePage;
90 :
91 : public:
92 :
93 : static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
94 : static sal_uInt16* GetRanges();
95 :
96 : virtual sal_Bool FillItemSet( SfxItemSet &rSet);
97 : virtual void Reset (const SfxItemSet &rSet);
98 :
99 0 : void SetFormat(sal_Bool bSet){bFormat = bSet;}
100 : protected:
101 : void aSwitchText(sal_Bool bChecked);
102 : //void SW_RES(int arg1);
103 : };
104 :
105 : #endif
106 :
107 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|