Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _CUI_DLGFACT_HXX
29 : : #define _CUI_DLGFACT_HXX
30 : :
31 : : #include <svx/svxdlg.hxx>
32 : : #include <com/sun/star/container/XNameReplace.hpp>
33 : :
34 : : #include "tools/link.hxx"
35 : : #include <com/sun/star/frame/XFrame.hpp>
36 : :
37 : : class SfxTabDialog;
38 : : class SfxModalDialog;
39 : : class Dialog;
40 : : class SfxItemPool;
41 : : class FmShowColsDialog;
42 : : class SvxZoomDialog;
43 : : class FmInputRecordNoDialog;
44 : : class SvxJSearchOptionsDialog;
45 : : class SvxNewDictionaryDialog;
46 : : class SvxNameDialog;
47 : :
48 : : // #i68101#
49 : : class SvxObjectNameDialog;
50 : : class SvxObjectTitleDescDialog;
51 : :
52 : : class SvxMessDialog;
53 : : class SvxMultiPathDialog;
54 : : class SvxMultiFileDialog;
55 : : class SvxHpLinkDlg;
56 : : class FmSearchDialog;
57 : : class Graphic;
58 : : class GraphicFilterDialog;
59 : : class SvxAreaTabDialog;
60 : : class InsertObjectDialog_Impl;
61 : : class SvPasteObjectDialog;
62 : : class SvBaseLinksDlg;
63 : : class SvxTransformTabDialog;
64 : : class SvxCaptionTabDialog;
65 : : class SvxThesaurusDialog;
66 : : class SvxHyphenWordDialog;
67 : :
68 : : namespace svx{
69 : : class HangulHanjaConversionDialog;
70 : : }
71 : : using namespace svx;
72 : :
73 : : #define DECL_ABSTDLG_BASE(Class,DialogClass) \
74 : : DialogClass* pDlg; \
75 : : public: \
76 : : Class( DialogClass* p) \
77 : : : pDlg(p) \
78 : : {} \
79 : : virtual ~Class(); \
80 : : virtual short Execute() ;
81 : :
82 : : #define IMPL_ABSTDLG_BASE(Class) \
83 : : Class::~Class() \
84 : : { \
85 : : delete pDlg; \
86 : : } \
87 : : short Class::Execute() \
88 : : { \
89 : : return pDlg->Execute(); \
90 : : }
91 : :
92 : : //for GalleryThemeProperties begin
93 : : class VclAbstractDialog2_Impl : public VclAbstractDialog2
94 : : {
95 : : Dialog* m_pDlg;
96 : : Link m_aEndDlgHdl;
97 : : public:
98 [ # # ]: 0 : VclAbstractDialog2_Impl( Dialog* p ) : m_pDlg( p ) {} \
99 : : virtual ~VclAbstractDialog2_Impl();
100 : : virtual void StartExecuteModal( const Link& rEndDialogHdl );
101 : : virtual long GetResult();
102 : : private:
103 : : DECL_LINK( EndDialogHdl, Dialog* );
104 : : };
105 : : //for GalleryThemeProperties end
106 : :
107 : : class VclAbstractDialog_Impl : public VclAbstractDialog
108 : : {
109 : 0 : DECL_ABSTDLG_BASE(VclAbstractDialog_Impl,Dialog)
110 : : };
111 : :
112 : : //for ActualizeProgress begin
113 : : class VclAbstractRefreshableDialog_Impl : public VclAbstractRefreshableDialog
114 : : {
115 : 0 : DECL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl,Dialog)
116 : : virtual void Update() ;
117 : : virtual void Sync() ;
118 : : };
119 : : //for ActualizeProgress end
120 : :
121 : : class AbstractSfxDialog_Impl : public SfxAbstractDialog
122 : : {
123 : 0 : DECL_ABSTDLG_BASE(AbstractSfxDialog_Impl,SfxModalDialog)
124 : : virtual const SfxItemSet* GetOutputItemSet() const;
125 : :
126 : : //From class Window.
127 : : virtual void SetText( const XubString& rStr );
128 : : virtual String GetText() const ;
129 : : };
130 : :
131 : : class AbstractTabDialog_Impl : public SfxAbstractTabDialog
132 : : {
133 : 0 : DECL_ABSTDLG_BASE(AbstractTabDialog_Impl,SfxTabDialog)
134 : : virtual void SetCurPageId( sal_uInt16 nId );
135 : : virtual const SfxItemSet* GetOutputItemSet() const;
136 : : virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
137 : : virtual void SetInputSet( const SfxItemSet* pInSet );
138 : : //From class Window.
139 : : virtual void SetText( const XubString& rStr );
140 : : virtual String GetText() const;
141 : : };
142 : :
143 : : //for SvxDistributeDialog begin
144 : : class SvxDistributeDialog;
145 : : class AbstractSvxDistributeDialog_Impl: public AbstractSvxDistributeDialog
146 : : {
147 : 0 : DECL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl,SvxDistributeDialog)
148 : : public:
149 : : virtual SvxDistributeHorizontal GetDistributeHor() const;
150 : : virtual SvxDistributeVertical GetDistributeVer() const;
151 : : };
152 : : //for SvxDistributeDialog end
153 : :
154 : : // for HangulHanjaConversionDialog begin
155 : : class AbstractHangulHanjaConversionDialog_Impl: public AbstractHangulHanjaConversionDialog
156 : : {
157 : 0 : DECL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl,HangulHanjaConversionDialog)
158 : : virtual void EndDialog(long nResult = 0);
159 : : virtual void EnableRubySupport( sal_Bool _bVal );
160 : : virtual void SetByCharacter( sal_Bool _bByCharacter ) ;
161 : : virtual void SetConversionDirectionState( sal_Bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection );
162 : : virtual void SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType );
163 : : virtual void SetOptionsChangedHdl( const Link& _rHdl );
164 : : virtual void SetIgnoreHdl( const Link& _rHdl );
165 : : virtual void SetIgnoreAllHdl( const Link& _rHdl ) ;
166 : : virtual void SetChangeHdl( const Link& _rHdl ) ;
167 : : virtual void SetChangeAllHdl( const Link& _rHdl ) ;
168 : : virtual void SetClickByCharacterHdl( const Link& _rHdl ) ;
169 : : virtual void SetConversionFormatChangedHdl( const Link& _rHdl ) ;
170 : : virtual void SetFindHdl( const Link& _rHdl );
171 : : virtual sal_Bool GetUseBothDirections( ) const;
172 : : virtual editeng::HangulHanjaConversion::ConversionDirection GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection ) const;
173 : : virtual void SetCurrentString(
174 : : const String& _rNewString,
175 : : const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rSuggestions,
176 : : bool _bOriginatesFromDocument = true
177 : : );
178 : : virtual String GetCurrentString( ) const ;
179 : : virtual editeng::HangulHanjaConversion::ConversionFormat GetConversionFormat( ) const ;
180 : : virtual void FocusSuggestion( );
181 : : virtual String GetCurrentSuggestion( ) const;
182 : : };
183 : :
184 : : class AbstractThesaurusDialog_Impl : public AbstractThesaurusDialog
185 : : {
186 : 0 : DECL_ABSTDLG_BASE(AbstractThesaurusDialog_Impl,SvxThesaurusDialog)
187 : : virtual String GetWord();
188 : : virtual sal_uInt16 GetLanguage() const;
189 : : virtual Window* GetWindow();
190 : : };
191 : :
192 : :
193 : : class AbstractHyphenWordDialog_Impl: public AbstractHyphenWordDialog
194 : : {
195 : 0 : DECL_ABSTDLG_BASE(AbstractHyphenWordDialog_Impl,SvxHyphenWordDialog)
196 : : virtual void SelLeft();
197 : : virtual void SelRight();
198 : : virtual Window* GetWindow();
199 : : };
200 : :
201 : : // for FmShowColsDialog begin
202 : : class FmShowColsDialog;
203 : : class AbstractFmShowColsDialog_Impl : public AbstractFmShowColsDialog
204 : : {
205 : 0 : DECL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl,FmShowColsDialog)
206 : : virtual void SetColumns(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer>& xCols);
207 : : };
208 : : //for FmShowColsDialog end
209 : :
210 : :
211 : : //for SvxZoomDialog begin
212 : : class SvxZoomDialog;
213 : : class AbstractSvxZoomDialog_Impl : public AbstractSvxZoomDialog
214 : : {
215 : 0 : DECL_ABSTDLG_BASE(AbstractSvxZoomDialog_Impl,SvxZoomDialog)
216 : : virtual void SetLimits( sal_uInt16 nMin, sal_uInt16 nMax );
217 : : virtual void HideButton( sal_uInt16 nBtnId );
218 : : virtual const SfxItemSet* GetOutputItemSet() const ;
219 : :
220 : : };
221 : : //for SvxZoomDialog end
222 : :
223 : : //for SvxSpellDialog begin
224 : : namespace svx{ class SpellDialog;}
225 : : class AbstractSpellDialog_Impl : public AbstractSpellDialog
226 : : {
227 : : public:
228 : 0 : DECL_ABSTDLG_BASE(AbstractSpellDialog_Impl, svx::SpellDialog)
229 : : virtual void SetLanguage( sal_uInt16 nLang );
230 : : virtual sal_Bool Close();
231 : : virtual void Invalidate();
232 : : virtual Window* GetWindow();
233 : : virtual SfxBindings& GetBindings();
234 : : };
235 : : //for SvxSpellDialog end
236 : : //for SearchProgress begin
237 : : class SearchProgress;
238 : : class AbstractSearchProgress_Impl : public AbstractSearchProgress
239 : : {
240 : 0 : DECL_ABSTDLG_BASE(AbstractSearchProgress_Impl,SearchProgress)
241 : : virtual void Update() ;
242 : : virtual void Sync() ;
243 : : virtual void SetFileType( const String& rType ) ;
244 : : virtual void SetDirectory( const INetURLObject& rURL ) ;
245 : : virtual PLinkStub GetLinkStubCleanUpHdl() ;
246 : :
247 : : };
248 : : //for SearchProgress end
249 : :
250 : : //for TakeProgress begin
251 : : class TakeProgress;
252 : : class AbstractTakeProgress_Impl : public AbstractTakeProgress
253 : : {
254 : 0 : DECL_ABSTDLG_BASE(AbstractTakeProgress_Impl,TakeProgress)
255 : : virtual void Update() ;
256 : : virtual void Sync() ;
257 : : virtual void SetFile( const INetURLObject& rURL ) ;
258 : : virtual PLinkStub GetLinkStubCleanUpHdl() ;
259 : :
260 : : };
261 : : //for TakeProgress end
262 : :
263 : : //for TitleDialog begin
264 : : class TitleDialog;
265 : : class AbstractTitleDialog_Impl : public AbstractTitleDialog
266 : : {
267 : 0 : DECL_ABSTDLG_BASE(AbstractTitleDialog_Impl,TitleDialog)
268 : : virtual String GetTitle() const ;
269 : :
270 : : };
271 : : //for TitleDialog end
272 : :
273 : : //for SvxScriptSelectorDialog begin
274 : : class SvxScriptSelectorDialog;
275 : : class AbstractScriptSelectorDialog_Impl : public AbstractScriptSelectorDialog
276 : : {
277 : 0 : DECL_ABSTDLG_BASE(
278 : : AbstractScriptSelectorDialog_Impl, SvxScriptSelectorDialog)
279 : :
280 : : virtual String GetScriptURL() const;
281 : :
282 : : virtual void SetRunLabel();
283 : : };
284 : :
285 : : //for GalleryIdDialog begin
286 : : class GalleryIdDialog;
287 : : class AbstractGalleryIdDialog_Impl : public AbstractGalleryIdDialog
288 : : {
289 : 0 : DECL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl,GalleryIdDialog)
290 : : virtual sal_uLong GetId() const ;
291 : :
292 : : };
293 : : //for GalleryIdDialog end
294 : :
295 : : //for URLDlg start
296 : : class URLDlg;
297 : : class AbstractURLDlg_Impl :public AbstractURLDlg
298 : : {
299 : 0 : DECL_ABSTDLG_BASE(AbstractURLDlg_Impl,URLDlg)
300 : : virtual String GetURL() const;
301 : : virtual String GetAltText() const;
302 : : virtual String GetDesc() const;
303 : : virtual String GetTarget() const;
304 : : virtual String GetName() const;
305 : : };
306 : : //for URLDlg end
307 : :
308 : : //for SvxHlinkDlgMarkWnd begin
309 : : class SvxHlinkDlgMarkWnd;
310 : : class AbstractSvxHlinkDlgMarkWnd_Impl : public AbstractSvxHlinkDlgMarkWnd
311 : : {
312 : 0 : DECL_ABSTDLG_BASE(AbstractSvxHlinkDlgMarkWnd_Impl,SvxHlinkDlgMarkWnd)
313 : : virtual void Hide( sal_uInt16 nFlags = 0 );
314 : : virtual sal_Bool IsVisible() const ;
315 : : virtual void Invalidate( sal_uInt16 nFlags = 0 );
316 : : virtual void SetSizePixel( const Size& rNewSize );
317 : : virtual Size GetSizePixel() const;
318 : : virtual sal_Bool MoveTo ( Point aNewPos )const;
319 : : virtual sal_Bool ConnectToDialog( sal_Bool bDoit = sal_True )const;
320 : : virtual void RefreshTree ( String aStrURL ) ;
321 : : virtual void SelectEntry ( String aStrMark );
322 : : virtual sal_uInt16 SetError( sal_uInt16 nError) ;
323 : :
324 : : };
325 : : //for SvxHlinkDlgMarkWnd end
326 : :
327 : : //for SvxSearchSimilarityDialog begin
328 : : class SvxSearchSimilarityDialog;
329 : : class AbstractSvxSearchSimilarityDialog_Impl :public AbstractSvxSearchSimilarityDialog
330 : : {
331 : 0 : DECL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl,SvxSearchSimilarityDialog)
332 : : virtual sal_uInt16 GetOther();
333 : : virtual sal_uInt16 GetShorter();
334 : : virtual sal_uInt16 GetLonger();
335 : : virtual sal_Bool IsRelaxed();
336 : : };
337 : : //for SvxSearchSimilarityDialog end
338 : :
339 : : //for SvxJSearchOptionsDialog end
340 : : class SvxJSearchOptionsDialog;
341 : : class AbstractSvxJSearchOptionsDialog_Impl :public AbstractSvxJSearchOptionsDialog
342 : : {
343 : 0 : DECL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl,SvxJSearchOptionsDialog)
344 : : virtual sal_Int32 GetTransliterationFlags() const;
345 : : };
346 : : //for SvxJSearchOptionsDialog end
347 : :
348 : : class AbstractSvxTransformTabDialog_Impl : public AbstractSvxTransformTabDialog
349 : : {
350 : 0 : DECL_ABSTDLG_BASE(AbstractSvxTransformTabDialog_Impl,SvxTransformTabDialog)
351 : : virtual void SetValidateFramePosLink( const Link& rLink );
352 : : virtual void SetCurPageId( sal_uInt16 nId );
353 : : virtual const SfxItemSet* GetOutputItemSet() const;
354 : : virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
355 : : virtual void SetInputSet( const SfxItemSet* pInSet );
356 : : virtual void SetText( const XubString& rStr );
357 : : virtual String GetText() const;
358 : : };
359 : : class AbstractSvxCaptionDialog_Impl : public AbstractSvxCaptionDialog
360 : : {
361 : 0 : DECL_ABSTDLG_BASE(AbstractSvxCaptionDialog_Impl,SvxCaptionTabDialog)
362 : : virtual void SetValidateFramePosLink( const Link& rLink );
363 : : virtual void SetCurPageId( sal_uInt16 nId );
364 : : virtual const SfxItemSet* GetOutputItemSet() const;
365 : : virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
366 : : virtual void SetInputSet( const SfxItemSet* pInSet );
367 : : virtual void SetText( const XubString& rStr );
368 : : virtual String GetText() const;
369 : : };
370 : :
371 : : //for FmInputRecordNoDialog end
372 : : class FmInputRecordNoDialog;
373 : : class AbstractFmInputRecordNoDialog_Impl :public AbstractFmInputRecordNoDialog
374 : : {
375 : 0 : DECL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl,FmInputRecordNoDialog)
376 : : virtual void SetValue(long nNew) ;
377 : : virtual long GetValue() const ;
378 : : };
379 : : //for FmInputRecordNoDialog end
380 : :
381 : : //for SvxNewDictionaryDialog end
382 : : class SvxNewDictionaryDialog;
383 : : class AbstractSvxNewDictionaryDialog_Impl :public AbstractSvxNewDictionaryDialog
384 : : {
385 : 0 : DECL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl,SvxNewDictionaryDialog)
386 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XDictionary > GetNewDictionary();
387 : : };
388 : : //for SvxNewDictionaryDialog end
389 : :
390 : : //for SvxNameDialog end
391 : : class SvxNameDialog;
392 : : class AbstractSvxNameDialog_Impl :public AbstractSvxNameDialog
393 : : {
394 [ # # ]: 0 : DECL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl,SvxNameDialog)
395 : : virtual void GetName( String& rName ) ;
396 : : virtual void SetCheckNameHdl( const Link& rLink, bool bCheckImmediately = false ) ;
397 : : virtual void SetEditHelpId(const rtl::OString&) ;
398 : : //from class Window
399 : : virtual void SetHelpId( const rtl::OString& ) ;
400 : : virtual void SetText( const XubString& rStr ) ;
401 : : private:
402 : : Link aCheckNameHdl;
403 : : DECL_LINK(CheckNameHdl, void *);
404 : : };
405 : : //for SvxNameDialog end
406 : :
407 : : ///////////////////////////////////////////////////////////////////////////////////////////////
408 : : // #i68101#
409 : :
410 : : // predefines
411 : : class SvxObjectNameDialog;
412 : : class SvxObjectTitleDescDialog;
413 : :
414 : : class AbstractSvxObjectNameDialog_Impl :public AbstractSvxObjectNameDialog
415 : : {
416 [ # # ]: 0 : DECL_ABSTDLG_BASE(AbstractSvxObjectNameDialog_Impl, SvxObjectNameDialog)
417 : : virtual void GetName(String& rName) ;
418 : : virtual void SetCheckNameHdl(const Link& rLink, bool bCheckImmediately = false);
419 : :
420 : : private:
421 : : Link aCheckNameHdl;
422 : : DECL_LINK(CheckNameHdl, void *);
423 : : };
424 : :
425 : : class AbstractSvxObjectTitleDescDialog_Impl :public AbstractSvxObjectTitleDescDialog
426 : : {
427 : 0 : DECL_ABSTDLG_BASE(AbstractSvxObjectTitleDescDialog_Impl, SvxObjectTitleDescDialog)
428 : : virtual void GetTitle(String& rName);
429 : : virtual void GetDescription(String& rName);
430 : : };
431 : :
432 : : ///////////////////////////////////////////////////////////////////////////////////////////////
433 : :
434 : : //for SvxMessDialog end
435 : : class SvxMessDialog;
436 : : class AbstractSvxMessDialog_Impl :public AbstractSvxMessDialog
437 : : {
438 : 0 : DECL_ABSTDLG_BASE(AbstractSvxMessDialog_Impl,SvxMessDialog)
439 : : virtual void SetButtonText( sal_uInt16 nBtnId, const String& rNewTxt );
440 : : };
441 : : //for SvxMessDialog end
442 : :
443 : : //for SvxMultiPathDialog end
444 : : class SvxMultiPathDialog;
445 : : class AbstractSvxMultiPathDialog_Impl :public AbstractSvxMultiPathDialog
446 : : {
447 : 0 : DECL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl,SvxMultiPathDialog)
448 : : virtual String GetPath() const;
449 : : virtual void SetPath( const String& rPath );
450 : : virtual void EnableRadioButtonMode();
451 : : virtual void SetTitle( const String& rNewTitle );
452 : : };
453 : : //for SvxMultiPathDialog end
454 : :
455 : : //for SvxMultiFileDialog begin
456 : : class SvxMultiFileDialog;
457 : : class AbstractSvxMultiFileDialog_Impl :public AbstractSvxMultiFileDialog
458 : : {
459 : 0 : DECL_ABSTDLG_BASE(AbstractSvxMultiFileDialog_Impl,SvxMultiFileDialog)
460 : : virtual String GetFiles() const ;
461 : : virtual void SetFiles( const String& rPath ) ;
462 : : //from SvxMultiPathDialog
463 : : virtual String GetPath() const;
464 : : virtual void SetPath( const String& rPath );
465 : : virtual void SetClassPathMode();
466 : : virtual void EnableRadioButtonMode();
467 : : virtual void SetTitle( const String& rNewTitle );
468 : : //From Class Window
469 : : virtual void SetHelpId( const rtl::OString& ) ;
470 : :
471 : : };
472 : : //for SvxMultiFileDialog end
473 : :
474 : : //for SvxHpLinkDlg begin
475 : : class SvxHpLinkDlg;
476 : : class AbstractSvxHpLinkDlg_Impl :public AbstractSvxHpLinkDlg
477 : : {
478 : 0 : DECL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl,SvxHpLinkDlg)
479 : : virtual Window* GetWindow();
480 : : virtual sal_Bool QueryClose();
481 : : };
482 : : //for SvxHpLinkDlg end
483 : :
484 : : //for FmSearchDialog begin
485 : : class FmSearchDialog;
486 : : class AbstractFmSearchDialog_Impl :public AbstractFmSearchDialog
487 : : {
488 : 0 : DECL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl,FmSearchDialog)
489 : : virtual void SetFoundHandler(const Link& lnk) ;
490 : : virtual void SetCanceledNotFoundHdl(const Link& lnk);
491 : : virtual void SetActiveField(const String& strField);
492 : : };
493 : : //for FmSearchDialog end
494 : :
495 : : //for GraphicFilterDialog begin
496 : : class GraphicFilterDialog;
497 : : class AbstractGraphicFilterDialog_Impl :public AbstractGraphicFilterDialog
498 : : {
499 : 0 : DECL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl,GraphicFilterDialog)
500 : : virtual Graphic GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY );
501 : : };
502 : : //for GraphicFilterDialog end
503 : :
504 : : // add for SvxAreaTabDialog begin
505 : : class SvxAreaTabDialog;
506 : : class AbstractSvxAreaTabDialog_Impl :public AbstractSvxAreaTabDialog
507 : : {
508 : 0 : DECL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl,SvxAreaTabDialog)
509 : : virtual void SetCurPageId( sal_uInt16 nId );
510 : : virtual const SfxItemSet* GetOutputItemSet() const;
511 : : virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
512 : : virtual void SetInputSet( const SfxItemSet* pInSet );
513 : : // From class Window.
514 : : virtual void SetText( const XubString& rStr );
515 : : virtual String GetText() const;
516 : : };
517 : : // add for SvxAreaTabDialog end
518 : :
519 : : class AbstractInsertObjectDialog_Impl : public SfxAbstractInsertObjectDialog
520 : : {
521 : 0 : DECL_ABSTDLG_BASE(AbstractInsertObjectDialog_Impl, InsertObjectDialog_Impl)
522 : : virtual com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetObject();
523 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetIconIfIconified( ::rtl::OUString* pGraphicMediaType );
524 : : virtual sal_Bool IsCreateNew();
525 : : };
526 : :
527 : : class AbstractPasteDialog_Impl : public SfxAbstractPasteDialog
528 : : {
529 : : public:
530 : 0 : DECL_ABSTDLG_BASE(AbstractPasteDialog_Impl, SvPasteObjectDialog )
531 : : virtual void Insert( SotFormatStringId nFormat, const String & rFormatName );
532 : : virtual void SetObjName( const SvGlobalName & rClass, const String & rObjName );
533 : : virtual sal_uLong GetFormat( const TransferableDataHelper& aHelper,
534 : : const DataFlavorExVector* pFormats=0,
535 : : const TransferableObjectDescriptor* pDesc=0 );
536 : : };
537 : :
538 : : class AbstractLinksDialog_Impl : public SfxAbstractLinksDialog
539 : : {
540 : : public:
541 : 0 : DECL_ABSTDLG_BASE(AbstractLinksDialog_Impl, SvBaseLinksDlg )
542 : : };
543 : :
544 : :
545 : : //add for SvxPostItDialog begin
546 : : class SvxPostItDialog;
547 : : class AbstractSvxPostItDialog_Impl :public AbstractSvxPostItDialog
548 : : {
549 [ # # ][ # # ]: 0 : DECL_ABSTDLG_BASE( AbstractSvxPostItDialog_Impl, SvxPostItDialog )
550 : : virtual void SetText( const XubString& rStr ); //From class Window
551 : : virtual const SfxItemSet* GetOutputItemSet() const;
552 : : virtual void SetPrevHdl( const Link& rLink ) ;
553 : : virtual void SetNextHdl( const Link& rLink ) ;
554 : : virtual void EnableTravel(sal_Bool bNext, sal_Bool bPrev) ;
555 : : virtual String GetNote() ;
556 : : virtual void SetNote(const String& rTxt) ;
557 : : virtual void ShowLastAuthor(const String& rAuthor, const String& rDate) ;
558 : : virtual void DontChangeAuthor() ;
559 : : virtual void HideAuthor() ;
560 : : virtual void SetReadonlyPostIt(sal_Bool bDisable) ;
561 : : virtual sal_Bool IsOkEnabled() const ;
562 : : virtual Window * GetWindow();
563 : : private:
564 : : Link aNextHdl;
565 : : Link aPrevHdl;
566 : : DECL_LINK(NextHdl, void *);
567 : : DECL_LINK(PrevHdl, void *);
568 : : };
569 : : //add for SvxPostItDialog end
570 : :
571 : : //for PasswordToOpenModifyDialog begin
572 : : class PasswordToOpenModifyDialog;
573 : : class AbstractPasswordToOpenModifyDialog_Impl : public AbstractPasswordToOpenModifyDialog
574 : : {
575 : 0 : DECL_ABSTDLG_BASE( AbstractPasswordToOpenModifyDialog_Impl, PasswordToOpenModifyDialog )
576 : :
577 : : virtual String GetPasswordToOpen() const;
578 : : virtual String GetPasswordToModify() const;
579 : : virtual bool IsRecommendToOpenReadonly() const;
580 : : };
581 : : //for PasswordToOpenModifyDialog end
582 : :
583 : :
584 : : //------------------------------------------------------------------------
585 : : //AbstractDialogFactory_Impl implementations
586 [ + - ][ # # ]: 3 : class AbstractDialogFactory_Impl : public SvxAbstractDialogFactory
[ # # ][ # # ]
[ # # ]
587 : : {
588 : : public:
589 : : virtual VclAbstractDialog* CreateVclDialog( Window* pParent, sal_uInt32 nResId );
590 : : virtual VclAbstractDialog* CreateSfxDialog( Window* pParent, const SfxBindings& rBindings, sal_uInt32 nResId );
591 : : virtual SfxAbstractDialog* CreateSfxDialog( sal_uInt32 nResId,
592 : : Window* pParent,
593 : : const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xViewFrame,
594 : : const SfxItemSet* pAttrSet=0 );
595 : : virtual SfxAbstractDialog* CreateSfxDialog( Window* pParent,
596 : : const SfxItemSet& rAttr,
597 : : const SdrView* pView,
598 : : sal_uInt32 nResId );
599 : : virtual SfxAbstractDialog* CreateSfxDialog( Window* pParent, //add for SvxMeasureDialog & SvxConnectionDialog
600 : : const SfxItemSet& rAttr,
601 : : const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame,
602 : : sal_uInt32 nResId
603 : : );
604 : : virtual VclAbstractDialog* CreateFrameDialog( Window* pParent, const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rxFrame, sal_uInt32 nResId, const String& rParameter );
605 : : virtual SfxAbstractTabDialog* CreateTabDialog( sal_uInt32 nResId,
606 : : Window* pParent,
607 : : const SfxItemSet* pAttrSet,
608 : : SfxViewFrame* pViewFrame,
609 : : bool bEditFmt=false,
610 : : const String *pUserButtonText=0 );
611 : : virtual SfxAbstractTabDialog* CreateTabDialog( sal_uInt32 nResId,
612 : : Window* pParent,
613 : : const SfxItemSet* pAttrSet,
614 : : const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xViewFrame,
615 : : bool bEditFmt=false,
616 : : const String *pUserButtonText=0 );
617 : : virtual SfxAbstractTabDialog* CreateTextTabDialog( Window* pParent,
618 : : const SfxItemSet* pAttrSet,
619 : : SdrView* pView,
620 : : SdrModel* pModel=0 ); //add for SvxTextTabDialog
621 : : virtual SfxAbstractTabDialog* CreateTabItemDialog( Window* pParent,
622 : : const SfxItemSet& rSet,
623 : : sal_uInt32 nResId);
624 : : virtual AbstractSvxCaptionDialog* CreateCaptionDialog( Window* pParent,
625 : : const SdrView* pView,
626 : : sal_uInt16 nAnchorTypes = 0 );
627 : : virtual AbstractSvxDistributeDialog* CreateSvxDistributeDialog(Window* pParent,
628 : : const SfxItemSet& rAttr,
629 : : SvxDistributeHorizontal eHor = SvxDistributeHorizontalNone,
630 : : SvxDistributeVertical eVer = SvxDistributeVerticalNone);
631 : : virtual SfxAbstractInsertObjectDialog* CreateInsertObjectDialog( Window* pParent, const rtl::OUString& rCommmand,
632 : : const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStor,
633 : : const SvObjectServerList* pList = 0 );
634 : : virtual VclAbstractDialog* CreateEditObjectDialog( Window* pParent, const rtl::OUString& rCommmand,
635 : : const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObj );
636 : : virtual SfxAbstractPasteDialog* CreatePasteDialog( Window* pParent );
637 : : virtual SfxAbstractLinksDialog* CreateLinksDialog( Window* pParent, sfx2::LinkManager* pMgr, sal_Bool bHTML, sfx2::SvBaseLink* p=0 );
638 : :
639 : : virtual AbstractHangulHanjaConversionDialog * CreateHangulHanjaConversionDialog( Window* _pParent, //add for HangulHanjaConversionDialog
640 : : editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection );
641 : : virtual AbstractThesaurusDialog* CreateThesaurusDialog( Window*, ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XThesaurus > xThesaurus,
642 : : const String &rWord, sal_Int16 nLanguage );
643 : :
644 : : virtual AbstractHyphenWordDialog* CreateHyphenWordDialog( Window*,
645 : : const String &rWord, LanguageType nLang,
646 : : ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XHyphenator > &xHyphen,
647 : : SvxSpellWrapper* pWrapper );
648 : :
649 : : virtual AbstractFmShowColsDialog * CreateFmShowColsDialog( Window* pParent ); //add for FmShowColsDialog
650 : : virtual AbstractSvxZoomDialog * CreateSvxZoomDialog( Window* pParent, //add for SvxZoomDialog
651 : : const SfxItemSet& rCoreSet);
652 : : virtual SfxAbstractTabDialog* CreateSvxBorderBackgroundDlg( Window* pParent, //add for SvxBorderBackgroundDlg
653 : : const SfxItemSet& rCoreSet,
654 : : sal_Bool bEnableSelector = sal_False) ;
655 : : virtual AbstractSvxTransformTabDialog* CreateSvxTransformTabDialog( Window* pParent, //add for SvxTransformTabDialog
656 : : const SfxItemSet* pAttr,
657 : : const SdrView* pView,
658 : : sal_uInt16 nAnchorTypes = 0) ;
659 : : virtual SfxAbstractTabDialog* CreateSchTransformTabDialog( Window* pParent, //add for SchTransformTabDialog
660 : : const SfxItemSet* pAttr,
661 : : const SdrView* pSdrView,
662 : : sal_uInt32 nResId,
663 : : bool bSizeTabPage = false
664 : : );
665 : : virtual AbstractSpellDialog * CreateSvxSpellDialog(
666 : : Window* pParent,
667 : : SfxBindings* pBindings,
668 : : svx::SpellDialogChildWindow* pSpellChildWindow );
669 : :
670 : : virtual VclAbstractRefreshableDialog * CreateActualizeProgressDialog( Window* pParent, GalleryTheme* pThm );
671 : : virtual AbstractSearchProgress * CreateSearchProgressDialog( Window* pParent,
672 : : const INetURLObject& rStartURL);
673 : : virtual AbstractTakeProgress * CreateTakeProgressDialog( Window* pParent );
674 : : virtual AbstractTitleDialog * CreateTitleDialog( Window* pParent, //add for TitleDialog
675 : : const String& rOldText);
676 : : virtual AbstractGalleryIdDialog * CreateGalleryIdDialog( Window* pParent, //add for SvxZoomDialog
677 : : GalleryTheme* pThm);
678 : : virtual VclAbstractDialog2 * CreateGalleryThemePropertiesDialog( Window* pParent, //add for GalleryThemeProperties
679 : : ExchangeData* pData,
680 : : SfxItemSet* pItemSet);
681 : : virtual AbstractURLDlg * CreateURLDialog( Window* pParent, //add for URLDlg
682 : : const String& rURL, const String& rAltText, const String& rDescription,
683 : : const String& rTarget, const String& rName,
684 : : TargetList& rTargetList );
685 : : virtual AbstractSvxHlinkDlgMarkWnd* CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase* pParent, sal_uInt32 nResId ); //add for SvxHlinkDlgMarkWnd
686 : :
687 : : virtual VclAbstractDialog* CreateSvxSearchAttributeDialog( Window* pParent,
688 : : SearchAttrItemList& rLst,
689 : : const sal_uInt16* pWhRanges);
690 : : virtual AbstractSvxSearchSimilarityDialog * CreateSvxSearchSimilarityDialog( Window* pParent,
691 : : sal_Bool bRelax,
692 : : sal_uInt16 nOther,
693 : : sal_uInt16 nShorter,
694 : : sal_uInt16 nLonger); //add for SvxSearchSimilarityDialog
695 : : virtual AbstractSvxJSearchOptionsDialog * CreateSvxJSearchOptionsDialog( Window* pParent,
696 : : const SfxItemSet& rOptionsSet,
697 : : sal_Int32 nInitialFlags);
698 : : virtual AbstractFmInputRecordNoDialog * CreateFmInputRecordNoDialog( Window* pParent );
699 : : virtual AbstractSvxNewDictionaryDialog* CreateSvxNewDictionaryDialog( Window* pParent,
700 : : ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSpellChecker1 > &xSpl,
701 : : sal_uInt32 nResId ); //add for SvxNewDictionaryDialog
702 : : virtual VclAbstractDialog * CreateSvxEditDictionaryDialog( Window* pParent,
703 : : const String& rName,
704 : : ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSpellChecker1> &xSpl,
705 : : sal_uInt32 nResId);//add for SvxEditDictionaryDialog
706 : : virtual AbstractSvxNameDialog * CreateSvxNameDialog( Window* pParent,
707 : : const String& rName, const String& rDesc );
708 : : // #i68101#
709 : : virtual AbstractSvxObjectNameDialog* CreateSvxObjectNameDialog(Window* pParent, const String& rName );
710 : : virtual AbstractSvxObjectTitleDescDialog* CreateSvxObjectTitleDescDialog(Window* pParent, const String& rTitle, const String& rDescription);
711 : :
712 : : virtual AbstractSvxMessDialog * CreateSvxMessDialog( Window* pParent, sal_uInt32 nResId,
713 : : const String& rText, const String& rDesc,
714 : : Image* pImg = NULL ); //add for SvxMessDialog
715 : : virtual AbstractSvxMultiPathDialog * CreateSvxMultiPathDialog( Window* pParent, sal_Bool bEmptyAllowed = sal_False ); //add for SvxMultiPathDialog
716 : : virtual AbstractSvxMultiFileDialog * CreateSvxMultiFileDialog( Window* pParent, sal_Bool bEmptyAllowed = sal_False ); //add for SvxMultiFileDialog
717 : : virtual AbstractSvxHpLinkDlg * CreateSvxHpLinkDlg (Window* pParent, //add for SvxHpLink
718 : : SfxBindings* pBindings,
719 : : sal_uInt32 nResId);
720 : : virtual AbstractFmSearchDialog* CreateFmSearchDialog(Window* pParent, //add for FmSearchDialog
721 : : const String& strInitialText,
722 : : const ::std::vector< String >& _rContexts,
723 : : sal_Int16 nInitialContext,
724 : : const Link& lnkContextSupplier);
725 : : virtual AbstractGraphicFilterDialog * CreateGraphicFilterEmboss (Window* pParent, //add for GraphicFilterEmboss
726 : : const Graphic& rGraphic, RECT_POINT eLightSource,
727 : : sal_uInt32 nResId);
728 : : virtual AbstractGraphicFilterDialog * CreateGraphicFilterPosterSepia (Window* pParent, //add for GraphicFilterPoster & GraphicFilterSepia
729 : : const Graphic& rGraphic, sal_uInt16 nCount,
730 : : sal_uInt32 nResId);
731 : : virtual AbstractGraphicFilterDialog * CreateGraphicFilterSmooth (Window* pParent, //add for GraphicFilterSolarize
732 : : const Graphic& rGraphic, double nRadius,
733 : : sal_uInt32 nResId);
734 : : virtual AbstractGraphicFilterDialog * CreateGraphicFilterSolarize (Window* pParent, //add for GraphicFilterSmooth
735 : : const Graphic& rGraphic, sal_uInt8 nGreyThreshold,
736 : : sal_Bool bInvert, sal_uInt32 nResId);
737 : : virtual AbstractGraphicFilterDialog * CreateGraphicFilterMosaic (Window* pParent, //add for GraphicFilterMosaic
738 : : const Graphic& rGraphic, sal_uInt16 nTileWidth, sal_uInt16 nTileHeight,
739 : : sal_Bool bEnhanceEdges, sal_uInt32 nResId);
740 : : virtual AbstractSvxAreaTabDialog* CreateSvxAreaTabDialog( Window* pParent,//add for SvxAreaTabDialog
741 : : const SfxItemSet* pAttr,
742 : : SdrModel* pModel,
743 : : const SdrView* pSdrView = NULL ); //add for SvxAreaTabDialog
744 : : virtual SfxAbstractTabDialog* CreateSvxLineTabDialog( Window* pParent, const SfxItemSet* pAttr, //add for SvxLineTabDialog
745 : : SdrModel* pModel,
746 : : const SdrObject* pObj = NULL,
747 : : sal_Bool bHasObj = sal_True );
748 : : virtual AbstractSvxPostItDialog* CreateSvxPostItDialog( Window* pParent, //add for SvxPostItDialog
749 : : const SfxItemSet& rCoreSet,
750 : : sal_Bool bPrevNext = sal_False, sal_Bool bRedline = sal_False );
751 : :
752 : : // For TabPage
753 : : virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId );
754 : : virtual CreateSvxDistributePage GetSvxDistributePageCreatorFunc();
755 : :
756 : : virtual GetTabPageRanges GetTabPageRangesFunc( sal_uInt16 nId );
757 : : virtual DialogGetRanges GetDialogGetRangesFunc( sal_uInt16 nId ); //add for SvxPostItDialog
758 : : virtual VclAbstractDialog* CreateSvxScriptOrgDialog( Window* pParent, const String& rLanguage );
759 : :
760 : : virtual AbstractScriptSelectorDialog*
761 : : CreateScriptSelectorDialog(
762 : : Window* pParent,
763 : : sal_Bool bShowSlots,
764 : : const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame
765 : : );
766 : :
767 : : virtual VclAbstractDialog* CreateScriptErrorDialog(
768 : : Window* pParent, ::com::sun::star::uno::Any aException);
769 : :
770 : : virtual VclAbstractDialog* CreateSvxMacroAssignDlg(
771 : : Window* _pParent,
772 : : const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxDocumentFrame,
773 : : const bool _bUnoDialogMode,
774 : : const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace >& _rxEvents,
775 : : const sal_uInt16 _nInitiallySelectedEvent
776 : : );
777 : :
778 : : virtual SfxAbstractTabDialog* CreateSvxFormatCellsDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, const SdrObject* pObj = NULL );
779 : :
780 : : virtual SvxAbstractSplittTableDialog* CreateSvxSplittTableDialog( Window* pParent, bool bIsTableVertical, long nMaxVertical, long nMaxHorizontal );
781 : :
782 : : virtual SvxAbstractNewTableDialog* CreateSvxNewTableDialog( Window* pParent ) ;
783 : :
784 : : virtual VclAbstractDialog* CreateOptionsDialog(
785 : : Window* pParent, const rtl::OUString& rExtensionId, const rtl::OUString& rApplicationContext );
786 : :
787 : : virtual SvxAbstractInsRowColDlg* CreateSvxInsRowColDlg( Window* pParent, bool bCol, const rtl::OString& sHelpId );
788 : :
789 : : virtual AbstractPasswordToOpenModifyDialog * CreatePasswordToOpenModifyDialog( Window * pParent, sal_uInt16 nMinPasswdLen, sal_uInt16 nMaxPasswdLen, bool bIsPasswordToModify );
790 : : };
791 : :
792 : : #endif
793 : :
794 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|