poppler: Upgrade 24.05.0
[LibreOffice.git] / cui / source / factory / dlgfact.hxx
bloba10837f6cd48d16d447a33b1db73bfdcd78f6d9b
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 <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 <svx/cuicharmap.hxx>
30 #include <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>
41 #include <hyphen.hxx>
42 #include <insdlg.hxx>
43 #include <labdlg.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 <securityoptions.hxx>
53 #include <showcols.hxx>
54 #include <SignatureLineDialog.hxx>
55 #include <SignSignatureLineDialog.hxx>
56 #include <SpellDialog.hxx>
57 #include <srchxtra.hxx>
58 #include <thesdlg.hxx>
59 #include <transfrm.hxx>
60 #include <zoom.hxx>
61 #include <AdditionsDialog.hxx>
63 #define DECL_ABSTDLG_CLASS_(Class,Base,Dialog,StdPtr) \
64 class Class##_Impl final : public Base \
65 { \
66 StdPtr<Dialog> m_xDlg; \
67 public: \
68 explicit Class##_Impl(StdPtr<Dialog> p) : m_xDlg(std::move(p)) {} \
69 virtual short Execute() override;
71 #define DECL_ABSTDLG_CLASS_UNIQUE(Class,Base,Dialog) \
72 DECL_ABSTDLG_CLASS_(Class,Base,Dialog,std::unique_ptr)
74 #define DECL_ABSTDLG_CLASS_SHARED(Class,Base,Dialog) \
75 DECL_ABSTDLG_CLASS_(Class,Base,Dialog,std::shared_ptr)
77 #define IMPL_ABSTDLG_CLASS(Class) \
78 short Class##_Impl::Execute() \
79 { \
80 return m_xDlg->run(); \
83 #define DECL_ABSTDLG_CLASS(Class,Dialog) \
84 DECL_ABSTDLG_CLASS_UNIQUE(Class,Class,Dialog)
86 // Async AKA std::shared_ptr
88 #define DECL_ABSTDLG_CLASS_SHARED_ASYNC(Class,Base,Dialog) \
89 DECL_ABSTDLG_CLASS_SHARED(Class,Base,Dialog) \
90 virtual bool StartExecuteAsync(AsyncContext &rCtx) override;
92 #define DECL_ABSTDLG_CLASS_ASYNC(Class,Dialog) \
93 DECL_ABSTDLG_CLASS_SHARED_ASYNC(Class,Class,Dialog)
95 #define IMPL_ABSTDLG_CLASS_ASYNC(Class,Dialog) \
96 short Class##_Impl::Execute() \
97 { \
98 return m_xDlg->run(); \
99 } \
100 bool Class##_Impl::StartExecuteAsync(AsyncContext &rCtx) \
102 return Dialog::runAsync(m_xDlg, rCtx.maEndDialogFn); \
105 // CuiAbstractController_Impl
106 DECL_ABSTDLG_CLASS_UNIQUE(CuiAbstractController, VclAbstractDialog, weld::DialogController)
109 // CuiAbstractControllerAsync_Impl
110 DECL_ABSTDLG_CLASS_SHARED_ASYNC(CuiAbstractControllerAsync, VclAbstractDialog, weld::DialogController)
113 // CuiAbstractWidgetTestControllerAsync_Impl
114 DECL_ABSTDLG_CLASS_SHARED_ASYNC(CuiAbstractWidgetTestControllerAsync, VclAbstractDialog, weld::GenericDialogController)
117 // CuiAbstractSingleTabController_Impl
118 DECL_ABSTDLG_CLASS_SHARED_ASYNC(CuiAbstractSingleTabController, SfxAbstractDialog, SfxSingleTabDialogController)
119 virtual const SfxItemSet* GetOutputItemSet() const override;
120 //From class Window.
121 virtual void SetText( const OUString& rStr ) override;
124 // CuiAbstractTabController_Impl
125 DECL_ABSTDLG_CLASS_SHARED_ASYNC(CuiAbstractTabController, SfxAbstractTabDialog, SfxTabDialogController)
126 virtual void SetCurPageId( const OUString &rName ) override;
127 virtual const SfxItemSet* GetOutputItemSet() const override;
128 virtual WhichRangesContainer GetInputRanges( const SfxItemPool& pItem ) override;
129 virtual void SetInputSet( const SfxItemSet* pInSet ) override;
130 virtual void SetText( const OUString& rStr ) override;
132 // screenshotting
133 virtual std::vector<OUString> getAllPageUIXMLDescriptions() const override;
134 virtual bool selectPageByUIXMLDescription(const OUString& rUIXMLDescription) override;
135 virtual BitmapEx createScreenshot() const override;
136 virtual OUString GetScreenshotId() const override;
139 // AbstractHangulHanjaConversionDialog_Impl
140 DECL_ABSTDLG_CLASS_UNIQUE(AbstractHangulHanjaConversionDialog,AbstractHangulHanjaConversionDialog,svx::HangulHanjaConversionDialog)
141 virtual void EndDialog(sal_Int32 nResult) override;
142 virtual void EnableRubySupport( bool _bVal ) override;
143 virtual void SetByCharacter( bool _bByCharacter ) override ;
144 virtual void SetConversionDirectionState( bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection ) override;
145 virtual void SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType ) override;
146 virtual void SetOptionsChangedHdl( const Link<LinkParamNone*,void>& _rHdl ) override;
147 virtual void SetIgnoreHdl( const Link<weld::Button&,void>& _rHdl ) override;
148 virtual void SetIgnoreAllHdl( const Link<weld::Button&,void>& _rHdl ) override ;
149 virtual void SetChangeHdl( const Link<weld::Button&,void>& _rHdl ) override ;
150 virtual void SetChangeAllHdl( const Link<weld::Button&,void>& rHdl ) override ;
151 virtual void SetClickByCharacterHdl( const Link<weld::Toggleable&,void>& rHdl ) override ;
152 virtual void SetConversionFormatChangedHdl( const Link<weld::Toggleable&,void>& _rHdl ) override ;
153 virtual void SetFindHdl( const Link<weld::Button&,void>& _rHdl ) override;
154 virtual bool GetUseBothDirections( ) const override;
155 virtual editeng::HangulHanjaConversion::ConversionDirection
156 GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection ) const override;
157 virtual void SetCurrentString(
158 const OUString& _rNewString,
159 const css::uno::Sequence< OUString >& _rSuggestions,
160 bool _bOriginatesFromDocument = true
161 ) override;
162 virtual OUString GetCurrentString( ) const override ;
163 virtual editeng::HangulHanjaConversion::ConversionFormat
164 GetConversionFormat( ) const override ;
165 virtual void FocusSuggestion( ) override;
166 virtual OUString GetCurrentSuggestion( ) const override;
169 // AbstractThesaurusDialog_Impl
170 DECL_ABSTDLG_CLASS_ASYNC(AbstractThesaurusDialog,SvxThesaurusDialog)
171 virtual OUString GetWord() override;
174 // AbstractHyphenWordDialog_Impl
175 DECL_ABSTDLG_CLASS(AbstractHyphenWordDialog,SvxHyphenWordDialog)
178 // AbstractFmShowColsDialog_Impl
179 DECL_ABSTDLG_CLASS(AbstractFmShowColsDialog,FmShowColsDialog)
180 virtual void SetColumns(const css::uno::Reference< css::container::XIndexContainer>& xCols) override;
183 // AbstractSvxZoomDialog_Impl
184 DECL_ABSTDLG_CLASS(AbstractSvxZoomDialog,SvxZoomDialog)
185 virtual void SetLimits( sal_uInt16 nMin, sal_uInt16 nMax ) override;
186 virtual void HideButton( ZoomButtonId nBtnId ) override;
187 virtual const SfxItemSet* GetOutputItemSet() const override ;
190 // AbstractSpellDialog_Impl
191 DECL_ABSTDLG_CLASS_SHARED_ASYNC(AbstractSpellDialog, AbstractSpellDialog, svx::SpellDialog)
192 virtual void InvalidateDialog() override;
193 virtual std::shared_ptr<SfxDialogController> GetController() override;
194 virtual SfxBindings& GetBindings() override;
197 // AbstractTitleDialog_Impl
198 DECL_ABSTDLG_CLASS(AbstractTitleDialog,TitleDialog)
199 virtual OUString GetTitle() const override ;
203 // AbstractScriptSelectorDialog_Impl
204 DECL_ABSTDLG_CLASS_ASYNC(AbstractScriptSelectorDialog,SvxScriptSelectorDialog)
205 virtual OUString GetScriptURL() const override;
206 virtual void SetRunLabel() override;
209 // AbstractGalleryIdDialog_Impl
210 DECL_ABSTDLG_CLASS(AbstractGalleryIdDialog,GalleryIdDialog)
211 virtual sal_uInt32 GetId() const override;
214 // AbstractURLDlg_Impl
215 DECL_ABSTDLG_CLASS(AbstractURLDlg, URLDlg)
216 virtual OUString GetURL() const override;
217 virtual OUString GetAltText() const override;
218 virtual OUString GetDesc() const override;
219 virtual OUString GetTarget() const override;
220 virtual OUString GetName() const override;
223 // AbstractSvxSearchSimilarityDialog_Impl
224 DECL_ABSTDLG_CLASS_ASYNC(AbstractSvxSearchSimilarityDialog,SvxSearchSimilarityDialog)
225 virtual sal_uInt16 GetOther() override;
226 virtual sal_uInt16 GetShorter() override;
227 virtual sal_uInt16 GetLonger() override;
228 virtual bool IsRelaxed() override;
231 // AbstractSvxJSearchOptionsDialog_Impl
232 DECL_ABSTDLG_CLASS(AbstractSvxJSearchOptionsDialog,SvxJSearchOptionsDialog)
233 virtual TransliterationFlags GetTransliterationFlags() const override;
236 // AbstractSvxTransformTabDialog_Impl
237 DECL_ABSTDLG_CLASS_ASYNC(AbstractSvxTransformTabDialog,SvxTransformTabDialog)
238 virtual void SetValidateFramePosLink( const Link<SvxSwFrameValidation&,void>& rLink ) override;
239 virtual void SetCurPageId( const OUString& rName ) override;
240 virtual const SfxItemSet* GetOutputItemSet() const override;
241 virtual WhichRangesContainer GetInputRanges( const SfxItemPool& pItem ) override;
242 virtual void SetInputSet( const SfxItemSet* pInSet ) override;
243 virtual void SetText( const OUString& rStr ) override;
246 // AbstractSvxCaptionDialog_Impl
247 DECL_ABSTDLG_CLASS_ASYNC(AbstractSvxCaptionDialog,SvxCaptionTabDialog)
248 virtual void SetValidateFramePosLink( const Link<SvxSwFrameValidation&,void>& rLink ) override;
249 virtual void SetCurPageId( const OUString& rName ) override;
250 virtual const SfxItemSet* GetOutputItemSet() const override;
251 virtual WhichRangesContainer GetInputRanges( const SfxItemPool& pItem ) override;
252 virtual void SetInputSet( const SfxItemSet* pInSet ) override;
253 virtual void SetText( const OUString& rStr ) override;
256 // AbstractFmInputRecordNoDialog_Impl
257 DECL_ABSTDLG_CLASS(AbstractFmInputRecordNoDialog,FmInputRecordNoDialog)
258 virtual void SetValue(tools::Long nNew) override ;
259 virtual tools::Long GetValue() const override ;
262 // AbstractSvxNewDictionaryDialog_Impl
263 DECL_ABSTDLG_CLASS(AbstractSvxNewDictionaryDialog,SvxNewDictionaryDialog)
264 virtual css::uno::Reference< css::linguistic2::XDictionary > GetNewDictionary() override;
267 // AbstractSvxNameDialog_Impl
268 DECL_ABSTDLG_CLASS(AbstractSvxNameDialog,SvxNameDialog)
269 virtual OUString GetName() override;
270 virtual void SetCheckNameHdl( const Link<AbstractSvxNameDialog&,bool>& rLink ) override ;
271 virtual void SetCheckNameTooltipHdl( const Link<AbstractSvxNameDialog&, OUString>& rLink ) override ;
272 virtual void SetEditHelpId(const OUString&) override ;
273 //from class Window
274 virtual void SetHelpId( const OUString& ) override ;
275 virtual void SetText( const OUString& rStr ) override ;
277 private:
278 Link<AbstractSvxNameDialog&,bool> aCheckNameHdl;
279 Link<AbstractSvxNameDialog&,OUString> aCheckNameTooltipHdl;
280 DECL_LINK(CheckNameHdl, SvxNameDialog&, bool);
281 DECL_LINK(CheckNameTooltipHdl, SvxNameDialog&, OUString);
284 class SvxObjectNameDialog;
285 class SvxObjectTitleDescDialog;
287 // AbstractSvxObjectNameDialog_Impl
288 DECL_ABSTDLG_CLASS_ASYNC(AbstractSvxObjectNameDialog,SvxObjectNameDialog)
289 virtual OUString GetName() override;
290 virtual void SetCheckNameHdl(const Link<AbstractSvxObjectNameDialog&,bool>& rLink) override;
292 private:
293 Link<AbstractSvxObjectNameDialog&,bool> aCheckNameHdl;
294 DECL_LINK(CheckNameHdl, SvxObjectNameDialog&, bool);
297 // AbstractSvxObjectTitleDescDialog_Impl
298 DECL_ABSTDLG_CLASS_ASYNC(AbstractSvxObjectTitleDescDialog,SvxObjectTitleDescDialog)
299 virtual OUString GetTitle() override;
300 virtual OUString GetDescription() override;
301 virtual bool IsDecorative() override;
304 // AbstractSvxMultiPathDialog_Impl
305 DECL_ABSTDLG_CLASS(AbstractSvxMultiPathDialog,SvxMultiPathDialog)
306 virtual OUString GetPath() const override;
307 virtual void SetPath( const OUString& rPath ) override;
308 virtual void SetTitle( const OUString& rNewTitle ) override;
311 // AbstractSvxPathSelectDialog_Impl
312 DECL_ABSTDLG_CLASS_UNIQUE(AbstractSvxPathSelectDialog,AbstractSvxMultiPathDialog,SvxPathSelectDialog)
313 virtual OUString GetPath() const override;
314 virtual void SetPath( const OUString& rPath ) override;
315 virtual void SetTitle( const OUString& rNewTitle ) override;
318 // AbstractSvxHpLinkDlg_Impl
319 DECL_ABSTDLG_CLASS_SHARED(AbstractSvxHpLinkDlg,AbstractSvxHpLinkDlg,SvxHpLinkDlg)
320 virtual std::shared_ptr<SfxDialogController> GetController() override;
321 virtual bool QueryClose() override;
324 // AbstractFmSearchDialog_Impl
325 struct FmFoundRecordInformation;
326 DECL_ABSTDLG_CLASS(AbstractFmSearchDialog,FmSearchDialog)
327 virtual void SetFoundHandler(const Link<FmFoundRecordInformation&,void>& lnk) override ;
328 virtual void SetCanceledNotFoundHdl(const Link<FmFoundRecordInformation&,void>& lnk) override;
329 virtual void SetActiveField(const OUString& strField) override;
332 // AbstractGraphicFilterDialog_Impl
333 DECL_ABSTDLG_CLASS_ASYNC(AbstractGraphicFilterDialog,GraphicFilterDialog)
334 virtual Graphic GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY ) override;
337 // AbstractSvxAreaTabDialog_Impl
338 DECL_ABSTDLG_CLASS_ASYNC(AbstractSvxAreaTabDialog,SvxAreaTabDialog)
339 virtual void SetCurPageId(const OUString& rName) override;
340 virtual const SfxItemSet* GetOutputItemSet() const override;
341 virtual WhichRangesContainer GetInputRanges( const SfxItemPool& pItem ) override;
342 virtual void SetInputSet(const SfxItemSet* pInSet) override;
343 virtual void SetText(const OUString& rStr) override;
346 // AbstractInsertObjectDialog_Impl
347 DECL_ABSTDLG_CLASS_UNIQUE(AbstractInsertObjectDialog,SfxAbstractInsertObjectDialog,InsertObjectDialog_Impl)
348 virtual css::uno::Reference < css::embed::XEmbeddedObject > GetObject() override;
349 virtual css::uno::Reference< css::io::XInputStream > GetIconIfIconified( OUString* pGraphicMediaType ) override;
350 virtual bool IsCreateNew() override;
353 // AbstractPasteDialog_Impl
354 DECL_ABSTDLG_CLASS_SHARED_ASYNC(AbstractPasteDialog,SfxAbstractPasteDialog,SvPasteObjectDialog)
355 virtual void Insert( SotClipboardFormatId nFormat, const OUString & rFormatName ) override;
356 virtual void InsertUno( const OUString & sCmd, const OUString& sLabel ) override;
357 virtual void SetObjName( const SvGlobalName & rClass, const OUString & rObjName ) override;
358 virtual void PreGetFormat( const TransferableDataHelper& aHelper ) override;
359 virtual SotClipboardFormatId GetFormatOnly() override;
360 virtual SotClipboardFormatId GetFormat( const TransferableDataHelper& aHelper ) override;
363 // AbstractLinksDialog_Impl
364 DECL_ABSTDLG_CLASS_SHARED_ASYNC(AbstractLinksDialog,SfxAbstractLinksDialog,SvBaseLinksDlg)
367 // AbstractSvxPostItDialog_Impl
368 DECL_ABSTDLG_CLASS(AbstractSvxPostItDialog,SvxPostItDialog)
369 virtual void SetText( const OUString& rStr ) override; //From class Window
370 virtual const SfxItemSet* GetOutputItemSet() const override;
371 virtual void SetPrevHdl( const Link<AbstractSvxPostItDialog&,void>& rLink ) override;
372 virtual void SetNextHdl( const Link<AbstractSvxPostItDialog&,void>& rLink ) override;
373 virtual void EnableTravel(bool bNext, bool bPrev) override;
374 virtual OUString GetNote() override;
375 virtual void SetNote(const OUString& rTxt) override;
376 virtual void ShowLastAuthor(const OUString& rAuthor, const OUString& rDate) override;
377 virtual void DontChangeAuthor() override;
378 virtual void HideAuthor() override;
379 virtual std::shared_ptr<weld::Dialog> GetDialog() override;
380 private:
381 Link<AbstractSvxPostItDialog&,void> aNextHdl;
382 Link<AbstractSvxPostItDialog&,void> aPrevHdl;
383 DECL_LINK(NextHdl, SvxPostItDialog&, void);
384 DECL_LINK(PrevHdl, SvxPostItDialog&, void);
387 // AbstractPasswordToOpenModifyDialog_Impl
388 DECL_ABSTDLG_CLASS_SHARED_ASYNC(AbstractPasswordToOpenModifyDialog,AbstractPasswordToOpenModifyDialog, PasswordToOpenModifyDialog)
389 virtual OUString GetPasswordToOpen() const override;
390 virtual OUString GetPasswordToModify() const override;
391 virtual bool IsRecommendToOpenReadonly() const override;
392 virtual void Response(sal_Int32) override;
393 virtual void AllowEmpty() override;
396 // AbstractSvxCharacterMapDialog_Impl
397 DECL_ABSTDLG_CLASS_SHARED_ASYNC(AbstractSvxCharacterMapDialog,SfxAbstractDialog,SvxCharacterMap)
398 virtual const SfxItemSet* GetOutputItemSet() const override;
399 virtual void SetText(const OUString& rStr) override;
402 // AbstractScreenshotAnnotationDlg_Impl
403 DECL_ABSTDLG_CLASS(AbstractScreenshotAnnotationDlg,ScreenshotAnnotationDlg)
406 // AbstractSecurityOptionsDialog_Impl
407 DECL_ABSTDLG_CLASS(AbstractSecurityOptionsDialog, svx::SecurityOptionsDialog)
408 virtual bool SetSecurityOptions() override;
411 // AbstractSignatureLineDialog_Impl
412 DECL_ABSTDLG_CLASS_ASYNC(AbstractSignatureLineDialog,SignatureLineDialog)
413 virtual void Apply() override { m_xDlg->Apply(); }
416 // AbstractQrCodeGenDialog_Impl
417 DECL_ABSTDLG_CLASS_ASYNC(AbstractQrCodeGenDialog,QrCodeGenDialog)
420 // AbstractSignSignatureLineDialog_Impl
421 DECL_ABSTDLG_CLASS_ASYNC(AbstractSignSignatureLineDialog,SignSignatureLineDialog)
422 virtual void Apply() override { m_xDlg->Apply(); }
425 // AbstractAdditionsDialog_Impl
426 DECL_ABSTDLG_CLASS_ASYNC(AbstractAdditionsDialog,weld::GenericDialogController)
429 // AbstractDiagramDialog_Impl
430 DECL_ABSTDLG_CLASS_ASYNC(AbstractDiagramDialog,DiagramDialog)
433 //AbstractDialogFactory_Impl implementations
434 class AbstractDialogFactory_Impl : public SvxAbstractDialogFactory
436 public:
437 virtual VclPtr<VclAbstractDialog> CreateVclDialog(weld::Window* pParent, sal_uInt32 nResId) override;
439 virtual VclPtr<SfxAbstractDialog> CreateSfxDialog( weld::Window* pParent,
440 const SfxItemSet& rAttr,
441 const SdrView* pView,
442 sal_uInt32 nResId ) override;
443 virtual VclPtr<SfxAbstractDialog> CreateCharMapDialog(weld::Window* pParent,
444 const SfxItemSet& rAttr,
445 const css::uno::Reference< css::frame::XFrame >& rFrame) override;
446 virtual VclPtr<SfxAbstractDialog> CreateEventConfigDialog(weld::Widget* pParent,
447 const SfxItemSet& rAttr,
448 const css::uno::Reference< css::frame::XFrame >& rFrame) override;
449 virtual VclPtr<VclAbstractDialog> CreateFrameDialog(weld::Window* pParent, const css::uno::Reference< css::frame::XFrame >& rxFrame,
450 sal_uInt32 nResId, sal_uInt16 nPageId, const OUString& rParameter) override;
451 virtual VclPtr<SfxAbstractTabDialog> CreateAutoCorrTabDialog(weld::Window* pParent, const SfxItemSet* pAttrSet) override;
452 virtual VclPtr<SfxAbstractTabDialog> CreateCustomizeTabDialog(weld::Window* pParent,
453 const SfxItemSet* pAttrSet,
454 const css::uno::Reference< css::frame::XFrame >& xViewFrame ) override;
455 virtual VclPtr<SfxAbstractTabDialog> CreateTextTabDialog( weld::Window* pParent,
456 const SfxItemSet* pAttrSet,
457 SdrView* pView ) override;
458 virtual VclPtr<SfxAbstractTabDialog> CreateTabItemDialog(weld::Window* pParent, const SfxItemSet& rSet) override;
459 virtual VclPtr<AbstractSvxCaptionDialog>
460 CreateCaptionDialog(weld::Window* pParent,
461 const SdrView* pView,
462 SvxAnchorIds nAnchorTypes = SvxAnchorIds::NONE) override;
463 virtual VclPtr<SfxAbstractInsertObjectDialog>
464 CreateInsertObjectDialog(weld::Window* pParent, const OUString& rCommand,
465 const css::uno::Reference < css::embed::XStorage >& xStor,
466 const SvObjectServerList* pList ) override;
467 virtual VclPtr<VclAbstractDialog> CreateEditObjectDialog(weld::Window* pParent, const OUString& rCommand,
468 const css::uno::Reference < css::embed::XEmbeddedObject >& xObj ) override;
469 virtual VclPtr<SfxAbstractPasteDialog> CreatePasteDialog(weld::Window* pParent) override;
470 virtual VclPtr<SfxAbstractLinksDialog> CreateLinksDialog(weld::Window* pParent, sfx2::LinkManager* pMgr, bool bHTML = false, sfx2::SvBaseLink* p=nullptr) override;
472 virtual VclPtr<AbstractHangulHanjaConversionDialog> CreateHangulHanjaConversionDialog(weld::Widget* pParent) override;
473 virtual VclPtr<AbstractThesaurusDialog> CreateThesaurusDialog(weld::Widget*,
474 css::uno::Reference<css::linguistic2::XThesaurus> xThesaurus,
475 const OUString &rWord, LanguageType nLanguage) override;
477 virtual VclPtr<AbstractHyphenWordDialog> CreateHyphenWordDialog(weld::Widget*,
478 const OUString &rWord, LanguageType nLang,
479 css::uno::Reference< css::linguistic2::XHyphenator > &xHyphen,
480 SvxSpellWrapper* pWrapper) override;
482 virtual VclPtr<AbstractFmShowColsDialog> CreateFmShowColsDialog(weld::Window* pParent) override;
483 virtual VclPtr<AbstractSvxZoomDialog> CreateSvxZoomDialog(weld::Window* pParent, const SfxItemSet& rCoreSet) override;
484 // add for SvxBorderBackgroundDlg
485 virtual VclPtr<SfxAbstractTabDialog> CreateSvxBorderBackgroundDlg(
486 weld::Window* pParent,
487 const SfxItemSet& rCoreSet,
488 bool bEnableDrawingLayerFillStyles) override;
490 virtual VclPtr<AbstractSvxTransformTabDialog> CreateSvxTransformTabDialog(weld::Window* pParent,
491 const SfxItemSet* pAttr,
492 const SdrView* pView,
493 SvxAnchorIds nAnchorTypes = SvxAnchorIds::NONE) override ;
494 virtual VclPtr<SfxAbstractTabDialog> CreateSchTransformTabDialog(weld::Window* pParent,
495 const SfxItemSet* pAttr,
496 const SdrView* pSdrView,
497 bool bSizeTabPage) override;
498 virtual VclPtr<AbstractSpellDialog> CreateSvxSpellDialog(
499 weld::Window* pParent,
500 SfxBindings* pBindings,
501 svx::SpellDialogChildWindow* pSpellChildWindow ) override;
503 virtual VclPtr<VclAbstractDialog> CreateActualizeProgressDialog(weld::Widget* pParent, GalleryTheme* pThm) override;
504 virtual VclPtr<AbstractTitleDialog> CreateTitleDialog(weld::Widget* pParent, const OUString& rOldText) override;
505 virtual VclPtr<AbstractGalleryIdDialog> CreateGalleryIdDialog(weld::Widget* pParent,
506 GalleryTheme* pThm) override;
507 virtual VclPtr<VclAbstractDialog> CreateGalleryThemePropertiesDialog(weld::Widget* pParent,
508 ExchangeData* pData,
509 SfxItemSet* pItemSet) override;
511 virtual VclPtr<AbstractURLDlg> CreateURLDialog(weld::Widget* pParent,
512 const OUString& rURL, const OUString& rAltText, const OUString& rDescription,
513 const OUString& rTarget, const OUString& rName,
514 TargetList& rTargetList ) override;
516 virtual VclPtr<VclAbstractDialog> CreateSvxSearchAttributeDialog(weld::Window* pParent,
517 SearchAttrItemList& rLst,
518 const WhichRangesContainer& pWhRanges) override;
519 virtual VclPtr<AbstractSvxSearchSimilarityDialog> CreateSvxSearchSimilarityDialog( weld::Window* pParent,
520 bool bRelax,
521 sal_uInt16 nOther,
522 sal_uInt16 nShorter,
523 sal_uInt16 nLonger) override;
524 virtual VclPtr<AbstractSvxJSearchOptionsDialog> CreateSvxJSearchOptionsDialog(weld::Window* pParent,
525 const SfxItemSet& rOptionsSet,
526 TransliterationFlags nInitialFlags) override;
527 virtual VclPtr<AbstractFmInputRecordNoDialog> CreateFmInputRecordNoDialog(weld::Window* pParent) override;
528 virtual VclPtr<AbstractSvxNewDictionaryDialog> CreateSvxNewDictionaryDialog(weld::Window* pParent) override;
529 virtual VclPtr<VclAbstractDialog> CreateSvxEditDictionaryDialog(weld::Window* pParent, const OUString& rName) override;
530 virtual VclPtr<AbstractSvxNameDialog> CreateSvxNameDialog(weld::Window* pParent,
531 const OUString& rName, const OUString& rDesc, const OUString& rTitle = u""_ustr) override;
532 // #i68101#
533 virtual VclPtr<AbstractSvxObjectNameDialog> CreateSvxObjectNameDialog(weld::Window* pParent, const OUString& rName) override;
534 virtual VclPtr<AbstractSvxObjectTitleDescDialog> CreateSvxObjectTitleDescDialog(weld::Window* pParent, const OUString& rTitle, const OUString& rDescription, bool isDecorative) override;
535 virtual VclPtr<AbstractSvxMultiPathDialog> CreateSvxMultiPathDialog(weld::Window* pParent) override;
536 virtual VclPtr<AbstractSvxMultiPathDialog> CreateSvxPathSelectDialog(weld::Window* pParent) override;
537 virtual VclPtr<AbstractSvxHpLinkDlg> CreateSvxHpLinkDlg(SfxChildWindow* pChild, SfxBindings* pBindings, weld::Window* pParent) override;
538 virtual VclPtr<AbstractFmSearchDialog> CreateFmSearchDialog(weld::Window* pParent,
539 const OUString& strInitialText,
540 const std::vector< OUString >& _rContexts,
541 sal_Int16 nInitialContext,
542 const Link<FmSearchContext&,sal_uInt32>& lnkContextSupplier) override;
543 virtual VclPtr<AbstractGraphicFilterDialog> CreateGraphicFilterEmboss(weld::Window* pParent,
544 const Graphic& rGraphic) override;
545 virtual VclPtr<AbstractGraphicFilterDialog> CreateGraphicFilterPoster(weld::Window* pParent,
546 const Graphic& rGraphic) override;
547 virtual VclPtr<AbstractGraphicFilterDialog> CreateGraphicFilterSepia(weld::Window* pParent,
548 const Graphic& rGraphic) override;
549 virtual VclPtr<AbstractGraphicFilterDialog> CreateGraphicFilterSmooth(weld::Window* pParent,
550 const Graphic& rGraphic, double nRadius) override;
551 virtual VclPtr<AbstractGraphicFilterDialog> CreateGraphicFilterSolarize(weld::Window* pParent,
552 const Graphic& rGraphic) override;
553 virtual VclPtr<AbstractGraphicFilterDialog> CreateGraphicFilterMosaic(weld::Window* pParent,
554 const Graphic& rGraphic) override;
555 virtual VclPtr<AbstractSvxAreaTabDialog> CreateSvxAreaTabDialog(weld::Window* pParent,
556 const SfxItemSet* pAttr,
557 SdrModel* pModel,
558 bool bShadow,
559 bool bSlideBackground) override;
560 virtual VclPtr<SfxAbstractTabDialog> CreateSvxLineTabDialog(weld::Window* pParent, const SfxItemSet* pAttr,
561 SdrModel* pModel,
562 const SdrObject* pObj,
563 bool bHasObj ) override;
564 virtual VclPtr<AbstractSvxPostItDialog> CreateSvxPostItDialog(weld::Widget* pParent,
565 const SfxItemSet& rCoreSet,
566 bool bPrevNext = false) override;
568 // For TabPage
569 virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId ) override;
571 virtual GetTabPageRanges GetTabPageRangesFunc( sal_uInt16 nId ) override;
572 virtual DialogGetRanges GetDialogGetRangesFunc() override;
573 virtual VclPtr<VclAbstractDialog> CreateSvxScriptOrgDialog(weld::Window* pParent, const OUString& rLanguage) override;
575 virtual VclPtr<AbstractScriptSelectorDialog> CreateScriptSelectorDialog(weld::Window* pParent,
576 const css::uno::Reference< css::frame::XFrame >& rxFrame) override;
578 virtual void ShowAsyncScriptErrorDialog(weld::Window* pParent, const css::uno::Any& rException) override;
580 virtual VclPtr<VclAbstractDialog> CreateSvxMacroAssignDlg(
581 weld::Window* _pParent,
582 const css::uno::Reference< css::frame::XFrame >& _rxDocumentFrame,
583 const bool _bUnoDialogMode,
584 const css::uno::Reference< css::container::XNameReplace >& _rxEvents,
585 const sal_uInt16 _nInitiallySelectedEvent
586 ) override;
588 virtual VclPtr<SfxAbstractTabDialog> CreateSvxFormatCellsDialog(weld::Window* pParent, const SfxItemSet& rAttr, const SdrModel& rModel, bool bStyle) override;
590 virtual VclPtr<SvxAbstractSplitTableDialog> CreateSvxSplitTableDialog(weld::Window* pParent, bool bIsTableVertical, tools::Long nMaxVertical) override;
592 virtual std::shared_ptr<SvxAbstractNewTableDialog> CreateSvxNewTableDialog(weld::Window* pParent) override ;
594 virtual VclPtr<VclAbstractDialog> CreateOptionsDialog(
595 weld::Window* pParent, const OUString& rExtensionId ) override;
597 virtual VclPtr<SvxAbstractInsRowColDlg> CreateSvxInsRowColDlg(weld::Window* pParent, bool bCol, const OUString& rHelpId) override;
599 virtual VclPtr<AbstractPasswordToOpenModifyDialog> CreatePasswordToOpenModifyDialog(weld::Window* pParent, sal_uInt16 nMaxPasswdLen, bool bIsPasswordToModify) override;
601 virtual VclPtr<AbstractScreenshotAnnotationDlg> CreateScreenshotAnnotationDlg(weld::Dialog& rParentDialog) override;
603 virtual VclPtr<AbstractSecurityOptionsDialog> CreateSvxSecurityOptionsDialog(weld::Window* pParent) override;
605 virtual VclPtr<AbstractSignatureLineDialog>
606 CreateSignatureLineDialog(weld::Window* pParent,
607 const css::uno::Reference<css::frame::XModel> xModel, bool bEditExisting) override;
609 virtual VclPtr<AbstractSignSignatureLineDialog>
610 CreateSignSignatureLineDialog(weld::Window* pParent,
611 const css::uno::Reference<css::frame::XModel> xModel) override;
613 virtual VclPtr<AbstractQrCodeGenDialog>
614 CreateQrCodeGenDialog(weld::Window* pParent,
615 const css::uno::Reference<css::frame::XModel> xModel, bool bEditExisting) override;
617 virtual VclPtr<AbstractAdditionsDialog>
618 CreateAdditionsDialog(weld::Window* pParent, const OUString& sAdditionsTag) override;
620 virtual VclPtr<VclAbstractDialog> CreateAboutDialog(weld::Window* pParent) override;
622 virtual VclPtr<VclAbstractDialog> CreateWhatsNewDialog(weld::Window* pParent, const bool bWelcome) override;
624 virtual VclPtr<VclAbstractDialog> CreateTipOfTheDayDialog(weld::Window* pParent) override;
626 virtual VclPtr<VclAbstractDialog> CreateWidgetTestDialog(weld::Window* pParent) override;
628 virtual VclPtr<VclAbstractDialog> CreateToolbarmodeDialog(weld::Window* pParent) override;
630 virtual VclPtr<AbstractDiagramDialog> CreateDiagramDialog(
631 weld::Window* pParent,
632 SdrObjGroup& rDiagram) override;
634 #ifdef _WIN32
635 virtual VclPtr<VclAbstractDialog> CreateFileExtCheckDialog(weld::Window* pParent,
636 const OUString& sTitle,
637 const OUString& sMsg) override;
638 #endif
641 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */