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 .
22 #include <sfx2/basedlgs.hxx>
23 #include <sfx2/tabdlg.hxx>
25 #include <vcl/button.hxx>
27 #include <vcl/fixed.hxx>
29 #include <vcl/field.hxx>
31 #include <vcl/edit.hxx>
33 #include <vcl/lstbox.hxx>
37 // class SwDropCapsDlg ******************************************************
39 class SwDropCapsDlg
: public SfxNoLayoutSingleTabDialog
44 SwDropCapsDlg(Window
*pParent
, const SfxItemSet
&rSet
);
51 // class SwDropCapsPage *****************************************************
53 class SwDropCapsPage
: public SfxTabPage
55 friend class SwDropCapsPict
;
57 FixedLine aSettingsFL
;
58 CheckBox aDropCapsBox
;
59 CheckBox aWholeWordCB
;
60 FixedText aSwitchText
;
61 NumericField aDropCapsField
;
63 NumericField aLinesField
;
64 FixedText aDistanceText
;
65 MetricField aDistanceField
;
70 FixedText aTemplateText
;
73 SwDropCapsPict
*pPict
;
81 SwDropCapsPage(Window
*pParent
, const SfxItemSet
&rSet
);
84 virtual int DeactivatePage(SfxItemSet
*pSet
);
85 void FillSet( SfxItemSet
&rSet
);
87 DECL_LINK(ClickHdl
, void *);
88 DECL_LINK( ModifyHdl
, Edit
* );
89 DECL_LINK(SelectHdl
, void *);
90 DECL_LINK(WholeWordHdl
, void *);
92 using SfxTabPage::ActivatePage
;
93 using SfxTabPage::DeactivatePage
;
97 static SfxTabPage
*Create(Window
*pParent
, const SfxItemSet
&rSet
);
98 static sal_uInt16
* GetRanges();
100 virtual sal_Bool
FillItemSet( SfxItemSet
&rSet
);
101 virtual void Reset (const SfxItemSet
&rSet
);
103 void SetFormat(sal_Bool bSet
){bFormat
= bSet
;}
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */