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