From eda008c4faa6515cff02738996bac89ef4b41040 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 11 Apr 2016 11:36:10 +0200 Subject: Fold impl_initializePropInfo into initListeners Change-Id: I14d6461d442a8e0ff1efd719e7e2233ffbc523a5 --- framework/source/services/frame.cxx | 78 ++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 45 deletions(-) (limited to 'framework') diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx index 0c412bd7034d..bb34ba295d5d 100644 --- a/framework/source/services/frame.cxx +++ b/framework/source/services/frame.cxx @@ -327,8 +327,6 @@ public: private: - void impl_initializePropInfo(); - void SAL_CALL impl_setPropertyValue(const OUString& sProperty, sal_Int32 nHandle , const css::uno::Any& aValue ); @@ -555,7 +553,37 @@ void Frame::initListeners() m_xLayoutManager = css::frame::LayoutManager::create(m_xContext); // set information about all supported properties - impl_initializePropInfo(); + impl_setPropertyChangeBroadcaster(static_cast< css::frame::XFrame* >(this)); + impl_addPropertyInfo( + css::beans::Property( + FRAME_PROPNAME_ASCII_DISPATCHRECORDERSUPPLIER, + FRAME_PROPHANDLE_DISPATCHRECORDERSUPPLIER, + cppu::UnoType::get(), + css::beans::PropertyAttribute::TRANSIENT)); + impl_addPropertyInfo( + css::beans::Property( + FRAME_PROPNAME_ASCII_INDICATORINTERCEPTION, + FRAME_PROPHANDLE_INDICATORINTERCEPTION, + cppu::UnoType::get(), + css::beans::PropertyAttribute::TRANSIENT)); + impl_addPropertyInfo( + css::beans::Property( + FRAME_PROPNAME_ASCII_ISHIDDEN, + FRAME_PROPHANDLE_ISHIDDEN, + cppu::UnoType::get(), + css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY)); + impl_addPropertyInfo( + css::beans::Property( + FRAME_PROPNAME_ASCII_LAYOUTMANAGER, + FRAME_PROPHANDLE_LAYOUTMANAGER, + cppu::UnoType::get(), + css::beans::PropertyAttribute::TRANSIENT)); + impl_addPropertyInfo( + css::beans::Property( + FRAME_PROPNAME_ASCII_TITLE, + FRAME_PROPHANDLE_TITLE, + cppu::UnoType::get(), + css::beans::PropertyAttribute::TRANSIENT)); } /*-************************************************************************************************************ @@ -2656,46 +2684,6 @@ sal_Int16 SAL_CALL Frame::resetActionLocks() throw( css::uno::RuntimeException, return nCurrentLocks; } -void Frame::impl_initializePropInfo() -{ - impl_setPropertyChangeBroadcaster(static_cast< css::frame::XFrame* >(this)); - - impl_addPropertyInfo( - css::beans::Property( - FRAME_PROPNAME_ASCII_DISPATCHRECORDERSUPPLIER, - FRAME_PROPHANDLE_DISPATCHRECORDERSUPPLIER, - cppu::UnoType::get(), - css::beans::PropertyAttribute::TRANSIENT)); - - impl_addPropertyInfo( - css::beans::Property( - FRAME_PROPNAME_ASCII_INDICATORINTERCEPTION, - FRAME_PROPHANDLE_INDICATORINTERCEPTION, - cppu::UnoType::get(), - css::beans::PropertyAttribute::TRANSIENT)); - - impl_addPropertyInfo( - css::beans::Property( - FRAME_PROPNAME_ASCII_ISHIDDEN, - FRAME_PROPHANDLE_ISHIDDEN, - cppu::UnoType::get(), - css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY)); - - impl_addPropertyInfo( - css::beans::Property( - FRAME_PROPNAME_ASCII_LAYOUTMANAGER, - FRAME_PROPHANDLE_LAYOUTMANAGER, - cppu::UnoType::get(), - css::beans::PropertyAttribute::TRANSIENT)); - - impl_addPropertyInfo( - css::beans::Property( - FRAME_PROPNAME_ASCII_TITLE, - FRAME_PROPHANDLE_TITLE, - cppu::UnoType::get(), - css::beans::PropertyAttribute::TRANSIENT)); -} - void SAL_CALL Frame::impl_setPropertyValue(const OUString& /*sProperty*/, sal_Int32 nHandle , const css::uno::Any& aValue ) @@ -2707,7 +2695,7 @@ void SAL_CALL Frame::impl_setPropertyValue(const OUString& /*sProperty*/, /* Attention: You can use nHandle only, if you are sure that all supported properties has an unique handle. That must be guaranteed - inside method impl_initializePropInfo()! + inside method initListeners()! */ switch (nHandle) { @@ -2763,7 +2751,7 @@ css::uno::Any SAL_CALL Frame::impl_getPropertyValue(const OUString& /*sProperty* /* Attention: You can use nHandle only, if you are sure that all supported properties has an unique handle. That must be guaranteed - inside method impl_initializePropInfo()! + inside method initListeners()! */ css::uno::Any aValue; switch (nHandle) -- cgit