Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / sd / inc / sdabstdlg.hxx
blob07655575896066800e4da198e9e683f9d575ba01
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_SD_INC_SDABSTDLG_HXX
20 #define INCLUDED_SD_INC_SDABSTDLG_HXX
22 #include <vector>
24 #include <rtl/ref.hxx>
25 #include <rtl/string.hxx>
26 #include <tools/solar.h>
27 #include <sfx2/sfxdlg.hxx>
28 #include <com/sun/star/uno/Sequence.h>
29 #include <com/sun/star/beans/NamedValue.hpp>
30 #include <com/sun/star/beans/XPropertyAccess.hpp>
31 #include "prlayout.hxx"
32 #include "sdenumdef.hxx"
33 #include "pres.hxx"
34 #include "sddllapi.h"
36 namespace sd {
37 class View;
38 class ViewShell;
39 class DrawDocShell;
40 class DrawView;
43 class SfxObjectShell;
44 class SfxObjectShellLock;
45 class SvxFieldData;
46 class GDIMetaFile;
47 class XColorList;
48 class SdDrawDocument;
49 class SfxMedium;
50 class SdrObject;
51 class SfxStyleSheetBasePool;
52 class SfxStyleSheetBase;
53 class SdrModel;
54 class SdrView;
55 class Bitmap;
56 class List;
57 namespace vcl { class Window; }
58 class SdPage;
59 class TabPage;
60 class SdCustomShowList;
62 class AbstractCopyDlg : public VclAbstractDialog
64 protected:
65 virtual ~AbstractCopyDlg() override = default;
66 public:
67 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0;
70 class AbstractSdCustomShowDlg : public VclAbstractDialog
72 protected:
73 virtual ~AbstractSdCustomShowDlg() override = default;
74 public:
75 virtual bool IsModified() const = 0;
76 virtual bool IsCustomShow() const = 0;
79 class AbstractSdModifyFieldDlg : public VclAbstractDialog
81 protected:
82 virtual ~AbstractSdModifyFieldDlg() override = default;
83 public:
84 virtual SvxFieldData* GetField() = 0;
85 virtual SfxItemSet GetItemSet() = 0;
88 class AbstractSdSnapLineDlg : public VclAbstractDialog
90 protected:
91 virtual ~AbstractSdSnapLineDlg() override = default;
92 public:
93 virtual void GetAttr(SfxItemSet& rOutAttrs) = 0;
94 virtual void HideRadioGroup() = 0;
95 virtual void HideDeleteBtn() = 0;
96 virtual void SetInputFields(bool bEnableX, bool bEnableY) = 0;
97 //from class vcl::Window
98 virtual void SetText( const OUString& rStr ) = 0;
101 class AbstractSdInsertLayerDlg : public VclAbstractDialog
103 protected:
104 virtual ~AbstractSdInsertLayerDlg() override = default;
105 public:
106 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0;
107 //from class vcl::Window
108 virtual void SetHelpId( const OString& rHelpId ) = 0;
111 class AbstractSdInsertPagesObjsDlg : public VclAbstractDialog
113 protected:
114 virtual ~AbstractSdInsertPagesObjsDlg() override = default;
115 public:
116 virtual std::vector<OUString> GetList ( const sal_uInt16 nType ) = 0;
117 virtual bool IsLink() = 0;
118 virtual bool IsRemoveUnnessesaryMasterPages() const = 0;
121 class AbstractMorphDlg : public VclAbstractDialog
123 protected:
124 virtual ~AbstractMorphDlg() override = default;
125 public:
126 virtual void SaveSettings() const = 0;
127 virtual sal_uInt16 GetFadeSteps() const = 0;
128 virtual bool IsAttributeFade() const = 0;
129 virtual bool IsOrientationFade() const = 0;
132 class AbstractSdStartPresDlg : public VclAbstractDialog
134 protected:
135 virtual ~AbstractSdStartPresDlg() override = default;
136 public:
137 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0;
140 class AbstractSdPresLayoutDlg : public VclAbstractDialog
142 protected:
143 virtual ~AbstractSdPresLayoutDlg() override = default;
144 public:
145 virtual void GetAttr(SfxItemSet& rOutAttrs) = 0;
148 class AbstractSdVectorizeDlg : public VclAbstractDialog
150 protected:
151 virtual ~AbstractSdVectorizeDlg() override = default;
152 public:
153 virtual const GDIMetaFile& GetGDIMetaFile() const = 0;
156 class AbstractSdPublishingDlg : public VclAbstractDialog
158 protected:
159 virtual ~AbstractSdPublishingDlg() override = default;
160 public:
161 virtual void GetParameterSequence( css::uno::Sequence< css::beans::PropertyValue >& rParams ) = 0;
164 class AbstractHeaderFooterDialog : public VclAbstractDialog
166 protected:
167 virtual ~AbstractHeaderFooterDialog() override = default;
170 class SdAbstractDialogFactory
172 public:
173 SD_DLLPUBLIC static SdAbstractDialogFactory* Create();
175 virtual VclPtr<VclAbstractDialog> CreateBreakDlg(weld::Window* pWindow, ::sd::DrawView* pDrView, ::sd::DrawDocShell* pShell, sal_uLong nSumActionCount, sal_uLong nObjCount ) = 0;
176 virtual VclPtr<AbstractCopyDlg> CreateCopyDlg(vcl::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView ) = 0;
177 virtual VclPtr<AbstractSdCustomShowDlg> CreateSdCustomShowDlg(weld::Window* pWindow, SdDrawDocument& rDrawDoc) = 0;
178 virtual VclPtr<SfxAbstractTabDialog> CreateSdTabCharDialog(vcl::Window* pWindow, const SfxItemSet* pAttr, SfxObjectShell* pDocShell) = 0;
179 virtual VclPtr<SfxAbstractTabDialog> CreateSdTabPageDialog(vcl::Window* pWindow, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, bool bAreaPage) = 0;
180 virtual VclPtr<AbstractSdModifyFieldDlg> CreateSdModifyFieldDlg(weld::Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet) = 0;
181 virtual VclPtr<AbstractSdSnapLineDlg> CreateSdSnapLineDlg(weld::Window* pParent, const SfxItemSet& rInAttrs, ::sd::View* pView) = 0;
182 virtual VclPtr<AbstractSdInsertLayerDlg> CreateSdInsertLayerDlg(weld::Window* pParent, const SfxItemSet& rInAttrs, bool bDeletable, const OUString& rStr) = 0;
183 virtual VclPtr<AbstractSdInsertPagesObjsDlg> CreateSdInsertPagesObjsDlg(vcl::Window* pParent, const SdDrawDocument* pDoc, SfxMedium* pSfxMedium, const OUString& rFileName) = 0;
184 virtual VclPtr<AbstractMorphDlg> CreateMorphDlg(weld::Window* pParent, const SdrObject* pObj1, const SdrObject* pObj2) = 0;
185 virtual VclPtr<SfxAbstractTabDialog> CreateSdOutlineBulletTabDlg(vcl::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView) = 0;
186 virtual VclPtr<SfxAbstractTabDialog> CreateSdParagraphTabDlg(vcl::Window* pWindow, const SfxItemSet* pAttr) = 0;
187 virtual VclPtr<AbstractSdStartPresDlg> CreateSdStartPresentationDlg(weld::Window* pWindow, const SfxItemSet& rInAttrs,
188 const std::vector<OUString> &rPageNames, SdCustomShowList* pCSList ) = 0;
189 virtual VclPtr<VclAbstractDialog> CreateRemoteDialog( vcl::Window* pWindow ) = 0;
190 virtual VclPtr<SfxAbstractTabDialog> CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, vcl::Window* pParent, bool bBackgroundDlg, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool ) = 0;
191 virtual VclPtr<AbstractSdPresLayoutDlg> CreateSdPresLayoutDlg( ::sd::DrawDocShell* pDocShell, const SfxItemSet& rInAttrs) = 0;
192 virtual VclPtr<SfxAbstractTabDialog> CreateSdTabTemplateDlg(vcl::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView) = 0;
193 virtual VclPtr<SfxAbstractDialog> CreatSdActionDialog(vcl::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView) = 0;
194 virtual VclPtr<AbstractSdVectorizeDlg> CreateSdVectorizeDlg(weld::Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell) = 0;
195 virtual VclPtr<AbstractSdPublishingDlg> CreateSdPublishingDlg( vcl::Window* pWindow, DocumentType eDocType) = 0;
197 virtual VclPtr<VclAbstractDialog> CreateMasterLayoutDialog(weld::Window* pParent, SdDrawDocument* pDoc, SdPage*) = 0;
199 virtual VclPtr<AbstractHeaderFooterDialog> CreateHeaderFooterDialog( sd::ViewShell* pViewShell,
200 vcl::Window* pParent,
201 SdDrawDocument* pDoc,
202 SdPage* pCurrentPage ) = 0;
204 virtual CreateTabPage GetSdOptionsContentsTabPageCreatorFunc() = 0;
205 virtual CreateTabPage GetSdPrintOptionsTabPageCreatorFunc() = 0;
206 virtual CreateTabPage GetSdOptionsMiscTabPageCreatorFunc() = 0;
207 virtual CreateTabPage GetSdOptionsSnapTabPageCreatorFunc() = 0;
209 virtual VclPtr<VclAbstractDialog> CreateSdPhotoAlbumDialog(weld::Window* pWindow, SdDrawDocument* pDoc) = 0;
211 protected:
212 ~SdAbstractDialogFactory() {}
214 #endif
216 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */