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 .
21 #include <svx/svxdlg.hxx>
22 #include <svx/zoom_def.hxx>
23 #include <com/sun/star/container/XNameReplace.hpp>
25 #include <tools/link.hxx>
26 #include <com/sun/star/frame/XFrame.hpp>
28 #include <cfgutil.hxx>
29 #include <cui/cuicharmap.hxx>
30 #include <cui/dlgname.hxx>
31 #include <cuifmsearch.hxx>
32 #include <cuigaldlg.hxx>
33 #include <cuigrfflt.hxx>
34 #include <cuihyperdlg.hxx>
35 #include <cuiimapwnd.hxx>
36 #include <cuisrchdlg.hxx>
37 #include <cuitabarea.hxx>
38 #include <cuitbxform.hxx>
39 #include <DiagramDialog.hxx>
40 #include <hangulhanjadlg.hxx>
44 #include <linkdlg.hxx>
45 #include <multipat.hxx>
46 #include <optdict.hxx>
47 #include <passwdomdlg.hxx>
48 #include <pastedlg.hxx>
49 #include <postdlg.hxx>
50 #include <QrCodeGenDialog.hxx>
51 #include <screenshotannotationdlg.hxx>
52 #include <showcols.hxx>
53 #include <SignatureLineDialog.hxx>
54 #include <SignSignatureLineDialog.hxx>
55 #include <SpellDialog.hxx>
56 #include <srchxtra.hxx>
57 #include <thesdlg.hxx>
58 #include <transfrm.hxx>
60 #include <AdditionsDialog.hxx>
62 #define DECL_ABSTDLG_CLASS_(Class,Base,Dialog,StdPtr) \
63 class Class##_Impl final : public Base \
65 StdPtr<Dialog> m_xDlg; \
67 explicit Class##_Impl(StdPtr<Dialog> p) : m_xDlg(std::move(p)) {} \
68 virtual short Execute() override;
70 #define DECL_ABSTDLG_CLASS_UNIQUE(Class,Base,Dialog) \
71 DECL_ABSTDLG_CLASS_(Class,Base,Dialog,std::unique_ptr)
73 #define DECL_ABSTDLG_CLASS_SHARED(Class,Base,Dialog) \
74 DECL_ABSTDLG_CLASS_(Class,Base,Dialog,std::shared_ptr)
76 #define IMPL_ABSTDLG_CLASS(Class) \
77 short Class##_Impl::Execute() \
79 return m_xDlg->run(); \
82 #define DECL_ABSTDLG_CLASS(Class,Dialog) \
83 DECL_ABSTDLG_CLASS_UNIQUE(Class,Class,Dialog)
85 // Async AKA std::shared_ptr
87 #define DECL_ABSTDLG_CLASS_SHARED_ASYNC(Class,Base,Dialog) \
88 DECL_ABSTDLG_CLASS_SHARED(Class,Base,Dialog) \
89 virtual bool StartExecuteAsync(AsyncContext &rCtx) override;
91 #define DECL_ABSTDLG_CLASS_ASYNC(Class,Dialog) \
92 DECL_ABSTDLG_CLASS_SHARED_ASYNC(Class,Class,Dialog)
94 #define IMPL_ABSTDLG_CLASS_ASYNC(Class,Dialog) \
95 short Class##_Impl::Execute() \
97 return m_xDlg->run(); \
99 bool Class##_Impl::StartExecuteAsync(AsyncContext &rCtx) \
101 return Dialog::runAsync(m_xDlg, rCtx.maEndDialogFn); \
104 // CuiAbstractController_Impl
105 DECL_ABSTDLG_CLASS_UNIQUE(CuiAbstractController
, VclAbstractDialog
, weld::DialogController
)
108 // CuiAbstractControllerAsync_Impl
109 DECL_ABSTDLG_CLASS_SHARED_ASYNC(CuiAbstractControllerAsync
, VclAbstractDialog
, weld::DialogController
)
112 // CuiAbstractWidgetTestControllerAsync_Impl
113 DECL_ABSTDLG_CLASS_SHARED_ASYNC(CuiAbstractWidgetTestControllerAsync
, VclAbstractDialog
, weld::GenericDialogController
)
116 // CuiAbstractSingleTabController_Impl
117 DECL_ABSTDLG_CLASS_UNIQUE(CuiAbstractSingleTabController
, SfxAbstractDialog
, SfxSingleTabDialogController
)
118 virtual const SfxItemSet
* GetOutputItemSet() const override
;
120 virtual void SetText( const OUString
& rStr
) override
;
123 // CuiAbstractTabController_Impl
124 DECL_ABSTDLG_CLASS_SHARED_ASYNC(CuiAbstractTabController
, SfxAbstractTabDialog
, SfxTabDialogController
)
125 virtual void SetCurPageId( const OUString
&rName
) override
;
126 virtual const SfxItemSet
* GetOutputItemSet() const override
;
127 virtual WhichRangesContainer
GetInputRanges( const SfxItemPool
& pItem
) override
;
128 virtual void SetInputSet( const SfxItemSet
* pInSet
) override
;
129 virtual void SetText( const OUString
& rStr
) override
;
132 virtual std::vector
<OUString
> getAllPageUIXMLDescriptions() const override
;
133 virtual bool selectPageByUIXMLDescription(const OUString
& rUIXMLDescription
) override
;
134 virtual BitmapEx
createScreenshot() const override
;
135 virtual OUString
GetScreenshotId() const override
;
138 // AbstractHangulHanjaConversionDialog_Impl
139 DECL_ABSTDLG_CLASS_UNIQUE(AbstractHangulHanjaConversionDialog
,AbstractHangulHanjaConversionDialog
,svx::HangulHanjaConversionDialog
)
140 virtual void EndDialog(sal_Int32 nResult
) override
;
141 virtual void EnableRubySupport( bool _bVal
) override
;
142 virtual void SetByCharacter( bool _bByCharacter
) override
;
143 virtual void SetConversionDirectionState( bool _bTryBothDirections
, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection
) override
;
144 virtual void SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType
) override
;
145 virtual void SetOptionsChangedHdl( const Link
<LinkParamNone
*,void>& _rHdl
) override
;
146 virtual void SetIgnoreHdl( const Link
<weld::Button
&,void>& _rHdl
) override
;
147 virtual void SetIgnoreAllHdl( const Link
<weld::Button
&,void>& _rHdl
) override
;
148 virtual void SetChangeHdl( const Link
<weld::Button
&,void>& _rHdl
) override
;
149 virtual void SetChangeAllHdl( const Link
<weld::Button
&,void>& rHdl
) override
;
150 virtual void SetClickByCharacterHdl( const Link
<weld::Toggleable
&,void>& rHdl
) override
;
151 virtual void SetConversionFormatChangedHdl( const Link
<weld::Toggleable
&,void>& _rHdl
) override
;
152 virtual void SetFindHdl( const Link
<weld::Button
&,void>& _rHdl
) override
;
153 virtual bool GetUseBothDirections( ) const override
;
154 virtual editeng::HangulHanjaConversion::ConversionDirection
155 GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection
) const override
;
156 virtual void SetCurrentString(
157 const OUString
& _rNewString
,
158 const css::uno::Sequence
< OUString
>& _rSuggestions
,
159 bool _bOriginatesFromDocument
= true
161 virtual OUString
GetCurrentString( ) const override
;
162 virtual editeng::HangulHanjaConversion::ConversionFormat
163 GetConversionFormat( ) const override
;
164 virtual void FocusSuggestion( ) override
;
165 virtual OUString
GetCurrentSuggestion( ) const override
;
168 // AbstractThesaurusDialog_Impl
169 DECL_ABSTDLG_CLASS_ASYNC(AbstractThesaurusDialog
,SvxThesaurusDialog
)
170 virtual OUString
GetWord() override
;
173 // AbstractHyphenWordDialog_Impl
174 DECL_ABSTDLG_CLASS(AbstractHyphenWordDialog
,SvxHyphenWordDialog
)
177 // AbstractFmShowColsDialog_Impl
178 DECL_ABSTDLG_CLASS(AbstractFmShowColsDialog
,FmShowColsDialog
)
179 virtual void SetColumns(const css::uno::Reference
< css::container::XIndexContainer
>& xCols
) override
;
182 // AbstractSvxZoomDialog_Impl
183 DECL_ABSTDLG_CLASS(AbstractSvxZoomDialog
,SvxZoomDialog
)
184 virtual void SetLimits( sal_uInt16 nMin
, sal_uInt16 nMax
) override
;
185 virtual void HideButton( ZoomButtonId nBtnId
) override
;
186 virtual const SfxItemSet
* GetOutputItemSet() const override
;
189 // AbstractSpellDialog_Impl
190 DECL_ABSTDLG_CLASS_SHARED_ASYNC(AbstractSpellDialog
, AbstractSpellDialog
, svx::SpellDialog
)
191 virtual void InvalidateDialog() override
;
192 virtual std::shared_ptr
<SfxDialogController
> GetController() override
;
193 virtual SfxBindings
& GetBindings() override
;
196 // AbstractTitleDialog_Impl
197 DECL_ABSTDLG_CLASS(AbstractTitleDialog
,TitleDialog
)
198 virtual OUString
GetTitle() const override
;
202 // AbstractScriptSelectorDialog_Impl
203 DECL_ABSTDLG_CLASS_ASYNC(AbstractScriptSelectorDialog
,SvxScriptSelectorDialog
)
204 virtual OUString
GetScriptURL() const override
;
205 virtual void SetRunLabel() override
;
208 // AbstractGalleryIdDialog_Impl
209 DECL_ABSTDLG_CLASS(AbstractGalleryIdDialog
,GalleryIdDialog
)
210 virtual sal_uInt32
GetId() const override
;
213 // AbstractURLDlg_Impl
214 DECL_ABSTDLG_CLASS(AbstractURLDlg
, URLDlg
)
215 virtual OUString
GetURL() const override
;
216 virtual OUString
GetAltText() const override
;
217 virtual OUString
GetDesc() const override
;
218 virtual OUString
GetTarget() const override
;
219 virtual OUString
GetName() const override
;
222 // AbstractSvxSearchSimilarityDialog_Impl
223 DECL_ABSTDLG_CLASS(AbstractSvxSearchSimilarityDialog
,SvxSearchSimilarityDialog
)
224 virtual sal_uInt16
GetOther() override
;
225 virtual sal_uInt16
GetShorter() override
;
226 virtual sal_uInt16
GetLonger() override
;
227 virtual bool IsRelaxed() override
;
230 // AbstractSvxJSearchOptionsDialog_Impl
231 DECL_ABSTDLG_CLASS(AbstractSvxJSearchOptionsDialog
,SvxJSearchOptionsDialog
)
232 virtual TransliterationFlags
GetTransliterationFlags() const override
;
235 // AbstractSvxTransformTabDialog_Impl
236 DECL_ABSTDLG_CLASS_ASYNC(AbstractSvxTransformTabDialog
,SvxTransformTabDialog
)
237 virtual void SetValidateFramePosLink( const Link
<SvxSwFrameValidation
&,void>& rLink
) override
;
238 virtual void SetCurPageId( const OUString
& rName
) override
;
239 virtual const SfxItemSet
* GetOutputItemSet() const override
;
240 virtual WhichRangesContainer
GetInputRanges( const SfxItemPool
& pItem
) override
;
241 virtual void SetInputSet( const SfxItemSet
* pInSet
) override
;
242 virtual void SetText( const OUString
& rStr
) override
;
245 // AbstractSvxCaptionDialog_Impl
246 DECL_ABSTDLG_CLASS_ASYNC(AbstractSvxCaptionDialog
,SvxCaptionTabDialog
)
247 virtual void SetValidateFramePosLink( const Link
<SvxSwFrameValidation
&,void>& rLink
) override
;
248 virtual void SetCurPageId( const OUString
& rName
) override
;
249 virtual const SfxItemSet
* GetOutputItemSet() const override
;
250 virtual WhichRangesContainer
GetInputRanges( const SfxItemPool
& pItem
) override
;
251 virtual void SetInputSet( const SfxItemSet
* pInSet
) override
;
252 virtual void SetText( const OUString
& rStr
) override
;
255 // AbstractFmInputRecordNoDialog_Impl
256 DECL_ABSTDLG_CLASS(AbstractFmInputRecordNoDialog
,FmInputRecordNoDialog
)
257 virtual void SetValue(tools::Long nNew
) override
;
258 virtual tools::Long
GetValue() const override
;
261 // AbstractSvxNewDictionaryDialog_Impl
262 DECL_ABSTDLG_CLASS(AbstractSvxNewDictionaryDialog
,SvxNewDictionaryDialog
)
263 virtual css::uno::Reference
< css::linguistic2::XDictionary
> GetNewDictionary() override
;
266 // AbstractSvxNameDialog_Impl
267 DECL_ABSTDLG_CLASS(AbstractSvxNameDialog
,SvxNameDialog
)
268 virtual void GetName( OUString
& rName
) override
;
269 virtual void SetCheckNameHdl( const Link
<AbstractSvxNameDialog
&,bool>& rLink
, bool bCheckImmediately
= false ) override
;
270 virtual void SetCheckNameTooltipHdl( const Link
<AbstractSvxNameDialog
&, OUString
>& rLink
) override
;
271 virtual void SetEditHelpId(const OUString
&) override
;
273 virtual void SetHelpId( const OUString
& ) override
;
274 virtual void SetText( const OUString
& rStr
) override
;
277 Link
<AbstractSvxNameDialog
&,bool> aCheckNameHdl
;
278 Link
<AbstractSvxNameDialog
&,OUString
> aCheckNameTooltipHdl
;
279 DECL_LINK(CheckNameHdl
, SvxNameDialog
&, bool);
280 DECL_LINK(CheckNameTooltipHdl
, SvxNameDialog
&, OUString
);
283 class SvxObjectNameDialog
;
284 class SvxObjectTitleDescDialog
;
286 // AbstractSvxObjectNameDialog_Impl
287 DECL_ABSTDLG_CLASS(AbstractSvxObjectNameDialog
,SvxObjectNameDialog
)
288 virtual void GetName(OUString
& rName
) override
;
289 virtual void SetCheckNameHdl(const Link
<AbstractSvxObjectNameDialog
&,bool>& rLink
) override
;
292 Link
<AbstractSvxObjectNameDialog
&,bool> aCheckNameHdl
;
293 DECL_LINK(CheckNameHdl
, SvxObjectNameDialog
&, bool);
296 // AbstractSvxObjectTitleDescDialog_Impl
297 DECL_ABSTDLG_CLASS(AbstractSvxObjectTitleDescDialog
,SvxObjectTitleDescDialog
)
298 virtual void GetTitle(OUString
& rName
) override
;
299 virtual void GetDescription(OUString
& rName
) override
;
300 virtual void IsDecorative(bool & rIsDecorative
) override
;
303 // AbstractSvxMultiPathDialog_Impl
304 DECL_ABSTDLG_CLASS(AbstractSvxMultiPathDialog
,SvxMultiPathDialog
)
305 virtual OUString
GetPath() const override
;
306 virtual void SetPath( const OUString
& rPath
) override
;
307 virtual void SetTitle( const OUString
& rNewTitle
) override
;
310 // AbstractSvxPathSelectDialog_Impl
311 DECL_ABSTDLG_CLASS_UNIQUE(AbstractSvxPathSelectDialog
,AbstractSvxMultiPathDialog
,SvxPathSelectDialog
)
312 virtual OUString
GetPath() const override
;
313 virtual void SetPath( const OUString
& rPath
) override
;
314 virtual void SetTitle( const OUString
& rNewTitle
) override
;
317 // AbstractSvxHpLinkDlg_Impl
318 DECL_ABSTDLG_CLASS_SHARED(AbstractSvxHpLinkDlg
,AbstractSvxHpLinkDlg
,SvxHpLinkDlg
)
319 virtual std::shared_ptr
<SfxDialogController
> GetController() override
;
320 virtual bool QueryClose() override
;
323 // AbstractFmSearchDialog_Impl
324 struct FmFoundRecordInformation
;
325 DECL_ABSTDLG_CLASS(AbstractFmSearchDialog
,FmSearchDialog
)
326 virtual void SetFoundHandler(const Link
<FmFoundRecordInformation
&,void>& lnk
) override
;
327 virtual void SetCanceledNotFoundHdl(const Link
<FmFoundRecordInformation
&,void>& lnk
) override
;
328 virtual void SetActiveField(const OUString
& strField
) override
;
331 // AbstractGraphicFilterDialog_Impl
332 DECL_ABSTDLG_CLASS(AbstractGraphicFilterDialog
,GraphicFilterDialog
)
333 virtual Graphic
GetFilteredGraphic( const Graphic
& rGraphic
, double fScaleX
, double fScaleY
) override
;
336 // AbstractSvxAreaTabDialog_Impl
337 DECL_ABSTDLG_CLASS_ASYNC(AbstractSvxAreaTabDialog
,SvxAreaTabDialog
)
338 virtual void SetCurPageId(const OUString
& rName
) override
;
339 virtual const SfxItemSet
* GetOutputItemSet() const override
;
340 virtual WhichRangesContainer
GetInputRanges( const SfxItemPool
& pItem
) override
;
341 virtual void SetInputSet(const SfxItemSet
* pInSet
) override
;
342 virtual void SetText(const OUString
& rStr
) override
;
345 // AbstractInsertObjectDialog_Impl
346 DECL_ABSTDLG_CLASS_UNIQUE(AbstractInsertObjectDialog
,SfxAbstractInsertObjectDialog
,InsertObjectDialog_Impl
)
347 virtual css::uno::Reference
< css::embed::XEmbeddedObject
> GetObject() override
;
348 virtual css::uno::Reference
< css::io::XInputStream
> GetIconIfIconified( OUString
* pGraphicMediaType
) override
;
349 virtual bool IsCreateNew() override
;
352 // AbstractPasteDialog_Impl
353 DECL_ABSTDLG_CLASS_SHARED_ASYNC(AbstractPasteDialog
,SfxAbstractPasteDialog
,SvPasteObjectDialog
)
354 virtual void Insert( SotClipboardFormatId nFormat
, const OUString
& rFormatName
) override
;
355 virtual void InsertUno( const OUString
& sCmd
, const OUString
& sLabel
) override
;
356 virtual void SetObjName( const SvGlobalName
& rClass
, const OUString
& rObjName
) override
;
357 virtual void PreGetFormat( const TransferableDataHelper
& aHelper
) override
;
358 virtual SotClipboardFormatId
GetFormatOnly() override
;
359 virtual SotClipboardFormatId
GetFormat( const TransferableDataHelper
& aHelper
) override
;
362 // AbstractLinksDialog_Impl
363 DECL_ABSTDLG_CLASS_UNIQUE(AbstractLinksDialog
,SfxAbstractLinksDialog
,SvBaseLinksDlg
)
366 // AbstractSvxPostItDialog_Impl
367 DECL_ABSTDLG_CLASS(AbstractSvxPostItDialog
,SvxPostItDialog
)
368 virtual void SetText( const OUString
& rStr
) override
; //From class Window
369 virtual const SfxItemSet
* GetOutputItemSet() const override
;
370 virtual void SetPrevHdl( const Link
<AbstractSvxPostItDialog
&,void>& rLink
) override
;
371 virtual void SetNextHdl( const Link
<AbstractSvxPostItDialog
&,void>& rLink
) override
;
372 virtual void EnableTravel(bool bNext
, bool bPrev
) override
;
373 virtual OUString
GetNote() override
;
374 virtual void SetNote(const OUString
& rTxt
) override
;
375 virtual void ShowLastAuthor(const OUString
& rAuthor
, const OUString
& rDate
) override
;
376 virtual void DontChangeAuthor() override
;
377 virtual void HideAuthor() override
;
378 virtual std::shared_ptr
<weld::Dialog
> GetDialog() override
;
380 Link
<AbstractSvxPostItDialog
&,void> aNextHdl
;
381 Link
<AbstractSvxPostItDialog
&,void> aPrevHdl
;
382 DECL_LINK(NextHdl
, SvxPostItDialog
&, void);
383 DECL_LINK(PrevHdl
, SvxPostItDialog
&, void);
386 // AbstractPasswordToOpenModifyDialog_Impl
387 DECL_ABSTDLG_CLASS_SHARED_ASYNC(AbstractPasswordToOpenModifyDialog
,AbstractPasswordToOpenModifyDialog
, PasswordToOpenModifyDialog
)
388 virtual OUString
GetPasswordToOpen() const override
;
389 virtual OUString
GetPasswordToModify() const override
;
390 virtual bool IsRecommendToOpenReadonly() const override
;
391 virtual void Response(sal_Int32
) override
;
392 virtual void AllowEmpty() override
;
395 // AbstractSvxCharacterMapDialog_Impl
396 DECL_ABSTDLG_CLASS_UNIQUE(AbstractSvxCharacterMapDialog
,SfxAbstractDialog
,SvxCharacterMap
)
397 virtual const SfxItemSet
* GetOutputItemSet() const override
;
398 virtual void SetText(const OUString
& rStr
) override
;
401 // AbstractScreenshotAnnotationDlg_Impl
402 DECL_ABSTDLG_CLASS(AbstractScreenshotAnnotationDlg
,ScreenshotAnnotationDlg
)
405 // AbstractSignatureLineDialog_Impl
406 DECL_ABSTDLG_CLASS(AbstractSignatureLineDialog
,SignatureLineDialog
)
409 // AbstractQrCodeGenDialog_Impl
410 DECL_ABSTDLG_CLASS(AbstractQrCodeGenDialog
,QrCodeGenDialog
)
413 // AbstractSignSignatureLineDialog_Impl
414 DECL_ABSTDLG_CLASS(AbstractSignSignatureLineDialog
,SignSignatureLineDialog
)
417 // AbstractAdditionsDialog_Impl
418 DECL_ABSTDLG_CLASS(AbstractAdditionsDialog
,weld::GenericDialogController
)
421 // AbstractDiagramDialog_Impl
422 DECL_ABSTDLG_CLASS(AbstractDiagramDialog
,DiagramDialog
)
425 //AbstractDialogFactory_Impl implementations
426 class AbstractDialogFactory_Impl
: public SvxAbstractDialogFactory
429 virtual VclPtr
<VclAbstractDialog
> CreateVclDialog(weld::Window
* pParent
, sal_uInt32 nResId
) override
;
431 virtual VclPtr
<SfxAbstractDialog
> CreateSfxDialog( weld::Window
* pParent
,
432 const SfxItemSet
& rAttr
,
433 const SdrView
* pView
,
434 sal_uInt32 nResId
) override
;
435 virtual VclPtr
<SfxAbstractDialog
> CreateCharMapDialog(weld::Window
* pParent
,
436 const SfxItemSet
& rAttr
,
437 const css::uno::Reference
< css::frame::XFrame
>& rFrame
) override
;
438 virtual VclPtr
<SfxAbstractDialog
> CreateEventConfigDialog(weld::Widget
* pParent
,
439 const SfxItemSet
& rAttr
,
440 const css::uno::Reference
< css::frame::XFrame
>& rFrame
) override
;
441 virtual VclPtr
<VclAbstractDialog
> CreateFrameDialog(weld::Window
* pParent
, const css::uno::Reference
< css::frame::XFrame
>& rxFrame
,
443 const OUString
& rParameter
) override
;
444 virtual VclPtr
<SfxAbstractTabDialog
> CreateAutoCorrTabDialog(weld::Window
* pParent
, const SfxItemSet
* pAttrSet
) override
;
445 virtual VclPtr
<SfxAbstractTabDialog
> CreateCustomizeTabDialog(weld::Window
* pParent
,
446 const SfxItemSet
* pAttrSet
,
447 const css::uno::Reference
< css::frame::XFrame
>& xViewFrame
) override
;
448 virtual VclPtr
<SfxAbstractTabDialog
> CreateTextTabDialog( weld::Window
* pParent
,
449 const SfxItemSet
* pAttrSet
,
450 SdrView
* pView
) override
;
451 virtual VclPtr
<SfxAbstractTabDialog
> CreateTabItemDialog(weld::Window
* pParent
, const SfxItemSet
& rSet
) override
;
452 virtual VclPtr
<AbstractSvxCaptionDialog
>
453 CreateCaptionDialog(weld::Window
* pParent
,
454 const SdrView
* pView
,
455 SvxAnchorIds nAnchorTypes
= SvxAnchorIds::NONE
) override
;
456 virtual VclPtr
<SfxAbstractInsertObjectDialog
>
457 CreateInsertObjectDialog(weld::Window
* pParent
, const OUString
& rCommand
,
458 const css::uno::Reference
< css::embed::XStorage
>& xStor
,
459 const SvObjectServerList
* pList
) override
;
460 virtual VclPtr
<VclAbstractDialog
> CreateEditObjectDialog(weld::Window
* pParent
, const OUString
& rCommand
,
461 const css::uno::Reference
< css::embed::XEmbeddedObject
>& xObj
) override
;
462 virtual VclPtr
<SfxAbstractPasteDialog
> CreatePasteDialog(weld::Window
* pParent
) override
;
463 virtual VclPtr
<SfxAbstractLinksDialog
> CreateLinksDialog(weld::Window
* pParent
, sfx2::LinkManager
* pMgr
, bool bHTML
= false, sfx2::SvBaseLink
* p
=nullptr) override
;
465 virtual VclPtr
<AbstractHangulHanjaConversionDialog
> CreateHangulHanjaConversionDialog(weld::Widget
* pParent
) override
;
466 virtual VclPtr
<AbstractThesaurusDialog
> CreateThesaurusDialog(weld::Widget
*,
467 css::uno::Reference
<css::linguistic2::XThesaurus
> xThesaurus
,
468 const OUString
&rWord
, LanguageType nLanguage
) override
;
470 virtual VclPtr
<AbstractHyphenWordDialog
> CreateHyphenWordDialog(weld::Widget
*,
471 const OUString
&rWord
, LanguageType nLang
,
472 css::uno::Reference
< css::linguistic2::XHyphenator
> &xHyphen
,
473 SvxSpellWrapper
* pWrapper
) override
;
475 virtual VclPtr
<AbstractFmShowColsDialog
> CreateFmShowColsDialog(weld::Window
* pParent
) override
;
476 virtual VclPtr
<AbstractSvxZoomDialog
> CreateSvxZoomDialog(weld::Window
* pParent
, const SfxItemSet
& rCoreSet
) override
;
477 // add for SvxBorderBackgroundDlg
478 virtual VclPtr
<SfxAbstractTabDialog
> CreateSvxBorderBackgroundDlg(
479 weld::Window
* pParent
,
480 const SfxItemSet
& rCoreSet
,
481 bool bEnableDrawingLayerFillStyles
) override
;
483 virtual VclPtr
<AbstractSvxTransformTabDialog
> CreateSvxTransformTabDialog(weld::Window
* pParent
,
484 const SfxItemSet
* pAttr
,
485 const SdrView
* pView
,
486 SvxAnchorIds nAnchorTypes
= SvxAnchorIds::NONE
) override
;
487 virtual VclPtr
<SfxAbstractTabDialog
> CreateSchTransformTabDialog(weld::Window
* pParent
,
488 const SfxItemSet
* pAttr
,
489 const SdrView
* pSdrView
,
490 bool bSizeTabPage
) override
;
491 virtual VclPtr
<AbstractSpellDialog
> CreateSvxSpellDialog(
492 weld::Window
* pParent
,
493 SfxBindings
* pBindings
,
494 svx::SpellDialogChildWindow
* pSpellChildWindow
) override
;
496 virtual VclPtr
<VclAbstractDialog
> CreateActualizeProgressDialog(weld::Widget
* pParent
, GalleryTheme
* pThm
) override
;
497 virtual VclPtr
<AbstractTitleDialog
> CreateTitleDialog(weld::Widget
* pParent
, const OUString
& rOldText
) override
;
498 virtual VclPtr
<AbstractGalleryIdDialog
> CreateGalleryIdDialog(weld::Widget
* pParent
,
499 GalleryTheme
* pThm
) override
;
500 virtual VclPtr
<VclAbstractDialog
> CreateGalleryThemePropertiesDialog(weld::Widget
* pParent
,
502 SfxItemSet
* pItemSet
) override
;
504 virtual VclPtr
<AbstractURLDlg
> CreateURLDialog(weld::Widget
* pParent
,
505 const OUString
& rURL
, const OUString
& rAltText
, const OUString
& rDescription
,
506 const OUString
& rTarget
, const OUString
& rName
,
507 TargetList
& rTargetList
) override
;
509 virtual VclPtr
<VclAbstractDialog
> CreateSvxSearchAttributeDialog(weld::Window
* pParent
,
510 SearchAttrItemList
& rLst
,
511 const WhichRangesContainer
& pWhRanges
) override
;
512 virtual VclPtr
<AbstractSvxSearchSimilarityDialog
> CreateSvxSearchSimilarityDialog( weld::Window
* pParent
,
516 sal_uInt16 nLonger
) override
;
517 virtual VclPtr
<AbstractSvxJSearchOptionsDialog
> CreateSvxJSearchOptionsDialog(weld::Window
* pParent
,
518 const SfxItemSet
& rOptionsSet
,
519 TransliterationFlags nInitialFlags
) override
;
520 virtual VclPtr
<AbstractFmInputRecordNoDialog
> CreateFmInputRecordNoDialog(weld::Window
* pParent
) override
;
521 virtual VclPtr
<AbstractSvxNewDictionaryDialog
> CreateSvxNewDictionaryDialog(weld::Window
* pParent
) override
;
522 virtual VclPtr
<VclAbstractDialog
> CreateSvxEditDictionaryDialog(weld::Window
* pParent
, const OUString
& rName
) override
;
523 virtual VclPtr
<AbstractSvxNameDialog
> CreateSvxNameDialog(weld::Window
* pParent
,
524 const OUString
& rName
, const OUString
& rDesc
) override
;
526 virtual VclPtr
<AbstractSvxObjectNameDialog
> CreateSvxObjectNameDialog(weld::Window
* pParent
, const OUString
& rName
) override
;
527 virtual VclPtr
<AbstractSvxObjectTitleDescDialog
> CreateSvxObjectTitleDescDialog(weld::Window
* pParent
, const OUString
& rTitle
, const OUString
& rDescription
, bool isDecorative
) override
;
528 virtual VclPtr
<AbstractSvxMultiPathDialog
> CreateSvxMultiPathDialog(weld::Window
* pParent
) override
;
529 virtual VclPtr
<AbstractSvxMultiPathDialog
> CreateSvxPathSelectDialog(weld::Window
* pParent
) override
;
530 virtual VclPtr
<AbstractSvxHpLinkDlg
> CreateSvxHpLinkDlg(SfxChildWindow
* pChild
, SfxBindings
* pBindings
, weld::Window
* pParent
) override
;
531 virtual VclPtr
<AbstractFmSearchDialog
> CreateFmSearchDialog(weld::Window
* pParent
,
532 const OUString
& strInitialText
,
533 const std::vector
< OUString
>& _rContexts
,
534 sal_Int16 nInitialContext
,
535 const Link
<FmSearchContext
&,sal_uInt32
>& lnkContextSupplier
) override
;
536 virtual VclPtr
<AbstractGraphicFilterDialog
> CreateGraphicFilterEmboss(weld::Window
* pParent
,
537 const Graphic
& rGraphic
) override
;
538 virtual VclPtr
<AbstractGraphicFilterDialog
> CreateGraphicFilterPoster(weld::Window
* pParent
,
539 const Graphic
& rGraphic
) override
;
540 virtual VclPtr
<AbstractGraphicFilterDialog
> CreateGraphicFilterSepia(weld::Window
* pParent
,
541 const Graphic
& rGraphic
) override
;
542 virtual VclPtr
<AbstractGraphicFilterDialog
> CreateGraphicFilterSmooth(weld::Window
* pParent
,
543 const Graphic
& rGraphic
, double nRadius
) override
;
544 virtual VclPtr
<AbstractGraphicFilterDialog
> CreateGraphicFilterSolarize(weld::Window
* pParent
,
545 const Graphic
& rGraphic
) override
;
546 virtual VclPtr
<AbstractGraphicFilterDialog
> CreateGraphicFilterMosaic(weld::Window
* pParent
,
547 const Graphic
& rGraphic
) override
;
548 virtual VclPtr
<AbstractSvxAreaTabDialog
> CreateSvxAreaTabDialog(weld::Window
* pParent
,
549 const SfxItemSet
* pAttr
,
552 bool bSlideBackground
) override
;
553 virtual VclPtr
<SfxAbstractTabDialog
> CreateSvxLineTabDialog(weld::Window
* pParent
, const SfxItemSet
* pAttr
,
555 const SdrObject
* pObj
,
556 bool bHasObj
) override
;
557 virtual VclPtr
<AbstractSvxPostItDialog
> CreateSvxPostItDialog(weld::Widget
* pParent
,
558 const SfxItemSet
& rCoreSet
,
559 bool bPrevNext
= false) override
;
562 virtual CreateTabPage
GetTabPageCreatorFunc( sal_uInt16 nId
) override
;
564 virtual GetTabPageRanges
GetTabPageRangesFunc( sal_uInt16 nId
) override
;
565 virtual DialogGetRanges
GetDialogGetRangesFunc() override
;
566 virtual VclPtr
<VclAbstractDialog
> CreateSvxScriptOrgDialog(weld::Window
* pParent
, const OUString
& rLanguage
) override
;
568 virtual VclPtr
<AbstractScriptSelectorDialog
> CreateScriptSelectorDialog(weld::Window
* pParent
,
569 const css::uno::Reference
< css::frame::XFrame
>& rxFrame
) override
;
571 virtual void ShowAsyncScriptErrorDialog(weld::Window
* pParent
, const css::uno::Any
& rException
) override
;
573 virtual VclPtr
<VclAbstractDialog
> CreateSvxMacroAssignDlg(
574 weld::Window
* _pParent
,
575 const css::uno::Reference
< css::frame::XFrame
>& _rxDocumentFrame
,
576 const bool _bUnoDialogMode
,
577 const css::uno::Reference
< css::container::XNameReplace
>& _rxEvents
,
578 const sal_uInt16 _nInitiallySelectedEvent
581 virtual VclPtr
<SfxAbstractTabDialog
> CreateSvxFormatCellsDialog(weld::Window
* pParent
, const SfxItemSet
* pAttr
, const SdrModel
& rModel
, bool bStyle
) override
;
583 virtual VclPtr
<SvxAbstractSplitTableDialog
> CreateSvxSplitTableDialog(weld::Window
* pParent
, bool bIsTableVertical
, tools::Long nMaxVertical
) override
;
585 virtual std::shared_ptr
<SvxAbstractNewTableDialog
> CreateSvxNewTableDialog(weld::Window
* pParent
) override
;
587 virtual VclPtr
<VclAbstractDialog
> CreateOptionsDialog(
588 weld::Window
* pParent
, const OUString
& rExtensionId
) override
;
590 virtual VclPtr
<SvxAbstractInsRowColDlg
> CreateSvxInsRowColDlg(weld::Window
* pParent
, bool bCol
, const OUString
& rHelpId
) override
;
592 virtual VclPtr
<AbstractPasswordToOpenModifyDialog
> CreatePasswordToOpenModifyDialog(weld::Window
* pParent
, sal_uInt16 nMaxPasswdLen
, bool bIsPasswordToModify
) override
;
594 virtual VclPtr
<AbstractScreenshotAnnotationDlg
> CreateScreenshotAnnotationDlg(weld::Dialog
& rParentDialog
) override
;
596 virtual VclPtr
<AbstractSignatureLineDialog
>
597 CreateSignatureLineDialog(weld::Window
* pParent
,
598 const css::uno::Reference
<css::frame::XModel
> xModel
, bool bEditExisting
) override
;
600 virtual VclPtr
<AbstractSignSignatureLineDialog
>
601 CreateSignSignatureLineDialog(weld::Window
* pParent
,
602 const css::uno::Reference
<css::frame::XModel
> xModel
) override
;
604 virtual VclPtr
<AbstractQrCodeGenDialog
>
605 CreateQrCodeGenDialog(weld::Window
* pParent
,
606 const css::uno::Reference
<css::frame::XModel
> xModel
, bool bEditExisting
) override
;
608 virtual VclPtr
<AbstractAdditionsDialog
>
609 CreateAdditionsDialog(weld::Window
* pParent
, const OUString
& sAdditionsTag
) override
;
611 virtual VclPtr
<VclAbstractDialog
> CreateAboutDialog(weld::Window
* pParent
) override
;
613 virtual VclPtr
<VclAbstractDialog
> CreateTipOfTheDayDialog(weld::Window
* pParent
) override
;
615 virtual VclPtr
<VclAbstractDialog
> CreateWidgetTestDialog(weld::Window
* pParent
) override
;
617 virtual VclPtr
<VclAbstractDialog
> CreateToolbarmodeDialog(weld::Window
* pParent
) override
;
619 virtual VclPtr
<AbstractDiagramDialog
> CreateDiagramDialog(
620 weld::Window
* pParent
,
621 SdrObjGroup
& rDiagram
) override
;
624 virtual VclPtr
<VclAbstractDialog
> CreateFileExtCheckDialog(weld::Window
* pParent
,
625 const OUString
& sTitle
,
626 const OUString
& sMsg
) override
;
630 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */