1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
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"
49 class SfxStyleSheetBasePool
;
50 class SfxStyleSheetBase
;
55 class SdCustomShowList
;
56 class SfxAbstractDialog
;
57 class SfxAbstractTabDialog
;
59 class AbstractCopyDlg
: public VclAbstractDialog
62 virtual ~AbstractCopyDlg() override
= default;
64 virtual void GetAttr( SfxItemSet
& rOutAttrs
) = 0;
67 class AbstractSdCustomShowDlg
: public VclAbstractDialog
70 virtual ~AbstractSdCustomShowDlg() override
= default;
72 virtual bool IsCustomShow() const = 0;
75 class AbstractSdModifyFieldDlg
: public VclAbstractDialog
78 virtual ~AbstractSdModifyFieldDlg() override
= default;
80 virtual SvxFieldData
* GetField() = 0;
81 virtual SfxItemSet
GetItemSet() = 0;
84 class AbstractSdSnapLineDlg
: public VclAbstractDialog
87 virtual ~AbstractSdSnapLineDlg() override
= default;
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
99 virtual ~AbstractSdInsertLayerDlg() override
= default;
101 virtual void GetAttr( SfxItemSet
& rOutAttrs
) = 0;
102 virtual void SetHelpId( const OUString
& rHelpId
) = 0;
105 class AbstractSdInsertPagesObjsDlg
: public VclAbstractDialog
108 virtual ~AbstractSdInsertPagesObjsDlg() override
= default;
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
118 virtual ~AbstractMorphDlg() override
= default;
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
129 virtual ~AbstractSdStartPresDlg() override
= default;
131 virtual void GetAttr( SfxItemSet
& rOutAttrs
) = 0;
134 class AbstractSdPresLayoutDlg
: public VclAbstractDialog
137 virtual ~AbstractSdPresLayoutDlg() override
= default;
139 virtual void GetAttr(SfxItemSet
& rOutAttrs
) = 0;
142 class AbstractSdVectorizeDlg
: public VclAbstractDialog
145 virtual ~AbstractSdVectorizeDlg() override
= default;
147 virtual const GDIMetaFile
& GetGDIMetaFile() const = 0;
150 class AbstractSdPublishingDlg
: public VclAbstractDialog
153 virtual ~AbstractSdPublishingDlg() override
= default;
155 virtual void GetParameterSequence( css::uno::Sequence
< css::beans::PropertyValue
>& rParams
) = 0;
158 class AbstractHeaderFooterDialog
: public VclAbstractDialog
161 virtual ~AbstractHeaderFooterDialog() override
= default;
164 class SdAbstractDialogFactory
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;
207 ~SdAbstractDialogFactory() {}
210 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */