summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-11 11:36:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-11 16:58:44 +0200
commiteda008c4faa6515cff02738996bac89ef4b41040 (patch)
tree977d4d9802f2c0fc11d4224f58ac99453b25e734 /framework
parentNo need to lock SolarMutex here (diff)
downloadcore-eda008c4faa6515cff02738996bac89ef4b41040.tar.gz
core-eda008c4faa6515cff02738996bac89ef4b41040.zip
Fold impl_initializePropInfo into initListeners
Change-Id: I14d6461d442a8e0ff1efd719e7e2233ffbc523a5
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/frame.cxx78
1 files changed, 33 insertions, 45 deletions
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<css::frame::XDispatchRecorderSupplier>::get(),
+ css::beans::PropertyAttribute::TRANSIENT));
+ impl_addPropertyInfo(
+ css::beans::Property(
+ FRAME_PROPNAME_ASCII_INDICATORINTERCEPTION,
+ FRAME_PROPHANDLE_INDICATORINTERCEPTION,
+ cppu::UnoType<css::task::XStatusIndicator>::get(),
+ css::beans::PropertyAttribute::TRANSIENT));
+ impl_addPropertyInfo(
+ css::beans::Property(
+ FRAME_PROPNAME_ASCII_ISHIDDEN,
+ FRAME_PROPHANDLE_ISHIDDEN,
+ cppu::UnoType<bool>::get(),
+ css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY));
+ impl_addPropertyInfo(
+ css::beans::Property(
+ FRAME_PROPNAME_ASCII_LAYOUTMANAGER,
+ FRAME_PROPHANDLE_LAYOUTMANAGER,
+ cppu::UnoType<css::frame::XLayoutManager>::get(),
+ css::beans::PropertyAttribute::TRANSIENT));
+ impl_addPropertyInfo(
+ css::beans::Property(
+ FRAME_PROPNAME_ASCII_TITLE,
+ FRAME_PROPHANDLE_TITLE,
+ cppu::UnoType<OUString>::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<css::frame::XDispatchRecorderSupplier>::get(),
- css::beans::PropertyAttribute::TRANSIENT));
-
- impl_addPropertyInfo(
- css::beans::Property(
- FRAME_PROPNAME_ASCII_INDICATORINTERCEPTION,
- FRAME_PROPHANDLE_INDICATORINTERCEPTION,
- cppu::UnoType<css::task::XStatusIndicator>::get(),
- css::beans::PropertyAttribute::TRANSIENT));
-
- impl_addPropertyInfo(
- css::beans::Property(
- FRAME_PROPNAME_ASCII_ISHIDDEN,
- FRAME_PROPHANDLE_ISHIDDEN,
- cppu::UnoType<bool>::get(),
- css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY));
-
- impl_addPropertyInfo(
- css::beans::Property(
- FRAME_PROPNAME_ASCII_LAYOUTMANAGER,
- FRAME_PROPHANDLE_LAYOUTMANAGER,
- cppu::UnoType<css::frame::XLayoutManager>::get(),
- css::beans::PropertyAttribute::TRANSIENT));
-
- impl_addPropertyInfo(
- css::beans::Property(
- FRAME_PROPNAME_ASCII_TITLE,
- FRAME_PROPHANDLE_TITLE,
- cppu::UnoType<OUString>::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)