xref: /AOO41X/main/sfx2/inc/sfx2/mgetempl.hxx (revision 353d8f4d17010cd2d0ea815067cad67e477f2bee)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SFX_MGETEMPL_HXX
24 #define _SFX_MGETEMPL_HXX
25 
26 #include <vcl/edit.hxx>
27 #include <vcl/fixed.hxx>
28 #include <vcl/lstbox.hxx>
29 #include <svtools/stdctrl.hxx>
30 #ifndef _SV_MEDIT_HXX
31 #include <svtools/svmedit.hxx>
32 #endif
33 
34 #include <sfx2/tabdlg.hxx>
35 
36 #include <svtools/svmedit2.hxx>
37 #include <svtools/svmedit.hxx>
38 
39 /* erwartet:
40     SID_TEMPLATE_NAME   :   In: StringItem, Name der Vorlage
41     SID_TEMPLATE_FAMILY :   In: Familie der Vorlage
42 */
43 
44 class SfxStyleFamilies;
45 class SfxStyleFamilyItem;
46 class SfxStyleSheetBase;
47 
48 #ifdef _SFXDLG_HXX
49 #define FixedInfo FixedText
50 #endif
51 
52 class SfxManageStyleSheetPage : public SfxTabPage
53 {
54     FixedText aNameFt;
55     Edit aNameEd;
56     ExtMultiLineEdit aNameMLE;
57 
58     CheckBox    aAutoCB;
59 
60     FixedText aFollowFt;
61     ListBox aFollowLb;
62 
63     FixedText aBaseFt;
64     ListBox aBaseLb;
65 
66     FixedText aFilterFt;
67     ListBox aFilterLb;
68 
69     FixedLine aDescGb;
70     FixedInfo aDescFt;
71     MultiLineEdit aDescED;
72 
73     SfxStyleSheetBase *pStyle;
74     SfxStyleFamilies *pFamilies;
75     const SfxStyleFamilyItem *pItem;
76     String aBuf;
77     sal_Bool bModified;
78 
79         // initiale Daten des Styles
80     String aName;
81     String aFollow;
82     String aParent;
83     sal_uInt16 nFlags;
84 
85 private:
86 friend class SfxStyleDialog;
87 
88 //#if 0 // _SOLAR__PRIVATE
89     DECL_LINK( GetFocusHdl, Edit * );
90     DECL_LINK( LoseFocusHdl, Edit * );
91 
92     void    UpdateName_Impl(ListBox *, const String &rNew);
93     void    SetDescriptionText_Impl();
94 //#endif
95 
96     SfxManageStyleSheetPage(Window *pParent, const SfxItemSet &rAttrSet );
97     ~SfxManageStyleSheetPage();
98 
99     static SfxTabPage*  Create(Window *pParent, const SfxItemSet &rAttrSet );
100 
101 protected:
102     virtual sal_Bool        FillItemSet(SfxItemSet &);
103     virtual void        Reset(const SfxItemSet &);
104 
105     using TabPage::ActivatePage;
106         virtual void        ActivatePage(const SfxItemSet &);
107         using TabPage::DeactivatePage;
108     virtual int     DeactivatePage(SfxItemSet * = 0);
109 };
110 
111 #ifdef FixedInfo
112 #undef FixedInfo
113 #endif
114 
115 #endif
116 
117