Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sd / inc / sdabstdlg.hxx
blob84c1a6ff8e2e236d298474c458abc0efd725b209
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 #pragma once
21 #include <vector>
23 #include <rtl/string.hxx>
24 #include <sfx2/tabdlg.hxx>
25 #include <svl/itemset.hxx>
26 #include <tools/solar.h>
27 #include <vcl/abstdlg.hxx>
28 #include <svx/svxdlg.hxx>
30 #include <com/sun/star/beans/PropertyValue.hpp>
32 #include "prlayout.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 SvxFieldData;
45 class GDIMetaFile;
46 class SdDrawDocument;
47 class SfxMedium;
48 class SdrObject;
49 class SfxStyleSheetBasePool;
50 class SfxStyleSheetBase;
51 class SdrModel;
52 class SdrView;
53 class Bitmap;
54 class SdPage;
55 class SdCustomShowList;
56 class SfxAbstractDialog;
57 class SfxAbstractTabDialog;
59 class AbstractCopyDlg : public VclAbstractDialog
61 protected:
62 virtual ~AbstractCopyDlg() override = default;
63 public:
64 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0;
67 class AbstractSdCustomShowDlg : public VclAbstractDialog
69 protected:
70 virtual ~AbstractSdCustomShowDlg() override = default;
71 public:
72 virtual bool IsCustomShow() const = 0;
75 class AbstractSdModifyFieldDlg : public VclAbstractDialog
77 protected:
78 virtual ~AbstractSdModifyFieldDlg() override = default;
79 public:
80 virtual SvxFieldData* GetField() = 0;
81 virtual SfxItemSet GetItemSet() = 0;
84 class AbstractSdSnapLineDlg : public VclAbstractDialog
86 protected:
87 virtual ~AbstractSdSnapLineDlg() override = default;
88 public:
89 virtual void GetAttr(SfxItemSet& rOutAttrs) = 0;
90 virtual void HideRadioGroup() = 0;
91 virtual void HideDeleteBtn() = 0;
92 virtual void SetInputFields(bool bEnableX, bool bEnableY) = 0;
93 virtual void SetText( const OUString& rStr ) = 0;
96 class AbstractSdInsertLayerDlg : public VclAbstractDialog
98 protected:
99 virtual ~AbstractSdInsertLayerDlg() override = default;
100 public:
101 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0;
102 virtual void SetHelpId( const OUString& rHelpId ) = 0;
105 class AbstractSdInsertPagesObjsDlg : public VclAbstractDialog
107 protected:
108 virtual ~AbstractSdInsertPagesObjsDlg() override = default;
109 public:
110 virtual std::vector<OUString> GetList ( const sal_uInt16 nType ) = 0;
111 virtual bool IsLink() = 0;
112 virtual bool IsRemoveUnnecessaryMasterPages() const = 0;
115 class AbstractMorphDlg : public VclAbstractDialog
117 protected:
118 virtual ~AbstractMorphDlg() override = default;
119 public:
120 virtual void SaveSettings() const = 0;
121 virtual sal_uInt16 GetFadeSteps() const = 0;
122 virtual bool IsAttributeFade() const = 0;
123 virtual bool IsOrientationFade() const = 0;
126 class AbstractSdStartPresDlg : public VclAbstractDialog
128 protected:
129 virtual ~AbstractSdStartPresDlg() override = default;
130 public:
131 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0;
134 class AbstractSdPresLayoutDlg : public VclAbstractDialog
136 protected:
137 virtual ~AbstractSdPresLayoutDlg() override = default;
138 public:
139 virtual void GetAttr(SfxItemSet& rOutAttrs) = 0;
142 class AbstractSdVectorizeDlg : public VclAbstractDialog
144 protected:
145 virtual ~AbstractSdVectorizeDlg() override = default;
146 public:
147 virtual const GDIMetaFile& GetGDIMetaFile() const = 0;
150 class AbstractSdPublishingDlg : public VclAbstractDialog
152 protected:
153 virtual ~AbstractSdPublishingDlg() override = default;
154 public:
155 virtual void GetParameterSequence( css::uno::Sequence< css::beans::PropertyValue >& rParams ) = 0;
158 class AbstractHeaderFooterDialog : public VclAbstractDialog
160 protected:
161 virtual ~AbstractHeaderFooterDialog() override = default;
164 class SdAbstractDialogFactory
166 public:
167 SD_DLLPUBLIC static SdAbstractDialogFactory* Create();
169 virtual VclPtr<AbstractSvxBulletAndPositionDlg> CreateSvxBulletAndPositionDlg(weld::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView) = 0;
170 virtual VclPtr<VclAbstractDialog> CreateBreakDlg(weld::Window* pWindow, ::sd::DrawView* pDrView, ::sd::DrawDocShell* pShell, sal_uLong nSumActionCount, sal_uLong nObjCount ) = 0;
171 virtual VclPtr<AbstractCopyDlg> CreateCopyDlg(weld::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView ) = 0;
172 virtual VclPtr<AbstractSdCustomShowDlg> CreateSdCustomShowDlg(weld::Window* pWindow, SdDrawDocument& rDrawDoc) = 0;
173 virtual VclPtr<SfxAbstractTabDialog> CreateSdTabCharDialog(weld::Window* pWindow, const SfxItemSet* pAttr, SfxObjectShell* pDocShell) = 0;
174 virtual VclPtr<SfxAbstractTabDialog> CreateSdTabPageDialog(weld::Window* pWindow, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, bool bAreaPage, bool bIsImpressDoc, bool bIsImpressMaster) = 0;
175 virtual VclPtr<AbstractSdModifyFieldDlg> CreateSdModifyFieldDlg(weld::Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet) = 0;
176 virtual VclPtr<AbstractSdSnapLineDlg> CreateSdSnapLineDlg(weld::Window* pParent, const SfxItemSet& rInAttrs, ::sd::View* pView) = 0;
177 virtual VclPtr<AbstractSdInsertLayerDlg> CreateSdInsertLayerDlg(weld::Window* pParent, const SfxItemSet& rInAttrs, bool bDeletable, const OUString& rStr) = 0;
178 virtual VclPtr<AbstractSdInsertPagesObjsDlg> CreateSdInsertPagesObjsDlg(weld::Window* pParent, const SdDrawDocument* pDoc, SfxMedium* pSfxMedium, const OUString& rFileName) = 0;
179 virtual VclPtr<AbstractMorphDlg> CreateMorphDlg(weld::Window* pParent, const SdrObject* pObj1, const SdrObject* pObj2) = 0;
180 virtual VclPtr<SfxAbstractTabDialog> CreateSdOutlineBulletTabDlg(weld::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView) = 0;
181 virtual VclPtr<SfxAbstractTabDialog> CreateSdParagraphTabDlg(weld::Window* pWindow, const SfxItemSet* pAttr) = 0;
182 virtual VclPtr<AbstractSdStartPresDlg> CreateSdStartPresentationDlg(weld::Window* pWindow, const SfxItemSet& rInAttrs,
183 const std::vector<OUString> &rPageNames, SdCustomShowList* pCSList ) = 0;
184 virtual VclPtr<VclAbstractDialog> CreateRemoteDialog(weld::Window* pWindow) = 0;
185 virtual VclPtr<SfxAbstractTabDialog> CreateSdPresLayoutTemplateDlg(SfxObjectShell* pDocSh, weld::Window* pParent, bool bBackgroundDlg, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool) = 0;
186 virtual VclPtr<AbstractSdPresLayoutDlg> CreateSdPresLayoutDlg(weld::Window* pParent, ::sd::DrawDocShell* pDocShell, const SfxItemSet& rInAttrs) = 0;
187 virtual VclPtr<SfxAbstractTabDialog> CreateSdTabTemplateDlg(weld::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView) = 0;
188 virtual VclPtr<SfxAbstractDialog> CreatSdActionDialog(weld::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView) = 0;
189 virtual VclPtr<AbstractSdVectorizeDlg> CreateSdVectorizeDlg(weld::Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell) = 0;
190 virtual VclPtr<AbstractSdPublishingDlg> CreateSdPublishingDlg(weld::Window* pWindow, DocumentType eDocType) = 0;
192 virtual VclPtr<VclAbstractDialog> CreateMasterLayoutDialog(weld::Window* pParent, SdDrawDocument* pDoc, SdPage*) = 0;
194 virtual VclPtr<AbstractHeaderFooterDialog> CreateHeaderFooterDialog(sd::ViewShell* pViewShell,
195 weld::Window* pParent,
196 SdDrawDocument* pDoc,
197 SdPage* pCurrentPage) = 0;
199 virtual CreateTabPage GetSdOptionsContentsTabPageCreatorFunc() = 0;
200 virtual CreateTabPage GetSdPrintOptionsTabPageCreatorFunc() = 0;
201 virtual CreateTabPage GetSdOptionsMiscTabPageCreatorFunc() = 0;
202 virtual CreateTabPage GetSdOptionsSnapTabPageCreatorFunc() = 0;
204 virtual VclPtr<VclAbstractDialog> CreateSdPhotoAlbumDialog(weld::Window* pWindow, SdDrawDocument* pDoc) = 0;
206 protected:
207 ~SdAbstractDialogFactory() {}
210 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */