1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dlgfact.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _CUI_DLGFACT_HXX
31 #define _CUI_DLGFACT_HXX
32 // include ---------------------------------------------------------------
33 #include <svx/svxdlg.hxx> //CHINA001 #include <svx/svxdlg.hxx>
34 #include <com/sun/star/container/XNameReplace.hpp>
36 #include "tools/link.hxx"
37 #include <com/sun/star/frame/XFrame.hpp>
39 //#include <sfx2/basedlgs.hxx>
40 //#include "dstribut.hxx"
41 //#include "cuigaldlg.hxx"
42 //#include "cuiimapwnd.hxx"
43 //#include "hlmarkwn.hxx"
44 //#include "cuicharmap.hxx"
45 //#include "srchxtra.hxx"
51 class FmShowColsDialog
;
53 class FmInputRecordNoDialog
;
54 class SvxJSearchOptionsDialog
;
56 class SvxNewDictionaryDialog
;
60 class SvxObjectNameDialog
;
61 class SvxObjectTitleDescDialog
;
64 class SvxMultiPathDialog
;
65 class SvxMultiFileDialog
;
69 class GraphicFilterDialog
;
70 class SvxAreaTabDialog
;
71 class InsertObjectDialog_Impl
;
72 class SvPasteObjectDialog
;
74 class SvxTransformTabDialog
;
75 class SvxCaptionTabDialog
;
78 class HangulHanjaConversionDialog
;
82 #define DECL_ABSTDLG_BASE(Class,DialogClass) \
85 Class( DialogClass* p) \
89 virtual short Execute() ;
90 // virtual void Show( BOOL bVisible = TRUE, USHORT nFlags = 0 )
92 #define IMPL_ABSTDLG_BASE(Class) \
97 short Class::Execute() \
99 return pDlg->Execute(); \
102 //for GalleryThemeProperties begin
103 class VclAbstractDialog2_Impl
: public VclAbstractDialog2
108 VclAbstractDialog2_Impl( Dialog
* p
) : m_pDlg( p
) {} \
109 virtual ~VclAbstractDialog2_Impl();
110 virtual void StartExecuteModal( const Link
& rEndDialogHdl
);
111 virtual long GetResult();
113 DECL_LINK( EndDialogHdl
, Dialog
* );
115 //for GalleryThemeProperties end
117 class VclAbstractDialog_Impl
: public VclAbstractDialog
119 DECL_ABSTDLG_BASE(VclAbstractDialog_Impl
,Dialog
)
122 //for ActualizeProgress begin
123 class VclAbstractRefreshableDialog_Impl
: public VclAbstractRefreshableDialog
125 DECL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl
,Dialog
)
126 virtual void Update() ;
127 virtual void Sync() ;
129 //for ActualizeProgress end
131 class AbstractSfxDialog_Impl
: public SfxAbstractDialog
133 DECL_ABSTDLG_BASE(AbstractSfxDialog_Impl
,SfxModalDialog
)
134 virtual const SfxItemSet
* GetOutputItemSet() const;
137 virtual void SetText( const XubString
& rStr
);
138 virtual String
GetText() const ;
141 class AbstractTabDialog_Impl
: public SfxAbstractTabDialog
143 DECL_ABSTDLG_BASE(AbstractTabDialog_Impl
,SfxTabDialog
)
144 virtual void SetCurPageId( USHORT nId
);
145 virtual const SfxItemSet
* GetOutputItemSet() const;
146 virtual const USHORT
* GetInputRanges( const SfxItemPool
& pItem
); //add by CHINA001
147 virtual void SetInputSet( const SfxItemSet
* pInSet
); //add by CHINA001
149 virtual void SetText( const XubString
& rStr
); //add by CHINA001
150 virtual String
GetText() const; //add by CHINA001
153 //for SvxDistributeDialog begin
154 class SvxDistributeDialog
;
155 class AbstractSvxDistributeDialog_Impl
: public AbstractSvxDistributeDialog
157 DECL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl
,SvxDistributeDialog
)
159 virtual SvxDistributeHorizontal
GetDistributeHor() const;
160 virtual SvxDistributeVertical
GetDistributeVer() const;
162 //for SvxDistributeDialog end
164 // for HangulHanjaConversionDialog begin
165 class AbstractHangulHanjaConversionDialog_Impl
: public AbstractHangulHanjaConversionDialog
167 DECL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl
,HangulHanjaConversionDialog
)
168 virtual void EndDialog(long nResult
= 0);
169 virtual void EnableRubySupport( sal_Bool _bVal
);
170 virtual void SetByCharacter( sal_Bool _bByCharacter
) ;
171 virtual void SetConversionDirectionState( sal_Bool _bTryBothDirections
, HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection
);
172 virtual void SetConversionFormat( HangulHanjaConversion::ConversionFormat _eType
);
173 virtual void SetOptionsChangedHdl( const Link
& _rHdl
);
174 virtual void SetIgnoreHdl( const Link
& _rHdl
);
175 virtual void SetIgnoreAllHdl( const Link
& _rHdl
) ;
176 virtual void SetChangeHdl( const Link
& _rHdl
) ;
177 virtual void SetChangeAllHdl( const Link
& _rHdl
) ;
178 virtual void SetClickByCharacterHdl( const Link
& _rHdl
) ;
179 virtual void SetConversionFormatChangedHdl( const Link
& _rHdl
) ;
180 virtual void SetFindHdl( const Link
& _rHdl
);
181 virtual sal_Bool
GetUseBothDirections( ) const;
182 virtual HangulHanjaConversion::ConversionDirection
GetDirection( HangulHanjaConversion::ConversionDirection _eDefaultDirection
) const;
183 virtual void SetCurrentString(
184 const String
& _rNewString
,
185 const ::com::sun::star::uno::Sequence
< ::rtl::OUString
>& _rSuggestions
,
186 bool _bOriginatesFromDocument
= true
188 virtual String
GetCurrentString( ) const ;
189 virtual HangulHanjaConversion::ConversionFormat
GetConversionFormat( ) const ;
190 virtual void FocusSuggestion( );
191 virtual String
GetCurrentSuggestion( ) const;
194 // for HangulHanjaConversionDialog end
196 // for FmShowColsDialog begin
197 class FmShowColsDialog
;
198 class AbstractFmShowColsDialog_Impl
: public AbstractFmShowColsDialog
200 DECL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl
,FmShowColsDialog
)
201 virtual void SetColumns(const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XIndexContainer
>& xCols
);
203 //for FmShowColsDialog end
206 //for SvxZoomDialog begin
208 class AbstractSvxZoomDialog_Impl
: public AbstractSvxZoomDialog
210 DECL_ABSTDLG_BASE(AbstractSvxZoomDialog_Impl
,SvxZoomDialog
)
211 virtual void SetLimits( USHORT nMin
, USHORT nMax
);
212 virtual void HideButton( USHORT nBtnId
);
213 virtual const SfxItemSet
* GetOutputItemSet() const ;
216 //for SvxZoomDialog end
218 //for SvxSpellDialog begin
219 namespace svx
{ class SpellDialog
;}
220 class AbstractSpellDialog_Impl
: public AbstractSpellDialog
223 DECL_ABSTDLG_BASE(AbstractSpellDialog_Impl
, svx::SpellDialog
)
224 virtual void SetLanguage( sal_uInt16 nLang
);
225 virtual sal_Bool
Close();
226 virtual void Invalidate();
227 virtual Window
* GetWindow();
228 virtual SfxBindings
& GetBindings();
231 //for SvxSpellCheckDialog begin
232 //STRIP001 class AbstractSvxSpellCheckDialog_Impl : public AbstractSvxSpellCheckDialog //add for FmShowColsDialog
234 //STRIP001 SvxSpellCheckDialog * pDlg;
236 //STRIP001 AbstractSvxSpellCheckDialog_Impl ( SvxSpellCheckDialog* p)
239 //STRIP001 virtual USHORT Execute() ;
240 //STRIP001 virtual void SetNewEditWord( const String& _rNew ) ;
241 //STRIP001 virtual void SetLanguage( sal_uInt16 nLang ) ;
242 //STRIP001 virtual void HideAutoCorrect() ;
243 //STRIP001 virtual String GetNewEditWord();
244 //STRIP001 virtual void SetNewEditWord( const String& _rNew );
246 //for SvxSpellCheckDialog end
249 //for SearchProgress begin
250 class SearchProgress
;
251 class AbstractSearchProgress_Impl
: public AbstractSearchProgress
253 DECL_ABSTDLG_BASE(AbstractSearchProgress_Impl
,SearchProgress
)
254 virtual void Update() ;
255 virtual void Sync() ;
256 virtual void SetFileType( const String
& rType
) ;
257 virtual void SetDirectory( const INetURLObject
& rURL
) ;
258 virtual PLinkStub
GetLinkStubCleanUpHdl() ;
261 //for SearchProgress end
263 //for TakeProgress begin
265 class AbstractTakeProgress_Impl
: public AbstractTakeProgress
267 DECL_ABSTDLG_BASE(AbstractTakeProgress_Impl
,TakeProgress
)
268 virtual void Update() ;
269 virtual void Sync() ;
270 virtual void SetFile( const INetURLObject
& rURL
) ;
271 virtual PLinkStub
GetLinkStubCleanUpHdl() ;
274 //for TakeProgress end
276 //for TitleDialog begin
278 class AbstractTitleDialog_Impl
: public AbstractTitleDialog
280 DECL_ABSTDLG_BASE(AbstractTitleDialog_Impl
,TitleDialog
)
281 virtual String
GetTitle() const ;
284 //for TitleDialog end
286 //for SvxScriptSelectorDialog begin
287 class SvxScriptSelectorDialog
;
288 class AbstractScriptSelectorDialog_Impl
: public AbstractScriptSelectorDialog
291 AbstractScriptSelectorDialog_Impl
, SvxScriptSelectorDialog
)
293 virtual String
GetScriptURL() const;
295 virtual void SetRunLabel();
298 //for GalleryIdDialog begin
299 class GalleryIdDialog
;
300 class AbstractGalleryIdDialog_Impl
: public AbstractGalleryIdDialog
302 DECL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl
,GalleryIdDialog
)
303 virtual ULONG
GetId() const ;
306 //for GalleryIdDialog end
310 class AbstractURLDlg_Impl
:public AbstractURLDlg
312 DECL_ABSTDLG_BASE(AbstractURLDlg_Impl
,URLDlg
)
313 virtual String
GetURL() const;
314 virtual String
GetAltText() const;
315 virtual String
GetDesc() const;
316 virtual String
GetTarget() const;
317 virtual String
GetName() const;
321 //for SvxHlinkDlgMarkWnd begin
322 class SvxHlinkDlgMarkWnd
;
323 class AbstractSvxHlinkDlgMarkWnd_Impl
: public AbstractSvxHlinkDlgMarkWnd
325 DECL_ABSTDLG_BASE(AbstractSvxHlinkDlgMarkWnd_Impl
,SvxHlinkDlgMarkWnd
)
326 virtual void Hide( USHORT nFlags
= 0 );
327 virtual BOOL
IsVisible() const ;
328 virtual void Invalidate( USHORT nFlags
= 0 );
329 virtual void SetSizePixel( const Size
& rNewSize
);
330 virtual Size
GetSizePixel() const;
331 virtual BOOL
MoveTo ( Point aNewPos
)const;
332 virtual BOOL
ConnectToDialog( BOOL bDoit
= TRUE
)const;
333 virtual void RefreshTree ( String aStrURL
) ;
334 virtual void SelectEntry ( String aStrMark
);
335 virtual USHORT
SetError( USHORT nError
) ;
338 //for SvxHlinkDlgMarkWnd end
340 //for SvxSearchSimilarityDialog begin
341 class SvxSearchSimilarityDialog
;
342 class AbstractSvxSearchSimilarityDialog_Impl
:public AbstractSvxSearchSimilarityDialog
344 DECL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl
,SvxSearchSimilarityDialog
)
345 virtual USHORT
GetOther();
346 virtual USHORT
GetShorter();
347 virtual USHORT
GetLonger();
348 virtual BOOL
IsRelaxed();
350 //for SvxSearchSimilarityDialog end
352 //for SvxJSearchOptionsDialog end
353 class SvxJSearchOptionsDialog
;
354 class AbstractSvxJSearchOptionsDialog_Impl
:public AbstractSvxJSearchOptionsDialog
356 DECL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl
,SvxJSearchOptionsDialog
)
357 virtual INT32
GetTransliterationFlags() const;
359 //for SvxJSearchOptionsDialog end
361 class AbstractSvxTransformTabDialog_Impl
: public AbstractSvxTransformTabDialog
363 DECL_ABSTDLG_BASE(AbstractSvxTransformTabDialog_Impl
,SvxTransformTabDialog
)
364 virtual void SetValidateFramePosLink( const Link
& rLink
);
365 virtual void SetCurPageId( USHORT nId
);
366 virtual const SfxItemSet
* GetOutputItemSet() const;
367 virtual const USHORT
* GetInputRanges( const SfxItemPool
& pItem
);
368 virtual void SetInputSet( const SfxItemSet
* pInSet
);
369 virtual void SetText( const XubString
& rStr
);
370 virtual String
GetText() const;
372 class AbstractSvxCaptionDialog_Impl
: public AbstractSvxCaptionDialog
374 DECL_ABSTDLG_BASE(AbstractSvxCaptionDialog_Impl
,SvxCaptionTabDialog
)
375 virtual void SetValidateFramePosLink( const Link
& rLink
);
376 virtual void SetCurPageId( USHORT nId
);
377 virtual const SfxItemSet
* GetOutputItemSet() const;
378 virtual const USHORT
* GetInputRanges( const SfxItemPool
& pItem
);
379 virtual void SetInputSet( const SfxItemSet
* pInSet
);
380 virtual void SetText( const XubString
& rStr
);
381 virtual String
GetText() const;
384 //for FmInputRecordNoDialog end
385 class FmInputRecordNoDialog
;
386 class AbstractFmInputRecordNoDialog_Impl
:public AbstractFmInputRecordNoDialog
388 DECL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl
,FmInputRecordNoDialog
)
389 virtual void SetValue(long nNew
) ;
390 virtual long GetValue() const ;
392 //for FmInputRecordNoDialog end
394 //for SvxNewDictionaryDialog end
395 class SvxNewDictionaryDialog
;
396 class AbstractSvxNewDictionaryDialog_Impl
:public AbstractSvxNewDictionaryDialog
398 DECL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl
,SvxNewDictionaryDialog
)
399 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::linguistic2::XDictionary
> GetNewDictionary();
401 //for SvxNewDictionaryDialog end
403 //for SvxNameDialog end
405 class AbstractSvxNameDialog_Impl
:public AbstractSvxNameDialog
407 DECL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl
,SvxNameDialog
)
408 virtual void GetName( String
& rName
) ;
409 virtual void SetCheckNameHdl( const Link
& rLink
, bool bCheckImmediately
= false ) ;
410 virtual void SetEditHelpId(ULONG nHelpId
) ;
412 virtual void SetHelpId( ULONG nHelpId
) ;
413 virtual void SetText( const XubString
& rStr
) ;
416 DECL_LINK( CheckNameHdl
, Window
*);
418 //for SvxNameDialog end
420 ///////////////////////////////////////////////////////////////////////////////////////////////
424 class SvxObjectNameDialog
;
425 class SvxObjectTitleDescDialog
;
427 class AbstractSvxObjectNameDialog_Impl
:public AbstractSvxObjectNameDialog
429 DECL_ABSTDLG_BASE(AbstractSvxObjectNameDialog_Impl
, SvxObjectNameDialog
)
430 virtual void GetName(String
& rName
) ;
431 virtual void SetCheckNameHdl(const Link
& rLink
, bool bCheckImmediately
= false);
435 DECL_LINK(CheckNameHdl
, Window
*);
438 class AbstractSvxObjectTitleDescDialog_Impl
:public AbstractSvxObjectTitleDescDialog
440 DECL_ABSTDLG_BASE(AbstractSvxObjectTitleDescDialog_Impl
, SvxObjectTitleDescDialog
)
441 virtual void GetTitle(String
& rName
);
442 virtual void GetDescription(String
& rName
);
445 ///////////////////////////////////////////////////////////////////////////////////////////////
447 //for SvxMessDialog end
449 class AbstractSvxMessDialog_Impl
:public AbstractSvxMessDialog
451 DECL_ABSTDLG_BASE(AbstractSvxMessDialog_Impl
,SvxMessDialog
)
452 virtual void SetButtonText( USHORT nBtnId
, const String
& rNewTxt
);
454 //for SvxMessDialog end
456 //for SvxMultiPathDialog end
457 class SvxMultiPathDialog
;
458 class AbstractSvxMultiPathDialog_Impl
:public AbstractSvxMultiPathDialog
460 DECL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl
,SvxMultiPathDialog
)
461 virtual String
GetPath() const;
462 virtual void SetPath( const String
& rPath
);
463 virtual void EnableRadioButtonMode();
464 virtual void SetTitle( const String
& rNewTitle
);
466 //for SvxMultiPathDialog end
468 //for SvxMultiFileDialog begin
469 class SvxMultiFileDialog
;
470 class AbstractSvxMultiFileDialog_Impl
:public AbstractSvxMultiFileDialog
472 DECL_ABSTDLG_BASE(AbstractSvxMultiFileDialog_Impl
,SvxMultiFileDialog
)
473 virtual String
GetFiles() const ;
474 virtual void SetFiles( const String
& rPath
) ;
475 //from SvxMultiPathDialog
476 virtual String
GetPath() const;
477 virtual void SetPath( const String
& rPath
);
478 virtual void SetClassPathMode();
479 virtual void EnableRadioButtonMode();
480 virtual void SetTitle( const String
& rNewTitle
);
482 virtual void SetHelpId( ULONG nHelpId
) ;
485 //for SvxMultiFileDialog end
487 //for SvxHpLinkDlg begin
489 class AbstractSvxHpLinkDlg_Impl
:public AbstractSvxHpLinkDlg
491 DECL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl
,SvxHpLinkDlg
)
492 virtual Window
* GetWindow();
493 virtual sal_Bool
QueryClose();
495 //for SvxHpLinkDlg end
497 //for FmSearchDialog begin
498 class FmSearchDialog
;
499 class AbstractFmSearchDialog_Impl
:public AbstractFmSearchDialog
501 DECL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl
,FmSearchDialog
)
502 virtual void SetFoundHandler(const Link
& lnk
) ;
503 virtual void SetCanceledNotFoundHdl(const Link
& lnk
);
504 virtual void SetActiveField(const String
& strField
);
506 //for FmSearchDialog end
508 //for GraphicFilterDialog begin
509 class GraphicFilterDialog
;
510 class AbstractGraphicFilterDialog_Impl
:public AbstractGraphicFilterDialog
512 DECL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl
,GraphicFilterDialog
)
513 virtual Graphic
GetFilteredGraphic( const Graphic
& rGraphic
, double fScaleX
, double fScaleY
);
515 //for GraphicFilterDialog end
517 //add for SvxAreaTabDialog begin
518 class SvxAreaTabDialog
;
519 class AbstractSvxAreaTabDialog_Impl
:public AbstractSvxAreaTabDialog
521 DECL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl
,SvxAreaTabDialog
)
522 virtual void SetCurPageId( USHORT nId
);
523 virtual const SfxItemSet
* GetOutputItemSet() const;
524 virtual const USHORT
* GetInputRanges( const SfxItemPool
& pItem
);
525 virtual void SetInputSet( const SfxItemSet
* pInSet
);
527 virtual void SetText( const XubString
& rStr
);
528 virtual String
GetText() const;
529 virtual void DontDeleteColorTable() ;
531 //add for SvxAreaTabDialog end
533 class AbstractInsertObjectDialog_Impl
: public SfxAbstractInsertObjectDialog
535 DECL_ABSTDLG_BASE(AbstractInsertObjectDialog_Impl
, InsertObjectDialog_Impl
)
536 virtual com::sun::star::uno::Reference
< com::sun::star::embed::XEmbeddedObject
> GetObject();
537 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
> GetIconIfIconified( ::rtl::OUString
* pGraphicMediaType
);
538 virtual BOOL
IsCreateNew();
541 class AbstractPasteDialog_Impl
: public SfxAbstractPasteDialog
544 DECL_ABSTDLG_BASE(AbstractPasteDialog_Impl
, SvPasteObjectDialog
)
545 virtual void Insert( SotFormatStringId nFormat
, const String
& rFormatName
);
546 virtual void SetObjName( const SvGlobalName
& rClass
, const String
& rObjName
);
547 virtual ULONG
GetFormat( const TransferableDataHelper
& aHelper
,
548 const DataFlavorExVector
* pFormats
=0,
549 const TransferableObjectDescriptor
* pDesc
=0 );
552 class AbstractLinksDialog_Impl
: public SfxAbstractLinksDialog
555 DECL_ABSTDLG_BASE(AbstractLinksDialog_Impl
, SvBaseLinksDlg
)
559 //add for SvxPostItDialog begin
560 class SvxPostItDialog
;
561 class AbstractSvxPostItDialog_Impl
:public AbstractSvxPostItDialog
563 DECL_ABSTDLG_BASE( AbstractSvxPostItDialog_Impl
, SvxPostItDialog
)
564 virtual void SetText( const XubString
& rStr
); //From class Window
565 virtual const SfxItemSet
* GetOutputItemSet() const;
566 virtual void SetPrevHdl( const Link
& rLink
) ;
567 virtual void SetNextHdl( const Link
& rLink
) ;
568 virtual void EnableTravel(BOOL bNext
, BOOL bPrev
) ;
569 virtual String
GetNote() ;
570 virtual void SetNote(const String
& rTxt
) ;
571 virtual void ShowLastAuthor(const String
& rAuthor
, const String
& rDate
) ;
572 virtual void DontChangeAuthor() ;
573 virtual void HideAuthor() ;
574 virtual void SetReadonlyPostIt(BOOL bDisable
) ;
575 virtual BOOL
IsOkEnabled() const ;
576 virtual Window
* GetWindow();
580 DECL_LINK( NextHdl
, Window
*);
581 DECL_LINK( PrevHdl
, Window
*);
583 //add for SvxPostItDialog end
585 //------------------------------------------------------------------------
586 //AbstractDialogFactory_Impl implementations
587 class AbstractDialogFactory_Impl
: public SvxAbstractDialogFactory
591 virtual VclAbstractDialog
* CreateVclDialog( Window
* pParent
, sal_uInt32 nResId
);
592 virtual VclAbstractDialog
* CreateSfxDialog( Window
* pParent
, const SfxBindings
& rBindings
, sal_uInt32 nResId
);
593 virtual SfxAbstractDialog
* CreateSfxDialog( sal_uInt32 nResId
,
595 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& xViewFrame
,
596 const SfxItemSet
* pAttrSet
=0 );
597 virtual SfxAbstractDialog
* CreateSfxDialog( Window
* pParent
,
598 const SfxItemSet
& rAttr
,
599 const SdrView
* pView
,
601 virtual SfxAbstractDialog
* CreateSfxDialog( Window
* pParent
, //add for SvxMeasureDialog & SvxConnectionDialog
602 const SfxItemSet
& rAttr
,
603 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& _rxFrame
,
606 virtual VclAbstractDialog
* CreateFrameDialog( Window
* pParent
, const com::sun::star::uno::Reference
< com::sun::star::frame::XFrame
>& rxFrame
, sal_uInt32 nResId
, const String
& rParameter
);
607 virtual SfxAbstractTabDialog
* CreateTabDialog( sal_uInt32 nResId
,
609 const SfxItemSet
* pAttrSet
,
610 SfxViewFrame
* pViewFrame
,
612 const String
*pUserButtonText
=0 );
613 virtual SfxAbstractTabDialog
* CreateTabDialog( sal_uInt32 nResId
,
615 const SfxItemSet
* pAttrSet
,
616 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& xViewFrame
,
618 const String
*pUserButtonText
=0 );
619 virtual SfxAbstractTabDialog
* CreateTextTabDialog( Window
* pParent
,
620 const SfxItemSet
* pAttrSet
,
623 SdrModel
* pModel
=0 ); //add for SvxTextTabDialog
624 virtual SfxAbstractTabDialog
* CreateTabItemDialog( Window
* pParent
,
625 const SfxItemSet
& rSet
,
626 sal_uInt32 nResId
); //add by CHINA001
627 virtual AbstractSvxCaptionDialog
* CreateCaptionDialog( Window
* pParent
,
628 const SdrView
* pView
,
630 USHORT nAnchorTypes
= 0 ); //add for SvxCaptionTabDialog CHINA001
631 virtual AbstractSvxDistributeDialog
* CreateSvxDistributeDialog(Window
* pParent
,
632 const SfxItemSet
& rAttr
,
634 SvxDistributeHorizontal eHor
= SvxDistributeHorizontalNone
,
635 SvxDistributeVertical eVer
= SvxDistributeVerticalNone
);
636 virtual SfxAbstractInsertObjectDialog
* CreateInsertObjectDialog( Window
* pParent
, USHORT nSlotId
,
637 const com::sun::star::uno::Reference
< com::sun::star::embed::XStorage
>& xStor
,
638 const SvObjectServerList
* pList
= 0 );
639 virtual VclAbstractDialog
* CreateEditObjectDialog( Window
* pParent
, USHORT nSlotId
,
640 const com::sun::star::uno::Reference
< com::sun::star::embed::XEmbeddedObject
>& xObj
);
641 virtual SfxAbstractPasteDialog
* CreatePasteDialog( Window
* pParent
);
642 virtual SfxAbstractLinksDialog
* CreateLinksDialog( Window
* pParent
, sfx2::SvLinkManager
* pMgr
, BOOL bHTML
, sfx2::SvBaseLink
* p
=0 );
644 virtual AbstractHangulHanjaConversionDialog
* CreateHangulHanjaConversionDialog( Window
* _pParent
, //add for HangulHanjaConversionDialog CHINA001
645 HangulHanjaConversion::ConversionDirection _ePrimaryDirection
,
648 virtual AbstractFmShowColsDialog
* CreateFmShowColsDialog( Window
* pParent
, //add for FmShowColsDialog
650 virtual AbstractSvxZoomDialog
* CreateSvxZoomDialog( Window
* pParent
, //add for SvxZoomDialog
651 const SfxItemSet
& rCoreSet
,
653 virtual SfxAbstractTabDialog
* CreateSvxBorderBackgroundDlg( Window
* pParent
, //add for SvxBorderBackgroundDlg
654 const SfxItemSet
& rCoreSet
,
656 BOOL bEnableSelector
= FALSE
) ;
657 virtual AbstractSvxTransformTabDialog
* CreateSvxTransformTabDialog( Window
* pParent
, //add for SvxTransformTabDialog
658 const SfxItemSet
* pAttr
,
659 const SdrView
* pView
,
661 USHORT nAnchorTypes
= 0) ;
662 virtual SfxAbstractTabDialog
* CreateSchTransformTabDialog( Window
* pParent
, //add for SchTransformTabDialog
663 const SfxItemSet
* pAttr
,
664 const SdrView
* pSdrView
,
666 bool bSizeTabPage
= false
668 virtual AbstractSpellDialog
* CreateSvxSpellDialog(
670 SfxBindings
* pBindings
,
671 svx::SpellDialogChildWindow
* pSpellChildWindow
);
673 //STRIP001 virtual AbstractSvxSpellCheckDialog * CreateSvxSpellCheckDialog( Window* pParent, //add for SvxSpellCheckDialog
674 //STRIP001 ::com::sun::star::uno::Reference<
675 //STRIP001 ::com::sun::star::linguistic2::XSpellChecker1 > &xChecker,
676 //STRIP001 SvxSpellWrapper* pWrapper,
677 //STRIP001 sal_uInt32 nResId);
678 virtual VclAbstractRefreshableDialog
* CreateActualizeProgressDialog( Window
* pParent
, //add for ActualizeProgress
681 virtual AbstractSearchProgress
* CreateSearchProgressDialog( Window
* pParent
, //add for SearchProgress
682 const INetURLObject
& rStartURL
,
684 virtual AbstractTakeProgress
* CreateTakeProgressDialog( Window
* pParent
, //add for TakeProgress
686 virtual AbstractTitleDialog
* CreateTitleDialog( Window
* pParent
, //add for TitleDialog
687 const String
& rOldText
,
689 virtual AbstractGalleryIdDialog
* CreateGalleryIdDialog( Window
* pParent
, //add for SvxZoomDialog
692 virtual VclAbstractDialog2
* CreateGalleryThemePropertiesDialog( Window
* pParent
, //add for GalleryThemeProperties
694 SfxItemSet
* pItemSet
,
696 virtual AbstractURLDlg
* CreateURLDialog( Window
* pParent
, //add for URLDlg
697 const String
& rURL
, const String
& rAltText
, const String
& rDescription
,
698 const String
& rTarget
, const String
& rName
,
699 TargetList
& rTargetList
);
700 virtual AbstractSvxHlinkDlgMarkWnd
* CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase
* pParent
, sal_uInt32 nResId
); //add for SvxHlinkDlgMarkWnd
702 virtual VclAbstractDialog
* CreateSvxSearchAttributeDialog( Window
* pParent
,
703 SearchAttrItemList
& rLst
,
704 const USHORT
* pWhRanges
,
705 sal_uInt32 nResId
); //add for SvxSearchAttributeDialog
706 virtual AbstractSvxSearchSimilarityDialog
* CreateSvxSearchSimilarityDialog( Window
* pParent
,
710 USHORT nLonger
); //add for SvxSearchSimilarityDialog
711 virtual AbstractSvxJSearchOptionsDialog
* CreateSvxJSearchOptionsDialog( Window
* pParent
,
712 const SfxItemSet
& rOptionsSet
, USHORT nUniqueId
,
714 sal_uInt32 nResId
); //add for SvxJSearchOptionsDialog
715 virtual AbstractFmInputRecordNoDialog
* CreateFmInputRecordNoDialog( Window
* pParent
,
716 sal_uInt32 nResId
); //add for FmInputRecordNoDialog
717 virtual AbstractSvxNewDictionaryDialog
* CreateSvxNewDictionaryDialog( Window
* pParent
,
718 ::com::sun::star::uno::Reference
< ::com::sun::star::linguistic2::XSpellChecker1
> &xSpl
,
719 sal_uInt32 nResId
); //add for SvxNewDictionaryDialog
720 virtual VclAbstractDialog
* CreateSvxEditDictionaryDialog( Window
* pParent
,
722 ::com::sun::star::uno::Reference
< ::com::sun::star::linguistic2::XSpellChecker1
> &xSpl
,
723 sal_uInt32 nResId
);//add for SvxEditDictionaryDialog
724 virtual AbstractSvxNameDialog
* CreateSvxNameDialog( Window
* pParent
,
725 const String
& rName
, const String
& rDesc
,
726 sal_uInt32 nResId
); //add for SvxNameDialog
729 virtual AbstractSvxObjectNameDialog
* CreateSvxObjectNameDialog(Window
* pParent
, const String
& rName
, sal_uInt32 nResId
);
730 virtual AbstractSvxObjectTitleDescDialog
* CreateSvxObjectTitleDescDialog(Window
* pParent
, const String
& rTitle
, const String
& rDescription
, sal_uInt32 nResId
);
732 virtual AbstractSvxMessDialog
* CreateSvxMessDialog( Window
* pParent
, sal_uInt32 nResId
,
733 const String
& rText
, const String
& rDesc
,
734 Image
* pImg
= NULL
); //add for SvxMessDialog
735 virtual AbstractSvxMultiPathDialog
* CreateSvxMultiPathDialog( Window
* pParent
, sal_uInt32 nResId
,
736 BOOL bEmptyAllowed
= FALSE
); //add for SvxMultiPathDialog
737 virtual AbstractSvxMultiFileDialog
* CreateSvxMultiFileDialog( Window
* pParent
, sal_uInt32 nResId
,
738 BOOL bEmptyAllowed
= FALSE
); //add for SvxMultiFileDialog
739 virtual AbstractSvxHpLinkDlg
* CreateSvxHpLinkDlg (Window
* pParent
, //add for SvxHpLink
740 SfxBindings
* pBindings
,
742 virtual AbstractFmSearchDialog
* CreateFmSearchDialog(Window
* pParent
, //add for FmSearchDialog
743 const String
& strInitialText
,
744 const ::std::vector
< String
>& _rContexts
,
745 sal_Int16 nInitialContext
,
746 const Link
& lnkContextSupplier
);
747 virtual AbstractGraphicFilterDialog
* CreateGraphicFilterEmboss (Window
* pParent
, //add for GraphicFilterEmboss
748 const Graphic
& rGraphic
,
749 RECT_POINT eLightSource
,
751 virtual AbstractGraphicFilterDialog
* CreateGraphicFilterPosterSepia (Window
* pParent
, //add for GraphicFilterPoster & GraphicFilterSepia
752 const Graphic
& rGraphic
,
755 virtual AbstractGraphicFilterDialog
* CreateGraphicFilterSolarize (Window
* pParent
, //add for GraphicFilterSolarize
756 const Graphic
& rGraphic
,
757 BYTE nGreyThreshold
, BOOL bInvert
,
759 virtual AbstractGraphicFilterDialog
* CreateGraphicFilterMosaic (Window
* pParent
, //add for GraphicFilterMosaic
760 const Graphic
& rGraphic
,
761 USHORT nTileWidth
, USHORT nTileHeight
, BOOL bEnhanceEdges
,
763 virtual AbstractSvxAreaTabDialog
* CreateSvxAreaTabDialog( Window
* pParent
,//add for SvxAreaTabDialog
764 const SfxItemSet
* pAttr
,
767 const SdrView
* pSdrView
= NULL
); //add for SvxAreaTabDialog
768 virtual SfxAbstractTabDialog
* CreateSvxLineTabDialog( Window
* pParent
, const SfxItemSet
* pAttr
, //add for SvxLineTabDialog
771 const SdrObject
* pObj
= NULL
,
772 BOOL bHasObj
= TRUE
);
773 virtual AbstractSvxPostItDialog
* CreateSvxPostItDialog( Window
* pParent
, //add for SvxPostItDialog
774 const SfxItemSet
& rCoreSet
,
776 BOOL bPrevNext
= FALSE
, BOOL bRedline
= FALSE
);
779 virtual CreateTabPage
GetTabPageCreatorFunc( USHORT nId
);
780 virtual CreateSvxDistributePage
GetSvxDistributePageCreatorFunc(USHORT nId
);
783 virtual GetTabPageRanges
GetTabPageRangesFunc( USHORT nId
);
784 virtual DialogGetRanges
GetDialogGetRangesFunc( USHORT nId
); //add for SvxPostItDialog
785 virtual VclAbstractDialog
* CreateSvxScriptOrgDialog( Window
* pParent
, const String
& rLanguage
);
787 virtual AbstractScriptSelectorDialog
*
788 CreateScriptSelectorDialog(
791 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& _rxFrame
794 virtual VclAbstractDialog
* CreateScriptErrorDialog(
795 Window
* pParent
, ::com::sun::star::uno::Any aException
);
797 virtual VclAbstractDialog
* CreateSvxMacroAssignDlg(
799 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& _rxDocumentFrame
,
800 const bool _bUnoDialogMode
,
801 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameReplace
>& _rxEvents
,
802 const sal_uInt16 _nInitiallySelectedEvent
805 virtual SfxAbstractTabDialog
* CreateSvxFormatCellsDialog( Window
* pParent
, const SfxItemSet
* pAttr
, SdrModel
* pModel
, const SdrObject
* pObj
= NULL
);
807 virtual SvxAbstractSplittTableDialog
* CreateSvxSplittTableDialog( Window
* pParent
, bool bIsTableVertical
, long nMaxVertical
, long nMaxHorizontal
);
809 virtual SvxAbstractNewTableDialog
* CreateSvxNewTableDialog( Window
* pParent
) ;
811 virtual VclAbstractDialog
* CreateOptionsDialog(
812 Window
* pParent
, const rtl::OUString
& rExtensionId
, const rtl::OUString
& rApplicationContext
);
814 virtual SvxAbstractInsRowColDlg
* CreateSvxInsRowColDlg( Window
* pParent
, bool bCol
, ULONG nHelpId
);