diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-04 14:33:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-06 16:48:12 +0200 |
commit | 8ed2fb306ffa8c7fef336b858fc5074c309c3c9f (patch) | |
tree | 8699322ccfd3bfef66af56437bb9dabfa249a719 /include/sfx2 | |
parent | 79ae6cc6b3b19252473f6987106ea7d8aa17a5ea (diff) |
weld linkeditdialog
which enables changing FileDialogHelper over to welded
Change-Id: I988342a6574cb7ed09b2724929e8c7117474a56c
Reviewed-on: https://gerrit.libreoffice.org/52388
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/docinsert.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/filedlghelper.hxx | 21 | ||||
-rw-r--r-- | include/sfx2/linksrc.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/lnkbase.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/opengrf.hxx | 4 |
5 files changed, 13 insertions, 23 deletions
diff --git a/include/sfx2/docinsert.hxx b/include/sfx2/docinsert.hxx index 5ab0d9b73bd0..bacf00ec47de 100644 --- a/include/sfx2/docinsert.hxx +++ b/include/sfx2/docinsert.hxx @@ -28,6 +28,7 @@ #include <vector> namespace sfx2 { class FileDialogHelper; } +namespace weld { class Window; } class SfxMedium; class SfxItemSet; enum class FileDialogFlags; @@ -39,7 +40,7 @@ namespace sfx2 { class SFX2_DLLPUBLIC DocumentInserter { private: - VclPtr<vcl::Window> m_xParent; + weld::Window* m_pParent; OUString m_sDocFactory; OUString m_sFilter; Link<sfx2::FileDialogHelper*,void> m_aDialogClosedLink; @@ -61,7 +62,7 @@ public: Compare, Merge }; - DocumentInserter(vcl::Window* pParent, const OUString& rFactory, const Mode mode = Mode::Insert); + DocumentInserter(weld::Window* pParent, const OUString& rFactory, const Mode mode = Mode::Insert); ~DocumentInserter(); void StartExecuteModal( const Link<sfx2::FileDialogHelper*,void>& _rDialogClosedLink ); diff --git a/include/sfx2/filedlghelper.hxx b/include/sfx2/filedlghelper.hxx index 8a5b0015a705..02cc6f15c9a9 100644 --- a/include/sfx2/filedlghelper.hxx +++ b/include/sfx2/filedlghelper.hxx @@ -103,25 +103,14 @@ private: public: FileDialogHelper(sal_Int16 nDialogType, FileDialogFlags nFlags, - const vcl::Window* _pPreferredParent); - - FileDialogHelper(sal_Int16 nDialogType, - FileDialogFlags nFlags, - weld::Window* _pPreferredParent); - - FileDialogHelper(sal_Int16 nDialogType, - FileDialogFlags nFlags, - const OUString& rFactory, - SfxFilterFlags nMust, - SfxFilterFlags nDont, - const vcl::Window* _pPreferredParent); + weld::Window* pPreferredParent); FileDialogHelper(sal_Int16 nDialogType, FileDialogFlags nFlags, const OUString& rFactory, SfxFilterFlags nMust, SfxFilterFlags nDont, - weld::Window* _pPreferredParent); + weld::Window* pPreferredParent); FileDialogHelper(sal_Int16 nDialogType, FileDialogFlags nFlags, @@ -131,7 +120,7 @@ public: SfxFilterFlags nDont, const OUString& rStandardDir, const css::uno::Sequence< OUString >& rBlackList, - const vcl::Window* _pPreferredParent); + weld::Window* pPreferredParent); FileDialogHelper(sal_Int16 nDialogType, FileDialogFlags nFlags, @@ -139,7 +128,7 @@ public: const OUString& aExtName, const OUString& rStandardDir, const css::uno::Sequence< OUString >& rBlackList, - const vcl::Window* _pPreferredParent); + weld::Window* pPreferredParent); virtual ~FileDialogHelper(); @@ -254,7 +243,7 @@ public: #define SFX2_IMPL_DIALOG_OOO 2 #define SFX2_IMPL_DIALOG_REMOTE 3 -ErrCode FileOpenDialog_Impl( const vcl::Window* pParent, +ErrCode FileOpenDialog_Impl( weld::Window* pParent, sal_Int16 nDialogType, FileDialogFlags nFlags, std::vector<OUString>& rpURLList, diff --git a/include/sfx2/linksrc.hxx b/include/sfx2/linksrc.hxx index 8eff0afd0376..3471dde4d10a 100644 --- a/include/sfx2/linksrc.hxx +++ b/include/sfx2/linksrc.hxx @@ -31,7 +31,7 @@ namespace com { namespace sun { namespace star { namespace uno { class Any; }}}} -namespace vcl { class Window; } +namespace weld { class Window; } namespace rtl { class OUString; } @@ -83,7 +83,7 @@ public: // sal_True => data complete loaded virtual bool IsDataComplete() const; - virtual void Edit( vcl::Window *, SvBaseLink *, const Link<const OUString&, void>& rEndEditHdl ); + virtual void Edit(weld::Window *, SvBaseLink *, const Link<const OUString&, void>& rEndEditHdl); void AddDataAdvise( SvBaseLink *, const rtl::OUString & rMimeType, diff --git a/include/sfx2/lnkbase.hxx b/include/sfx2/lnkbase.hxx index 6809a1d5ded6..09f14b3a1723 100644 --- a/include/sfx2/lnkbase.hxx +++ b/include/sfx2/lnkbase.hxx @@ -144,7 +144,7 @@ public: bool Update(); void Disconnect(); - virtual void Edit( vcl::Window*, const Link<SvBaseLink&,void>& rEndEditHdl ); + virtual void Edit(weld::Window*, const Link<SvBaseLink&,void>& rEndEditHdl); // should the link appear in the dialog? (to the left in the link in the...) bool IsVisible() const { return bVisible; } diff --git a/include/sfx2/opengrf.hxx b/include/sfx2/opengrf.hxx index 775750c0895b..0178cc0bb745 100644 --- a/include/sfx2/opengrf.hxx +++ b/include/sfx2/opengrf.hxx @@ -31,8 +31,8 @@ struct SvxOpenGrf_Impl; class SFX2_DLLPUBLIC SvxOpenGraphicDialog { public: - SvxOpenGraphicDialog(const OUString& rTitle, const vcl::Window* pPreferredParent); - SvxOpenGraphicDialog(const OUString& rTitle, const vcl::Window* pPreferredParent, + SvxOpenGraphicDialog(const OUString& rTitle, weld::Window* pPreferredParent); + SvxOpenGraphicDialog(const OUString& rTitle, weld::Window* pPreferredParent, sal_Int16 nDialogType); ~SvxOpenGraphicDialog(); |