summaryrefslogtreecommitdiff
path: root/xmloff/source/style/styleexp.cxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-11-25 00:33:44 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-11-27 22:59:29 -0600
commit1a8ac8b2df40edd0b17825e2ca0cb170061d0ff1 (patch)
treeed2f435b817f5dcfc7e5df588966de3337f78ea0 /xmloff/source/style/styleexp.cxx
parent739146b75d8f3e537759925ba6e17cddd28e1acf (diff)
String and OUString cleaning in xmloff
Change-Id: I85d7fd7733814c60a048a7f87d43fbcbb83b0eb0
Diffstat (limited to 'xmloff/source/style/styleexp.cxx')
-rw-r--r--xmloff/source/style/styleexp.cxx20
1 files changed, 8 insertions, 12 deletions
diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx
index ef20a9796a7d..2970392078fa 100644
--- a/xmloff/source/style/styleexp.cxx
+++ b/xmloff/source/style/styleexp.cxx
@@ -18,7 +18,6 @@
*/
#include <tools/debug.hxx>
-#include <tools/string.hxx>
#include <xmloff/nmspmap.hxx>
#include "xmloff/xmlnmspe.hxx"
#include <xmloff/xmltoken.hxx>
@@ -42,9 +41,6 @@
#include <set>
#include <boost/scoped_ptr.hpp>
-using ::rtl::OUString;
-using ::rtl::OUStringBuffer;
-
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::style;
@@ -57,7 +53,7 @@ using ::com::sun::star::document::XEventsSupplier;
XMLStyleExport::XMLStyleExport(
SvXMLExport& rExp,
- const ::rtl::OUString& rPoolStyleName,
+ const OUString& rPoolStyleName,
SvXMLAutoStylePoolP *pAutoStyleP ) :
rExport( rExp ),
sIsPhysical( RTL_CONSTASCII_USTRINGPARAM( "IsPhysical" ) ),
@@ -84,7 +80,7 @@ void XMLStyleExport::exportStyleContent( const Reference< XStyle >& )
sal_Bool XMLStyleExport::exportStyle(
const Reference< XStyle >& rStyle,
- const OUString& rXMLFamily,
+ const OUString& rXMLFamily,
const UniReference < SvXMLExportPropertyMapper >& rPropMapper,
const Reference< XNameAccess >& xStyles,
const OUString* pPrefix )
@@ -396,12 +392,12 @@ void XMLStyleExport::exportStyleFamily(
// If next styles are supported and used styles should be exported only,
// the next style may be unused but has to be exported, too. In this case
// the names of all exported styles are remembered.
- boost::scoped_ptr<std::set<String> > pExportedStyles(0);
+ boost::scoped_ptr<std::set<OUString> > pExportedStyles(0);
sal_Bool bFirstStyle = sal_True;
- const uno::Sequence< ::rtl::OUString> aSeq = xStyles->getElementNames();
- const ::rtl::OUString* pIter = aSeq.getConstArray();
- const ::rtl::OUString* pEnd = pIter + aSeq.getLength();
+ const uno::Sequence< OUString> aSeq = xStyles->getElementNames();
+ const OUString* pIter = aSeq.getConstArray();
+ const OUString* pEnd = pIter + aSeq.getLength();
for(;pIter != pEnd;++pIter)
{
Reference< XStyle > xStyle;
@@ -434,7 +430,7 @@ void XMLStyleExport::exportStyleFamily(
xPropSet->getPropertySetInfo();
if( xPropSetInfo->hasPropertyByName( sFollowStyle ) )
- pExportedStyles.reset(new std::set<String>());
+ pExportedStyles.reset(new std::set<OUString>());
bFirstStyle = sal_False;
}
@@ -487,7 +483,7 @@ void XMLStyleExport::exportStyleFamily(
OUString sNextName;
xPropSet->getPropertyValue( sFollowStyle ) >>= sNextName;
- String sTmp( sNextName );
+ OUString sTmp( sNextName );
// if the next style hasn't been exported by now, export it now
// and remember its name.
if( xStyle->getName() != sNextName &&