summaryrefslogtreecommitdiff
path: root/sw/inc/unocrsrhelper.hxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-12-21 15:27:27 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-01-08 22:08:19 +0000
commitee0bf5d58bc59052923c4ced928a989956e71456 (patch)
tree26ccda410301b1af52378b362afca96b78246efe /sw/inc/unocrsrhelper.hxx
parentc17e15a42735b5c6a756e90263a91f8e05f9c457 (diff)
fdo#44736 - set and fetch multiple properties concurrently
The domain-mapper calls SwXText::insertTextPortion very extensively accounting for about half of import time for large, lightly formatted text documents. The vast majority of the work is consumed managing char + para properties - so try to batch that, making it 70% faster for my lightly formatted test. Saves around 25% of load time for me. Change-Id: I2582adee1bf35b07b90af810cb0d19dadc1d348f
Diffstat (limited to 'sw/inc/unocrsrhelper.hxx')
-rw-r--r--sw/inc/unocrsrhelper.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/sw/inc/unocrsrhelper.hxx b/sw/inc/unocrsrhelper.hxx
index a5892f6cf75b..aa7fd4d9c7c2 100644
--- a/sw/inc/unocrsrhelper.hxx
+++ b/sw/inc/unocrsrhelper.hxx
@@ -151,6 +151,19 @@ namespace SwUnoCursorHelper
::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
+ /// @param bTableMode: attributes should be applied to a table selection
+ void SetPropertyValues(
+ SwPaM& rPaM,
+ const SfxItemPropertySet & rPropSet,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > &
+ rPropertyValues,
+ const SetAttrMode nAttrMode = nsSetAttrMode::SETATTR_DEFAULT,
+ const bool bTableMode = false)
+ throw (::com::sun::star::beans::UnknownPropertyException,
+ ::com::sun::star::beans::PropertyVetoException,
+ ::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::lang::WrappedTargetException,
+ ::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Any GetPropertyValue(
SwPaM& rPaM,
const SfxItemPropertySet & rPropSet,