xref: /aoo41x/main/sd/inc/sdabstdlg.hxx (revision c7be74b1)
1c45d927aSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3c45d927aSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4c45d927aSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5c45d927aSAndrew Rist  * distributed with this work for additional information
6c45d927aSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7c45d927aSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8c45d927aSAndrew Rist  * "License"); you may not use this file except in compliance
9c45d927aSAndrew Rist  * with the License.  You may obtain a copy of the License at
10c45d927aSAndrew Rist  *
11c45d927aSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12c45d927aSAndrew Rist  *
13c45d927aSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14c45d927aSAndrew Rist  * software distributed under the License is distributed on an
15c45d927aSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16c45d927aSAndrew Rist  * KIND, either express or implied.  See the License for the
17c45d927aSAndrew Rist  * specific language governing permissions and limitations
18c45d927aSAndrew Rist  * under the License.
19c45d927aSAndrew Rist  *
20c45d927aSAndrew Rist  *************************************************************/
21c45d927aSAndrew Rist 
22c45d927aSAndrew Rist 
23cdf0e10cSrcweir #ifndef _SD_ABSTDLG_HXX
24cdf0e10cSrcweir #define _SD_ABSTDLG_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir // include ---------------------------------------------------------------
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <tools/solar.h>
29cdf0e10cSrcweir #include <tools/string.hxx>
30cdf0e10cSrcweir #include <sfx2/sfxdlg.hxx>
31cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.h>
32cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyAccess.hpp>
33cdf0e10cSrcweir #include "prlayout.hxx"
34cdf0e10cSrcweir #include "sdenumdef.hxx"
35cdf0e10cSrcweir #include "pres.hxx"
36cdf0e10cSrcweir 
37cdf0e10cSrcweir namespace sd {
38cdf0e10cSrcweir 	class View;
39cdf0e10cSrcweir 	class DrawDocShell;
40cdf0e10cSrcweir 	class ViewShell;
41cdf0e10cSrcweir 	class DrawView;
42cdf0e10cSrcweir }
43cdf0e10cSrcweir 
44cdf0e10cSrcweir class SfxTabPage;
45cdf0e10cSrcweir class SfxViewFrame;
46cdf0e10cSrcweir class SfxBindings;
47cdf0e10cSrcweir class ResId;
48cdf0e10cSrcweir class String;
49cdf0e10cSrcweir class SfxItemPool;
50cdf0e10cSrcweir class SfxObjectShell;
51cdf0e10cSrcweir class SfxObjectShellLock;
52cdf0e10cSrcweir class SvxFieldData;
53cdf0e10cSrcweir class GDIMetaFile;
54cdf0e10cSrcweir class SdDrawDocument;
55cdf0e10cSrcweir class SfxMedium;
56cdf0e10cSrcweir class SdrObject;
57cdf0e10cSrcweir class SfxStyleSheetBasePool;
58cdf0e10cSrcweir class SfxStyleSheetBase;
59cdf0e10cSrcweir class SdrModel;
60cdf0e10cSrcweir class SdrView;
61cdf0e10cSrcweir class Bitmap;
62cdf0e10cSrcweir class List;
63cdf0e10cSrcweir class SdResId;
64cdf0e10cSrcweir class Window;
65cdf0e10cSrcweir class SdPage;
66cdf0e10cSrcweir class TabPage;
67cdf0e10cSrcweir class ViewShell;
68cdf0e10cSrcweir 
69cdf0e10cSrcweir class AbstractCopyDlg : public VclAbstractDialog  //add for CopyDlg
70cdf0e10cSrcweir {
71cdf0e10cSrcweir public:
72cdf0e10cSrcweir 	virtual void	GetAttr( SfxItemSet& rOutAttrs ) = 0;
73cdf0e10cSrcweir };
74cdf0e10cSrcweir 
75cdf0e10cSrcweir class AbstractSdCustomShowDlg : public VclAbstractDialog  //add for SdCustomShowDlg
76cdf0e10cSrcweir {
77cdf0e10cSrcweir public:
78cdf0e10cSrcweir 	virtual sal_Bool		IsModified() const = 0;
79cdf0e10cSrcweir 	virtual sal_Bool		IsCustomShow() const = 0;
80cdf0e10cSrcweir };
81cdf0e10cSrcweir 
82cdf0e10cSrcweir class AbstractAssistentDlg : public VclAbstractDialog  //add for AssistentDlg
83cdf0e10cSrcweir {
84cdf0e10cSrcweir public:
85cdf0e10cSrcweir 	virtual SfxObjectShellLock GetDocument() = 0;
86cdf0e10cSrcweir 	virtual OutputType GetOutputMedium() const = 0;
87cdf0e10cSrcweir 	virtual sal_Bool IsSummary() const = 0;
88cdf0e10cSrcweir 	virtual StartType GetStartType() const = 0;
89cdf0e10cSrcweir 	virtual String GetDocPath() const = 0;
90cdf0e10cSrcweir 	virtual sal_Bool GetStartWithFlag() const = 0;
91cdf0e10cSrcweir 	virtual sal_Bool IsDocEmpty() const = 0;
92cdf0e10cSrcweir 	virtual String GetPassword() = 0;
93cdf0e10cSrcweir };
94cdf0e10cSrcweir 
95cdf0e10cSrcweir class AbstractSdModifyFieldDlg : public VclAbstractDialog  //add for SdModifyFieldDlg
96cdf0e10cSrcweir {
97cdf0e10cSrcweir public:
98cdf0e10cSrcweir 	virtual SvxFieldData*		GetField() = 0;
99cdf0e10cSrcweir 	virtual SfxItemSet			GetItemSet() = 0;
100cdf0e10cSrcweir };
101cdf0e10cSrcweir 
102cdf0e10cSrcweir class AbstractSdSnapLineDlg : public VclAbstractDialog  //add for SdSnapLineDlg
103cdf0e10cSrcweir {
104cdf0e10cSrcweir public:
105cdf0e10cSrcweir 	virtual void GetAttr(SfxItemSet& rOutAttrs) = 0;
106cdf0e10cSrcweir 	virtual void HideRadioGroup() = 0;
107cdf0e10cSrcweir 	virtual void HideDeleteBtn() = 0;
108cdf0e10cSrcweir 	virtual void SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY) = 0;
109cdf0e10cSrcweir 	//from class ::Window
110cdf0e10cSrcweir 	virtual void    SetText( const XubString& rStr ) = 0;
111cdf0e10cSrcweir };
112cdf0e10cSrcweir 
113cdf0e10cSrcweir class AbstractSdInsertLayerDlg : public VclAbstractDialog  //add for SdInsertLayerDlg
114cdf0e10cSrcweir {
115cdf0e10cSrcweir public:
116cdf0e10cSrcweir 	virtual void	GetAttr( SfxItemSet& rOutAttrs ) = 0;
117cdf0e10cSrcweir 	//from class ::Window
118cdf0e10cSrcweir 	virtual void    SetHelpId( const rtl::OString& rHelpId ) = 0;
119cdf0e10cSrcweir };
120cdf0e10cSrcweir 
121cdf0e10cSrcweir class AbstractSdInsertPasteDlg : public VclAbstractDialog  //add for SdInsertPasteDlg
122cdf0e10cSrcweir {
123cdf0e10cSrcweir public:
124cdf0e10cSrcweir 	virtual sal_Bool			IsInsertBefore() const = 0;
125cdf0e10cSrcweir };
126cdf0e10cSrcweir 
127cdf0e10cSrcweir class AbstractSdInsertPagesObjsDlg : public VclAbstractDialog  //add for SdInsertPagesObjsDlg
128cdf0e10cSrcweir {
129cdf0e10cSrcweir public:
130cdf0e10cSrcweir 	virtual ::Window*	GetWindow() = 0;  //this method is added for return a ::Window type pointer
131cdf0e10cSrcweir 	virtual List*   	GetList( sal_uInt16 nType ) = 0;
132cdf0e10cSrcweir 	virtual sal_Bool		IsLink() = 0;
133cdf0e10cSrcweir 	virtual sal_Bool 		IsRemoveUnnessesaryMasterPages() const = 0;
134cdf0e10cSrcweir };
135cdf0e10cSrcweir 
136cdf0e10cSrcweir class AbstractMorphDlg : public VclAbstractDialog  //add for MorphDlg
137cdf0e10cSrcweir {
138cdf0e10cSrcweir public:
139cdf0e10cSrcweir 	virtual void			SaveSettings() const = 0;
140cdf0e10cSrcweir 	virtual sal_uInt16			GetFadeSteps() const = 0;
141cdf0e10cSrcweir 	virtual sal_Bool			IsAttributeFade() const = 0;
142cdf0e10cSrcweir 	virtual sal_Bool			IsOrientationFade() const = 0;
143cdf0e10cSrcweir };
144cdf0e10cSrcweir 
145cdf0e10cSrcweir class AbstractSdStartPresDlg : public VclAbstractDialog  //add for SdStartPresentationDlg
146cdf0e10cSrcweir {
147cdf0e10cSrcweir public:
148cdf0e10cSrcweir 	virtual void	GetAttr( SfxItemSet& rOutAttrs ) = 0;
149cdf0e10cSrcweir };
150cdf0e10cSrcweir 
151cdf0e10cSrcweir class AbstractSdPresLayoutDlg : public VclAbstractDialog  //add for SdPresLayoutDlg
152cdf0e10cSrcweir {
153cdf0e10cSrcweir public:
154cdf0e10cSrcweir 	virtual void	GetAttr(SfxItemSet& rOutAttrs) = 0;
155cdf0e10cSrcweir };
156cdf0e10cSrcweir 
157cdf0e10cSrcweir class AbstractSdVectorizeDlg : public VclAbstractDialog  //add for SdVectorizeDlg
158cdf0e10cSrcweir {
159cdf0e10cSrcweir public:
160cdf0e10cSrcweir 	virtual const GDIMetaFile&	GetGDIMetaFile() const = 0;
161cdf0e10cSrcweir };
162cdf0e10cSrcweir 
163cdf0e10cSrcweir class AbstractSdPublishingDlg : public VclAbstractDialog  //add for SdPublishingDlg
164cdf0e10cSrcweir {
165cdf0e10cSrcweir public:
166cdf0e10cSrcweir 	virtual void GetParameterSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rParams ) = 0;
167cdf0e10cSrcweir };
168cdf0e10cSrcweir 
169cdf0e10cSrcweir class AbstractHeaderFooterDialog : public VclAbstractDialog // add for HeaderFooterDialog
170cdf0e10cSrcweir {
171cdf0e10cSrcweir public:
172cdf0e10cSrcweir 	virtual void ApplyToAll( TabPage* pPage ) = 0;
173cdf0e10cSrcweir 	virtual void Apply( TabPage* pPage ) = 0;
174cdf0e10cSrcweir 	virtual void Cancel( TabPage* pPage ) = 0;
175cdf0e10cSrcweir };
176cdf0e10cSrcweir 
177cdf0e10cSrcweir //---------------------------------------------------------
178cdf0e10cSrcweir class SdAbstractDialogFactory
179cdf0e10cSrcweir {
180cdf0e10cSrcweir public:
181cdf0e10cSrcweir 	static SdAbstractDialogFactory* 	Create();
182cdf0e10cSrcweir 
183cdf0e10cSrcweir 	virtual VclAbstractDialog* 			CreateBreakDlg(::Window* pWindow, ::sd::DrawView* pDrView, ::sd::DrawDocShell* pShell, sal_uLong nSumActionCount, sal_uLong nObjCount ) = 0;
184*c7be74b1SArmin Le Grand 	virtual AbstractCopyDlg*			CreateCopyDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, XColorListSharedPtr aColTab, ::sd::View* pView ) = 0;
185cdf0e10cSrcweir 	virtual AbstractSdCustomShowDlg*	CreateSdCustomShowDlg( ::Window* pWindow, SdDrawDocument& rDrawDoc ) = 0;
186cdf0e10cSrcweir 	virtual SfxAbstractTabDialog*		CreateSdTabCharDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell ) = 0;
187cdf0e10cSrcweir 	virtual SfxAbstractTabDialog*		CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, sal_Bool bAreaPage = sal_True ) = 0;
188cdf0e10cSrcweir 	virtual AbstractAssistentDlg*		CreateAssistentDlg( ::Window* pParent, sal_Bool bAutoPilot) = 0;
189cdf0e10cSrcweir 	virtual AbstractSdModifyFieldDlg*	CreateSdModifyFieldDlg( ::Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet ) = 0;
190cdf0e10cSrcweir 	virtual AbstractSdSnapLineDlg*		CreateSdSnapLineDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView) = 0;
191cdf0e10cSrcweir 	virtual AbstractSdInsertLayerDlg*	CreateSdInsertLayerDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, bool bDeletable,	String aStr ) = 0;
192cdf0e10cSrcweir 	virtual AbstractSdInsertPasteDlg*	CreateSdInsertPasteDlg( ::Window* pWindow ) = 0;
193cdf0e10cSrcweir 	virtual AbstractSdInsertPagesObjsDlg* CreateSdInsertPagesObjsDlg( ::Window* pParent, const SdDrawDocument* pDoc, SfxMedium* pSfxMedium, const String& rFileName ) = 0;
194cdf0e10cSrcweir 	virtual AbstractMorphDlg*			CreateMorphDlg( ::Window* pParent, const SdrObject* pObj1, const SdrObject* pObj2) = 0;
195cdf0e10cSrcweir 	virtual SfxAbstractTabDialog*		CreateSdOutlineBulletTabDlg ( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView = NULL ) = 0;
196cdf0e10cSrcweir 	virtual SfxAbstractTabDialog*		CreateSdParagraphTabDlg ( ::Window* pParent, const SfxItemSet* pAttr ) = 0;
197cdf0e10cSrcweir 	virtual AbstractSdStartPresDlg*		CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, List& rPageNames, List* pCSList ) = 0;
198cdf0e10cSrcweir 	virtual SfxAbstractTabDialog*		CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, ::Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool ) = 0;
199cdf0e10cSrcweir 	virtual AbstractSdPresLayoutDlg*	CreateSdPresLayoutDlg( ::sd::DrawDocShell* pDocShell, ::sd::ViewShell* pViewShell, ::Window* pWindow, const SfxItemSet& rInAttrs) = 0;
200cdf0e10cSrcweir 	virtual SfxAbstractTabDialog*		CreateSdTabTemplateDlg( ::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView ) = 0;
201cdf0e10cSrcweir 	virtual SfxAbstractDialog*			CreatSdActionDialog( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView ) = 0;
202cdf0e10cSrcweir 	virtual AbstractSdVectorizeDlg*		CreateSdVectorizeDlg( ::Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell ) = 0;
203cdf0e10cSrcweir 	virtual AbstractSdPublishingDlg*	CreateSdPublishingDlg( ::Window* pWindow, DocumentType eDocType) = 0;
204cdf0e10cSrcweir 
205cdf0e10cSrcweir 	virtual VclAbstractDialog*          CreateMasterLayoutDialog( ::Window* pParent,
206cdf0e10cSrcweir 																  SdDrawDocument* pDoc,
207cdf0e10cSrcweir 																  SdPage* ) = 0; // add for MasterLayoutDialog
208cdf0e10cSrcweir 
209cdf0e10cSrcweir 	virtual AbstractHeaderFooterDialog* CreateHeaderFooterDialog( ViewShell* pViewShell,
210cdf0e10cSrcweir 																  ::Window* pParent,
211cdf0e10cSrcweir 																  SdDrawDocument* pDoc,
212cdf0e10cSrcweir 																  SdPage* pCurrentPage ) = 0; // add for HeaderFooterDialog
213cdf0e10cSrcweir 
214cdf0e10cSrcweir 	virtual CreateTabPage				GetSdOptionsContentsTabPageCreatorFunc() = 0;
215cdf0e10cSrcweir 	virtual CreateTabPage				GetSdPrintOptionsTabPageCreatorFunc() = 0;
216cdf0e10cSrcweir 	virtual CreateTabPage				GetSdOptionsMiscTabPageCreatorFunc() = 0;
217cdf0e10cSrcweir 	virtual CreateTabPage				GetSdOptionsSnapTabPageCreatorFunc() = 0;
218cdf0e10cSrcweir };
219cdf0e10cSrcweir #endif
220cdf0e10cSrcweir 
221