1353d8f4dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3353d8f4dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4353d8f4dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5353d8f4dSAndrew Rist * distributed with this work for additional information 6353d8f4dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7353d8f4dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8353d8f4dSAndrew Rist * "License"); you may not use this file except in compliance 9353d8f4dSAndrew Rist * with the License. You may obtain a copy of the License at 10353d8f4dSAndrew Rist * 11353d8f4dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12353d8f4dSAndrew Rist * 13353d8f4dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14353d8f4dSAndrew Rist * software distributed under the License is distributed on an 15353d8f4dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16353d8f4dSAndrew Rist * KIND, either express or implied. See the License for the 17353d8f4dSAndrew Rist * specific language governing permissions and limitations 18353d8f4dSAndrew Rist * under the License. 19353d8f4dSAndrew Rist * 20353d8f4dSAndrew Rist *************************************************************/ 21353d8f4dSAndrew Rist 22353d8f4dSAndrew Rist 23cdf0e10cSrcweir #ifndef _SFX_TEMPLDLG_HXX 24cdf0e10cSrcweir #define _SFX_TEMPLDLG_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include "sal/config.h" 27cdf0e10cSrcweir #include "sfx2/dllapi.h" 28bd7afb38SAndre Fischer #include <vcl/ctrl.hxx> 29cdf0e10cSrcweir #include <rsc/rscsfx.hxx> 30cdf0e10cSrcweir 31cdf0e10cSrcweir #include <sfx2/dockwin.hxx> 32cdf0e10cSrcweir #include <sfx2/childwin.hxx> 33cdf0e10cSrcweir #include <sfx2/basedlgs.hxx> 34cdf0e10cSrcweir 35cdf0e10cSrcweir class SfxTemplateDialog_Impl; 36cdf0e10cSrcweir class SfxTemplateCatalog_Impl; 37cdf0e10cSrcweir 38cdf0e10cSrcweir // class ISfxTemplateCommon ---------------------------------------------- 39cdf0e10cSrcweir 40cdf0e10cSrcweir class ISfxTemplateCommon 41cdf0e10cSrcweir { 42cdf0e10cSrcweir public: 43cdf0e10cSrcweir virtual SfxStyleFamily GetActualFamily() const = 0; 44cdf0e10cSrcweir virtual String GetSelectedEntry() const = 0; 45cdf0e10cSrcweir }; 46cdf0e10cSrcweir 47cdf0e10cSrcweir // class SfxTemplateDialog ----------------------------------------------- 48cdf0e10cSrcweir 49cdf0e10cSrcweir class SfxTemplateDialog : public SfxDockingWindow 50cdf0e10cSrcweir { 51cdf0e10cSrcweir private: 52cdf0e10cSrcweir friend class SfxTemplateDialogWrapper; 53cdf0e10cSrcweir friend class SfxTemplateDialog_Impl; 54cdf0e10cSrcweir 55cdf0e10cSrcweir SfxTemplateDialog_Impl* pImpl; 56cdf0e10cSrcweir 57cdf0e10cSrcweir virtual void DataChanged( const DataChangedEvent& _rDCEvt ); 58cdf0e10cSrcweir virtual void Resize(); 59cdf0e10cSrcweir virtual SfxChildAlignment CheckAlignment( SfxChildAlignment, SfxChildAlignment ); 60cdf0e10cSrcweir virtual void StateChanged( StateChangedType nStateChange ); 61cdf0e10cSrcweir 62cdf0e10cSrcweir public: 63cdf0e10cSrcweir SfxTemplateDialog( SfxBindings*, SfxChildWindow*, Window* ); 64cdf0e10cSrcweir ~SfxTemplateDialog(); 65cdf0e10cSrcweir 66cdf0e10cSrcweir virtual void Update(); 67cdf0e10cSrcweir 68cdf0e10cSrcweir ISfxTemplateCommon* GetISfxTemplateCommon(); 69cdf0e10cSrcweir void SetParagraphFamily(); 70cdf0e10cSrcweir }; 71cdf0e10cSrcweir 72cdf0e10cSrcweir // class SfxTemplateCatalog ---------------------------------------------- 73cdf0e10cSrcweir 74cdf0e10cSrcweir class SfxTemplateCatalog : public SfxModalDialog 75cdf0e10cSrcweir { 76cdf0e10cSrcweir private: 77cdf0e10cSrcweir SfxTemplateCatalog_Impl *pImpl; 78cdf0e10cSrcweir 79cdf0e10cSrcweir public: 80cdf0e10cSrcweir SfxTemplateCatalog(Window * pParent, SfxBindings *pBindings); 81cdf0e10cSrcweir ~SfxTemplateCatalog(); 82cdf0e10cSrcweir friend class SfxTemplateCatalog_Impl; 83cdf0e10cSrcweir }; 84cdf0e10cSrcweir 85cdf0e10cSrcweir // class SfxTemplateDialogWrapper ---------------------------------------- 86cdf0e10cSrcweir 87cdf0e10cSrcweir class SFX2_DLLPUBLIC SfxTemplateDialogWrapper : public SfxChildWindow 88cdf0e10cSrcweir { 89cdf0e10cSrcweir public: 90cdf0e10cSrcweir SfxTemplateDialogWrapper 91cdf0e10cSrcweir (Window*,sal_uInt16,SfxBindings*,SfxChildWinInfo*); 92cdf0e10cSrcweir SFX_DECL_CHILDWINDOW(SfxTemplateDialogWrapper); 93cdf0e10cSrcweir 94cdf0e10cSrcweir void SetParagraphFamily(); 95cdf0e10cSrcweir }; 96cdf0e10cSrcweir 97bd7afb38SAndre Fischer // class SfxTemplatePanelControl ----------------------------------------- 98bd7afb38SAndre Fischer 99bd7afb38SAndre Fischer class SFX2_DLLPUBLIC SfxTemplatePanelControl : public DockingWindow 100bd7afb38SAndre Fischer { 101bd7afb38SAndre Fischer public: 102bd7afb38SAndre Fischer SfxTemplatePanelControl (SfxBindings* pBindings, Window* pParentWindow); 103*4374bebbSAndre Fischer virtual ~SfxTemplatePanelControl (void); 104bd7afb38SAndre Fischer 105bd7afb38SAndre Fischer virtual void Update(); 106bd7afb38SAndre Fischer virtual void DataChanged( const DataChangedEvent& _rDCEvt ); 107bd7afb38SAndre Fischer virtual void Resize(); 108bd7afb38SAndre Fischer virtual SfxChildAlignment CheckAlignment( SfxChildAlignment, SfxChildAlignment ); 109bd7afb38SAndre Fischer virtual void StateChanged( StateChangedType nStateChange ); 110bd7afb38SAndre Fischer virtual void FreeResource (void); 111bd7afb38SAndre Fischer 112bd7afb38SAndre Fischer ISfxTemplateCommon* GetISfxTemplateCommon(); 113bd7afb38SAndre Fischer void SetParagraphFamily(); 114bd7afb38SAndre Fischer 115bd7afb38SAndre Fischer private: 116bd7afb38SAndre Fischer SfxTemplateDialog_Impl* pImpl; 117bd7afb38SAndre Fischer SfxBindings* mpBindings; 118bd7afb38SAndre Fischer }; 119bd7afb38SAndre Fischer 120bd7afb38SAndre Fischer 121cdf0e10cSrcweir #endif 122cdf0e10cSrcweir 123