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