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