1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir #ifndef _SD_ABSTDLG_HXX 28*cdf0e10cSrcweir #define _SD_ABSTDLG_HXX 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir // include --------------------------------------------------------------- 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir #include <tools/solar.h> 33*cdf0e10cSrcweir #include <tools/string.hxx> 34*cdf0e10cSrcweir #include <sfx2/sfxdlg.hxx> 35*cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.h> 36*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyAccess.hpp> 37*cdf0e10cSrcweir #include "prlayout.hxx" 38*cdf0e10cSrcweir #include "sdenumdef.hxx" 39*cdf0e10cSrcweir #include "pres.hxx" 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir namespace sd { 42*cdf0e10cSrcweir class View; 43*cdf0e10cSrcweir class DrawDocShell; 44*cdf0e10cSrcweir class ViewShell; 45*cdf0e10cSrcweir class DrawView; 46*cdf0e10cSrcweir } 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir class SfxTabPage; 49*cdf0e10cSrcweir class SfxViewFrame; 50*cdf0e10cSrcweir class SfxBindings; 51*cdf0e10cSrcweir class ResId; 52*cdf0e10cSrcweir class String; 53*cdf0e10cSrcweir class SfxItemPool; 54*cdf0e10cSrcweir class SfxObjectShell; 55*cdf0e10cSrcweir class SfxObjectShellLock; 56*cdf0e10cSrcweir class SvxFieldData; 57*cdf0e10cSrcweir class GDIMetaFile; 58*cdf0e10cSrcweir class XColorTable; 59*cdf0e10cSrcweir class SdDrawDocument; 60*cdf0e10cSrcweir class SfxMedium; 61*cdf0e10cSrcweir class SdrObject; 62*cdf0e10cSrcweir class SfxStyleSheetBasePool; 63*cdf0e10cSrcweir class SfxStyleSheetBase; 64*cdf0e10cSrcweir class SdrModel; 65*cdf0e10cSrcweir class SdrView; 66*cdf0e10cSrcweir class Bitmap; 67*cdf0e10cSrcweir class List; 68*cdf0e10cSrcweir class SdResId; 69*cdf0e10cSrcweir class Window; 70*cdf0e10cSrcweir class SdPage; 71*cdf0e10cSrcweir class TabPage; 72*cdf0e10cSrcweir class ViewShell; 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir class AbstractCopyDlg : public VclAbstractDialog //add for CopyDlg 75*cdf0e10cSrcweir { 76*cdf0e10cSrcweir public: 77*cdf0e10cSrcweir virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0; 78*cdf0e10cSrcweir }; 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir class AbstractSdCustomShowDlg : public VclAbstractDialog //add for SdCustomShowDlg 81*cdf0e10cSrcweir { 82*cdf0e10cSrcweir public: 83*cdf0e10cSrcweir virtual sal_Bool IsModified() const = 0; 84*cdf0e10cSrcweir virtual sal_Bool IsCustomShow() const = 0; 85*cdf0e10cSrcweir }; 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir class AbstractAssistentDlg : public VclAbstractDialog //add for AssistentDlg 88*cdf0e10cSrcweir { 89*cdf0e10cSrcweir public: 90*cdf0e10cSrcweir virtual SfxObjectShellLock GetDocument() = 0; 91*cdf0e10cSrcweir virtual OutputType GetOutputMedium() const = 0; 92*cdf0e10cSrcweir virtual sal_Bool IsSummary() const = 0; 93*cdf0e10cSrcweir virtual StartType GetStartType() const = 0; 94*cdf0e10cSrcweir virtual String GetDocPath() const = 0; 95*cdf0e10cSrcweir virtual sal_Bool GetStartWithFlag() const = 0; 96*cdf0e10cSrcweir virtual sal_Bool IsDocEmpty() const = 0; 97*cdf0e10cSrcweir virtual String GetPassword() = 0; 98*cdf0e10cSrcweir }; 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir class AbstractSdModifyFieldDlg : public VclAbstractDialog //add for SdModifyFieldDlg 101*cdf0e10cSrcweir { 102*cdf0e10cSrcweir public: 103*cdf0e10cSrcweir virtual SvxFieldData* GetField() = 0; 104*cdf0e10cSrcweir virtual SfxItemSet GetItemSet() = 0; 105*cdf0e10cSrcweir }; 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir class AbstractSdSnapLineDlg : public VclAbstractDialog //add for SdSnapLineDlg 108*cdf0e10cSrcweir { 109*cdf0e10cSrcweir public: 110*cdf0e10cSrcweir virtual void GetAttr(SfxItemSet& rOutAttrs) = 0; 111*cdf0e10cSrcweir virtual void HideRadioGroup() = 0; 112*cdf0e10cSrcweir virtual void HideDeleteBtn() = 0; 113*cdf0e10cSrcweir virtual void SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY) = 0; 114*cdf0e10cSrcweir //from class ::Window 115*cdf0e10cSrcweir virtual void SetText( const XubString& rStr ) = 0; 116*cdf0e10cSrcweir }; 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir class AbstractSdInsertLayerDlg : public VclAbstractDialog //add for SdInsertLayerDlg 119*cdf0e10cSrcweir { 120*cdf0e10cSrcweir public: 121*cdf0e10cSrcweir virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0; 122*cdf0e10cSrcweir //from class ::Window 123*cdf0e10cSrcweir virtual void SetHelpId( const rtl::OString& rHelpId ) = 0; 124*cdf0e10cSrcweir }; 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir class AbstractSdInsertPasteDlg : public VclAbstractDialog //add for SdInsertPasteDlg 127*cdf0e10cSrcweir { 128*cdf0e10cSrcweir public: 129*cdf0e10cSrcweir virtual sal_Bool IsInsertBefore() const = 0; 130*cdf0e10cSrcweir }; 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir class AbstractSdInsertPagesObjsDlg : public VclAbstractDialog //add for SdInsertPagesObjsDlg 133*cdf0e10cSrcweir { 134*cdf0e10cSrcweir public: 135*cdf0e10cSrcweir virtual ::Window* GetWindow() = 0; //this method is added for return a ::Window type pointer 136*cdf0e10cSrcweir virtual List* GetList( sal_uInt16 nType ) = 0; 137*cdf0e10cSrcweir virtual sal_Bool IsLink() = 0; 138*cdf0e10cSrcweir virtual sal_Bool IsRemoveUnnessesaryMasterPages() const = 0; 139*cdf0e10cSrcweir }; 140*cdf0e10cSrcweir 141*cdf0e10cSrcweir class AbstractMorphDlg : public VclAbstractDialog //add for MorphDlg 142*cdf0e10cSrcweir { 143*cdf0e10cSrcweir public: 144*cdf0e10cSrcweir virtual void SaveSettings() const = 0; 145*cdf0e10cSrcweir virtual sal_uInt16 GetFadeSteps() const = 0; 146*cdf0e10cSrcweir virtual sal_Bool IsAttributeFade() const = 0; 147*cdf0e10cSrcweir virtual sal_Bool IsOrientationFade() const = 0; 148*cdf0e10cSrcweir }; 149*cdf0e10cSrcweir 150*cdf0e10cSrcweir class AbstractSdStartPresDlg : public VclAbstractDialog //add for SdStartPresentationDlg 151*cdf0e10cSrcweir { 152*cdf0e10cSrcweir public: 153*cdf0e10cSrcweir virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0; 154*cdf0e10cSrcweir }; 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir class AbstractSdPresLayoutDlg : public VclAbstractDialog //add for SdPresLayoutDlg 157*cdf0e10cSrcweir { 158*cdf0e10cSrcweir public: 159*cdf0e10cSrcweir virtual void GetAttr(SfxItemSet& rOutAttrs) = 0; 160*cdf0e10cSrcweir }; 161*cdf0e10cSrcweir 162*cdf0e10cSrcweir class AbstractSdVectorizeDlg : public VclAbstractDialog //add for SdVectorizeDlg 163*cdf0e10cSrcweir { 164*cdf0e10cSrcweir public: 165*cdf0e10cSrcweir virtual const GDIMetaFile& GetGDIMetaFile() const = 0; 166*cdf0e10cSrcweir }; 167*cdf0e10cSrcweir 168*cdf0e10cSrcweir class AbstractSdPublishingDlg : public VclAbstractDialog //add for SdPublishingDlg 169*cdf0e10cSrcweir { 170*cdf0e10cSrcweir public: 171*cdf0e10cSrcweir virtual void GetParameterSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rParams ) = 0; 172*cdf0e10cSrcweir }; 173*cdf0e10cSrcweir 174*cdf0e10cSrcweir class AbstractHeaderFooterDialog : public VclAbstractDialog // add for HeaderFooterDialog 175*cdf0e10cSrcweir { 176*cdf0e10cSrcweir public: 177*cdf0e10cSrcweir virtual void ApplyToAll( TabPage* pPage ) = 0; 178*cdf0e10cSrcweir virtual void Apply( TabPage* pPage ) = 0; 179*cdf0e10cSrcweir virtual void Cancel( TabPage* pPage ) = 0; 180*cdf0e10cSrcweir }; 181*cdf0e10cSrcweir 182*cdf0e10cSrcweir //--------------------------------------------------------- 183*cdf0e10cSrcweir class SdAbstractDialogFactory 184*cdf0e10cSrcweir { 185*cdf0e10cSrcweir public: 186*cdf0e10cSrcweir static SdAbstractDialogFactory* Create(); 187*cdf0e10cSrcweir 188*cdf0e10cSrcweir virtual VclAbstractDialog* CreateBreakDlg(::Window* pWindow, ::sd::DrawView* pDrView, ::sd::DrawDocShell* pShell, sal_uLong nSumActionCount, sal_uLong nObjCount ) = 0; 189*cdf0e10cSrcweir virtual AbstractCopyDlg* CreateCopyDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, XColorTable* pColTab, ::sd::View* pView ) = 0; 190*cdf0e10cSrcweir virtual AbstractSdCustomShowDlg* CreateSdCustomShowDlg( ::Window* pWindow, SdDrawDocument& rDrawDoc ) = 0; 191*cdf0e10cSrcweir virtual SfxAbstractTabDialog* CreateSdTabCharDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell ) = 0; 192*cdf0e10cSrcweir virtual SfxAbstractTabDialog* CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, sal_Bool bAreaPage = sal_True ) = 0; 193*cdf0e10cSrcweir virtual AbstractAssistentDlg* CreateAssistentDlg( ::Window* pParent, sal_Bool bAutoPilot) = 0; 194*cdf0e10cSrcweir virtual AbstractSdModifyFieldDlg* CreateSdModifyFieldDlg( ::Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet ) = 0; 195*cdf0e10cSrcweir virtual AbstractSdSnapLineDlg* CreateSdSnapLineDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView) = 0; 196*cdf0e10cSrcweir virtual AbstractSdInsertLayerDlg* CreateSdInsertLayerDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, bool bDeletable, String aStr ) = 0; 197*cdf0e10cSrcweir virtual AbstractSdInsertPasteDlg* CreateSdInsertPasteDlg( ::Window* pWindow ) = 0; 198*cdf0e10cSrcweir virtual AbstractSdInsertPagesObjsDlg* CreateSdInsertPagesObjsDlg( ::Window* pParent, const SdDrawDocument* pDoc, SfxMedium* pSfxMedium, const String& rFileName ) = 0; 199*cdf0e10cSrcweir virtual AbstractMorphDlg* CreateMorphDlg( ::Window* pParent, const SdrObject* pObj1, const SdrObject* pObj2) = 0; 200*cdf0e10cSrcweir virtual SfxAbstractTabDialog* CreateSdOutlineBulletTabDlg ( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView = NULL ) = 0; 201*cdf0e10cSrcweir virtual SfxAbstractTabDialog* CreateSdParagraphTabDlg ( ::Window* pParent, const SfxItemSet* pAttr ) = 0; 202*cdf0e10cSrcweir virtual AbstractSdStartPresDlg* CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, List& rPageNames, List* pCSList ) = 0; 203*cdf0e10cSrcweir virtual SfxAbstractTabDialog* CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, ::Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool ) = 0; 204*cdf0e10cSrcweir virtual AbstractSdPresLayoutDlg* CreateSdPresLayoutDlg( ::sd::DrawDocShell* pDocShell, ::sd::ViewShell* pViewShell, ::Window* pWindow, const SfxItemSet& rInAttrs) = 0; 205*cdf0e10cSrcweir virtual SfxAbstractTabDialog* CreateSdTabTemplateDlg( ::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView ) = 0; 206*cdf0e10cSrcweir virtual SfxAbstractDialog* CreatSdActionDialog( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView ) = 0; 207*cdf0e10cSrcweir virtual AbstractSdVectorizeDlg* CreateSdVectorizeDlg( ::Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell ) = 0; 208*cdf0e10cSrcweir virtual AbstractSdPublishingDlg* CreateSdPublishingDlg( ::Window* pWindow, DocumentType eDocType) = 0; 209*cdf0e10cSrcweir 210*cdf0e10cSrcweir virtual VclAbstractDialog* CreateMasterLayoutDialog( ::Window* pParent, 211*cdf0e10cSrcweir SdDrawDocument* pDoc, 212*cdf0e10cSrcweir SdPage* ) = 0; // add for MasterLayoutDialog 213*cdf0e10cSrcweir 214*cdf0e10cSrcweir virtual AbstractHeaderFooterDialog* CreateHeaderFooterDialog( ViewShell* pViewShell, 215*cdf0e10cSrcweir ::Window* pParent, 216*cdf0e10cSrcweir SdDrawDocument* pDoc, 217*cdf0e10cSrcweir SdPage* pCurrentPage ) = 0; // add for HeaderFooterDialog 218*cdf0e10cSrcweir 219*cdf0e10cSrcweir virtual CreateTabPage GetSdOptionsContentsTabPageCreatorFunc() = 0; 220*cdf0e10cSrcweir virtual CreateTabPage GetSdPrintOptionsTabPageCreatorFunc() = 0; 221*cdf0e10cSrcweir virtual CreateTabPage GetSdOptionsMiscTabPageCreatorFunc() = 0; 222*cdf0e10cSrcweir virtual CreateTabPage GetSdOptionsSnapTabPageCreatorFunc() = 0; 223*cdf0e10cSrcweir }; 224*cdf0e10cSrcweir #endif 225*cdf0e10cSrcweir 226