nss: upgrade to release 3.73
[LibreOffice.git] / sd / inc / sdabstdlg.hxx
blob820c3666214b8ad1ff739f0f8813cfc9cdf0f029
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/string.hxx>
25 #include <sfx2/tabdlg.hxx>
26 #include <svl/itemset.hxx>
27 #include <tools/solar.h>
28 #include <vcl/abstdlg.hxx>
29 #include <svx/svxdlg.hxx>
31 #include <com/sun/star/beans/PropertyValue.hpp>
33 #include "prlayout.hxx"
34 #include "pres.hxx"
35 #include "sddllapi.h"
37 namespace sd {
38 class View;
39 class ViewShell;
40 class DrawDocShell;
41 class DrawView;
44 class SfxObjectShell;
45 class SvxFieldData;
46 class GDIMetaFile;
47 class SdDrawDocument;
48 class SfxMedium;
49 class SdrObject;
50 class SfxStyleSheetBasePool;
51 class SfxStyleSheetBase;
52 class SdrModel;
53 class SdrView;
54 class Bitmap;
55 namespace vcl { class Window; }
56 class SdPage;
57 class SdCustomShowList;
58 class SfxAbstractDialog;
59 class SfxAbstractTabDialog;
61 class AbstractCopyDlg : public VclAbstractDialog
63 protected:
64 virtual ~AbstractCopyDlg() override = default;
65 public:
66 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0;
69 class AbstractSdCustomShowDlg : public VclAbstractDialog
71 protected:
72 virtual ~AbstractSdCustomShowDlg() override = default;
73 public:
74 virtual bool IsModified() const = 0;
75 virtual bool IsCustomShow() const = 0;
78 class AbstractSdModifyFieldDlg : public VclAbstractDialog
80 protected:
81 virtual ~AbstractSdModifyFieldDlg() override = default;
82 public:
83 virtual SvxFieldData* GetField() = 0;
84 virtual SfxItemSet GetItemSet() = 0;
87 class AbstractSdSnapLineDlg : public VclAbstractDialog
89 protected:
90 virtual ~AbstractSdSnapLineDlg() override = default;
91 public:
92 virtual void GetAttr(SfxItemSet& rOutAttrs) = 0;
93 virtual void HideRadioGroup() = 0;
94 virtual void HideDeleteBtn() = 0;
95 virtual void SetInputFields(bool bEnableX, bool bEnableY) = 0;
96 //from class vcl::Window
97 virtual void SetText( const OUString& rStr ) = 0;
100 class AbstractSdInsertLayerDlg : public VclAbstractDialog
102 protected:
103 virtual ~AbstractSdInsertLayerDlg() override = default;
104 public:
105 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0;
106 //from class vcl::Window
107 virtual void SetHelpId( const OString& rHelpId ) = 0;
110 class AbstractSdInsertPagesObjsDlg : public VclAbstractDialog
112 protected:
113 virtual ~AbstractSdInsertPagesObjsDlg() override = default;
114 public:
115 virtual std::vector<OUString> GetList ( const sal_uInt16 nType ) = 0;
116 virtual bool IsLink() = 0;
117 virtual bool IsRemoveUnnecessaryMasterPages() const = 0;
120 class AbstractMorphDlg : public VclAbstractDialog
122 protected:
123 virtual ~AbstractMorphDlg() override = default;
124 public:
125 virtual void SaveSettings() const = 0;
126 virtual sal_uInt16 GetFadeSteps() const = 0;
127 virtual bool IsAttributeFade() const = 0;
128 virtual bool IsOrientationFade() const = 0;
131 class AbstractSdStartPresDlg : public VclAbstractDialog
133 protected:
134 virtual ~AbstractSdStartPresDlg() override = default;
135 public:
136 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0;
139 class AbstractSdPresLayoutDlg : public VclAbstractDialog
141 protected:
142 virtual ~AbstractSdPresLayoutDlg() override = default;
143 public:
144 virtual void GetAttr(SfxItemSet& rOutAttrs) = 0;
147 class AbstractSdVectorizeDlg : public VclAbstractDialog
149 protected:
150 virtual ~AbstractSdVectorizeDlg() override = default;
151 public:
152 virtual const GDIMetaFile& GetGDIMetaFile() const = 0;
155 class AbstractSdPublishingDlg : public VclAbstractDialog
157 protected:
158 virtual ~AbstractSdPublishingDlg() override = default;
159 public:
160 virtual void GetParameterSequence( css::uno::Sequence< css::beans::PropertyValue >& rParams ) = 0;
163 class AbstractHeaderFooterDialog : public VclAbstractDialog
165 protected:
166 virtual ~AbstractHeaderFooterDialog() override = default;
169 class SdAbstractDialogFactory
171 public:
172 SD_DLLPUBLIC static SdAbstractDialogFactory* Create();
174 virtual VclPtr<AbstractSvxBulletAndPositionDlg> CreateSvxBulletAndPositionDlg(weld::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView) = 0;
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(weld::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(weld::Window* pWindow, const SfxItemSet* pAttr, SfxObjectShell* pDocShell) = 0;
179 virtual VclPtr<SfxAbstractTabDialog> CreateSdTabPageDialog(weld::Window* pWindow, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, bool bAreaPage, bool bIsImpressDoc) = 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(weld::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(weld::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView) = 0;
186 virtual VclPtr<SfxAbstractTabDialog> CreateSdParagraphTabDlg(weld::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(weld::Window* pWindow) = 0;
190 virtual VclPtr<SfxAbstractTabDialog> CreateSdPresLayoutTemplateDlg(SfxObjectShell* pDocSh, weld::Window* pParent, bool bBackgroundDlg, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool) = 0;
191 virtual VclPtr<AbstractSdPresLayoutDlg> CreateSdPresLayoutDlg(weld::Window* pParent, ::sd::DrawDocShell* pDocShell, const SfxItemSet& rInAttrs) = 0;
192 virtual VclPtr<SfxAbstractTabDialog> CreateSdTabTemplateDlg(weld::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView) = 0;
193 virtual VclPtr<SfxAbstractDialog> CreatSdActionDialog(weld::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(weld::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 weld::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: */