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 _SD_ABSTDLG_HXX 24 #define _SD_ABSTDLG_HXX 25 26 // include --------------------------------------------------------------- 27 28 #include <tools/solar.h> 29 #include <tools/string.hxx> 30 #include <sfx2/sfxdlg.hxx> 31 #include <com/sun/star/uno/Sequence.h> 32 #include <com/sun/star/beans/XPropertyAccess.hpp> 33 #include "prlayout.hxx" 34 #include "sdenumdef.hxx" 35 #include "pres.hxx" 36 37 namespace sd { 38 class View; 39 class DrawDocShell; 40 class ViewShell; 41 class DrawView; 42 } 43 44 class SfxTabPage; 45 class SfxViewFrame; 46 class SfxBindings; 47 class ResId; 48 class String; 49 class SfxItemPool; 50 class SfxObjectShell; 51 class SfxObjectShellLock; 52 class SvxFieldData; 53 class GDIMetaFile; 54 class SdDrawDocument; 55 class SfxMedium; 56 class SdrObject; 57 class SfxStyleSheetBasePool; 58 class SfxStyleSheetBase; 59 class SdrModel; 60 class SdrView; 61 class Bitmap; 62 class List; 63 class SdResId; 64 class Window; 65 class SdPage; 66 class TabPage; 67 class ViewShell; 68 69 class AbstractCopyDlg : public VclAbstractDialog //add for CopyDlg 70 { 71 public: 72 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0; 73 }; 74 75 class AbstractSdCustomShowDlg : public VclAbstractDialog //add for SdCustomShowDlg 76 { 77 public: 78 virtual sal_Bool IsModified() const = 0; 79 virtual sal_Bool IsCustomShow() const = 0; 80 }; 81 82 class AbstractAssistentDlg : public VclAbstractDialog //add for AssistentDlg 83 { 84 public: 85 virtual SfxObjectShellLock GetDocument() = 0; 86 virtual OutputType GetOutputMedium() const = 0; 87 virtual sal_Bool IsSummary() const = 0; 88 virtual StartType GetStartType() const = 0; 89 virtual String GetDocPath() const = 0; 90 virtual sal_Bool GetStartWithFlag() const = 0; 91 virtual sal_Bool IsDocEmpty() const = 0; 92 virtual String GetPassword() = 0; 93 }; 94 95 class AbstractSdModifyFieldDlg : public VclAbstractDialog //add for SdModifyFieldDlg 96 { 97 public: 98 virtual SvxFieldData* GetField() = 0; 99 virtual SfxItemSet GetItemSet() = 0; 100 }; 101 102 class AbstractSdSnapLineDlg : public VclAbstractDialog //add for SdSnapLineDlg 103 { 104 public: 105 virtual void GetAttr(SfxItemSet& rOutAttrs) = 0; 106 virtual void HideRadioGroup() = 0; 107 virtual void HideDeleteBtn() = 0; 108 virtual void SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY) = 0; 109 //from class ::Window 110 virtual void SetText( const XubString& rStr ) = 0; 111 }; 112 113 class AbstractSdInsertLayerDlg : public VclAbstractDialog //add for SdInsertLayerDlg 114 { 115 public: 116 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0; 117 //from class ::Window 118 virtual void SetHelpId( const rtl::OString& rHelpId ) = 0; 119 }; 120 121 class AbstractSdInsertPasteDlg : public VclAbstractDialog //add for SdInsertPasteDlg 122 { 123 public: 124 virtual sal_Bool IsInsertBefore() const = 0; 125 }; 126 127 class AbstractSdInsertPagesObjsDlg : public VclAbstractDialog //add for SdInsertPagesObjsDlg 128 { 129 public: 130 virtual ::Window* GetWindow() = 0; //this method is added for return a ::Window type pointer 131 virtual List* GetList( sal_uInt16 nType ) = 0; 132 virtual sal_Bool IsLink() = 0; 133 virtual sal_Bool IsRemoveUnnessesaryMasterPages() const = 0; 134 }; 135 136 class AbstractMorphDlg : public VclAbstractDialog //add for MorphDlg 137 { 138 public: 139 virtual void SaveSettings() const = 0; 140 virtual sal_uInt16 GetFadeSteps() const = 0; 141 virtual sal_Bool IsAttributeFade() const = 0; 142 virtual sal_Bool IsOrientationFade() const = 0; 143 }; 144 145 class AbstractSdStartPresDlg : public VclAbstractDialog //add for SdStartPresentationDlg 146 { 147 public: 148 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0; 149 }; 150 151 class AbstractSdPresLayoutDlg : public VclAbstractDialog //add for SdPresLayoutDlg 152 { 153 public: 154 virtual void GetAttr(SfxItemSet& rOutAttrs) = 0; 155 }; 156 157 class AbstractSdVectorizeDlg : public VclAbstractDialog //add for SdVectorizeDlg 158 { 159 public: 160 virtual const GDIMetaFile& GetGDIMetaFile() const = 0; 161 }; 162 163 class AbstractSdPublishingDlg : public VclAbstractDialog //add for SdPublishingDlg 164 { 165 public: 166 virtual void GetParameterSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rParams ) = 0; 167 }; 168 169 class AbstractHeaderFooterDialog : public VclAbstractDialog // add for HeaderFooterDialog 170 { 171 public: 172 virtual void ApplyToAll( TabPage* pPage ) = 0; 173 virtual void Apply( TabPage* pPage ) = 0; 174 virtual void Cancel( TabPage* pPage ) = 0; 175 }; 176 177 //--------------------------------------------------------- 178 class SdAbstractDialogFactory 179 { 180 public: 181 static SdAbstractDialogFactory* Create(); 182 183 virtual VclAbstractDialog* CreateBreakDlg(::Window* pWindow, ::sd::DrawView* pDrView, ::sd::DrawDocShell* pShell, sal_uLong nSumActionCount, sal_uLong nObjCount ) = 0; 184 virtual AbstractCopyDlg* CreateCopyDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, XColorListSharedPtr aColTab, ::sd::View* pView ) = 0; 185 virtual AbstractSdCustomShowDlg* CreateSdCustomShowDlg( ::Window* pWindow, SdDrawDocument& rDrawDoc ) = 0; 186 virtual SfxAbstractTabDialog* CreateSdTabCharDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell ) = 0; 187 virtual SfxAbstractTabDialog* CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, sal_Bool bAreaPage = sal_True ) = 0; 188 virtual AbstractAssistentDlg* CreateAssistentDlg( ::Window* pParent, sal_Bool bAutoPilot) = 0; 189 virtual AbstractSdModifyFieldDlg* CreateSdModifyFieldDlg( ::Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet ) = 0; 190 virtual AbstractSdSnapLineDlg* CreateSdSnapLineDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView) = 0; 191 virtual AbstractSdInsertLayerDlg* CreateSdInsertLayerDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, bool bDeletable, String aStr ) = 0; 192 virtual AbstractSdInsertPasteDlg* CreateSdInsertPasteDlg( ::Window* pWindow ) = 0; 193 virtual AbstractSdInsertPagesObjsDlg* CreateSdInsertPagesObjsDlg( ::Window* pParent, const SdDrawDocument* pDoc, SfxMedium* pSfxMedium, const String& rFileName ) = 0; 194 virtual AbstractMorphDlg* CreateMorphDlg( ::Window* pParent, const SdrObject* pObj1, const SdrObject* pObj2) = 0; 195 virtual SfxAbstractTabDialog* CreateSdOutlineBulletTabDlg ( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView = NULL ) = 0; 196 virtual SfxAbstractTabDialog* CreateSdParagraphTabDlg ( ::Window* pParent, const SfxItemSet* pAttr ) = 0; 197 virtual AbstractSdStartPresDlg* CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, List& rPageNames, List* pCSList ) = 0; 198 virtual SfxAbstractTabDialog* CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, ::Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool ) = 0; 199 virtual AbstractSdPresLayoutDlg* CreateSdPresLayoutDlg( ::sd::DrawDocShell* pDocShell, ::sd::ViewShell* pViewShell, ::Window* pWindow, const SfxItemSet& rInAttrs) = 0; 200 virtual SfxAbstractTabDialog* CreateSdTabTemplateDlg( ::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView ) = 0; 201 virtual SfxAbstractDialog* CreatSdActionDialog( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView ) = 0; 202 virtual AbstractSdVectorizeDlg* CreateSdVectorizeDlg( ::Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell ) = 0; 203 virtual AbstractSdPublishingDlg* CreateSdPublishingDlg( ::Window* pWindow, DocumentType eDocType) = 0; 204 205 virtual VclAbstractDialog* CreateMasterLayoutDialog( ::Window* pParent, 206 SdDrawDocument* pDoc, 207 SdPage* ) = 0; // add for MasterLayoutDialog 208 209 virtual AbstractHeaderFooterDialog* CreateHeaderFooterDialog( ViewShell* pViewShell, 210 ::Window* pParent, 211 SdDrawDocument* pDoc, 212 SdPage* pCurrentPage ) = 0; // add for HeaderFooterDialog 213 214 virtual CreateTabPage GetSdOptionsContentsTabPageCreatorFunc() = 0; 215 virtual CreateTabPage GetSdPrintOptionsTabPageCreatorFunc() = 0; 216 virtual CreateTabPage GetSdOptionsMiscTabPageCreatorFunc() = 0; 217 virtual CreateTabPage GetSdOptionsSnapTabPageCreatorFunc() = 0; 218 }; 219 #endif 220 221