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