1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_CUI_SOURCE_FACTORY_DLGFACT_HXX
20 #define INCLUDED_CUI_SOURCE_FACTORY_DLGFACT_HXX
22 #include <svx/svxdlg.hxx>
23 #include <svx/zoom_def.hxx>
24 #include <com/sun/star/container/XNameReplace.hpp>
26 #include "tools/link.hxx"
27 #include <com/sun/star/frame/XFrame.hpp>
33 class FmShowColsDialog
;
35 class FmInputRecordNoDialog
;
36 class SvxJSearchOptionsDialog
;
37 class SvxNewDictionaryDialog
;
41 class SvxObjectNameDialog
;
42 class SvxObjectTitleDescDialog
;
45 class SvxMultiPathDialog
;
49 class GraphicFilterDialog
;
50 class SvxAreaTabDialog
;
51 class InsertObjectDialog_Impl
;
52 class SvPasteObjectDialog
;
54 class SvxTransformTabDialog
;
55 class SvxCaptionTabDialog
;
56 class SvxThesaurusDialog
;
57 class SvxHyphenWordDialog
;
60 class HangulHanjaConversionDialog
;
64 #define DECL_ABSTDLG_BASE(Class,DialogClass) \
65 ScopedVclPtr<DialogClass> pDlg; \
67 Class( DialogClass* p) \
70 virtual short Execute() SAL_OVERRIDE ;
72 #define IMPL_ABSTDLG_BASE(Class) \
73 short Class::Execute() \
75 return pDlg->Execute(); \
78 class VclAbstractDialog2_Impl
: public VclAbstractDialog2
80 ScopedVclPtr
<Dialog
> m_pDlg
;
83 VclAbstractDialog2_Impl( Dialog
* p
) : m_pDlg( p
) {}
84 virtual ~VclAbstractDialog2_Impl();
85 virtual void StartExecuteModal( const Link
<>& rEndDialogHdl
) SAL_OVERRIDE
;
86 virtual long GetResult() SAL_OVERRIDE
;
88 DECL_LINK( EndDialogHdl
, Dialog
* );
91 class CuiVclAbstractDialog_Impl
: public VclAbstractDialog
93 DECL_ABSTDLG_BASE(CuiVclAbstractDialog_Impl
,Dialog
)
96 class VclAbstractRefreshableDialog_Impl
: public VclAbstractRefreshableDialog
98 DECL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl
,Dialog
)
99 virtual void Update() SAL_OVERRIDE
;
100 virtual void Sync() SAL_OVERRIDE
;
103 class CuiAbstractSfxDialog_Impl
: public SfxAbstractDialog
105 DECL_ABSTDLG_BASE(CuiAbstractSfxDialog_Impl
,SfxModalDialog
)
106 virtual const SfxItemSet
* GetOutputItemSet() const SAL_OVERRIDE
;
109 virtual void SetText( const OUString
& rStr
) SAL_OVERRIDE
;
110 virtual OUString
GetText() const SAL_OVERRIDE
;
113 class CuiAbstractTabDialog_Impl
: public SfxAbstractTabDialog
115 DECL_ABSTDLG_BASE(CuiAbstractTabDialog_Impl
,SfxTabDialog
)
116 virtual void SetCurPageId( sal_uInt16 nId
) SAL_OVERRIDE
;
117 virtual void SetCurPageId( const OString
& rName
) SAL_OVERRIDE
;
118 virtual const SfxItemSet
* GetOutputItemSet() const SAL_OVERRIDE
;
119 virtual const sal_uInt16
* GetInputRanges( const SfxItemPool
& pItem
) SAL_OVERRIDE
;
120 virtual void SetInputSet( const SfxItemSet
* pInSet
) SAL_OVERRIDE
;
122 virtual void SetText( const OUString
& rStr
) SAL_OVERRIDE
;
123 virtual OUString
GetText() const SAL_OVERRIDE
;
126 class SvxDistributeDialog
;
127 class AbstractSvxDistributeDialog_Impl
: public AbstractSvxDistributeDialog
129 DECL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl
,SvxDistributeDialog
)
131 virtual SvxDistributeHorizontal
GetDistributeHor() const SAL_OVERRIDE
;
132 virtual SvxDistributeVertical
GetDistributeVer() const SAL_OVERRIDE
;
135 class AbstractHangulHanjaConversionDialog_Impl
: public AbstractHangulHanjaConversionDialog
137 DECL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl
,HangulHanjaConversionDialog
)
138 virtual void EndDialog(long nResult
= 0) SAL_OVERRIDE
;
139 virtual void EnableRubySupport( bool _bVal
) SAL_OVERRIDE
;
140 virtual void SetByCharacter( bool _bByCharacter
) SAL_OVERRIDE
;
141 virtual void SetConversionDirectionState( bool _bTryBothDirections
, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection
) SAL_OVERRIDE
;
142 virtual void SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType
) SAL_OVERRIDE
;
143 virtual void SetOptionsChangedHdl( const Link
<>& _rHdl
) SAL_OVERRIDE
;
144 virtual void SetIgnoreHdl( const Link
<>& _rHdl
) SAL_OVERRIDE
;
145 virtual void SetIgnoreAllHdl( const Link
<>& _rHdl
) SAL_OVERRIDE
;
146 virtual void SetChangeHdl( const Link
<>& _rHdl
) SAL_OVERRIDE
;
147 virtual void SetChangeAllHdl( const Link
<>& _rHdl
) SAL_OVERRIDE
;
148 virtual void SetClickByCharacterHdl( const Link
<>& _rHdl
) SAL_OVERRIDE
;
149 virtual void SetConversionFormatChangedHdl( const Link
<>& _rHdl
) SAL_OVERRIDE
;
150 virtual void SetFindHdl( const Link
<>& _rHdl
) SAL_OVERRIDE
;
151 virtual bool GetUseBothDirections( ) const SAL_OVERRIDE
;
152 virtual editeng::HangulHanjaConversion::ConversionDirection
153 GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection
) const SAL_OVERRIDE
;
154 virtual void SetCurrentString(
155 const OUString
& _rNewString
,
156 const ::com::sun::star::uno::Sequence
< OUString
>& _rSuggestions
,
157 bool _bOriginatesFromDocument
= true
159 virtual OUString
GetCurrentString( ) const SAL_OVERRIDE
;
160 virtual editeng::HangulHanjaConversion::ConversionFormat
161 GetConversionFormat( ) const SAL_OVERRIDE
;
162 virtual void FocusSuggestion( ) SAL_OVERRIDE
;
163 virtual OUString
GetCurrentSuggestion( ) const SAL_OVERRIDE
;
166 class AbstractThesaurusDialog_Impl
: public AbstractThesaurusDialog
168 DECL_ABSTDLG_BASE(AbstractThesaurusDialog_Impl
,SvxThesaurusDialog
)
169 virtual OUString
GetWord() SAL_OVERRIDE
;
170 virtual sal_uInt16
GetLanguage() const SAL_OVERRIDE
;
171 virtual vcl::Window
* GetWindow() SAL_OVERRIDE
;
174 class AbstractHyphenWordDialog_Impl
: public AbstractHyphenWordDialog
176 DECL_ABSTDLG_BASE(AbstractHyphenWordDialog_Impl
,SvxHyphenWordDialog
)
177 virtual void SelLeft() SAL_OVERRIDE
;
178 virtual void SelRight() SAL_OVERRIDE
;
179 virtual vcl::Window
* GetWindow() SAL_OVERRIDE
;
182 class FmShowColsDialog
;
183 class AbstractFmShowColsDialog_Impl
: public AbstractFmShowColsDialog
185 DECL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl
,FmShowColsDialog
)
186 virtual void SetColumns(const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XIndexContainer
>& xCols
) SAL_OVERRIDE
;
190 class AbstractSvxZoomDialog_Impl
: public AbstractSvxZoomDialog
192 DECL_ABSTDLG_BASE(AbstractSvxZoomDialog_Impl
,SvxZoomDialog
)
193 virtual void SetLimits( sal_uInt16 nMin
, sal_uInt16 nMax
) SAL_OVERRIDE
;
194 virtual void HideButton( ZoomButtonId nBtnId
) SAL_OVERRIDE
;
195 virtual const SfxItemSet
* GetOutputItemSet() const SAL_OVERRIDE
;
199 namespace svx
{ class SpellDialog
;}
200 class AbstractSpellDialog_Impl
: public AbstractSpellDialog
203 DECL_ABSTDLG_BASE(AbstractSpellDialog_Impl
, svx::SpellDialog
)
204 virtual void SetLanguage( sal_uInt16 nLang
) SAL_OVERRIDE
;
205 virtual bool Close() SAL_OVERRIDE
;
206 virtual void Invalidate() SAL_OVERRIDE
;
207 virtual vcl::Window
* GetWindow() SAL_OVERRIDE
;
208 virtual SfxBindings
& GetBindings() SAL_OVERRIDE
;
211 class SearchProgress
;
212 class AbstractSearchProgress_Impl
: public AbstractSearchProgress
214 DECL_ABSTDLG_BASE(AbstractSearchProgress_Impl
,SearchProgress
)
215 virtual void Update() SAL_OVERRIDE
;
216 virtual void Sync() SAL_OVERRIDE
;
217 virtual void SetFileType( const OUString
& rType
) SAL_OVERRIDE
;
218 virtual void SetDirectory( const INetURLObject
& rURL
) SAL_OVERRIDE
;
219 virtual PLinkStub
GetLinkStubCleanUpHdl() SAL_OVERRIDE
;
224 class AbstractTakeProgress_Impl
: public AbstractTakeProgress
226 DECL_ABSTDLG_BASE(AbstractTakeProgress_Impl
,TakeProgress
)
227 virtual void Update() SAL_OVERRIDE
;
228 virtual void Sync() SAL_OVERRIDE
;
229 virtual void SetFile( const INetURLObject
& rURL
) SAL_OVERRIDE
;
230 virtual PLinkStub
GetLinkStubCleanUpHdl() SAL_OVERRIDE
;
235 class AbstractTitleDialog_Impl
: public AbstractTitleDialog
237 DECL_ABSTDLG_BASE(AbstractTitleDialog_Impl
,TitleDialog
)
238 virtual OUString
GetTitle() const SAL_OVERRIDE
;
242 class SvxScriptSelectorDialog
;
243 class AbstractScriptSelectorDialog_Impl
: public AbstractScriptSelectorDialog
246 AbstractScriptSelectorDialog_Impl
, SvxScriptSelectorDialog
)
248 virtual OUString
GetScriptURL() const SAL_OVERRIDE
;
250 virtual void SetRunLabel() SAL_OVERRIDE
;
253 class GalleryIdDialog
;
254 class AbstractGalleryIdDialog_Impl
: public AbstractGalleryIdDialog
256 DECL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl
,GalleryIdDialog
)
257 virtual sal_uLong
GetId() const SAL_OVERRIDE
;
262 class AbstractURLDlg_Impl
:public AbstractURLDlg
264 DECL_ABSTDLG_BASE(AbstractURLDlg_Impl
,URLDlg
)
265 virtual OUString
GetURL() const SAL_OVERRIDE
;
266 virtual OUString
GetAltText() const SAL_OVERRIDE
;
267 virtual OUString
GetDesc() const SAL_OVERRIDE
;
268 virtual OUString
GetTarget() const SAL_OVERRIDE
;
269 virtual OUString
GetName() const SAL_OVERRIDE
;
272 class SvxHlinkDlgMarkWnd
;
273 class AbstractSvxHlinkDlgMarkWnd_Impl
: public AbstractSvxHlinkDlgMarkWnd
275 DECL_ABSTDLG_BASE(AbstractSvxHlinkDlgMarkWnd_Impl
,SvxHlinkDlgMarkWnd
)
276 virtual void Hide() SAL_OVERRIDE
;
277 virtual bool IsVisible() const SAL_OVERRIDE
;
278 virtual void Invalidate( sal_uInt16 nFlags
= 0 ) SAL_OVERRIDE
;
279 virtual void SetSizePixel( const Size
& rNewSize
) SAL_OVERRIDE
;
280 virtual Size
GetSizePixel() const SAL_OVERRIDE
;
281 virtual bool MoveTo( Point aNewPos
) const SAL_OVERRIDE
;
282 virtual bool ConnectToDialog( bool bDoit
= true ) const SAL_OVERRIDE
;
283 virtual void RefreshTree ( const OUString
& aStrURL
) SAL_OVERRIDE
;
284 virtual void SelectEntry ( const OUString
& aStrMark
) SAL_OVERRIDE
;
285 virtual sal_uInt16
SetError( sal_uInt16 nError
) SAL_OVERRIDE
;
289 class SvxSearchSimilarityDialog
;
290 class AbstractSvxSearchSimilarityDialog_Impl
:public AbstractSvxSearchSimilarityDialog
292 DECL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl
,SvxSearchSimilarityDialog
)
293 virtual sal_uInt16
GetOther() SAL_OVERRIDE
;
294 virtual sal_uInt16
GetShorter() SAL_OVERRIDE
;
295 virtual sal_uInt16
GetLonger() SAL_OVERRIDE
;
296 virtual bool IsRelaxed() SAL_OVERRIDE
;
299 class SvxJSearchOptionsDialog
;
300 class AbstractSvxJSearchOptionsDialog_Impl
:public AbstractSvxJSearchOptionsDialog
302 DECL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl
,SvxJSearchOptionsDialog
)
303 virtual sal_Int32
GetTransliterationFlags() const SAL_OVERRIDE
;
306 class AbstractSvxTransformTabDialog_Impl
: public AbstractSvxTransformTabDialog
308 DECL_ABSTDLG_BASE(AbstractSvxTransformTabDialog_Impl
,SvxTransformTabDialog
)
309 virtual void SetValidateFramePosLink( const Link
<>& rLink
) SAL_OVERRIDE
;
310 virtual void SetCurPageId( sal_uInt16 nId
) SAL_OVERRIDE
;
311 virtual void SetCurPageId( const OString
& rName
) SAL_OVERRIDE
;
312 virtual const SfxItemSet
* GetOutputItemSet() const SAL_OVERRIDE
;
313 virtual const sal_uInt16
* GetInputRanges( const SfxItemPool
& pItem
) SAL_OVERRIDE
;
314 virtual void SetInputSet( const SfxItemSet
* pInSet
) SAL_OVERRIDE
;
315 virtual void SetText( const OUString
& rStr
) SAL_OVERRIDE
;
316 virtual OUString
GetText() const SAL_OVERRIDE
;
319 class AbstractSvxCaptionDialog_Impl
: public AbstractSvxCaptionDialog
321 DECL_ABSTDLG_BASE(AbstractSvxCaptionDialog_Impl
,SvxCaptionTabDialog
)
322 virtual void SetValidateFramePosLink( const Link
<>& rLink
) SAL_OVERRIDE
;
323 virtual void SetCurPageId( sal_uInt16 nId
) SAL_OVERRIDE
;
324 virtual void SetCurPageId( const OString
& rName
) SAL_OVERRIDE
;
325 virtual const SfxItemSet
* GetOutputItemSet() const SAL_OVERRIDE
;
326 virtual const sal_uInt16
* GetInputRanges( const SfxItemPool
& pItem
) SAL_OVERRIDE
;
327 virtual void SetInputSet( const SfxItemSet
* pInSet
) SAL_OVERRIDE
;
328 virtual void SetText( const OUString
& rStr
) SAL_OVERRIDE
;
329 virtual OUString
GetText() const SAL_OVERRIDE
;
332 class FmInputRecordNoDialog
;
333 class AbstractFmInputRecordNoDialog_Impl
:public AbstractFmInputRecordNoDialog
335 DECL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl
,FmInputRecordNoDialog
)
336 virtual void SetValue(long nNew
) SAL_OVERRIDE
;
337 virtual long GetValue() const SAL_OVERRIDE
;
340 class SvxNewDictionaryDialog
;
341 class AbstractSvxNewDictionaryDialog_Impl
:public AbstractSvxNewDictionaryDialog
343 DECL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl
,SvxNewDictionaryDialog
)
344 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::linguistic2::XDictionary
> GetNewDictionary() SAL_OVERRIDE
;
348 class AbstractSvxNameDialog_Impl
:public AbstractSvxNameDialog
350 DECL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl
,SvxNameDialog
)
351 virtual void GetName( OUString
& rName
) SAL_OVERRIDE
;
352 virtual void SetCheckNameHdl( const Link
<>& rLink
, bool bCheckImmediately
= false ) SAL_OVERRIDE
;
353 virtual void SetEditHelpId(const OString
&) SAL_OVERRIDE
;
355 virtual void SetHelpId( const OString
& ) SAL_OVERRIDE
;
356 virtual void SetText( const OUString
& rStr
) SAL_OVERRIDE
;
358 Link
<> aCheckNameHdl
;
359 DECL_LINK(CheckNameHdl
, void *);
362 class SvxObjectNameDialog
;
363 class SvxObjectTitleDescDialog
;
365 class AbstractSvxObjectNameDialog_Impl
:public AbstractSvxObjectNameDialog
367 DECL_ABSTDLG_BASE(AbstractSvxObjectNameDialog_Impl
, SvxObjectNameDialog
)
368 virtual void GetName(OUString
& rName
) SAL_OVERRIDE
;
369 virtual void SetCheckNameHdl(const Link
<>& rLink
, bool bCheckImmediately
= false) SAL_OVERRIDE
;
372 Link
<> aCheckNameHdl
;
373 DECL_LINK(CheckNameHdl
, void *);
376 class AbstractSvxObjectTitleDescDialog_Impl
:public AbstractSvxObjectTitleDescDialog
378 DECL_ABSTDLG_BASE(AbstractSvxObjectTitleDescDialog_Impl
, SvxObjectTitleDescDialog
)
379 virtual void GetTitle(OUString
& rName
) SAL_OVERRIDE
;
380 virtual void GetDescription(OUString
& rName
) SAL_OVERRIDE
;
384 class AbstractSvxMessDialog_Impl
:public AbstractSvxMessDialog
386 DECL_ABSTDLG_BASE(AbstractSvxMessDialog_Impl
,SvxMessDialog
)
387 virtual void SetButtonText( sal_uInt16 nBtnId
, const OUString
& rNewTxt
) SAL_OVERRIDE
;
390 class SvxMultiPathDialog
;
391 class AbstractSvxMultiPathDialog_Impl
: public AbstractSvxMultiPathDialog
393 DECL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl
,SvxMultiPathDialog
)
394 virtual OUString
GetPath() const SAL_OVERRIDE
;
395 virtual void SetPath( const OUString
& rPath
) SAL_OVERRIDE
;
396 virtual void SetTitle( const OUString
& rNewTitle
) SAL_OVERRIDE
;
399 class SvxPathSelectDialog
;
400 class AbstractSvxPathSelectDialog_Impl
: public AbstractSvxMultiPathDialog
402 DECL_ABSTDLG_BASE(AbstractSvxPathSelectDialog_Impl
,SvxPathSelectDialog
)
403 virtual OUString
GetPath() const SAL_OVERRIDE
;
404 virtual void SetPath( const OUString
& rPath
) SAL_OVERRIDE
;
405 virtual void SetTitle( const OUString
& rNewTitle
) SAL_OVERRIDE
;
409 class AbstractSvxHpLinkDlg_Impl
:public AbstractSvxHpLinkDlg
411 DECL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl
,SvxHpLinkDlg
)
412 virtual vcl::Window
* GetWindow() SAL_OVERRIDE
;
413 virtual bool QueryClose() SAL_OVERRIDE
;
416 class FmSearchDialog
;
417 class AbstractFmSearchDialog_Impl
:public AbstractFmSearchDialog
419 DECL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl
,FmSearchDialog
)
420 virtual void SetFoundHandler(const Link
<>& lnk
) SAL_OVERRIDE
;
421 virtual void SetCanceledNotFoundHdl(const Link
<>& lnk
) SAL_OVERRIDE
;
422 virtual void SetActiveField(const OUString
& strField
) SAL_OVERRIDE
;
425 class AbstractGraphicFilterDialog_Impl
:public AbstractGraphicFilterDialog
427 DECL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl
,GraphicFilterDialog
)
428 virtual Graphic
GetFilteredGraphic( const Graphic
& rGraphic
, double fScaleX
, double fScaleY
) SAL_OVERRIDE
;
431 class SvxAreaTabDialog
;
432 class AbstractSvxAreaTabDialog_Impl
:public AbstractSvxAreaTabDialog
434 DECL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl
,SvxAreaTabDialog
)
435 virtual void SetCurPageId( sal_uInt16 nId
) SAL_OVERRIDE
;
436 virtual void SetCurPageId( const OString
& rName
) SAL_OVERRIDE
;
437 virtual const SfxItemSet
* GetOutputItemSet() const SAL_OVERRIDE
;
438 virtual const sal_uInt16
* GetInputRanges( const SfxItemPool
& pItem
) SAL_OVERRIDE
;
439 virtual void SetInputSet( const SfxItemSet
* pInSet
) SAL_OVERRIDE
;
440 // From class Window.
441 virtual void SetText( const OUString
& rStr
) SAL_OVERRIDE
;
442 virtual OUString
GetText() const SAL_OVERRIDE
;
445 class AbstractInsertObjectDialog_Impl
: public SfxAbstractInsertObjectDialog
447 DECL_ABSTDLG_BASE(AbstractInsertObjectDialog_Impl
, InsertObjectDialog_Impl
)
448 virtual com::sun::star::uno::Reference
< com::sun::star::embed::XEmbeddedObject
> GetObject() SAL_OVERRIDE
;
449 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
> GetIconIfIconified( OUString
* pGraphicMediaType
) SAL_OVERRIDE
;
450 virtual bool IsCreateNew() SAL_OVERRIDE
;
453 class AbstractPasteDialog_Impl
: public SfxAbstractPasteDialog
456 DECL_ABSTDLG_BASE(AbstractPasteDialog_Impl
, SvPasteObjectDialog
)
457 virtual void Insert( SotClipboardFormatId nFormat
, const OUString
& rFormatName
) SAL_OVERRIDE
;
458 virtual void SetObjName( const SvGlobalName
& rClass
, const OUString
& rObjName
) SAL_OVERRIDE
;
459 virtual SotClipboardFormatId
GetFormat( const TransferableDataHelper
& aHelper
,
460 const DataFlavorExVector
* pFormats
=0,
461 const TransferableObjectDescriptor
* pDesc
=0 ) SAL_OVERRIDE
;
464 class AbstractLinksDialog_Impl
: public SfxAbstractLinksDialog
467 DECL_ABSTDLG_BASE(AbstractLinksDialog_Impl
, SvBaseLinksDlg
)
470 class SvxPostItDialog
;
471 class AbstractSvxPostItDialog_Impl
:public AbstractSvxPostItDialog
473 DECL_ABSTDLG_BASE( AbstractSvxPostItDialog_Impl
, SvxPostItDialog
)
474 virtual void SetText( const OUString
& rStr
) SAL_OVERRIDE
; //From class Window
475 virtual const SfxItemSet
* GetOutputItemSet() const SAL_OVERRIDE
;
476 virtual void SetPrevHdl( const Link
<>& rLink
) SAL_OVERRIDE
;
477 virtual void SetNextHdl( const Link
<>& rLink
) SAL_OVERRIDE
;
478 virtual void EnableTravel(bool bNext
, bool bPrev
) SAL_OVERRIDE
;
479 virtual OUString
GetNote() SAL_OVERRIDE
;
480 virtual void SetNote(const OUString
& rTxt
) SAL_OVERRIDE
;
481 virtual void ShowLastAuthor(const OUString
& rAuthor
, const OUString
& rDate
) SAL_OVERRIDE
;
482 virtual void DontChangeAuthor() SAL_OVERRIDE
;
483 virtual void HideAuthor() SAL_OVERRIDE
;
484 virtual void SetReadonlyPostIt(bool bDisable
) SAL_OVERRIDE
;
485 virtual bool IsOkEnabled() const SAL_OVERRIDE
;
486 virtual vcl::Window
* GetWindow() SAL_OVERRIDE
;
490 DECL_LINK(NextHdl
, void *);
491 DECL_LINK(PrevHdl
, void *);
494 class PasswordToOpenModifyDialog
;
495 class AbstractPasswordToOpenModifyDialog_Impl
: public AbstractPasswordToOpenModifyDialog
497 DECL_ABSTDLG_BASE( AbstractPasswordToOpenModifyDialog_Impl
, PasswordToOpenModifyDialog
)
499 virtual OUString
GetPasswordToOpen() const SAL_OVERRIDE
;
500 virtual OUString
GetPasswordToModify() const SAL_OVERRIDE
;
501 virtual bool IsRecommendToOpenReadonly() const SAL_OVERRIDE
;
504 //AbstractDialogFactory_Impl implementations
505 class AbstractDialogFactory_Impl
: public SvxAbstractDialogFactory
508 virtual VclAbstractDialog
* CreateVclDialog( vcl::Window
* pParent
, sal_uInt32 nResId
) SAL_OVERRIDE
;
509 virtual VclAbstractDialog
* CreateSfxDialog( vcl::Window
* pParent
, const SfxBindings
& rBindings
, sal_uInt32 nResId
) SAL_OVERRIDE
;
511 virtual SfxAbstractDialog
* CreateSfxDialog( vcl::Window
* pParent
,
512 const SfxItemSet
& rAttr
,
513 const SdrView
* pView
,
514 sal_uInt32 nResId
) SAL_OVERRIDE
;
515 virtual SfxAbstractDialog
* CreateSfxDialog( vcl::Window
* pParent
,
516 const SfxItemSet
& rAttr
,
517 const css::uno::Reference
< css::frame::XFrame
>& _rxFrame
,
518 sal_uInt32 nResId
) SAL_OVERRIDE
;
519 virtual VclAbstractDialog
* CreateFrameDialog( vcl::Window
* pParent
,
520 const css::uno::Reference
< css::frame::XFrame
>& rxFrame
,
522 const OUString
& rParameter
) SAL_OVERRIDE
;
523 virtual SfxAbstractTabDialog
* CreateTabDialog( sal_uInt32 nResId
,
524 vcl::Window
* pParent
,
525 const SfxItemSet
* pAttrSet
,
526 SfxViewFrame
* pViewFrame
,
528 const OUString
*pUserButtonText
=0 ) SAL_OVERRIDE
;
529 virtual SfxAbstractTabDialog
* CreateTabDialog( sal_uInt32 nResId
,
530 vcl::Window
* pParent
,
531 const SfxItemSet
* pAttrSet
,
532 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& xViewFrame
,
534 const OUString
*pUserButtonText
=0 ) SAL_OVERRIDE
;
535 virtual SfxAbstractTabDialog
* CreateTextTabDialog( vcl::Window
* pParent
,
536 const SfxItemSet
* pAttrSet
,
538 SdrModel
* pModel
=0 ) SAL_OVERRIDE
;
539 virtual SfxAbstractTabDialog
* CreateTabItemDialog(vcl::Window
* pParent
,
540 const SfxItemSet
& rSet
) SAL_OVERRIDE
;
541 virtual AbstractSvxCaptionDialog
* CreateCaptionDialog( vcl::Window
* pParent
,
542 const SdrView
* pView
,
543 sal_uInt16 nAnchorTypes
= 0 ) SAL_OVERRIDE
;
544 virtual AbstractSvxDistributeDialog
* CreateSvxDistributeDialog(vcl::Window
* pParent
,
545 const SfxItemSet
& rAttr
,
546 SvxDistributeHorizontal eHor
= SvxDistributeHorizontalNone
,
547 SvxDistributeVertical eVer
= SvxDistributeVerticalNone
) SAL_OVERRIDE
;
548 virtual SfxAbstractInsertObjectDialog
* CreateInsertObjectDialog( vcl::Window
* pParent
, const OUString
& rCommmand
,
549 const com::sun::star::uno::Reference
< com::sun::star::embed::XStorage
>& xStor
,
550 const SvObjectServerList
* pList
= 0 ) SAL_OVERRIDE
;
551 virtual VclAbstractDialog
* CreateEditObjectDialog( vcl::Window
* pParent
, const OUString
& rCommmand
,
552 const com::sun::star::uno::Reference
< com::sun::star::embed::XEmbeddedObject
>& xObj
) SAL_OVERRIDE
;
553 virtual SfxAbstractPasteDialog
* CreatePasteDialog( vcl::Window
* pParent
) SAL_OVERRIDE
;
554 virtual SfxAbstractLinksDialog
* CreateLinksDialog( vcl::Window
* pParent
, sfx2::LinkManager
* pMgr
, bool bHTML
, sfx2::SvBaseLink
* p
=0 ) SAL_OVERRIDE
;
556 virtual AbstractHangulHanjaConversionDialog
* CreateHangulHanjaConversionDialog( vcl::Window
* _pParent
,
557 editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection
) SAL_OVERRIDE
;
558 virtual AbstractThesaurusDialog
* CreateThesaurusDialog( vcl::Window
*, ::com::sun::star::uno::Reference
< ::com::sun::star::linguistic2::XThesaurus
> xThesaurus
,
559 const OUString
&rWord
, sal_Int16 nLanguage
) SAL_OVERRIDE
;
561 virtual AbstractHyphenWordDialog
* CreateHyphenWordDialog( vcl::Window
*,
562 const OUString
&rWord
, LanguageType nLang
,
563 ::com::sun::star::uno::Reference
< ::com::sun::star::linguistic2::XHyphenator
> &xHyphen
,
564 SvxSpellWrapper
* pWrapper
) SAL_OVERRIDE
;
566 virtual AbstractFmShowColsDialog
* CreateFmShowColsDialog( vcl::Window
* pParent
) SAL_OVERRIDE
;
567 virtual AbstractSvxZoomDialog
* CreateSvxZoomDialog( vcl::Window
* pParent
,
568 const SfxItemSet
& rCoreSet
) SAL_OVERRIDE
;
569 //UUUU add for SvxBorderBackgroundDlg
570 virtual SfxAbstractTabDialog
* CreateSvxBorderBackgroundDlg(
571 vcl::Window
* pParent
,
572 const SfxItemSet
& rCoreSet
,
573 bool bEnableSelector
= false,
574 bool bEnableDrawingLayerFillStyles
= false) SAL_OVERRIDE
;
576 virtual AbstractSvxTransformTabDialog
* CreateSvxTransformTabDialog( vcl::Window
* pParent
,
577 const SfxItemSet
* pAttr
,
578 const SdrView
* pView
,
579 sal_uInt16 nAnchorTypes
= 0) SAL_OVERRIDE
;
580 virtual SfxAbstractTabDialog
* CreateSchTransformTabDialog( vcl::Window
* pParent
,
581 const SfxItemSet
* pAttr
,
582 const SdrView
* pSdrView
,
584 bool bSizeTabPage
= false
586 virtual AbstractSpellDialog
* CreateSvxSpellDialog(
587 vcl::Window
* pParent
,
588 SfxBindings
* pBindings
,
589 svx::SpellDialogChildWindow
* pSpellChildWindow
) SAL_OVERRIDE
;
591 virtual VclAbstractRefreshableDialog
* CreateActualizeProgressDialog( vcl::Window
* pParent
, GalleryTheme
* pThm
) SAL_OVERRIDE
;
592 virtual AbstractSearchProgress
* CreateSearchProgressDialog( vcl::Window
* pParent
,
593 const INetURLObject
& rStartURL
) SAL_OVERRIDE
;
594 virtual AbstractTakeProgress
* CreateTakeProgressDialog( vcl::Window
* pParent
) SAL_OVERRIDE
;
595 virtual AbstractTitleDialog
* CreateTitleDialog( vcl::Window
* pParent
,
596 const OUString
& rOldText
) SAL_OVERRIDE
;
597 virtual AbstractGalleryIdDialog
* CreateGalleryIdDialog( vcl::Window
* pParent
,
598 GalleryTheme
* pThm
) SAL_OVERRIDE
;
599 virtual VclAbstractDialog2
* CreateGalleryThemePropertiesDialog( vcl::Window
* pParent
,
601 SfxItemSet
* pItemSet
) SAL_OVERRIDE
;
602 virtual AbstractURLDlg
* CreateURLDialog( vcl::Window
* pParent
,
603 const OUString
& rURL
, const OUString
& rAltText
, const OUString
& rDescription
,
604 const OUString
& rTarget
, const OUString
& rName
,
605 TargetList
& rTargetList
) SAL_OVERRIDE
;
606 virtual AbstractSvxHlinkDlgMarkWnd
* CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase
* pParent
, sal_uInt32 nResId
) SAL_OVERRIDE
;
608 virtual VclAbstractDialog
* CreateSvxSearchAttributeDialog( vcl::Window
* pParent
,
609 SearchAttrItemList
& rLst
,
610 const sal_uInt16
* pWhRanges
) SAL_OVERRIDE
;
611 virtual AbstractSvxSearchSimilarityDialog
* CreateSvxSearchSimilarityDialog( vcl::Window
* pParent
,
615 sal_uInt16 nLonger
) SAL_OVERRIDE
;
616 virtual AbstractSvxJSearchOptionsDialog
* CreateSvxJSearchOptionsDialog( vcl::Window
* pParent
,
617 const SfxItemSet
& rOptionsSet
,
618 sal_Int32 nInitialFlags
) SAL_OVERRIDE
;
619 virtual AbstractFmInputRecordNoDialog
* CreateFmInputRecordNoDialog( vcl::Window
* pParent
) SAL_OVERRIDE
;
620 virtual AbstractSvxNewDictionaryDialog
* CreateSvxNewDictionaryDialog( vcl::Window
* pParent
,
621 ::com::sun::star::uno::Reference
< ::com::sun::star::linguistic2::XSpellChecker1
> &xSpl
) SAL_OVERRIDE
;
622 virtual VclAbstractDialog
* CreateSvxEditDictionaryDialog( vcl::Window
* pParent
,
623 const OUString
& rName
,
624 ::com::sun::star::uno::Reference
< ::com::sun::star::linguistic2::XSpellChecker1
> &xSpl
,
625 sal_uInt32 nResId
) SAL_OVERRIDE
;
626 virtual AbstractSvxNameDialog
* CreateSvxNameDialog( vcl::Window
* pParent
,
627 const OUString
& rName
, const OUString
& rDesc
) SAL_OVERRIDE
;
629 virtual AbstractSvxObjectNameDialog
* CreateSvxObjectNameDialog(vcl::Window
* pParent
, const OUString
& rName
) SAL_OVERRIDE
;
630 virtual AbstractSvxObjectTitleDescDialog
* CreateSvxObjectTitleDescDialog(vcl::Window
* pParent
, const OUString
& rTitle
, const OUString
& rDescription
) SAL_OVERRIDE
;
632 virtual AbstractSvxMessDialog
* CreateSvxMessDialog( vcl::Window
* pParent
, sal_uInt32 nResId
,
633 const OUString
& rText
, const OUString
& rDesc
,
634 Image
* pImg
= NULL
) SAL_OVERRIDE
;
635 virtual AbstractSvxMultiPathDialog
* CreateSvxMultiPathDialog(vcl::Window
* pParent
) SAL_OVERRIDE
;
636 virtual AbstractSvxMultiPathDialog
* CreateSvxPathSelectDialog(vcl::Window
* pParent
) SAL_OVERRIDE
;
637 virtual AbstractSvxHpLinkDlg
* CreateSvxHpLinkDlg (vcl::Window
* pParent
,
638 SfxBindings
* pBindings
,
639 sal_uInt32 nResId
) SAL_OVERRIDE
;
640 virtual AbstractFmSearchDialog
* CreateFmSearchDialog(vcl::Window
* pParent
,
641 const OUString
& strInitialText
,
642 const ::std::vector
< OUString
>& _rContexts
,
643 sal_Int16 nInitialContext
,
644 const Link
<>& lnkContextSupplier
) SAL_OVERRIDE
;
645 virtual AbstractGraphicFilterDialog
* CreateGraphicFilterEmboss(vcl::Window
* pParent
,
646 const Graphic
& rGraphic
, RECT_POINT eLightSource
) SAL_OVERRIDE
;
647 virtual AbstractGraphicFilterDialog
* CreateGraphicFilterPoster(vcl::Window
* pParent
,
648 const Graphic
& rGraphic
, sal_uInt16 nCount
) SAL_OVERRIDE
;
649 virtual AbstractGraphicFilterDialog
* CreateGraphicFilterSepia (vcl::Window
* pParent
,
650 const Graphic
& rGraphic
, sal_uInt16 nCount
) SAL_OVERRIDE
;
651 virtual AbstractGraphicFilterDialog
* CreateGraphicFilterSmooth (vcl::Window
* pParent
,
652 const Graphic
& rGraphic
, double nRadius
) SAL_OVERRIDE
;
653 virtual AbstractGraphicFilterDialog
* CreateGraphicFilterSolarize (vcl::Window
* pParent
,
654 const Graphic
& rGraphic
, sal_uInt8 nGreyThreshold
,
655 bool bInvert
) SAL_OVERRIDE
;
656 virtual AbstractGraphicFilterDialog
* CreateGraphicFilterMosaic (vcl::Window
* pParent
,
657 const Graphic
& rGraphic
, sal_uInt16 nTileWidth
, sal_uInt16 nTileHeight
,
658 bool bEnhanceEdges
) SAL_OVERRIDE
;
659 virtual AbstractSvxAreaTabDialog
* CreateSvxAreaTabDialog( vcl::Window
* pParent
,
660 const SfxItemSet
* pAttr
,
662 bool bShadow
) SAL_OVERRIDE
;
663 virtual SfxAbstractTabDialog
* CreateSvxLineTabDialog( vcl::Window
* pParent
, const SfxItemSet
* pAttr
,
665 const SdrObject
* pObj
= NULL
,
666 bool bHasObj
= true ) SAL_OVERRIDE
;
667 virtual AbstractSvxPostItDialog
* CreateSvxPostItDialog( vcl::Window
* pParent
,
668 const SfxItemSet
& rCoreSet
,
669 bool bPrevNext
= false ) SAL_OVERRIDE
;
672 virtual CreateTabPage
GetTabPageCreatorFunc( sal_uInt16 nId
) SAL_OVERRIDE
;
673 virtual CreateSvxDistributePage
GetSvxDistributePageCreatorFunc() SAL_OVERRIDE
;
675 virtual GetTabPageRanges
GetTabPageRangesFunc( sal_uInt16 nId
) SAL_OVERRIDE
;
676 virtual DialogGetRanges
GetDialogGetRangesFunc() SAL_OVERRIDE
;
677 virtual VclAbstractDialog
* CreateSvxScriptOrgDialog( vcl::Window
* pParent
, const OUString
& rLanguage
) SAL_OVERRIDE
;
679 virtual AbstractScriptSelectorDialog
*
680 CreateScriptSelectorDialog(
681 vcl::Window
* pParent
,
683 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& _rxFrame
686 virtual VclAbstractDialog
* CreateScriptErrorDialog(
687 vcl::Window
* pParent
, const css::uno::Any
& rException
) SAL_OVERRIDE
;
689 virtual VclAbstractDialog
* CreateSvxMacroAssignDlg(
690 vcl::Window
* _pParent
,
691 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& _rxDocumentFrame
,
692 const bool _bUnoDialogMode
,
693 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameReplace
>& _rxEvents
,
694 const sal_uInt16 _nInitiallySelectedEvent
697 virtual SfxAbstractTabDialog
* CreateSvxFormatCellsDialog( vcl::Window
* pParent
, const SfxItemSet
* pAttr
, SdrModel
* pModel
, const SdrObject
* pObj
= NULL
) SAL_OVERRIDE
;
699 virtual SvxAbstractSplittTableDialog
* CreateSvxSplittTableDialog( vcl::Window
* pParent
, bool bIsTableVertical
, long nMaxVertical
, long nMaxHorizontal
) SAL_OVERRIDE
;
701 virtual SvxAbstractNewTableDialog
* CreateSvxNewTableDialog( vcl::Window
* pParent
) SAL_OVERRIDE
;
703 virtual VclAbstractDialog
* CreateOptionsDialog(
704 vcl::Window
* pParent
, const OUString
& rExtensionId
, const OUString
& rApplicationContext
) SAL_OVERRIDE
;
706 virtual SvxAbstractInsRowColDlg
* CreateSvxInsRowColDlg( vcl::Window
* pParent
, bool bCol
, const OString
& sHelpId
) SAL_OVERRIDE
;
708 virtual AbstractPasswordToOpenModifyDialog
* CreatePasswordToOpenModifyDialog( vcl::Window
* pParent
, sal_uInt16 nMinPasswdLen
, sal_uInt16 nMaxPasswdLen
, bool bIsPasswordToModify
) SAL_OVERRIDE
;
713 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */