diff options
author | Jack Leigh <leighman@gmx.se> | 2012-10-11 23:47:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-12 16:33:42 +0100 |
commit | 5cb6877206c459530caa104b34e494badab5a4d1 (patch) | |
tree | fa876a7f94b5b5d6b8f895c68dd0ee873584fae7 /cui/source/inc/insdlg.hxx | |
parent | 53acdd29e32707eb4ad6e922b47e1c1216f9d7d6 (diff) |
migrate 'Insert OLE Object' dialog to use .ui file
Change-Id: If2a241e34f88a39bacee5344f89893e3ccfdc57d
Diffstat (limited to 'cui/source/inc/insdlg.hxx')
-rw-r--r-- | cui/source/inc/insdlg.hxx | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/cui/source/inc/insdlg.hxx b/cui/source/inc/insdlg.hxx index 27ebff9acf74..c4486c98de1a 100644 --- a/cui/source/inc/insdlg.hxx +++ b/cui/source/inc/insdlg.hxx @@ -33,6 +33,8 @@ #include <svtools/svmedit.hxx> // MultiLineEdit #include <comphelper/embeddedobjectcontainer.hxx> +class VclFrame; + class INetURLObject; class InsertObjectDialog_Impl : public ModalDialog @@ -55,38 +57,37 @@ public: class SvInsertOleDlg : public InsertObjectDialog_Impl { - RadioButton aRbNewObject; - RadioButton aRbObjectFromfile; - FixedLine aGbObject; - ListBox aLbObjecttype; - Edit aEdFilepath; - PushButton aBtnFilepath; - CheckBox aCbFilelink; - OKButton aOKButton1; - CancelButton aCancelButton1; - HelpButton aHelpButton1; - String aStrFile; - String _aOldStr; + RadioButton* m_pRbNewObject; + RadioButton* m_pRbObjectFromfile; + VclFrame* m_pObjectTypeFrame; + ListBox* m_pLbObjecttype; + VclFrame* m_pFileFrame; + Edit* m_pEdFilepath; + PushButton* m_pBtnFilepath; + CheckBox* m_pCbFilelink; const SvObjectServerList* m_pServers; ::com::sun::star::uno::Sequence< sal_Int8 > m_aIconMetaFile; - ::rtl::OUString m_aIconMediaType; + OUString m_aIconMediaType; - DECL_LINK( DoubleClickHdl, void* ); + DECL_LINK(DoubleClickHdl, void*); DECL_LINK(BrowseHdl, void *); DECL_LINK(RadioHdl, void *); - void SelectDefault(); - ListBox& GetObjectTypes() - { return aLbObjecttype; } - String GetFilePath() const { return aEdFilepath.GetText(); } - sal_Bool IsLinked() const { return aCbFilelink.IsChecked(); } - sal_Bool IsCreateNew() const { return aRbNewObject.IsChecked(); } + void SelectDefault(); + ListBox& GetObjectTypes() + { return *m_pLbObjecttype; } + OUString GetFilePath() const + { return m_pEdFilepath->GetText(); } + sal_Bool IsLinked() const + { return m_pCbFilelink->IsChecked(); } + sal_Bool IsCreateNew() const + { return m_pRbNewObject->IsChecked(); } public: - SvInsertOleDlg( Window* pParent, - const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage, - const SvObjectServerList* pServers = NULL ); - virtual short Execute(); + SvInsertOleDlg( Window* pParent, + const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage, + const SvObjectServerList* pServers = NULL ); + virtual short Execute(); /// get replacement for the iconified embedded object and the mediatype of the replacement ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetIconIfIconified( ::rtl::OUString* pGraphicMediaType ); |