Branch data 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 _SFX_TEMPLDLG_HXX
20 : : #define _SFX_TEMPLDLG_HXX
21 : :
22 : : #include "sal/config.h"
23 : : #include "sfx2/dllapi.h"
24 : :
25 : : #include <rsc/rscsfx.hxx>
26 : :
27 : : #include <sfx2/dockwin.hxx>
28 : : #include <sfx2/childwin.hxx>
29 : : #include <sfx2/basedlgs.hxx>
30 : :
31 : : class SfxTemplateDialog_Impl;
32 : : class SfxTemplateCatalog_Impl;
33 : :
34 : : // class ISfxTemplateCommon ----------------------------------------------
35 : :
36 : 120 : class ISfxTemplateCommon
37 : : {
38 : : public:
39 : : virtual SfxStyleFamily GetActualFamily() const = 0;
40 : : virtual String GetSelectedEntry() const = 0;
41 : :
42 : : protected:
43 : 120 : ~ISfxTemplateCommon() {}
44 : : };
45 : :
46 : : // class SfxTemplateDialog -----------------------------------------------
47 : :
48 : : class SfxTemplateDialog : public SfxDockingWindow
49 : : {
50 : : private:
51 : : friend class SfxTemplateDialogWrapper;
52 : : friend class SfxTemplateDialog_Impl;
53 : :
54 : : SfxTemplateDialog_Impl* pImpl;
55 : :
56 : : virtual void DataChanged( const DataChangedEvent& _rDCEvt );
57 : : virtual void Resize();
58 : : virtual SfxChildAlignment CheckAlignment( SfxChildAlignment, SfxChildAlignment );
59 : : virtual void StateChanged( StateChangedType nStateChange );
60 : :
61 : : public:
62 : : SfxTemplateDialog( SfxBindings*, SfxChildWindow*, Window* );
63 : : ~SfxTemplateDialog();
64 : :
65 : : virtual void Update();
66 : :
67 : : ISfxTemplateCommon* GetISfxTemplateCommon();
68 : : void SetParagraphFamily();
69 : : };
70 : :
71 : : // class SfxTemplateCatalog ----------------------------------------------
72 : :
73 : : class SfxTemplateCatalog : public SfxModalDialog
74 : : {
75 : : private:
76 : : SfxTemplateCatalog_Impl *pImpl;
77 : :
78 : : public:
79 : : SfxTemplateCatalog(Window * pParent, SfxBindings *pBindings);
80 : : ~SfxTemplateCatalog();
81 : : friend class SfxTemplateCatalog_Impl;
82 : : };
83 : :
84 : : // class SfxTemplateDialogWrapper ----------------------------------------
85 : :
86 [ - + ]: 240 : class SFX2_DLLPUBLIC SfxTemplateDialogWrapper : public SfxChildWindow
87 : : {
88 : : public:
89 : : SfxTemplateDialogWrapper
90 : : (Window*,sal_uInt16,SfxBindings*,SfxChildWinInfo*);
91 : : SFX_DECL_CHILDWINDOW_WITHID(SfxTemplateDialogWrapper);
92 : :
93 : : void SetParagraphFamily();
94 : : };
95 : :
96 : : #endif
97 : :
98 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|