Bump version to 4.3-4
[LibreOffice.git] / cui / source / factory / dlgfact.hxx
blobfeaad78c1625b8ddbdff4b9baa404e5d28077b62
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 #ifndef INCLUDED_CUI_SOURCE_FACTORY_DLGFACT_HXX
20 #define INCLUDED_CUI_SOURCE_FACTORY_DLGFACT_HXX
22 #include <svx/svxdlg.hxx>
23 #include <com/sun/star/container/XNameReplace.hpp>
25 #include "tools/link.hxx"
26 #include <com/sun/star/frame/XFrame.hpp>
28 class SfxTabDialog;
29 class SfxModalDialog;
30 class Dialog;
31 class SfxItemPool;
32 class FmShowColsDialog;
33 class SvxZoomDialog;
34 class FmInputRecordNoDialog;
35 class SvxJSearchOptionsDialog;
36 class SvxNewDictionaryDialog;
37 class SvxNameDialog;
39 // #i68101#
40 class SvxObjectNameDialog;
41 class SvxObjectTitleDescDialog;
43 class SvxMessDialog;
44 class SvxMultiPathDialog;
45 class SvxHpLinkDlg;
46 class FmSearchDialog;
47 class Graphic;
48 class GraphicFilterDialog;
49 class SvxAreaTabDialog;
50 class InsertObjectDialog_Impl;
51 class SvPasteObjectDialog;
52 class SvBaseLinksDlg;
53 class SvxTransformTabDialog;
54 class SvxCaptionTabDialog;
55 class SvxThesaurusDialog;
56 class SvxHyphenWordDialog;
58 namespace svx{
59 class HangulHanjaConversionDialog;
61 using namespace svx;
63 #define DECL_ABSTDLG_BASE(Class,DialogClass) \
64 DialogClass* pDlg; \
65 public: \
66 Class( DialogClass* p) \
67 : pDlg(p) \
68 {} \
69 virtual ~Class(); \
70 virtual short Execute() SAL_OVERRIDE ;
72 #define IMPL_ABSTDLG_BASE(Class) \
73 Class::~Class() \
74 { \
75 delete pDlg; \
76 } \
77 short Class::Execute() \
78 { \
79 return pDlg->Execute(); \
82 class VclAbstractDialog2_Impl : public VclAbstractDialog2
84 Dialog* m_pDlg;
85 Link m_aEndDlgHdl;
86 public:
87 VclAbstractDialog2_Impl( Dialog* p ) : m_pDlg( p ) {}
88 virtual ~VclAbstractDialog2_Impl();
89 virtual void StartExecuteModal( const Link& rEndDialogHdl ) SAL_OVERRIDE;
90 virtual long GetResult() SAL_OVERRIDE;
91 private:
92 DECL_LINK( EndDialogHdl, Dialog* );
95 class CuiVclAbstractDialog_Impl : public VclAbstractDialog
97 DECL_ABSTDLG_BASE(CuiVclAbstractDialog_Impl,Dialog)
100 class VclAbstractRefreshableDialog_Impl : public VclAbstractRefreshableDialog
102 DECL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl,Dialog)
103 virtual void Update() SAL_OVERRIDE ;
104 virtual void Sync() SAL_OVERRIDE ;
107 class CuiAbstractSfxDialog_Impl : public SfxAbstractDialog
109 DECL_ABSTDLG_BASE(CuiAbstractSfxDialog_Impl,SfxModalDialog)
110 virtual const SfxItemSet* GetOutputItemSet() const SAL_OVERRIDE;
112 //From class Window.
113 virtual void SetText( const OUString& rStr ) SAL_OVERRIDE;
114 virtual OUString GetText() const SAL_OVERRIDE ;
117 class CuiAbstractTabDialog_Impl : public SfxAbstractTabDialog
119 DECL_ABSTDLG_BASE(CuiAbstractTabDialog_Impl,SfxTabDialog)
120 virtual void SetCurPageId( sal_uInt16 nId ) SAL_OVERRIDE;
121 virtual void SetCurPageId( const OString& rName ) SAL_OVERRIDE;
122 virtual const SfxItemSet* GetOutputItemSet() const SAL_OVERRIDE;
123 virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem ) SAL_OVERRIDE;
124 virtual void SetInputSet( const SfxItemSet* pInSet ) SAL_OVERRIDE;
125 //From class Window.
126 virtual void SetText( const OUString& rStr ) SAL_OVERRIDE;
127 virtual OUString GetText() const SAL_OVERRIDE;
130 class SvxDistributeDialog;
131 class AbstractSvxDistributeDialog_Impl: public AbstractSvxDistributeDialog
133 DECL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl,SvxDistributeDialog)
134 public:
135 virtual SvxDistributeHorizontal GetDistributeHor() const SAL_OVERRIDE;
136 virtual SvxDistributeVertical GetDistributeVer() const SAL_OVERRIDE;
139 class AbstractHangulHanjaConversionDialog_Impl: public AbstractHangulHanjaConversionDialog
141 DECL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl,HangulHanjaConversionDialog)
142 virtual void EndDialog(long nResult = 0) SAL_OVERRIDE;
143 virtual void EnableRubySupport( bool _bVal ) SAL_OVERRIDE;
144 virtual void SetByCharacter( bool _bByCharacter ) SAL_OVERRIDE ;
145 virtual void SetConversionDirectionState( bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection ) SAL_OVERRIDE;
146 virtual void SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType ) SAL_OVERRIDE;
147 virtual void SetOptionsChangedHdl( const Link& _rHdl ) SAL_OVERRIDE;
148 virtual void SetIgnoreHdl( const Link& _rHdl ) SAL_OVERRIDE;
149 virtual void SetIgnoreAllHdl( const Link& _rHdl ) SAL_OVERRIDE ;
150 virtual void SetChangeHdl( const Link& _rHdl ) SAL_OVERRIDE ;
151 virtual void SetChangeAllHdl( const Link& _rHdl ) SAL_OVERRIDE ;
152 virtual void SetClickByCharacterHdl( const Link& _rHdl ) SAL_OVERRIDE ;
153 virtual void SetConversionFormatChangedHdl( const Link& _rHdl ) SAL_OVERRIDE ;
154 virtual void SetFindHdl( const Link& _rHdl ) SAL_OVERRIDE;
155 virtual bool GetUseBothDirections( ) const SAL_OVERRIDE;
156 virtual editeng::HangulHanjaConversion::ConversionDirection
157 GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection ) const SAL_OVERRIDE;
158 virtual void SetCurrentString(
159 const OUString& _rNewString,
160 const ::com::sun::star::uno::Sequence< OUString >& _rSuggestions,
161 bool _bOriginatesFromDocument = true
162 ) SAL_OVERRIDE;
163 virtual OUString GetCurrentString( ) const SAL_OVERRIDE ;
164 virtual editeng::HangulHanjaConversion::ConversionFormat
165 GetConversionFormat( ) const SAL_OVERRIDE ;
166 virtual void FocusSuggestion( ) SAL_OVERRIDE;
167 virtual OUString GetCurrentSuggestion( ) const SAL_OVERRIDE;
170 class AbstractThesaurusDialog_Impl : public AbstractThesaurusDialog
172 DECL_ABSTDLG_BASE(AbstractThesaurusDialog_Impl,SvxThesaurusDialog)
173 virtual OUString GetWord() SAL_OVERRIDE;
174 virtual sal_uInt16 GetLanguage() const SAL_OVERRIDE;
175 virtual Window* GetWindow() SAL_OVERRIDE;
178 class AbstractHyphenWordDialog_Impl: public AbstractHyphenWordDialog
180 DECL_ABSTDLG_BASE(AbstractHyphenWordDialog_Impl,SvxHyphenWordDialog)
181 virtual void SelLeft() SAL_OVERRIDE;
182 virtual void SelRight() SAL_OVERRIDE;
183 virtual Window* GetWindow() SAL_OVERRIDE;
186 class FmShowColsDialog;
187 class AbstractFmShowColsDialog_Impl : public AbstractFmShowColsDialog
189 DECL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl,FmShowColsDialog)
190 virtual void SetColumns(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer>& xCols) SAL_OVERRIDE;
193 class SvxZoomDialog;
194 class AbstractSvxZoomDialog_Impl : public AbstractSvxZoomDialog
196 DECL_ABSTDLG_BASE(AbstractSvxZoomDialog_Impl,SvxZoomDialog)
197 virtual void SetLimits( sal_uInt16 nMin, sal_uInt16 nMax ) SAL_OVERRIDE;
198 virtual void HideButton( sal_uInt16 nBtnId ) SAL_OVERRIDE;
199 virtual const SfxItemSet* GetOutputItemSet() const SAL_OVERRIDE ;
203 namespace svx{ class SpellDialog;}
204 class AbstractSpellDialog_Impl : public AbstractSpellDialog
206 public:
207 DECL_ABSTDLG_BASE(AbstractSpellDialog_Impl, svx::SpellDialog)
208 virtual void SetLanguage( sal_uInt16 nLang ) SAL_OVERRIDE;
209 virtual bool Close() SAL_OVERRIDE;
210 virtual void Invalidate() SAL_OVERRIDE;
211 virtual Window* GetWindow() SAL_OVERRIDE;
212 virtual SfxBindings& GetBindings() SAL_OVERRIDE;
215 class SearchProgress;
216 class AbstractSearchProgress_Impl : public AbstractSearchProgress
218 DECL_ABSTDLG_BASE(AbstractSearchProgress_Impl,SearchProgress)
219 virtual void Update() SAL_OVERRIDE ;
220 virtual void Sync() SAL_OVERRIDE ;
221 virtual void SetFileType( const OUString& rType ) SAL_OVERRIDE ;
222 virtual void SetDirectory( const INetURLObject& rURL ) SAL_OVERRIDE ;
223 virtual PLinkStub GetLinkStubCleanUpHdl() SAL_OVERRIDE ;
227 class TakeProgress;
228 class AbstractTakeProgress_Impl : public AbstractTakeProgress
230 DECL_ABSTDLG_BASE(AbstractTakeProgress_Impl,TakeProgress)
231 virtual void Update() SAL_OVERRIDE ;
232 virtual void Sync() SAL_OVERRIDE ;
233 virtual void SetFile( const INetURLObject& rURL ) SAL_OVERRIDE ;
234 virtual PLinkStub GetLinkStubCleanUpHdl() SAL_OVERRIDE ;
238 class TitleDialog;
239 class AbstractTitleDialog_Impl : public AbstractTitleDialog
241 DECL_ABSTDLG_BASE(AbstractTitleDialog_Impl,TitleDialog)
242 virtual OUString GetTitle() const SAL_OVERRIDE ;
246 class SvxScriptSelectorDialog;
247 class AbstractScriptSelectorDialog_Impl : public AbstractScriptSelectorDialog
249 DECL_ABSTDLG_BASE(
250 AbstractScriptSelectorDialog_Impl, SvxScriptSelectorDialog)
252 virtual OUString GetScriptURL() const SAL_OVERRIDE;
254 virtual void SetRunLabel() SAL_OVERRIDE;
257 class GalleryIdDialog;
258 class AbstractGalleryIdDialog_Impl : public AbstractGalleryIdDialog
260 DECL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl,GalleryIdDialog)
261 virtual sal_uLong GetId() const SAL_OVERRIDE ;
265 class URLDlg;
266 class AbstractURLDlg_Impl :public AbstractURLDlg
268 DECL_ABSTDLG_BASE(AbstractURLDlg_Impl,URLDlg)
269 virtual OUString GetURL() const SAL_OVERRIDE;
270 virtual OUString GetAltText() const SAL_OVERRIDE;
271 virtual OUString GetDesc() const SAL_OVERRIDE;
272 virtual OUString GetTarget() const SAL_OVERRIDE;
273 virtual OUString GetName() const SAL_OVERRIDE;
276 class SvxHlinkDlgMarkWnd;
277 class AbstractSvxHlinkDlgMarkWnd_Impl : public AbstractSvxHlinkDlgMarkWnd
279 DECL_ABSTDLG_BASE(AbstractSvxHlinkDlgMarkWnd_Impl,SvxHlinkDlgMarkWnd)
280 virtual void Hide() SAL_OVERRIDE;
281 virtual bool IsVisible() const SAL_OVERRIDE ;
282 virtual void Invalidate( sal_uInt16 nFlags = 0 ) SAL_OVERRIDE;
283 virtual void SetSizePixel( const Size& rNewSize ) SAL_OVERRIDE;
284 virtual Size GetSizePixel() const SAL_OVERRIDE;
285 virtual bool MoveTo( Point aNewPos ) const SAL_OVERRIDE;
286 virtual bool ConnectToDialog( bool bDoit = true ) const SAL_OVERRIDE;
287 virtual void RefreshTree ( const OUString& aStrURL ) SAL_OVERRIDE;
288 virtual void SelectEntry ( const OUString& aStrMark ) SAL_OVERRIDE;
289 virtual sal_uInt16 SetError( sal_uInt16 nError) SAL_OVERRIDE ;
293 class SvxSearchSimilarityDialog;
294 class AbstractSvxSearchSimilarityDialog_Impl :public AbstractSvxSearchSimilarityDialog
296 DECL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl,SvxSearchSimilarityDialog)
297 virtual sal_uInt16 GetOther() SAL_OVERRIDE;
298 virtual sal_uInt16 GetShorter() SAL_OVERRIDE;
299 virtual sal_uInt16 GetLonger() SAL_OVERRIDE;
300 virtual bool IsRelaxed() SAL_OVERRIDE;
303 class SvxJSearchOptionsDialog;
304 class AbstractSvxJSearchOptionsDialog_Impl :public AbstractSvxJSearchOptionsDialog
306 DECL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl,SvxJSearchOptionsDialog)
307 virtual sal_Int32 GetTransliterationFlags() const SAL_OVERRIDE;
310 class AbstractSvxTransformTabDialog_Impl : public AbstractSvxTransformTabDialog
312 DECL_ABSTDLG_BASE(AbstractSvxTransformTabDialog_Impl,SvxTransformTabDialog)
313 virtual void SetValidateFramePosLink( const Link& rLink ) SAL_OVERRIDE;
314 virtual void SetCurPageId( sal_uInt16 nId ) SAL_OVERRIDE;
315 virtual void SetCurPageId( const OString& rName ) SAL_OVERRIDE;
316 virtual const SfxItemSet* GetOutputItemSet() const SAL_OVERRIDE;
317 virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem ) SAL_OVERRIDE;
318 virtual void SetInputSet( const SfxItemSet* pInSet ) SAL_OVERRIDE;
319 virtual void SetText( const OUString& rStr ) SAL_OVERRIDE;
320 virtual OUString GetText() const SAL_OVERRIDE;
323 class AbstractSvxCaptionDialog_Impl : public AbstractSvxCaptionDialog
325 DECL_ABSTDLG_BASE(AbstractSvxCaptionDialog_Impl,SvxCaptionTabDialog)
326 virtual void SetValidateFramePosLink( const Link& rLink ) SAL_OVERRIDE;
327 virtual void SetCurPageId( sal_uInt16 nId ) SAL_OVERRIDE;
328 virtual void SetCurPageId( const OString& rName ) SAL_OVERRIDE;
329 virtual const SfxItemSet* GetOutputItemSet() const SAL_OVERRIDE;
330 virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem ) SAL_OVERRIDE;
331 virtual void SetInputSet( const SfxItemSet* pInSet ) SAL_OVERRIDE;
332 virtual void SetText( const OUString& rStr ) SAL_OVERRIDE;
333 virtual OUString GetText() const SAL_OVERRIDE;
336 class FmInputRecordNoDialog;
337 class AbstractFmInputRecordNoDialog_Impl :public AbstractFmInputRecordNoDialog
339 DECL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl,FmInputRecordNoDialog)
340 virtual void SetValue(long nNew) SAL_OVERRIDE ;
341 virtual long GetValue() const SAL_OVERRIDE ;
344 class SvxNewDictionaryDialog;
345 class AbstractSvxNewDictionaryDialog_Impl :public AbstractSvxNewDictionaryDialog
347 DECL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl,SvxNewDictionaryDialog)
348 virtual ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XDictionary > GetNewDictionary() SAL_OVERRIDE;
351 class SvxNameDialog;
352 class AbstractSvxNameDialog_Impl :public AbstractSvxNameDialog
354 DECL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl,SvxNameDialog)
355 virtual void GetName( OUString& rName ) SAL_OVERRIDE ;
356 virtual void SetCheckNameHdl( const Link& rLink, bool bCheckImmediately = false ) SAL_OVERRIDE ;
357 virtual void SetEditHelpId(const OString&) SAL_OVERRIDE ;
358 //from class Window
359 virtual void SetHelpId( const OString& ) SAL_OVERRIDE ;
360 virtual void SetText( const OUString& rStr ) SAL_OVERRIDE ;
361 private:
362 Link aCheckNameHdl;
363 DECL_LINK(CheckNameHdl, void *);
366 class SvxObjectNameDialog;
367 class SvxObjectTitleDescDialog;
369 class AbstractSvxObjectNameDialog_Impl :public AbstractSvxObjectNameDialog
371 DECL_ABSTDLG_BASE(AbstractSvxObjectNameDialog_Impl, SvxObjectNameDialog)
372 virtual void GetName(OUString& rName) SAL_OVERRIDE ;
373 virtual void SetCheckNameHdl(const Link& rLink, bool bCheckImmediately = false) SAL_OVERRIDE;
375 private:
376 Link aCheckNameHdl;
377 DECL_LINK(CheckNameHdl, void *);
380 class AbstractSvxObjectTitleDescDialog_Impl :public AbstractSvxObjectTitleDescDialog
382 DECL_ABSTDLG_BASE(AbstractSvxObjectTitleDescDialog_Impl, SvxObjectTitleDescDialog)
383 virtual void GetTitle(OUString& rName) SAL_OVERRIDE;
384 virtual void GetDescription(OUString& rName) SAL_OVERRIDE;
387 class SvxMessDialog;
388 class AbstractSvxMessDialog_Impl :public AbstractSvxMessDialog
390 DECL_ABSTDLG_BASE(AbstractSvxMessDialog_Impl,SvxMessDialog)
391 virtual void SetButtonText( sal_uInt16 nBtnId, const OUString& rNewTxt ) SAL_OVERRIDE;
394 class SvxMultiPathDialog;
395 class AbstractSvxMultiPathDialog_Impl : public AbstractSvxMultiPathDialog
397 DECL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl,SvxMultiPathDialog)
398 virtual OUString GetPath() const SAL_OVERRIDE;
399 virtual void SetPath( const OUString& rPath ) SAL_OVERRIDE;
400 virtual void SetTitle( const OUString& rNewTitle ) SAL_OVERRIDE;
403 class SvxPathSelectDialog;
404 class AbstractSvxPathSelectDialog_Impl : public AbstractSvxMultiPathDialog
406 DECL_ABSTDLG_BASE(AbstractSvxPathSelectDialog_Impl,SvxPathSelectDialog)
407 virtual OUString GetPath() const SAL_OVERRIDE;
408 virtual void SetPath( const OUString& rPath ) SAL_OVERRIDE;
409 virtual void SetTitle( const OUString& rNewTitle ) SAL_OVERRIDE;
412 class SvxHpLinkDlg;
413 class AbstractSvxHpLinkDlg_Impl :public AbstractSvxHpLinkDlg
415 DECL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl,SvxHpLinkDlg)
416 virtual Window* GetWindow() SAL_OVERRIDE;
417 virtual bool QueryClose() SAL_OVERRIDE;
420 class FmSearchDialog;
421 class AbstractFmSearchDialog_Impl :public AbstractFmSearchDialog
423 DECL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl,FmSearchDialog)
424 virtual void SetFoundHandler(const Link& lnk) SAL_OVERRIDE ;
425 virtual void SetCanceledNotFoundHdl(const Link& lnk) SAL_OVERRIDE;
426 virtual void SetActiveField(const OUString& strField) SAL_OVERRIDE;
429 class AbstractGraphicFilterDialog_Impl :public AbstractGraphicFilterDialog
431 DECL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl,GraphicFilterDialog)
432 virtual Graphic GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY ) SAL_OVERRIDE;
435 class SvxAreaTabDialog;
436 class AbstractSvxAreaTabDialog_Impl :public AbstractSvxAreaTabDialog
438 DECL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl,SvxAreaTabDialog)
439 virtual void SetCurPageId( sal_uInt16 nId ) SAL_OVERRIDE;
440 virtual void SetCurPageId( const OString& rName ) SAL_OVERRIDE;
441 virtual const SfxItemSet* GetOutputItemSet() const SAL_OVERRIDE;
442 virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem ) SAL_OVERRIDE;
443 virtual void SetInputSet( const SfxItemSet* pInSet ) SAL_OVERRIDE;
444 // From class Window.
445 virtual void SetText( const OUString& rStr ) SAL_OVERRIDE;
446 virtual OUString GetText() const SAL_OVERRIDE;
449 class AbstractInsertObjectDialog_Impl : public SfxAbstractInsertObjectDialog
451 DECL_ABSTDLG_BASE(AbstractInsertObjectDialog_Impl, InsertObjectDialog_Impl)
452 virtual com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetObject() SAL_OVERRIDE;
453 virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetIconIfIconified( OUString* pGraphicMediaType ) SAL_OVERRIDE;
454 virtual bool IsCreateNew() SAL_OVERRIDE;
457 class AbstractPasteDialog_Impl : public SfxAbstractPasteDialog
459 public:
460 DECL_ABSTDLG_BASE(AbstractPasteDialog_Impl, SvPasteObjectDialog )
461 virtual void Insert( SotFormatStringId nFormat, const OUString & rFormatName ) SAL_OVERRIDE;
462 virtual void SetObjName( const SvGlobalName & rClass, const OUString & rObjName ) SAL_OVERRIDE;
463 virtual sal_uLong GetFormat( const TransferableDataHelper& aHelper,
464 const DataFlavorExVector* pFormats=0,
465 const TransferableObjectDescriptor* pDesc=0 ) SAL_OVERRIDE;
468 class AbstractLinksDialog_Impl : public SfxAbstractLinksDialog
470 public:
471 DECL_ABSTDLG_BASE(AbstractLinksDialog_Impl, SvBaseLinksDlg )
474 class SvxPostItDialog;
475 class AbstractSvxPostItDialog_Impl :public AbstractSvxPostItDialog
477 DECL_ABSTDLG_BASE( AbstractSvxPostItDialog_Impl, SvxPostItDialog )
478 virtual void SetText( const OUString& rStr ) SAL_OVERRIDE; //From class Window
479 virtual const SfxItemSet* GetOutputItemSet() const SAL_OVERRIDE;
480 virtual void SetPrevHdl( const Link& rLink ) SAL_OVERRIDE ;
481 virtual void SetNextHdl( const Link& rLink ) SAL_OVERRIDE ;
482 virtual void EnableTravel(bool bNext, bool bPrev) SAL_OVERRIDE ;
483 virtual OUString GetNote() SAL_OVERRIDE ;
484 virtual void SetNote(const OUString& rTxt) SAL_OVERRIDE ;
485 virtual void ShowLastAuthor(const OUString& rAuthor, const OUString& rDate) SAL_OVERRIDE ;
486 virtual void DontChangeAuthor() SAL_OVERRIDE ;
487 virtual void HideAuthor() SAL_OVERRIDE ;
488 virtual void SetReadonlyPostIt(bool bDisable) SAL_OVERRIDE ;
489 virtual bool IsOkEnabled() const SAL_OVERRIDE;
490 virtual Window * GetWindow() SAL_OVERRIDE;
491 private:
492 Link aNextHdl;
493 Link aPrevHdl;
494 DECL_LINK(NextHdl, void *);
495 DECL_LINK(PrevHdl, void *);
498 class PasswordToOpenModifyDialog;
499 class AbstractPasswordToOpenModifyDialog_Impl : public AbstractPasswordToOpenModifyDialog
501 DECL_ABSTDLG_BASE( AbstractPasswordToOpenModifyDialog_Impl, PasswordToOpenModifyDialog )
503 virtual OUString GetPasswordToOpen() const SAL_OVERRIDE;
504 virtual OUString GetPasswordToModify() const SAL_OVERRIDE;
505 virtual bool IsRecommendToOpenReadonly() const SAL_OVERRIDE;
508 //AbstractDialogFactory_Impl implementations
509 class AbstractDialogFactory_Impl : public SvxAbstractDialogFactory
511 public:
512 virtual VclAbstractDialog* CreateVclDialog( Window* pParent, sal_uInt32 nResId ) SAL_OVERRIDE;
513 virtual VclAbstractDialog* CreateSfxDialog( Window* pParent, const SfxBindings& rBindings, sal_uInt32 nResId ) SAL_OVERRIDE;
514 virtual SfxAbstractDialog* CreateSfxDialog( sal_uInt32 nResId,
515 Window* pParent,
516 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xViewFrame,
517 const SfxItemSet* pAttrSet=0 );
518 virtual SfxAbstractDialog* CreateSfxDialog( Window* pParent,
519 const SfxItemSet& rAttr,
520 const SdrView* pView,
521 sal_uInt32 nResId ) SAL_OVERRIDE;
522 virtual SfxAbstractDialog* CreateSfxDialog( Window* pParent,
523 const SfxItemSet& rAttr,
524 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame,
525 sal_uInt32 nResId
526 ) SAL_OVERRIDE;
527 virtual VclAbstractDialog* CreateFrameDialog( Window* pParent, const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rxFrame, sal_uInt32 nResId, const OUString& rParameter ) SAL_OVERRIDE;
528 virtual SfxAbstractTabDialog* CreateTabDialog( sal_uInt32 nResId,
529 Window* pParent,
530 const SfxItemSet* pAttrSet,
531 SfxViewFrame* pViewFrame,
532 bool bEditFmt=false,
533 const OUString *pUserButtonText=0 ) SAL_OVERRIDE;
534 virtual SfxAbstractTabDialog* CreateTabDialog( sal_uInt32 nResId,
535 Window* pParent,
536 const SfxItemSet* pAttrSet,
537 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xViewFrame,
538 bool bEditFmt=false,
539 const OUString *pUserButtonText=0 ) SAL_OVERRIDE;
540 virtual SfxAbstractTabDialog* CreateTextTabDialog( Window* pParent,
541 const SfxItemSet* pAttrSet,
542 SdrView* pView,
543 SdrModel* pModel=0 ) SAL_OVERRIDE;
544 virtual SfxAbstractTabDialog* CreateTabItemDialog(Window* pParent,
545 const SfxItemSet& rSet) SAL_OVERRIDE;
546 virtual AbstractSvxCaptionDialog* CreateCaptionDialog( Window* pParent,
547 const SdrView* pView,
548 sal_uInt16 nAnchorTypes = 0 ) SAL_OVERRIDE;
549 virtual AbstractSvxDistributeDialog* CreateSvxDistributeDialog(Window* pParent,
550 const SfxItemSet& rAttr,
551 SvxDistributeHorizontal eHor = SvxDistributeHorizontalNone,
552 SvxDistributeVertical eVer = SvxDistributeVerticalNone) SAL_OVERRIDE;
553 virtual SfxAbstractInsertObjectDialog* CreateInsertObjectDialog( Window* pParent, const OUString& rCommmand,
554 const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStor,
555 const SvObjectServerList* pList = 0 ) SAL_OVERRIDE;
556 virtual VclAbstractDialog* CreateEditObjectDialog( Window* pParent, const OUString& rCommmand,
557 const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObj ) SAL_OVERRIDE;
558 virtual SfxAbstractPasteDialog* CreatePasteDialog( Window* pParent ) SAL_OVERRIDE;
559 virtual SfxAbstractLinksDialog* CreateLinksDialog( Window* pParent, sfx2::LinkManager* pMgr, bool bHTML, sfx2::SvBaseLink* p=0 ) SAL_OVERRIDE;
561 virtual AbstractHangulHanjaConversionDialog * CreateHangulHanjaConversionDialog( Window* _pParent,
562 editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection ) SAL_OVERRIDE;
563 virtual AbstractThesaurusDialog* CreateThesaurusDialog( Window*, ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XThesaurus > xThesaurus,
564 const OUString &rWord, sal_Int16 nLanguage ) SAL_OVERRIDE;
566 virtual AbstractHyphenWordDialog* CreateHyphenWordDialog( Window*,
567 const OUString &rWord, LanguageType nLang,
568 ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XHyphenator > &xHyphen,
569 SvxSpellWrapper* pWrapper ) SAL_OVERRIDE;
571 virtual AbstractFmShowColsDialog * CreateFmShowColsDialog( Window* pParent ) SAL_OVERRIDE;
572 virtual AbstractSvxZoomDialog * CreateSvxZoomDialog( Window* pParent,
573 const SfxItemSet& rCoreSet) SAL_OVERRIDE;
574 virtual SfxAbstractTabDialog* CreateSvxBorderBackgroundDlg( Window* pParent,
575 const SfxItemSet& rCoreSet,
576 bool bEnableSelector = false) SAL_OVERRIDE ;
577 virtual AbstractSvxTransformTabDialog* CreateSvxTransformTabDialog( Window* pParent,
578 const SfxItemSet* pAttr,
579 const SdrView* pView,
580 sal_uInt16 nAnchorTypes = 0) SAL_OVERRIDE ;
581 virtual SfxAbstractTabDialog* CreateSchTransformTabDialog( Window* pParent,
582 const SfxItemSet* pAttr,
583 const SdrView* pSdrView,
584 sal_uInt32 nResId,
585 bool bSizeTabPage = false
586 ) SAL_OVERRIDE;
587 virtual AbstractSpellDialog * CreateSvxSpellDialog(
588 Window* pParent,
589 SfxBindings* pBindings,
590 svx::SpellDialogChildWindow* pSpellChildWindow ) SAL_OVERRIDE;
592 virtual VclAbstractRefreshableDialog * CreateActualizeProgressDialog( Window* pParent, GalleryTheme* pThm ) SAL_OVERRIDE;
593 virtual AbstractSearchProgress * CreateSearchProgressDialog( Window* pParent,
594 const INetURLObject& rStartURL) SAL_OVERRIDE;
595 virtual AbstractTakeProgress * CreateTakeProgressDialog( Window* pParent ) SAL_OVERRIDE;
596 virtual AbstractTitleDialog * CreateTitleDialog( Window* pParent,
597 const OUString& rOldText) SAL_OVERRIDE;
598 virtual AbstractGalleryIdDialog * CreateGalleryIdDialog( Window* pParent,
599 GalleryTheme* pThm) SAL_OVERRIDE;
600 virtual VclAbstractDialog2 * CreateGalleryThemePropertiesDialog( Window* pParent,
601 ExchangeData* pData,
602 SfxItemSet* pItemSet) SAL_OVERRIDE;
603 virtual AbstractURLDlg * CreateURLDialog( Window* pParent,
604 const OUString& rURL, const OUString& rAltText, const OUString& rDescription,
605 const OUString& rTarget, const OUString& rName,
606 TargetList& rTargetList ) SAL_OVERRIDE;
607 virtual AbstractSvxHlinkDlgMarkWnd* CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase* pParent, sal_uInt32 nResId ) SAL_OVERRIDE;
609 virtual VclAbstractDialog* CreateSvxSearchAttributeDialog( Window* pParent,
610 SearchAttrItemList& rLst,
611 const sal_uInt16* pWhRanges) SAL_OVERRIDE;
612 virtual AbstractSvxSearchSimilarityDialog * CreateSvxSearchSimilarityDialog( Window* pParent,
613 bool bRelax,
614 sal_uInt16 nOther,
615 sal_uInt16 nShorter,
616 sal_uInt16 nLonger) SAL_OVERRIDE;
617 virtual AbstractSvxJSearchOptionsDialog * CreateSvxJSearchOptionsDialog( Window* pParent,
618 const SfxItemSet& rOptionsSet,
619 sal_Int32 nInitialFlags) SAL_OVERRIDE;
620 virtual AbstractFmInputRecordNoDialog * CreateFmInputRecordNoDialog( Window* pParent ) SAL_OVERRIDE;
621 virtual AbstractSvxNewDictionaryDialog* CreateSvxNewDictionaryDialog( Window* pParent,
622 ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSpellChecker1 > &xSpl ) SAL_OVERRIDE;
623 virtual VclAbstractDialog * CreateSvxEditDictionaryDialog( Window* pParent,
624 const OUString& rName,
625 ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSpellChecker1> &xSpl,
626 sal_uInt32 nResId) SAL_OVERRIDE;
627 virtual AbstractSvxNameDialog * CreateSvxNameDialog( Window* pParent,
628 const OUString& rName, const OUString& rDesc ) SAL_OVERRIDE;
629 // #i68101#
630 virtual AbstractSvxObjectNameDialog* CreateSvxObjectNameDialog(Window* pParent, const OUString& rName ) SAL_OVERRIDE;
631 virtual AbstractSvxObjectTitleDescDialog* CreateSvxObjectTitleDescDialog(Window* pParent, const OUString& rTitle, const OUString& rDescription) SAL_OVERRIDE;
633 virtual AbstractSvxMessDialog * CreateSvxMessDialog( Window* pParent, sal_uInt32 nResId,
634 const OUString& rText, const OUString& rDesc,
635 Image* pImg = NULL ) SAL_OVERRIDE;
636 virtual AbstractSvxMultiPathDialog * CreateSvxMultiPathDialog(Window* pParent) SAL_OVERRIDE;
637 virtual AbstractSvxMultiPathDialog * CreateSvxPathSelectDialog(Window* pParent) SAL_OVERRIDE;
638 virtual AbstractSvxHpLinkDlg * CreateSvxHpLinkDlg (Window* pParent,
639 SfxBindings* pBindings,
640 sal_uInt32 nResId) SAL_OVERRIDE;
641 virtual AbstractFmSearchDialog* CreateFmSearchDialog(Window* pParent,
642 const OUString& strInitialText,
643 const ::std::vector< OUString >& _rContexts,
644 sal_Int16 nInitialContext,
645 const Link& lnkContextSupplier) SAL_OVERRIDE;
646 virtual AbstractGraphicFilterDialog * CreateGraphicFilterEmboss(Window* pParent,
647 const Graphic& rGraphic, RECT_POINT eLightSource) SAL_OVERRIDE;
648 virtual AbstractGraphicFilterDialog * CreateGraphicFilterPoster(Window* pParent,
649 const Graphic& rGraphic, sal_uInt16 nCount) SAL_OVERRIDE;
650 virtual AbstractGraphicFilterDialog * CreateGraphicFilterSepia (Window* pParent,
651 const Graphic& rGraphic, sal_uInt16 nCount) SAL_OVERRIDE;
652 virtual AbstractGraphicFilterDialog * CreateGraphicFilterSmooth (Window* pParent,
653 const Graphic& rGraphic, double nRadius) SAL_OVERRIDE;
654 virtual AbstractGraphicFilterDialog * CreateGraphicFilterSolarize (Window* pParent,
655 const Graphic& rGraphic, sal_uInt8 nGreyThreshold,
656 bool bInvert) SAL_OVERRIDE;
657 virtual AbstractGraphicFilterDialog * CreateGraphicFilterMosaic (Window* pParent,
658 const Graphic& rGraphic, sal_uInt16 nTileWidth, sal_uInt16 nTileHeight,
659 bool bEnhanceEdges) SAL_OVERRIDE;
660 virtual AbstractSvxAreaTabDialog* CreateSvxAreaTabDialog( Window* pParent,
661 const SfxItemSet* pAttr,
662 SdrModel* pModel,
663 const SdrView* pSdrView = NULL ) SAL_OVERRIDE;
664 virtual SfxAbstractTabDialog* CreateSvxLineTabDialog( Window* pParent, const SfxItemSet* pAttr,
665 SdrModel* pModel,
666 const SdrObject* pObj = NULL,
667 bool bHasObj = true ) SAL_OVERRIDE;
668 virtual AbstractSvxPostItDialog* CreateSvxPostItDialog( Window* pParent,
669 const SfxItemSet& rCoreSet,
670 bool bPrevNext = false ) SAL_OVERRIDE;
672 // For TabPage
673 virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId ) SAL_OVERRIDE;
674 virtual CreateSvxDistributePage GetSvxDistributePageCreatorFunc() SAL_OVERRIDE;
676 virtual GetTabPageRanges GetTabPageRangesFunc( sal_uInt16 nId ) SAL_OVERRIDE;
677 virtual DialogGetRanges GetDialogGetRangesFunc() SAL_OVERRIDE;
678 virtual VclAbstractDialog* CreateSvxScriptOrgDialog( Window* pParent, const OUString& rLanguage ) SAL_OVERRIDE;
680 virtual AbstractScriptSelectorDialog*
681 CreateScriptSelectorDialog(
682 Window* pParent,
683 bool bShowSlots,
684 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame
685 ) SAL_OVERRIDE;
687 virtual VclAbstractDialog* CreateScriptErrorDialog(
688 Window* pParent, ::com::sun::star::uno::Any aException) SAL_OVERRIDE;
690 virtual VclAbstractDialog* CreateSvxMacroAssignDlg(
691 Window* _pParent,
692 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxDocumentFrame,
693 const bool _bUnoDialogMode,
694 const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace >& _rxEvents,
695 const sal_uInt16 _nInitiallySelectedEvent
696 ) SAL_OVERRIDE;
698 virtual SfxAbstractTabDialog* CreateSvxFormatCellsDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, const SdrObject* pObj = NULL ) SAL_OVERRIDE;
700 virtual SvxAbstractSplittTableDialog* CreateSvxSplittTableDialog( Window* pParent, bool bIsTableVertical, long nMaxVertical, long nMaxHorizontal ) SAL_OVERRIDE;
702 virtual SvxAbstractNewTableDialog* CreateSvxNewTableDialog( Window* pParent ) SAL_OVERRIDE ;
704 virtual VclAbstractDialog* CreateOptionsDialog(
705 Window* pParent, const OUString& rExtensionId, const OUString& rApplicationContext ) SAL_OVERRIDE;
707 virtual SvxAbstractInsRowColDlg* CreateSvxInsRowColDlg( Window* pParent, bool bCol, const OString& sHelpId ) SAL_OVERRIDE;
709 virtual AbstractPasswordToOpenModifyDialog * CreatePasswordToOpenModifyDialog( Window * pParent, sal_uInt16 nMinPasswdLen, sal_uInt16 nMaxPasswdLen, bool bIsPasswordToModify ) SAL_OVERRIDE;
712 #endif
714 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */