LibreOffice Module sd (master) 1
sdabstdlg.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <vector>
22
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>
29
30#include <com/sun/star/beans/PropertyValue.hpp>
31
32#include "prlayout.hxx"
33#include "pres.hxx"
34#include "sddllapi.h"
35
36namespace sd {
37 class View;
38 class ViewShell;
39 class DrawDocShell;
40 class DrawView;
41}
42
43class SfxObjectShell;
44class SvxFieldData;
45class GDIMetaFile;
46class SdDrawDocument;
47class SfxMedium;
48class SdrObject;
51class SdrModel;
52class SdrView;
53class Bitmap;
54class SdPage;
58
60{
61protected:
62 virtual ~AbstractCopyDlg() override = default;
63public:
64 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0;
65};
66
68{
69protected:
70 virtual ~AbstractSdCustomShowDlg() override = default;
71public:
72 virtual bool IsCustomShow() const = 0;
73};
74
76{
77protected:
78 virtual ~AbstractSdModifyFieldDlg() override = default;
79public:
80 virtual SvxFieldData* GetField() = 0;
81 virtual SfxItemSet GetItemSet() = 0;
82};
83
85{
86protected:
87 virtual ~AbstractSdSnapLineDlg() override = default;
88public:
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;
94};
95
97{
98protected:
99 virtual ~AbstractSdInsertLayerDlg() override = default;
100public:
101 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0;
102 virtual void SetHelpId( const OUString& rHelpId ) = 0;
103};
104
106{
107protected:
108 virtual ~AbstractSdInsertPagesObjsDlg() override = default;
109public:
110 virtual std::vector<OUString> GetList ( const sal_uInt16 nType ) = 0;
111 virtual bool IsLink() = 0;
112 virtual bool IsRemoveUnnecessaryMasterPages() const = 0;
113};
114
116{
117protected:
118 virtual ~AbstractMorphDlg() override = default;
119public:
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;
124};
125
127{
128protected:
129 virtual ~AbstractSdStartPresDlg() override = default;
130public:
131 virtual void GetAttr( SfxItemSet& rOutAttrs ) = 0;
132};
133
135{
136protected:
137 virtual ~AbstractSdPresLayoutDlg() override = default;
138public:
139 virtual void GetAttr(SfxItemSet& rOutAttrs) = 0;
140};
141
143{
144protected:
145 virtual ~AbstractSdVectorizeDlg() override = default;
146public:
147 virtual const GDIMetaFile& GetGDIMetaFile() const = 0;
148};
149
151{
152protected:
153 virtual ~AbstractSdPublishingDlg() override = default;
154public:
155 virtual void GetParameterSequence( css::uno::Sequence< css::beans::PropertyValue >& rParams ) = 0;
156};
157
159{
160protected:
161 virtual ~AbstractHeaderFooterDialog() override = default;
162};
163
165{
166public:
168
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;
174 virtual VclPtr<SfxAbstractTabDialog> CreateSdTabPageDialog(weld::Window* pWindow, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, bool bAreaPage, bool bIsImpressDoc, bool bIsImpressMaster) = 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;
183 const std::vector<OUString> &rPageNames, SdCustomShowList* pCSList ) = 0;
187 virtual VclPtr<SfxAbstractTabDialog> CreateSdTabTemplateDlg(weld::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView) = 0;
191
193
195 weld::Window* pParent,
196 SdDrawDocument* pDoc,
197 SdPage* pCurrentPage) = 0;
198
203
205
206protected:
208};
209
210/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~AbstractCopyDlg() override=default
virtual void GetAttr(SfxItemSet &rOutAttrs)=0
virtual ~AbstractHeaderFooterDialog() override=default
virtual bool IsOrientationFade() const =0
virtual bool IsAttributeFade() const =0
virtual void SaveSettings() const =0
virtual ~AbstractMorphDlg() override=default
virtual sal_uInt16 GetFadeSteps() const =0
virtual bool IsCustomShow() const =0
virtual ~AbstractSdCustomShowDlg() override=default
virtual void GetAttr(SfxItemSet &rOutAttrs)=0
virtual void SetHelpId(const OUString &rHelpId)=0
virtual ~AbstractSdInsertLayerDlg() override=default
virtual bool IsRemoveUnnecessaryMasterPages() const =0
virtual std::vector< OUString > GetList(const sal_uInt16 nType)=0
virtual ~AbstractSdInsertPagesObjsDlg() override=default
virtual SvxFieldData * GetField()=0
virtual ~AbstractSdModifyFieldDlg() override=default
virtual SfxItemSet GetItemSet()=0
virtual void GetAttr(SfxItemSet &rOutAttrs)=0
virtual ~AbstractSdPresLayoutDlg() override=default
virtual ~AbstractSdPublishingDlg() override=default
virtual void GetParameterSequence(css::uno::Sequence< css::beans::PropertyValue > &rParams)=0
virtual void HideRadioGroup()=0
virtual ~AbstractSdSnapLineDlg() override=default
virtual void SetText(const OUString &rStr)=0
virtual void SetInputFields(bool bEnableX, bool bEnableY)=0
virtual void GetAttr(SfxItemSet &rOutAttrs)=0
virtual void HideDeleteBtn()=0
virtual void GetAttr(SfxItemSet &rOutAttrs)=0
virtual ~AbstractSdStartPresDlg() override=default
virtual const GDIMetaFile & GetGDIMetaFile() const =0
virtual ~AbstractSdVectorizeDlg() override=default
virtual VclPtr< SfxAbstractTabDialog > CreateSdTabCharDialog(weld::Window *pWindow, const SfxItemSet *pAttr, SfxObjectShell *pDocShell)=0
virtual CreateTabPage GetSdPrintOptionsTabPageCreatorFunc()=0
virtual VclPtr< SfxAbstractTabDialog > CreateSdTabTemplateDlg(weld::Window *pParent, const SfxObjectShell *pDocShell, SfxStyleSheetBase &rStyleBase, SdrModel *pModel, SdrView *pView)=0
virtual VclPtr< AbstractSdPublishingDlg > CreateSdPublishingDlg(weld::Window *pWindow, DocumentType eDocType)=0
virtual VclPtr< AbstractSvxBulletAndPositionDlg > CreateSvxBulletAndPositionDlg(weld::Window *pParent, const SfxItemSet *pAttr, ::sd::View *pView)=0
virtual VclPtr< VclAbstractDialog > CreateRemoteDialog(weld::Window *pWindow)=0
virtual VclPtr< VclAbstractDialog > CreateBreakDlg(weld::Window *pWindow, ::sd::DrawView *pDrView, ::sd::DrawDocShell *pShell, sal_uLong nSumActionCount, sal_uLong nObjCount)=0
virtual VclPtr< SfxAbstractDialog > CreatSdActionDialog(weld::Window *pParent, const SfxItemSet *pAttr, ::sd::View *pView)=0
virtual VclPtr< AbstractCopyDlg > CreateCopyDlg(weld::Window *pWindow, const SfxItemSet &rInAttrs, ::sd::View *pView)=0
virtual VclPtr< SfxAbstractTabDialog > CreateSdTabPageDialog(weld::Window *pWindow, const SfxItemSet *pAttr, SfxObjectShell *pDocShell, bool bAreaPage, bool bIsImpressDoc, bool bIsImpressMaster)=0
virtual VclPtr< VclAbstractDialog > CreateSdPhotoAlbumDialog(weld::Window *pWindow, SdDrawDocument *pDoc)=0
virtual CreateTabPage GetSdOptionsContentsTabPageCreatorFunc()=0
virtual VclPtr< AbstractSdModifyFieldDlg > CreateSdModifyFieldDlg(weld::Window *pWindow, const SvxFieldData *pInField, const SfxItemSet &rSet)=0
virtual VclPtr< AbstractSdInsertPagesObjsDlg > CreateSdInsertPagesObjsDlg(weld::Window *pParent, const SdDrawDocument *pDoc, SfxMedium *pSfxMedium, const OUString &rFileName)=0
virtual VclPtr< SfxAbstractTabDialog > CreateSdOutlineBulletTabDlg(weld::Window *pParent, const SfxItemSet *pAttr, ::sd::View *pView)=0
virtual VclPtr< AbstractSdSnapLineDlg > CreateSdSnapLineDlg(weld::Window *pParent, const SfxItemSet &rInAttrs, ::sd::View *pView)=0
virtual VclPtr< AbstractSdVectorizeDlg > CreateSdVectorizeDlg(weld::Window *pParent, const Bitmap &rBmp, ::sd::DrawDocShell *pDocShell)=0
virtual VclPtr< AbstractSdCustomShowDlg > CreateSdCustomShowDlg(weld::Window *pWindow, SdDrawDocument &rDrawDoc)=0
virtual VclPtr< VclAbstractDialog > CreateMasterLayoutDialog(weld::Window *pParent, SdDrawDocument *pDoc, SdPage *)=0
virtual VclPtr< AbstractMorphDlg > CreateMorphDlg(weld::Window *pParent, const SdrObject *pObj1, const SdrObject *pObj2)=0
virtual VclPtr< SfxAbstractTabDialog > CreateSdPresLayoutTemplateDlg(SfxObjectShell *pDocSh, weld::Window *pParent, bool bBackgroundDlg, SfxStyleSheetBase &rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool *pSSPool)=0
virtual VclPtr< AbstractSdInsertLayerDlg > CreateSdInsertLayerDlg(weld::Window *pParent, const SfxItemSet &rInAttrs, bool bDeletable, const OUString &rStr)=0
virtual VclPtr< SfxAbstractTabDialog > CreateSdParagraphTabDlg(weld::Window *pWindow, const SfxItemSet *pAttr)=0
static SD_DLLPUBLIC SdAbstractDialogFactory * Create()
Definition: sdabstdlg.cxx:38
virtual VclPtr< AbstractSdStartPresDlg > CreateSdStartPresentationDlg(weld::Window *pWindow, const SfxItemSet &rInAttrs, const std::vector< OUString > &rPageNames, SdCustomShowList *pCSList)=0
virtual CreateTabPage GetSdOptionsMiscTabPageCreatorFunc()=0
virtual VclPtr< AbstractSdPresLayoutDlg > CreateSdPresLayoutDlg(weld::Window *pParent, ::sd::DrawDocShell *pDocShell, const SfxItemSet &rInAttrs)=0
virtual VclPtr< AbstractHeaderFooterDialog > CreateHeaderFooterDialog(sd::ViewShell *pViewShell, weld::Window *pParent, SdDrawDocument *pDoc, SdPage *pCurrentPage)=0
virtual CreateTabPage GetSdOptionsSnapTabPageCreatorFunc()=0
Derivative of sd::View; contains also a pointer to the document.
Definition: drawview.hxx:35
Base class of the stacked shell hierarchy.
Definition: ViewShell.hxx:92
DocumentType
PresentationObjects
Definition: prlayout.hxx:29
#define SD_DLLPUBLIC
Definition: sddllapi.h:27
sal_uIntPtr sal_uLong
std::unique_ptr< SfxTabPage >(* CreateTabPage)(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)