diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-04-07 12:06:47 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-04-07 14:23:11 +0200 |
commit | 1946794ae09ba732022fe6a74ea45e304ab70b84 (patch) | |
tree | e32bd7ba61fa021ecc7f8c85959df8ca837d6e81 /scripting/source/inc/util/MiscUtils.hxx | |
parent | 5b08c6e7a21dda94d5b755eea0b1ed1e9c199bec (diff) |
mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).
Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
Diffstat (limited to 'scripting/source/inc/util/MiscUtils.hxx')
-rw-r--r-- | scripting/source/inc/util/MiscUtils.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scripting/source/inc/util/MiscUtils.hxx b/scripting/source/inc/util/MiscUtils.hxx index 5c7218e8f100..ccb44f895678 100644 --- a/scripting/source/inc/util/MiscUtils.hxx +++ b/scripting/source/inc/util/MiscUtils.hxx @@ -45,9 +45,9 @@ namespace sf_misc class MiscUtils { public: - static css::uno::Sequence< ::rtl::OUString > allOpenTDocUrls( const css::uno::Reference< css::uno::XComponentContext >& xCtx) + static css::uno::Sequence< OUString > allOpenTDocUrls( const css::uno::Reference< css::uno::XComponentContext >& xCtx) { - css::uno::Sequence< ::rtl::OUString > result; + css::uno::Sequence< OUString > result; try { if ( !xCtx.is() ) @@ -63,7 +63,7 @@ public: return result; } - static ::rtl::OUString xModelToTdocUrl( const css::uno::Reference< css::frame::XModel >& xModel, + static OUString xModelToTdocUrl( const css::uno::Reference< css::frame::XModel >& xModel, const css::uno::Reference< css::uno::XComponentContext >& xContext ) { css::uno::Reference< css::lang::XMultiComponentFactory > xMCF( @@ -76,7 +76,7 @@ public: css::uno::Reference< css::frame::XTransientDocumentsDocumentContentFactory >( xMCF->createInstanceWithContext( - rtl::OUString( + OUString( "com.sun.star.frame.TransientDocumentsDocumentContentFactory" ), xContext ), css::uno::UNO_QUERY ); @@ -101,16 +101,16 @@ public: } OSL_FAIL( "Unable to obtain URL for document model!" ); - return rtl::OUString(); + return OUString(); } - static css::uno::Reference< css::frame::XModel > tDocUrlToModel( const ::rtl::OUString& url ) + static css::uno::Reference< css::frame::XModel > tDocUrlToModel( const OUString& url ) { css::uno::Any result; try { ::ucbhelper::Content root( url, NULL, comphelper::getProcessComponentContext() ); - ::rtl::OUString propName = "DocumentModel"; + OUString propName = "DocumentModel"; result = getUCBProperty( root, propName ); } catch ( css::ucb::ContentCreationException& ) @@ -129,7 +129,7 @@ public: } - static css::uno::Any getUCBProperty( ::ucbhelper::Content& content, ::rtl::OUString& prop ) + static css::uno::Any getUCBProperty( ::ucbhelper::Content& content, OUString& prop ) { css::uno::Any result; try @@ -143,11 +143,11 @@ public: } private: -static ::rtl::OUString parseLocationName( const ::rtl::OUString& location ) +static OUString parseLocationName( const OUString& location ) { // strip out the last leaf of location name // e.g. file://dir1/dir2/Blah.sxw - > Blah.sxw - ::rtl::OUString temp = location; + OUString temp = location; INetURLObject aURLObj( temp ); if ( !aURLObj.HasError() ) temp = aURLObj.getName( INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET ); |