xref: /AOO41X/main/sfx2/inc/sfx2/mgetempl.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _SFX_MGETEMPL_HXX
28 #define _SFX_MGETEMPL_HXX
29 
30 #include <vcl/edit.hxx>
31 #include <vcl/fixed.hxx>
32 #include <vcl/lstbox.hxx>
33 #include <svtools/stdctrl.hxx>
34 #ifndef _SV_MEDIT_HXX
35 #include <svtools/svmedit.hxx>
36 #endif
37 
38 #include <sfx2/tabdlg.hxx>
39 
40 #include <svtools/svmedit2.hxx>
41 #include <svtools/svmedit.hxx>
42 
43 /* erwartet:
44 	SID_TEMPLATE_NAME   : 	In: StringItem, Name der Vorlage
45 	SID_TEMPLATE_FAMILY :	In: Familie der Vorlage
46 */
47 
48 class SfxStyleFamilies;
49 class SfxStyleFamilyItem;
50 class SfxStyleSheetBase;
51 
52 #ifdef _SFXDLG_HXX
53 #define FixedInfo FixedText
54 #endif
55 
56 class SfxManageStyleSheetPage : public SfxTabPage
57 {
58 	FixedText aNameFt;
59 	Edit aNameEd;
60 	ExtMultiLineEdit aNameMLE;
61 
62 	CheckBox	aAutoCB;
63 
64 	FixedText aFollowFt;
65 	ListBox aFollowLb;
66 
67 	FixedText aBaseFt;
68 	ListBox aBaseLb;
69 
70 	FixedText aFilterFt;
71 	ListBox aFilterLb;
72 
73     FixedLine aDescGb;
74 	FixedInfo aDescFt;
75 	MultiLineEdit aDescED;
76 
77 	SfxStyleSheetBase *pStyle;
78 	SfxStyleFamilies *pFamilies;
79 	const SfxStyleFamilyItem *pItem;
80 	String aBuf;
81 	sal_Bool bModified;
82 
83 		// initiale Daten des Styles
84 	String aName;
85 	String aFollow;
86 	String aParent;
87 	sal_uInt16 nFlags;
88 
89 private:
90 friend class SfxStyleDialog;
91 
92 //#if 0 // _SOLAR__PRIVATE
93 	DECL_LINK( GetFocusHdl, Edit * );
94 	DECL_LINK( LoseFocusHdl, Edit * );
95 
96 	void	UpdateName_Impl(ListBox *, const String &rNew);
97 	void	SetDescriptionText_Impl();
98 //#endif
99 
100 	SfxManageStyleSheetPage(Window *pParent, const SfxItemSet &rAttrSet );
101 	~SfxManageStyleSheetPage();
102 
103 	static SfxTabPage*	Create(Window *pParent, const SfxItemSet &rAttrSet );
104 
105 protected:
106 	virtual sal_Bool		FillItemSet(SfxItemSet &);
107 	virtual void		Reset(const SfxItemSet &);
108 
109 	using TabPage::ActivatePage;
110         virtual void		ActivatePage(const SfxItemSet &);
111         using TabPage::DeactivatePage;
112 	virtual int		DeactivatePage(SfxItemSet * = 0);
113 };
114 
115 #ifdef FixedInfo
116 #undef FixedInfo
117 #endif
118 
119 #endif
120 
121