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