diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-12-11 15:37:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-12-11 15:38:30 +0100 |
commit | 123e2c3e9350463fde38fbcbb522e3d6d8340ee6 (patch) | |
tree | c0f9350733d93f6a906cfe2f19b5dac66a655283 /sw/source/filter/xml/swxml.cxx | |
parent | 90f91088d238469b4a2262c91de3117ba40f5bde (diff) |
Revert "Don't hold css::uno::Type instances by pointer"
This reverts commit 90f91088d238469b4a2262c91de3117ba40f5bde for now:
Ach, old GCC doesn't like plain string literals to initialize members
of OUString type...
Change-Id: I50563a00406259bb5d41831e2a2796762450d097
Diffstat (limited to 'sw/source/filter/xml/swxml.cxx')
-rw-r--r-- | sw/source/filter/xml/swxml.cxx | 86 |
1 files changed, 45 insertions, 41 deletions
diff --git a/sw/source/filter/xml/swxml.cxx b/sw/source/filter/xml/swxml.cxx index da8669dac15e..d9dbc4261d10 100644 --- a/sw/source/filter/xml/swxml.cxx +++ b/sw/source/filter/xml/swxml.cxx @@ -536,67 +536,71 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPaM, c // the user. // create XPropertySet with three properties for status indicator - comphelper::PropertyMapEntry const aInfoMap[] = + comphelper::PropertyMapEntry aInfoMap[] = { - { "ProgressRange", 0, - ::getCppuType((sal_Int32*)0), + { "ProgressRange", sizeof("ProgressRange")-1, 0, + &::getCppuType((sal_Int32*)0), beans::PropertyAttribute::MAYBEVOID, 0}, - { "ProgressMax", 0, - ::getCppuType((sal_Int32*)0), + { "ProgressMax", sizeof("ProgressMax")-1, 0, + &::getCppuType((sal_Int32*)0), beans::PropertyAttribute::MAYBEVOID, 0}, - { "ProgressCurrent", 0, - ::getCppuType((sal_Int32*)0), + { "ProgressCurrent", sizeof("ProgressCurrent")-1, 0, + &::getCppuType((sal_Int32*)0), beans::PropertyAttribute::MAYBEVOID, 0}, - { "NumberStyles", 0, - ::getCppuType( (uno::Reference<container::XNameContainer> *) 0), + { "NumberStyles", sizeof("NumberStyles")-1, 0, + &::getCppuType( (uno::Reference<container::XNameContainer> *) 0), beans::PropertyAttribute::MAYBEVOID, 0}, - { "RecordChanges", 0, - ::getBooleanCppuType(), + { "RecordChanges", sizeof("RecordChanges")-1, 0, + &::getBooleanCppuType(), beans::PropertyAttribute::MAYBEVOID, 0 }, - { "ShowChanges", 0, - ::getBooleanCppuType(), + { "ShowChanges", sizeof("ShowChanges")-1, 0, + &::getBooleanCppuType(), beans::PropertyAttribute::MAYBEVOID, 0 }, - { "RedlineProtectionKey", 0, - ::getCppuType((Sequence<sal_Int8>*)0), + { "RedlineProtectionKey", sizeof("RedlineProtectionKey")-1, 0, +#if (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500)) + new uno::Type(::getCppuType((Sequence<sal_Int8>*)0)), +#else + &::getCppuType((Sequence<sal_Int8>*)0), +#endif beans::PropertyAttribute::MAYBEVOID, 0 }, - { "PrivateData", 0, - ::getCppuType( (uno::Reference<XInterface> *)0 ), + { "PrivateData", sizeof("PrivateData")-1, 0, + &::getCppuType( (uno::Reference<XInterface> *)0 ), beans::PropertyAttribute::MAYBEVOID, 0 }, - { "BaseURI", 0, - ::getCppuType( (OUString *)0 ), + { "BaseURI", sizeof("BaseURI")-1, 0, + &::getCppuType( (OUString *)0 ), beans::PropertyAttribute::MAYBEVOID, 0 }, - { "StreamRelPath", 0, - ::getCppuType( (OUString *)0 ), + { "StreamRelPath", sizeof("StreamRelPath")-1, 0, + &::getCppuType( (OUString *)0 ), beans::PropertyAttribute::MAYBEVOID, 0 }, - { "StreamName", 0, - ::getCppuType( (OUString *)0 ), + { "StreamName", sizeof("StreamName")-1, 0, + &::getCppuType( (OUString *)0 ), beans::PropertyAttribute::MAYBEVOID, 0 }, // properties for insert modes - { "StyleInsertModeFamilies", 0, - ::getCppuType((Sequence<OUString>*)0), + { "StyleInsertModeFamilies", sizeof("StyleInsertModeFamilies")-1, 0, + &::getCppuType((Sequence<OUString>*)0), beans::PropertyAttribute::MAYBEVOID, 0 }, - { "StyleInsertModeOverwrite", 0, - ::getBooleanCppuType(), + { "StyleInsertModeOverwrite", sizeof("StyleInsertModeOverwrite")-1, 0, + &::getBooleanCppuType(), beans::PropertyAttribute::MAYBEVOID, 0 }, - { "TextInsertModeRange", 0, - ::getCppuType( (uno::Reference<text::XTextRange> *) 0), + { "TextInsertModeRange", sizeof("TextInsertModeRange")-1, 0, + &::getCppuType( (uno::Reference<text::XTextRange> *) 0), beans::PropertyAttribute::MAYBEVOID, 0}, - { "AutoTextMode", 0, - ::getBooleanCppuType(), + { "AutoTextMode", sizeof("AutoTextMode")-1, 0, + &::getBooleanCppuType(), beans::PropertyAttribute::MAYBEVOID, 0 }, - { "OrganizerMode", 0, - ::getBooleanCppuType(), + { "OrganizerMode", sizeof("OrganizerMode")-1, 0, + &::getBooleanCppuType(), beans::PropertyAttribute::MAYBEVOID, 0 }, // #i28749# - Add property, which indicates, if the // shape position attributes are given in horizontal left-to-right layout. // This is the case for the OpenOffice.org file format. - { "ShapePositionInHoriL2R", 0, - ::getBooleanCppuType(), + { "ShapePositionInHoriL2R", sizeof("ShapePositionInHoriL2R")-1, 0, + &::getBooleanCppuType(), beans::PropertyAttribute::MAYBEVOID, 0 }, - { "BuildId", 0, - ::getCppuType( (OUString *)0 ), + { "BuildId", sizeof("BuildId")-1, 0, + &::getCppuType( (OUString *)0 ), beans::PropertyAttribute::MAYBEVOID, 0 }, // Add property, which indicates, if a text document in OpenOffice.org @@ -605,12 +609,12 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPaM, c // read using the OpenOffice.org file format. Thus, e.g. for text // documents in StarOffice 5.2 binary file format this property // will be sal_True. - { "TextDocInOOoFileFormat", 0, - ::getBooleanCppuType(), + { "TextDocInOOoFileFormat", sizeof("TextDocInOOoFileFormat")-1, 0, + &::getBooleanCppuType(), beans::PropertyAttribute::MAYBEVOID, 0 }, - { "SourceStorage", 0, embed::XStorage::static_type(), + { "SourceStorage", sizeof("SourceStorage")-1, 0, &embed::XStorage::static_type(), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 }, - {} + { NULL, 0, 0, NULL, 0, 0 } }; uno::Reference< beans::XPropertySet > xInfoSet( comphelper::GenericPropertySet_CreateInstance( |