LibreOffice Module cui (master)  1
dlgfact.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 <svx/svxdlg.hxx>
22 #include <svx/zoom_def.hxx>
23 #include <com/sun/star/container/XNameReplace.hpp>
24 
25 #include <tools/link.hxx>
26 #include <com/sun/star/frame/XFrame.hpp>
27 
28 #include <cfgutil.hxx>
29 #include <cui/cuicharmap.hxx>
30 #include <cuifmsearch.hxx>
31 #include <cuigaldlg.hxx>
32 #include <cuigrfflt.hxx>
33 #include <cuihyperdlg.hxx>
34 #include <cuiimapwnd.hxx>
35 #include <cuisrchdlg.hxx>
36 #include <cuitabarea.hxx>
37 #include <cuitbxform.hxx>
38 #include <dlgname.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>
52 #include <showcols.hxx>
53 #include <SignatureLineDialog.hxx>
55 #include <SpellDialog.hxx>
56 #include <srchxtra.hxx>
57 #include <thesdlg.hxx>
58 #include <transfrm.hxx>
59 #include <zoom.hxx>
60 #include <AdditionsDialog.hxx>
61 
62 #define DECL_ABSTDLG_CLASS_(Class,Base,Dialog,StdPtr) \
63 class Class##_Impl final : public Base \
64 { \
65  StdPtr<Dialog> m_xDlg; \
66 public: \
67  explicit Class##_Impl(StdPtr<Dialog> p) : m_xDlg(std::move(p)) {} \
68  virtual short Execute() override;
69 
70 #define DECL_ABSTDLG_CLASS_UNIQUE(Class,Base,Dialog) \
71 DECL_ABSTDLG_CLASS_(Class,Base,Dialog,std::unique_ptr)
72 
73 #define DECL_ABSTDLG_CLASS_SHARED(Class,Base,Dialog) \
74 DECL_ABSTDLG_CLASS_(Class,Base,Dialog,std::shared_ptr)
75 
76 #define IMPL_ABSTDLG_CLASS(Class) \
77 short Class##_Impl::Execute() \
78 { \
79  return m_xDlg->run(); \
80 }
81 
82 #define DECL_ABSTDLG_CLASS(Class,Dialog) \
83 DECL_ABSTDLG_CLASS_UNIQUE(Class,Class,Dialog)
84 
85 // Async AKA std::shared_ptr
86 
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;
90 
91 #define DECL_ABSTDLG_CLASS_ASYNC(Class,Dialog) \
92 DECL_ABSTDLG_CLASS_SHARED_ASYNC(Class,Class,Dialog)
93 
94 #define IMPL_ABSTDLG_CLASS_ASYNC(Class,Dialog) \
95 short Class##_Impl::Execute() \
96 { \
97  return m_xDlg->run(); \
98 } \
99 bool Class##_Impl::StartExecuteAsync(AsyncContext &rCtx) \
100 { \
101  return Dialog::runAsync(m_xDlg, rCtx.maEndDialogFn); \
102 }
103 
104 // CuiAbstractController_Impl
106 };
107 
108 // CuiAbstractControllerAsync_Impl
110 };
111 
112 // CuiAbstractSingleTabController_Impl
114  virtual const SfxItemSet* GetOutputItemSet() const override;
115  //From class Window.
116  virtual void SetText( const OUString& rStr ) override;
117 };
118 
119 // CuiAbstractTabController_Impl
121  virtual void SetCurPageId( const OString &rName ) override;
122  virtual const SfxItemSet* GetOutputItemSet() const override;
123  virtual WhichRangesContainer GetInputRanges( const SfxItemPool& pItem ) override;
124  virtual void SetInputSet( const SfxItemSet* pInSet ) override;
125  virtual void SetText( const OUString& rStr ) override;
126 
127  // screenshotting
128  virtual std::vector<OString> getAllPageUIXMLDescriptions() const override;
129  virtual bool selectPageByUIXMLDescription(const OString& rUIXMLDescription) override;
130  virtual BitmapEx createScreenshot() const override;
131  virtual OString GetScreenshotId() const override;
132 };
133 
134 // AbstractHangulHanjaConversionDialog_Impl
135 DECL_ABSTDLG_CLASS_UNIQUE(AbstractHangulHanjaConversionDialog,AbstractHangulHanjaConversionDialog,svx::HangulHanjaConversionDialog)
136  virtual void EndDialog(sal_Int32 nResult) override;
137  virtual void EnableRubySupport( bool _bVal ) override;
138  virtual void SetByCharacter( bool _bByCharacter ) override ;
139  virtual void SetConversionDirectionState( bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection ) override;
140  virtual void SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType ) override;
141  virtual void SetOptionsChangedHdl( const Link<LinkParamNone*,void>& _rHdl ) override;
142  virtual void SetIgnoreHdl( const Link<weld::Button&,void>& _rHdl ) override;
143  virtual void SetIgnoreAllHdl( const Link<weld::Button&,void>& _rHdl ) override ;
144  virtual void SetChangeHdl( const Link<weld::Button&,void>& _rHdl ) override ;
145  virtual void SetChangeAllHdl( const Link<weld::Button&,void>& rHdl ) override ;
146  virtual void SetClickByCharacterHdl( const Link<weld::Toggleable&,void>& rHdl ) override ;
147  virtual void SetConversionFormatChangedHdl( const Link<weld::Toggleable&,void>& _rHdl ) override ;
148  virtual void SetFindHdl( const Link<weld::Button&,void>& _rHdl ) override;
149  virtual bool GetUseBothDirections( ) const override;
150  virtual editeng::HangulHanjaConversion::ConversionDirection
151  GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection ) const override;
152  virtual void SetCurrentString(
153  const OUString& _rNewString,
154  const css::uno::Sequence< OUString >& _rSuggestions,
155  bool _bOriginatesFromDocument = true
156  ) override;
157  virtual OUString GetCurrentString( ) const override ;
158  virtual editeng::HangulHanjaConversion::ConversionFormat
159  GetConversionFormat( ) const override ;
160  virtual void FocusSuggestion( ) override;
161  virtual OUString GetCurrentSuggestion( ) const override;
162 };
163 
164 // AbstractThesaurusDialog_Impl
166  virtual OUString GetWord() override;
167 };
168 
169 // AbstractHyphenWordDialog_Impl
171 };
172 
173 // AbstractFmShowColsDialog_Impl
175  virtual void SetColumns(const css::uno::Reference< css::container::XIndexContainer>& xCols) override;
176 };
177 
178 // AbstractSvxZoomDialog_Impl
180  virtual void SetLimits( sal_uInt16 nMin, sal_uInt16 nMax ) override;
181  virtual void HideButton( ZoomButtonId nBtnId ) override;
182  virtual const SfxItemSet* GetOutputItemSet() const override ;
183 };
184 
185 // AbstractSpellDialog_Impl
186 DECL_ABSTDLG_CLASS_SHARED_ASYNC(AbstractSpellDialog, AbstractSpellDialog, svx::SpellDialog)
187  virtual void InvalidateDialog() override;
188  virtual std::shared_ptr<SfxDialogController> GetController() override;
189  virtual SfxBindings& GetBindings() override;
190 };
191 
192 // AbstractTitleDialog_Impl
194  virtual OUString GetTitle() const override ;
195 
196 };
197 
198 // AbstractScriptSelectorDialog_Impl
200  virtual OUString GetScriptURL() const override;
201  virtual void SetRunLabel() override;
202 };
203 
204 // AbstractGalleryIdDialog_Impl
206  virtual sal_uInt32 GetId() const override;
207 };
208 
209 // AbstractURLDlg_Impl
211  virtual OUString GetURL() const override;
212  virtual OUString GetAltText() const override;
213  virtual OUString GetDesc() const override;
214  virtual OUString GetTarget() const override;
215  virtual OUString GetName() const override;
216 };
217 
218 // AbstractSvxSearchSimilarityDialog_Impl
220  virtual sal_uInt16 GetOther() override;
221  virtual sal_uInt16 GetShorter() override;
222  virtual sal_uInt16 GetLonger() override;
223  virtual bool IsRelaxed() override;
224 };
225 
226 // AbstractSvxJSearchOptionsDialog_Impl
228  virtual TransliterationFlags GetTransliterationFlags() const override;
229 };
230 
231 // AbstractSvxTransformTabDialog_Impl
233  virtual void SetValidateFramePosLink( const Link<SvxSwFrameValidation&,void>& rLink ) override;
234  virtual void SetCurPageId( const OString& rName ) override;
235  virtual const SfxItemSet* GetOutputItemSet() const override;
236  virtual WhichRangesContainer GetInputRanges( const SfxItemPool& pItem ) override;
237  virtual void SetInputSet( const SfxItemSet* pInSet ) override;
238  virtual void SetText( const OUString& rStr ) override;
239 };
240 
241 // AbstractSvxCaptionDialog_Impl
243  virtual void SetValidateFramePosLink( const Link<SvxSwFrameValidation&,void>& rLink ) override;
244  virtual void SetCurPageId( const OString& rName ) override;
245  virtual const SfxItemSet* GetOutputItemSet() const override;
246  virtual WhichRangesContainer GetInputRanges( const SfxItemPool& pItem ) override;
247  virtual void SetInputSet( const SfxItemSet* pInSet ) override;
248  virtual void SetText( const OUString& rStr ) override;
249 };
250 
251 // AbstractFmInputRecordNoDialog_Impl
253  virtual void SetValue(tools::Long nNew) override ;
254  virtual tools::Long GetValue() const override ;
255 };
256 
257 // AbstractSvxNewDictionaryDialog_Impl
259  virtual css::uno::Reference< css::linguistic2::XDictionary > GetNewDictionary() override;
260 };
261 
262 // AbstractSvxNameDialog_Impl
264  virtual void GetName( OUString& rName ) override ;
265  virtual void SetCheckNameHdl( const Link<AbstractSvxNameDialog&,bool>& rLink, bool bCheckImmediately = false ) override ;
266  virtual void SetCheckNameTooltipHdl( const Link<AbstractSvxNameDialog&, OUString>& rLink ) override ;
267  virtual void SetEditHelpId(const OString&) override ;
268  //from class Window
269  virtual void SetHelpId( const OString& ) override ;
270  virtual void SetText( const OUString& rStr ) override ;
271 
272 private:
273  Link<AbstractSvxNameDialog&,bool> aCheckNameHdl;
274  Link<AbstractSvxNameDialog&,OUString> aCheckNameTooltipHdl;
275  DECL_LINK(CheckNameHdl, SvxNameDialog&, bool);
276  DECL_LINK(CheckNameTooltipHdl, SvxNameDialog&, OUString);
277 };
278 
279 class SvxObjectNameDialog;
281 
282 // AbstractSvxObjectNameDialog_Impl
284  virtual void GetName(OUString& rName) override ;
285  virtual void SetCheckNameHdl(const Link<AbstractSvxObjectNameDialog&,bool>& rLink) override;
286 
287 private:
288  Link<AbstractSvxObjectNameDialog&,bool> aCheckNameHdl;
289  DECL_LINK(CheckNameHdl, SvxObjectNameDialog&, bool);
290 };
291 
292 // AbstractSvxObjectTitleDescDialog_Impl
294  virtual void GetTitle(OUString& rName) override;
295  virtual void GetDescription(OUString& rName) override;
296 };
297 
298 // AbstractSvxMultiPathDialog_Impl
300  virtual OUString GetPath() const override;
301  virtual void SetPath( const OUString& rPath ) override;
302  virtual void SetTitle( const OUString& rNewTitle ) override;
303 };
304 
305 // AbstractSvxPathSelectDialog_Impl
306 DECL_ABSTDLG_CLASS_UNIQUE(AbstractSvxPathSelectDialog,AbstractSvxMultiPathDialog,SvxPathSelectDialog)
307  virtual OUString GetPath() const override;
308  virtual void SetPath( const OUString& rPath ) override;
309  virtual void SetTitle( const OUString& rNewTitle ) override;
310 };
311 
312 // AbstractSvxHpLinkDlg_Impl
314  virtual std::shared_ptr<SfxDialogController> GetController() override;
315  virtual bool QueryClose() override;
316 };
317 
318 // AbstractFmSearchDialog_Impl
321  virtual void SetFoundHandler(const Link<FmFoundRecordInformation&,void>& lnk) override ;
322  virtual void SetCanceledNotFoundHdl(const Link<FmFoundRecordInformation&,void>& lnk) override;
323  virtual void SetActiveField(const OUString& strField) override;
324 };
325 
326 // AbstractGraphicFilterDialog_Impl
328  virtual Graphic GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY ) override;
329 };
330 
331 // AbstractSvxAreaTabDialog_Impl
333  virtual void SetCurPageId(const OString& rName) override;
334  virtual const SfxItemSet* GetOutputItemSet() const override;
335  virtual WhichRangesContainer GetInputRanges( const SfxItemPool& pItem ) override;
336  virtual void SetInputSet(const SfxItemSet* pInSet) override;
337  virtual void SetText(const OUString& rStr) override;
338 };
339 
340 // AbstractInsertObjectDialog_Impl
342  virtual css::uno::Reference < css::embed::XEmbeddedObject > GetObject() override;
343  virtual css::uno::Reference< css::io::XInputStream > GetIconIfIconified( OUString* pGraphicMediaType ) override;
344  virtual bool IsCreateNew() override;
345 };
346 
347 // AbstractPasteDialog_Impl
349  virtual void Insert( SotClipboardFormatId nFormat, const OUString & rFormatName ) override;
350  virtual void InsertUno( const OUString & sCmd, const OUString& sLabel ) override;
351  virtual void SetObjName( const SvGlobalName & rClass, const OUString & rObjName ) override;
352  virtual void PreGetFormat( const TransferableDataHelper& aHelper ) override;
353  virtual SotClipboardFormatId GetFormatOnly() override;
354  virtual SotClipboardFormatId GetFormat( const TransferableDataHelper& aHelper ) override;
355 };
356 
357 // AbstractLinksDialog_Impl
359 };
360 
361 // AbstractSvxPostItDialog_Impl
363  virtual void SetText( const OUString& rStr ) override; //From class Window
364  virtual const SfxItemSet* GetOutputItemSet() const override;
365  virtual void SetPrevHdl( const Link<AbstractSvxPostItDialog&,void>& rLink ) override;
366  virtual void SetNextHdl( const Link<AbstractSvxPostItDialog&,void>& rLink ) override;
367  virtual void EnableTravel(bool bNext, bool bPrev) override;
368  virtual OUString GetNote() override;
369  virtual void SetNote(const OUString& rTxt) override;
370  virtual void ShowLastAuthor(const OUString& rAuthor, const OUString& rDate) override;
371  virtual void DontChangeAuthor() override;
372  virtual void HideAuthor() override;
373  virtual std::shared_ptr<weld::Dialog> GetDialog() override;
374 private:
375  Link<AbstractSvxPostItDialog&,void> aNextHdl;
376  Link<AbstractSvxPostItDialog&,void> aPrevHdl;
377  DECL_LINK(NextHdl, SvxPostItDialog&, void);
378  DECL_LINK(PrevHdl, SvxPostItDialog&, void);
379 };
380 
381 // AbstractPasswordToOpenModifyDialog_Impl
383  virtual OUString GetPasswordToOpen() const override;
384  virtual OUString GetPasswordToModify() const override;
385  virtual bool IsRecommendToOpenReadonly() const override;
386 };
387 
388 // AbstractSvxCharacterMapDialog_Impl
389 DECL_ABSTDLG_CLASS_UNIQUE(AbstractSvxCharacterMapDialog,SfxAbstractDialog,SvxCharacterMap)
390  virtual const SfxItemSet* GetOutputItemSet() const override;
391  virtual void SetText(const OUString& rStr) override;
392 };
393 
394 // AbstractScreenshotAnnotationDlg_Impl
396 };
397 
398 // AbstractSignatureLineDialog_Impl
400 };
401 
402 // AbstractQrCodeGenDialog_Impl
404 };
405 
406 // AbstractSignSignatureLineDialog_Impl
408 };
409 
410 // AbstractAdditionsDialog_Impl
411 DECL_ABSTDLG_CLASS(AbstractAdditionsDialog,weld::GenericDialogController)
412 };
413 
414 // AbstractDiagramDialog_Impl
416 };
417 
418 //AbstractDialogFactory_Impl implementations
420 {
421 public:
422  virtual VclPtr<VclAbstractDialog> CreateVclDialog(weld::Window* pParent, sal_uInt32 nResId) override;
423 
424  virtual VclPtr<SfxAbstractDialog> CreateSfxDialog( weld::Window* pParent,
425  const SfxItemSet& rAttr,
426  const SdrView* pView,
427  sal_uInt32 nResId ) override;
428  virtual VclPtr<SfxAbstractDialog> CreateCharMapDialog(weld::Window* pParent,
429  const SfxItemSet& rAttr,
430  const css::uno::Reference< css::frame::XFrame >& rFrame) override;
431  virtual VclPtr<SfxAbstractDialog> CreateEventConfigDialog(weld::Widget* pParent,
432  const SfxItemSet& rAttr,
433  const css::uno::Reference< css::frame::XFrame >& rFrame) override;
434  virtual VclPtr<VclAbstractDialog> CreateFrameDialog(weld::Window* pParent, const css::uno::Reference< css::frame::XFrame >& rxFrame,
435  sal_uInt32 nResId,
436  const OUString& rParameter ) override;
437  virtual VclPtr<SfxAbstractTabDialog> CreateAutoCorrTabDialog(weld::Window* pParent, const SfxItemSet* pAttrSet) override;
438  virtual VclPtr<SfxAbstractTabDialog> CreateCustomizeTabDialog(weld::Window* pParent,
439  const SfxItemSet* pAttrSet,
440  const css::uno::Reference< css::frame::XFrame >& xViewFrame ) override;
441  virtual VclPtr<SfxAbstractTabDialog> CreateTextTabDialog( weld::Window* pParent,
442  const SfxItemSet* pAttrSet,
443  SdrView* pView ) override;
444  virtual VclPtr<SfxAbstractTabDialog> CreateTabItemDialog(weld::Window* pParent, const SfxItemSet& rSet) override;
446  CreateCaptionDialog(weld::Window* pParent,
447  const SdrView* pView,
448  SvxAnchorIds nAnchorTypes = SvxAnchorIds::NONE) override;
450  CreateInsertObjectDialog(weld::Window* pParent, const OUString& rCommand,
451  const css::uno::Reference < css::embed::XStorage >& xStor,
452  const SvObjectServerList* pList ) override;
453  virtual VclPtr<VclAbstractDialog> CreateEditObjectDialog(weld::Window* pParent, const OUString& rCommand,
454  const css::uno::Reference < css::embed::XEmbeddedObject >& xObj ) override;
455  virtual VclPtr<SfxAbstractPasteDialog> CreatePasteDialog(weld::Window* pParent) override;
456  virtual VclPtr<SfxAbstractLinksDialog> CreateLinksDialog(weld::Window* pParent, sfx2::LinkManager* pMgr, bool bHTML = false, sfx2::SvBaseLink* p=nullptr) override;
457 
458  virtual VclPtr<AbstractHangulHanjaConversionDialog> CreateHangulHanjaConversionDialog(weld::Widget* pParent) override;
459  virtual VclPtr<AbstractThesaurusDialog> CreateThesaurusDialog(weld::Widget*,
460  css::uno::Reference<css::linguistic2::XThesaurus> xThesaurus,
461  const OUString &rWord, LanguageType nLanguage) override;
462 
463  virtual VclPtr<AbstractHyphenWordDialog> CreateHyphenWordDialog(weld::Widget*,
464  const OUString &rWord, LanguageType nLang,
465  css::uno::Reference< css::linguistic2::XHyphenator > &xHyphen,
466  SvxSpellWrapper* pWrapper) override;
467 
468  virtual VclPtr<AbstractFmShowColsDialog> CreateFmShowColsDialog(weld::Window* pParent) override;
469  virtual VclPtr<AbstractSvxZoomDialog> CreateSvxZoomDialog(weld::Window* pParent, const SfxItemSet& rCoreSet) override;
470  // add for SvxBorderBackgroundDlg
471  virtual VclPtr<SfxAbstractTabDialog> CreateSvxBorderBackgroundDlg(
472  weld::Window* pParent,
473  const SfxItemSet& rCoreSet,
474  bool bEnableDrawingLayerFillStyles) override;
475 
476  virtual VclPtr<AbstractSvxTransformTabDialog> CreateSvxTransformTabDialog(weld::Window* pParent,
477  const SfxItemSet* pAttr,
478  const SdrView* pView,
479  SvxAnchorIds nAnchorTypes = SvxAnchorIds::NONE) override ;
480  virtual VclPtr<SfxAbstractTabDialog> CreateSchTransformTabDialog(weld::Window* pParent,
481  const SfxItemSet* pAttr,
482  const SdrView* pSdrView,
483  bool bSizeTabPage) override;
484  virtual VclPtr<AbstractSpellDialog> CreateSvxSpellDialog(
485  weld::Window* pParent,
486  SfxBindings* pBindings,
487  svx::SpellDialogChildWindow* pSpellChildWindow ) override;
488 
489  virtual VclPtr<VclAbstractDialog> CreateActualizeProgressDialog(weld::Widget* pParent, GalleryTheme* pThm) override;
490  virtual VclPtr<AbstractTitleDialog> CreateTitleDialog(weld::Widget* pParent, const OUString& rOldText) override;
491  virtual VclPtr<AbstractGalleryIdDialog> CreateGalleryIdDialog(weld::Widget* pParent,
492  GalleryTheme* pThm) override;
493  virtual VclPtr<VclAbstractDialog> CreateGalleryThemePropertiesDialog(weld::Widget* pParent,
495  SfxItemSet* pItemSet) override;
496 
497  virtual VclPtr<AbstractURLDlg> CreateURLDialog(weld::Widget* pParent,
498  const OUString& rURL, const OUString& rAltText, const OUString& rDescription,
499  const OUString& rTarget, const OUString& rName,
500  TargetList& rTargetList ) override;
501 
502  virtual VclPtr<VclAbstractDialog> CreateSvxSearchAttributeDialog(weld::Window* pParent,
503  SearchAttrItemList& rLst,
504  const WhichRangesContainer& pWhRanges) override;
505  virtual VclPtr<AbstractSvxSearchSimilarityDialog> CreateSvxSearchSimilarityDialog( weld::Window* pParent,
506  bool bRelax,
507  sal_uInt16 nOther,
508  sal_uInt16 nShorter,
509  sal_uInt16 nLonger) override;
510  virtual VclPtr<AbstractSvxJSearchOptionsDialog> CreateSvxJSearchOptionsDialog(weld::Window* pParent,
511  const SfxItemSet& rOptionsSet,
512  TransliterationFlags nInitialFlags) override;
513  virtual VclPtr<AbstractFmInputRecordNoDialog> CreateFmInputRecordNoDialog(weld::Window* pParent) override;
514  virtual VclPtr<AbstractSvxNewDictionaryDialog> CreateSvxNewDictionaryDialog(weld::Window* pParent) override;
515  virtual VclPtr<VclAbstractDialog> CreateSvxEditDictionaryDialog(weld::Window* pParent, const OUString& rName) override;
516  virtual VclPtr<AbstractSvxNameDialog> CreateSvxNameDialog(weld::Window* pParent,
517  const OUString& rName, const OUString& rDesc) override;
518  // #i68101#
519  virtual VclPtr<AbstractSvxObjectNameDialog> CreateSvxObjectNameDialog(weld::Window* pParent, const OUString& rName) override;
520  virtual VclPtr<AbstractSvxObjectTitleDescDialog> CreateSvxObjectTitleDescDialog(weld::Window* pParent, const OUString& rTitle, const OUString& rDescription) override;
521  virtual VclPtr<AbstractSvxMultiPathDialog> CreateSvxMultiPathDialog(weld::Window* pParent) override;
522  virtual VclPtr<AbstractSvxMultiPathDialog> CreateSvxPathSelectDialog(weld::Window* pParent) override;
523  virtual VclPtr<AbstractSvxHpLinkDlg> CreateSvxHpLinkDlg(SfxChildWindow* pChild, SfxBindings* pBindings, weld::Window* pParent) override;
524  virtual VclPtr<AbstractFmSearchDialog> CreateFmSearchDialog(weld::Window* pParent,
525  const OUString& strInitialText,
526  const std::vector< OUString >& _rContexts,
527  sal_Int16 nInitialContext,
528  const Link<FmSearchContext&,sal_uInt32>& lnkContextSupplier) override;
529  virtual VclPtr<AbstractGraphicFilterDialog> CreateGraphicFilterEmboss(weld::Window* pParent,
530  const Graphic& rGraphic) override;
531  virtual VclPtr<AbstractGraphicFilterDialog> CreateGraphicFilterPoster(weld::Window* pParent,
532  const Graphic& rGraphic) override;
533  virtual VclPtr<AbstractGraphicFilterDialog> CreateGraphicFilterSepia(weld::Window* pParent,
534  const Graphic& rGraphic) override;
535  virtual VclPtr<AbstractGraphicFilterDialog> CreateGraphicFilterSmooth(weld::Window* pParent,
536  const Graphic& rGraphic, double nRadius) override;
537  virtual VclPtr<AbstractGraphicFilterDialog> CreateGraphicFilterSolarize(weld::Window* pParent,
538  const Graphic& rGraphic) override;
539  virtual VclPtr<AbstractGraphicFilterDialog> CreateGraphicFilterMosaic(weld::Window* pParent,
540  const Graphic& rGraphic) override;
541  virtual VclPtr<AbstractSvxAreaTabDialog> CreateSvxAreaTabDialog(weld::Window* pParent,
542  const SfxItemSet* pAttr,
543  SdrModel* pModel,
544  bool bShadow) override;
545  virtual VclPtr<SfxAbstractTabDialog> CreateSvxLineTabDialog(weld::Window* pParent, const SfxItemSet* pAttr,
546  SdrModel* pModel,
547  const SdrObject* pObj,
548  bool bHasObj ) override;
549  virtual VclPtr<AbstractSvxPostItDialog> CreateSvxPostItDialog(weld::Widget* pParent,
550  const SfxItemSet& rCoreSet,
551  bool bPrevNext = false) override;
552 
553  // For TabPage
554  virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId ) override;
555 
556  virtual GetTabPageRanges GetTabPageRangesFunc( sal_uInt16 nId ) override;
557  virtual DialogGetRanges GetDialogGetRangesFunc() override;
558  virtual VclPtr<VclAbstractDialog> CreateSvxScriptOrgDialog(weld::Window* pParent, const OUString& rLanguage) override;
559 
560  virtual VclPtr<AbstractScriptSelectorDialog> CreateScriptSelectorDialog(weld::Window* pParent,
561  const css::uno::Reference< css::frame::XFrame >& rxFrame) override;
562 
563  virtual void ShowAsyncScriptErrorDialog(weld::Window* pParent, const css::uno::Any& rException) override;
564 
565  virtual VclPtr<VclAbstractDialog> CreateSvxMacroAssignDlg(
566  weld::Window* _pParent,
567  const css::uno::Reference< css::frame::XFrame >& _rxDocumentFrame,
568  const bool _bUnoDialogMode,
569  const css::uno::Reference< css::container::XNameReplace >& _rxEvents,
570  const sal_uInt16 _nInitiallySelectedEvent
571  ) override;
572 
573  virtual VclPtr<SfxAbstractTabDialog> CreateSvxFormatCellsDialog(weld::Window* pParent, const SfxItemSet* pAttr, const SdrModel& rModel) override;
574 
575  virtual VclPtr<SvxAbstractSplitTableDialog> CreateSvxSplitTableDialog(weld::Window* pParent, bool bIsTableVertical, tools::Long nMaxVertical) override;
576 
577  virtual std::shared_ptr<SvxAbstractNewTableDialog> CreateSvxNewTableDialog(weld::Window* pParent) override ;
578 
579  virtual VclPtr<VclAbstractDialog> CreateOptionsDialog(
580  weld::Window* pParent, const OUString& rExtensionId ) override;
581 
582  virtual VclPtr<SvxAbstractInsRowColDlg> CreateSvxInsRowColDlg(weld::Window* pParent, bool bCol, const OString& rHelpId) override;
583 
584  virtual VclPtr<AbstractPasswordToOpenModifyDialog> CreatePasswordToOpenModifyDialog(weld::Window* pParent, sal_uInt16 nMaxPasswdLen, bool bIsPasswordToModify) override;
585 
586  virtual VclPtr<AbstractScreenshotAnnotationDlg> CreateScreenshotAnnotationDlg(weld::Dialog& rParentDialog) override;
587 
589  CreateSignatureLineDialog(weld::Window* pParent,
590  const css::uno::Reference<css::frame::XModel> xModel, bool bEditExisting) override;
591 
593  CreateSignSignatureLineDialog(weld::Window* pParent,
594  const css::uno::Reference<css::frame::XModel> xModel) override;
595 
597  CreateQrCodeGenDialog(weld::Window* pParent,
598  const css::uno::Reference<css::frame::XModel> xModel, bool bEditExisting) override;
599 
601  CreateAdditionsDialog(weld::Window* pParent, const OUString& sAdditionsTag) override;
602 
603  virtual VclPtr<VclAbstractDialog> CreateAboutDialog(weld::Window* pParent) override;
604 
605  virtual VclPtr<VclAbstractDialog> CreateTipOfTheDayDialog(weld::Window* pParent) override;
606 
607  virtual VclPtr<VclAbstractDialog> CreateToolbarmodeDialog(weld::Window* pParent) override;
608 
609  virtual VclPtr<AbstractDiagramDialog> CreateDiagramDialog(
610  weld::Window* pParent,
611  SdrObjGroup& rDiagram) override;
612 
613 #ifdef _WIN32
614  virtual VclPtr<VclAbstractDialog> CreateFileExtCheckDialog(weld::Window* pParent,
615  const OUString& sTitle,
616  const OUString& sMsg) override;
617 #endif
618 };
619 
620 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual OUString GetNote() override
WhichRangesContainer(* GetTabPageRanges)()
Definition: macropg.hxx:105
virtual void SetNote(const OUString &rTxt) override
DECL_LINK(CheckNameHdl, SvxNameDialog &, bool)
virtual void SetFindHdl(const Link< weld::Button &, void > &_rHdl) override
virtual BitmapEx createScreenshot() const override
virtual void SetConversionFormat(editeng::HangulHanjaConversion::ConversionFormat _eType) override
#define DECL_ABSTDLG_CLASS_ASYNC(Class, Dialog)
Definition: dlgfact.hxx:91
virtual bool GetUseBothDirections() const override
virtual void SetHelpId(const OString &) override
virtual void ShowLastAuthor(const OUString &rAuthor, const OUString &rDate) override
virtual void SetActiveField(const OUString &strField) override
std::unique_ptr< sal_Int32[]> pData
virtual void SetText(const OUString &rStr) override
long Long
virtual css::uno::Reference< css::linguistic2::XDictionary > GetNewDictionary() override
virtual std::shared_ptr< SfxDialogController > GetController() override
FilterGroup & rTarget
virtual OUString GetWord() override
Link< AbstractSvxPostItDialog &, void > aPrevHdl
Definition: dlgfact.hxx:376
virtual OUString GetCurrentString() const override
virtual void SetColumns(const css::uno::Reference< css::container::XIndexContainer > &xCols) override
virtual void EnableTravel(bool bNext, bool bPrev) override
sal_Int16 nId
virtual sal_uInt16 GetLonger() override
virtual OUString GetAltText() const override
virtual WhichRangesContainer GetInputRanges(const SfxItemPool &pItem) override
virtual sal_uInt16 GetOther() override
virtual OString GetScreenshotId() const override
Dialog for editing a name.
Definition: dlgname.hxx:24
virtual OUString GetDesc() const override
virtual void InvalidateDialog() override
#define DECL_ABSTDLG_CLASS(Class, Dialog)
Definition: dlgfact.hxx:82
virtual sal_uInt32 GetId() const override
virtual void SetPrevHdl(const Link< AbstractSvxPostItDialog &, void > &rLink) override
virtual OUString GetCurrentSuggestion() const override
virtual SotClipboardFormatId GetFormatOnly() override
virtual const SfxItemSet * GetOutputItemSet() const override
virtual void SetCurPageId(const OString &rName) override
virtual void SetEditHelpId(const OString &) override
WhichRangesContainer(* DialogGetRanges)()
virtual void SetTitle(const OUString &rNewTitle) override
virtual OUString GetName() const override
SotClipboardFormatId
#define DECL_ABSTDLG_CLASS_SHARED(Class, Base, Dialog)
Definition: dlgfact.hxx:73
virtual void SetConversionFormatChangedHdl(const Link< weld::Toggleable &, void > &_rHdl) override
TransliterationFlags
virtual void InsertUno(const OUString &sCmd, const OUString &sLabel) override
virtual std::vector< OString > getAllPageUIXMLDescriptions() const override
virtual tools::Long GetValue() const override
virtual bool IsRelaxed() override
virtual void SetChangeHdl(const Link< weld::Button &, void > &_rHdl) override
virtual void SetValidateFramePosLink(const Link< SvxSwFrameValidation &, void > &rLink) override
virtual std::shared_ptr< weld::Dialog > GetDialog() override
Edit Diagram dialog.
virtual void SetLimits(sal_uInt16 nMin, sal_uInt16 nMax) override
virtual void SetObjName(const SvGlobalName &rClass, const OUString &rObjName) override
virtual void SetIgnoreAllHdl(const Link< weld::Button &, void > &_rHdl) override
Link< AbstractSvxNameDialog &, bool > aCheckNameHdl
Definition: dlgfact.hxx:273
#i68101# Dialog for editing Object name plus uniqueness-callback-linkHandler
Definition: dlgname.hxx:75
virtual css::uno::Reference< css::embed::XEmbeddedObject > GetObject() override
virtual void SetOptionsChangedHdl(const Link< LinkParamNone *, void > &_rHdl) override
ZoomButtonId
#i68101# Dialog for editing Object Title and Description
Definition: dlgname.hxx:102
virtual void PreGetFormat(const TransferableDataHelper &aHelper) override
virtual TransliterationFlags GetTransliterationFlags() const override
virtual SotClipboardFormatId GetFormat(const TransferableDataHelper &aHelper) override
virtual void EnableRubySupport(bool _bVal) override
virtual void SetConversionDirectionState(bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection) override
virtual void SetInputSet(const SfxItemSet *pInSet) override
Dialog for searching in Forms/Tables.
Definition: cuifmsearch.hxx:39
#define DECL_ABSTDLG_CLASS_SHARED_ASYNC(Class, Base, Dialog)
Definition: dlgfact.hxx:87
virtual OUString GetPath() const override
virtual bool IsCreateNew() override
virtual OUString GetURL() const override
Link< AbstractSvxPostItDialog &, void > aNextHdl
Definition: dlgfact.hxx:375
virtual editeng::HangulHanjaConversion::ConversionFormat GetConversionFormat() const override
virtual bool QueryClose() override
virtual void FocusSuggestion() override
virtual void SetChangeAllHdl(const Link< weld::Button &, void > &rHdl) override
virtual OUString GetScriptURL() const override
virtual OUString GetPasswordToModify() const override
virtual void HideAuthor() override
virtual void GetDescription(OUString &rName) override
virtual SfxBindings & GetBindings() override
virtual Graphic GetFilteredGraphic(const Graphic &rGraphic, double fScaleX, double fScaleY) override
virtual void SetRunLabel() override
SvxAnchorIds
virtual bool selectPageByUIXMLDescription(const OString &rUIXMLDescription) override
virtual void SetCanceledNotFoundHdl(const Link< FmFoundRecordInformation &, void > &lnk) override
virtual void HideButton(ZoomButtonId nBtnId) override
virtual void SetFoundHandler(const Link< FmFoundRecordInformation &, void > &lnk) override
std::unique_ptr< SfxTabPage >(* CreateTabPage)(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
virtual void SetCheckNameHdl(const Link< AbstractSvxNameDialog &, bool > &rLink, bool bCheckImmediately=false) override
virtual OUString GetTitle() const override
void * p
virtual editeng::HangulHanjaConversion::ConversionDirection GetDirection(editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection) const override
virtual sal_uInt16 GetShorter() override
virtual OUString GetPasswordToOpen() const override
virtual void SetIgnoreHdl(const Link< weld::Button &, void > &_rHdl) override
virtual void SetCheckNameTooltipHdl(const Link< AbstractSvxNameDialog &, OUString > &rLink) override
virtual css::uno::Reference< css::io::XInputStream > GetIconIfIconified(OUString *pGraphicMediaType) override
The main purpose of this dialog is to enable the use of characters that are not easily accessible fro...
Definition: cuicharmap.hxx:76
Reference< XModel > xModel
virtual void SetPath(const OUString &rPath) override
#define DECL_ABSTDLG_CLASS_UNIQUE(Class, Base, Dialog)
Definition: dlgfact.hxx:70
virtual void SetCurrentString(const OUString &_rNewString, const css::uno::Sequence< OUString > &_rSuggestions, bool _bOriginatesFromDocument=true) override
virtual OUString GetTarget() const override
virtual bool IsRecommendToOpenReadonly() const override
virtual void SetNextHdl(const Link< AbstractSvxPostItDialog &, void > &rLink) override
virtual void EndDialog(sal_Int32 nResult) override
virtual void Insert(SotClipboardFormatId nFormat, const OUString &rFormatName) override
Link< AbstractSvxNameDialog &, OUString > aCheckNameTooltipHdl
Definition: dlgfact.hxx:274
::std::vector< OUString > TargetList
virtual void DontChangeAuthor() override
virtual void SetClickByCharacterHdl(const Link< weld::Toggleable &, void > &rHdl) override
virtual void SetValue(tools::Long nNew) override
virtual void SetByCharacter(bool _bByCharacter) override