diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-30 18:17:21 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-30 18:37:20 -0400 |
commit | e78b2fbc545c83b85b1a828bf65b455189c9dcb3 (patch) | |
tree | 6fb40db412a3fe41b202f05a20299370016b67e6 /svtools | |
parent | 7c289cad0a896b092deb01d00618dcee8c8dff45 (diff) |
Store the module name here. I need to use it in the recent files menu.
Change-Id: Ib074b6a4ac6c2fe89edf0a0e4b2faf2d8a8eae68
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/inc/svtools/popupmenucontrollerbase.hxx | 1 | ||||
-rw-r--r-- | svtools/source/uno/popupmenucontrollerbase.cxx | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/svtools/inc/svtools/popupmenucontrollerbase.hxx b/svtools/inc/svtools/popupmenucontrollerbase.hxx index 5bd15cf68d25..3252b3abe31d 100644 --- a/svtools/inc/svtools/popupmenucontrollerbase.hxx +++ b/svtools/inc/svtools/popupmenucontrollerbase.hxx @@ -131,6 +131,7 @@ namespace svt bool m_bInitialized; rtl::OUString m_aCommandURL; rtl::OUString m_aBaseURL; + rtl::OUString m_aModuleName; ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > m_xDispatch; ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame; ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceManager; diff --git a/svtools/source/uno/popupmenucontrollerbase.cxx b/svtools/source/uno/popupmenucontrollerbase.cxx index 69e942e65360..cdc12be41a6b 100644 --- a/svtools/source/uno/popupmenucontrollerbase.cxx +++ b/svtools/source/uno/popupmenucontrollerbase.cxx @@ -373,6 +373,8 @@ void SAL_CALL PopupMenuControllerBase::initialize( const Sequence< Any >& aArgum aPropValue.Value >>= xFrame; else if ( aPropValue.Name == "CommandURL" ) aPropValue.Value >>= aCommandURL; + else if ( aPropValue.Name == "ModuleName" ) + aPropValue.Value >>= m_aModuleName; } } |