<div dir="ltr">Hi Joes,<div>I been watching this ::rtl:: cleanup patches has been submit for few round, just curious to know, why is this done so? Sorry for asking this as I have just join the community, I just would like to know things happening around.</div>
<div><br></div><div style>:o)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 31, 2012 at 10:53 AM, José Guilherme Vanz (via Code Review) <span dir="ltr"><<a href="mailto:gerrit@gerrit.libreoffice.org" target="_blank">gerrit@gerrit.libreoffice.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have submitted a patch for review:<br>
<br>
<a href="https://gerrit.libreoffice.org/1520" target="_blank">https://gerrit.libreoffice.org/1520</a><br>
<br>
To pull it, you can do:<br>
<br>
git pull ssh://<a href="http://gerrit.libreoffice.org:29418/core" target="_blank">gerrit.libreoffice.org:29418/core</a> refs/changes/20/1520/1<br>
<br>
Removal rtl and string cleanup<br>
<br>
This commit removes ::rtl:: prefixes and string cleanup in oox<br>
<br>
Change-Id: I434462635392c750e2359f9d656d5e1885f2a0dc<br>
Signed-off-by: Jose Guilherme Vanz <<a href="mailto:guilherme.sft@gmail.com">guilherme.sft@gmail.com</a>><br>
---<br>
M oox/source/ppt/animationspersist.cxx<br>
M oox/source/ppt/animationtypes.cxx<br>
M oox/source/ppt/animationtypes.hxx<br>
M oox/source/ppt/animvariantcontext.cxx<br>
M oox/source/ppt/backgroundproperties.cxx<br>
M oox/source/ppt/commonbehaviorcontext.cxx<br>
M oox/source/ppt/commonbehaviorcontext.hxx<br>
M oox/source/ppt/commontimenodecontext.cxx<br>
M oox/source/ppt/customshowlistcontext.cxx<br>
M oox/source/ppt/dgmimport.cxx<br>
M oox/source/ppt/dgmlayout.cxx<br>
M oox/source/ppt/extdrawingfragmenthandler.cxx<br>
M oox/source/ppt/layoutfragmenthandler.cxx<br>
M oox/source/ppt/pptfilterhelpers.cxx<br>
M oox/source/ppt/pptfilterhelpers.hxx<br>
M oox/source/ppt/pptgraphicshapecontext.cxx<br>
M oox/source/ppt/pptimport.cxx<br>
M oox/source/ppt/pptshape.cxx<br>
M oox/source/ppt/pptshapecontext.cxx<br>
M oox/source/ppt/pptshapegroupcontext.cxx<br>
M oox/source/ppt/pptshapepropertiescontext.cxx<br>
M oox/source/ppt/presentationfragmenthandler.cxx<br>
M oox/source/ppt/slidefragmenthandler.cxx<br>
M oox/source/ppt/slidemastertextstylescontext.cxx<br>
M oox/source/ppt/slidepersist.cxx<br>
M oox/source/ppt/slidetimingcontext.cxx<br>
M oox/source/ppt/slidetransition.cxx<br>
M oox/source/ppt/slidetransitioncontext.cxx<br>
M oox/source/ppt/soundactioncontext.cxx<br>
M oox/source/ppt/timeanimvaluecontext.cxx<br>
M oox/source/ppt/timenode.cxx<br>
M oox/source/ppt/timenodelistcontext.cxx<br>
M oox/source/ppt/timetargetelementcontext.cxx<br>
33 files changed, 39 insertions(+), 84 deletions(-)<br>
<br>
<br>
<br>
diff --git a/oox/source/ppt/animationspersist.cxx b/oox/source/ppt/animationspersist.cxx<br>
index bf2a53a..74a9208 100644<br>
--- a/oox/source/ppt/animationspersist.cxx<br>
+++ b/oox/source/ppt/animationspersist.cxx<br>
@@ -28,7 +28,6 @@<br>
<br>
#include "oox/drawingml/shape.hxx"<br>
<br>
-using rtl::OUString;<br>
using namespace ::com::sun::star::uno;<br>
using namespace ::com::sun::star::presentation;<br>
using namespace ::com::sun::star::drawing;<br>
diff --git a/oox/source/ppt/animationtypes.cxx b/oox/source/ppt/animationtypes.cxx<br>
index a79b0d6..a6ba788 100644<br>
--- a/oox/source/ppt/animationtypes.cxx<br>
+++ b/oox/source/ppt/animationtypes.cxx<br>
@@ -31,7 +31,7 @@<br>
namespace oox { namespace ppt {<br>
<br>
// ST_TLTime<br>
-Any GetTime( const ::rtl::OUString & val )<br>
+Any GetTime( const OUString & val )<br>
{<br>
Any aDuration;<br>
if( val.compareToAscii( "indefinite" ) == 0 )<br>
@@ -47,7 +47,7 @@<br>
<br>
<br>
// ST_TLTimeAnimateValueTime<br>
-Any GetTimeAnimateValueTime( const ::rtl::OUString & val )<br>
+Any GetTimeAnimateValueTime( const OUString & val )<br>
{<br>
Any aPercent;<br>
if( val.compareToAscii( "indefinite" ) == 0 )<br>
diff --git a/oox/source/ppt/animationtypes.hxx b/oox/source/ppt/animationtypes.hxx<br>
index 7e0b358..ab26abe 100644<br>
--- a/oox/source/ppt/animationtypes.hxx<br>
+++ b/oox/source/ppt/animationtypes.hxx<br>
@@ -30,9 +30,9 @@<br>
namespace oox { namespace ppt {<br>
<br>
// ST_TLTime<br>
-::com::sun::star::uno::Any GetTime( const ::rtl::OUString & val );<br>
+::com::sun::star::uno::Any GetTime( const OUString & val );<br>
// ST_TLTimeAnimateValueTime<br>
-::com::sun::star::uno::Any GetTimeAnimateValueTime( const ::rtl::OUString & val );<br>
+::com::sun::star::uno::Any GetTimeAnimateValueTime( const OUString & val );<br>
<br>
} }<br>
<br>
diff --git a/oox/source/ppt/animvariantcontext.cxx b/oox/source/ppt/animvariantcontext.cxx<br>
index 8439d9d..51ff3a4 100644<br>
--- a/oox/source/ppt/animvariantcontext.cxx<br>
+++ b/oox/source/ppt/animvariantcontext.cxx<br>
@@ -32,7 +32,6 @@<br>
#include "oox/drawingml/colorchoicecontext.hxx"<br>
#include "pptfilterhelpers.hxx"<br>
<br>
-using ::rtl::OUString;<br>
using namespace ::oox::core;<br>
using namespace ::com::sun::star::uno;<br>
using namespace ::com::sun::star::xml::sax;<br>
diff --git a/oox/source/ppt/backgroundproperties.cxx b/oox/source/ppt/backgroundproperties.cxx<br>
index f38545c..b28512d 100644<br>
--- a/oox/source/ppt/backgroundproperties.cxx<br>
+++ b/oox/source/ppt/backgroundproperties.cxx<br>
@@ -22,7 +22,6 @@<br>
#include "oox/drawingml/drawingmltypes.hxx"<br>
#include "oox/core/contexthandler2.hxx"<br>
<br>
-using ::rtl::OUString;<br>
using namespace ::oox::core;<br>
using namespace ::com::sun::star::uno;<br>
using namespace ::com::sun::star::xml::sax;<br>
diff --git a/oox/source/ppt/commonbehaviorcontext.cxx b/oox/source/ppt/commonbehaviorcontext.cxx<br>
index e4e0b18..14c6c6b 100644<br>
--- a/oox/source/ppt/commonbehaviorcontext.cxx<br>
+++ b/oox/source/ppt/commonbehaviorcontext.cxx<br>
@@ -35,8 +35,6 @@<br>
<br>
#include <string.h><br>
<br>
-using ::rtl::OUString;<br>
-using ::rtl::OUStringBuffer;<br>
using namespace ::oox::core;<br>
using namespace ::com::sun::star::uno;<br>
using namespace ::com::sun::star::xml::sax;<br>
@@ -95,7 +93,7 @@<br>
if(msCurrentAttribute.compareToAscii( attrConv->mpMSName ) == 0 )<br>
{<br>
Attribute attr;<br>
- <a href="http://attr.name" target="_blank">attr.name</a> = ::rtl::OUString::intern( attrConv->mpAPIName,<br>
+ <a href="http://attr.name" target="_blank">attr.name</a> = OUString::intern( attrConv->mpAPIName,<br>
strlen(attrConv->mpAPIName),<br>
RTL_TEXTENCODING_ASCII_US );<br>
attr.type = attrConv->meAttribute;<br>
diff --git a/oox/source/ppt/commonbehaviorcontext.hxx b/oox/source/ppt/commonbehaviorcontext.hxx<br>
index 43ca6f1..c99941d 100644<br>
--- a/oox/source/ppt/commonbehaviorcontext.hxx<br>
+++ b/oox/source/ppt/commonbehaviorcontext.hxx<br>
@@ -31,7 +31,7 @@<br>
<br>
struct Attribute<br>
{<br>
- ::rtl::OUString name;<br>
+ OUString name;<br>
MS_AttributeNames type;<br>
};<br>
<br>
@@ -49,7 +49,7 @@<br>
<br>
virtual void onEndElement();<br>
<br>
- virtual void onCharacters( const ::rtl::OUString& aChars );<br>
+ virtual void onCharacters( const OUString& aChars );<br>
<br>
virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs );<br>
<br>
@@ -57,7 +57,7 @@<br>
bool mbInAttrList;<br>
bool mbIsInAttrName;<br>
std::list< Attribute > maAttributes;<br>
- ::rtl::OUString msCurrentAttribute;<br>
+ OUString msCurrentAttribute;<br>
};<br>
<br>
<br>
diff --git a/oox/source/ppt/commontimenodecontext.cxx b/oox/source/ppt/commontimenodecontext.cxx<br>
index dd2e863..4c5e154 100644<br>
--- a/oox/source/ppt/commontimenodecontext.cxx<br>
+++ b/oox/source/ppt/commontimenodecontext.cxx<br>
@@ -47,7 +47,6 @@<br>
using namespace ::com::sun::star::xml::sax;<br>
<br>
<br>
-using ::rtl::OUString;<br>
using ::com::sun::star::beans::NamedValue;<br>
<br>
namespace oox { namespace ppt {<br>
diff --git a/oox/source/ppt/customshowlistcontext.cxx b/oox/source/ppt/customshowlistcontext.cxx<br>
index c5684f1..eb7d255 100644<br>
--- a/oox/source/ppt/customshowlistcontext.cxx<br>
+++ b/oox/source/ppt/customshowlistcontext.cxx<br>
@@ -56,7 +56,7 @@<br>
switch( aElementToken )<br>
{<br>
case PPT_TOKEN( sld ) :<br>
- mrCustomShow.maSldLst.push_back( rAttribs.getString( R_TOKEN( id ), rtl::OUString() ) );<br>
+ mrCustomShow.maSldLst.push_back( rAttribs.getString( R_TOKEN( id ), OUString() ) );<br>
return this;<br>
default:<br>
break;<br>
diff --git a/oox/source/ppt/dgmimport.cxx b/oox/source/ppt/dgmimport.cxx<br>
index edb571f..10d4e1d 100644<br>
--- a/oox/source/ppt/dgmimport.cxx<br>
+++ b/oox/source/ppt/dgmimport.cxx<br>
@@ -24,7 +24,6 @@<br>
<br>
#include <com/sun/star/drawing/XShape.hpp><br>
<br>
-using ::rtl::OUString;<br>
using namespace ::com::sun::star;<br>
using namespace ::com::sun::star::uno;<br>
using namespace ::com::sun::star::xml::sax;<br>
diff --git a/oox/source/ppt/dgmlayout.cxx b/oox/source/ppt/dgmlayout.cxx<br>
index a2e753f..ace5574 100644<br>
--- a/oox/source/ppt/dgmlayout.cxx<br>
+++ b/oox/source/ppt/dgmlayout.cxx<br>
@@ -29,7 +29,6 @@<br>
#include <com/sun/star/xml/sax/XFastSAXSerializable.hpp><br>
#include <com/sun/star/container/XChild.hpp><br>
<br>
-using ::rtl::OUString;<br>
using namespace ::com::sun::star;<br>
using namespace ::com::sun::star::uno;<br>
using namespace ::com::sun::star::xml::sax;<br>
diff --git a/oox/source/ppt/extdrawingfragmenthandler.cxx b/oox/source/ppt/extdrawingfragmenthandler.cxx<br>
index f065415..79b5776 100644<br>
--- a/oox/source/ppt/extdrawingfragmenthandler.cxx<br>
+++ b/oox/source/ppt/extdrawingfragmenthandler.cxx<br>
@@ -32,7 +32,6 @@<br>
using namespace ::oox::core;<br>
using namespace ::com::sun::star::xml::sax;<br>
using namespace ::com::sun::star::uno;<br>
-using ::rtl::OUString;<br>
<br>
namespace oox { namespace ppt {<br>
<br>
diff --git a/oox/source/ppt/layoutfragmenthandler.cxx b/oox/source/ppt/layoutfragmenthandler.cxx<br>
index 465edc9..d2e72e6 100644<br>
--- a/oox/source/ppt/layoutfragmenthandler.cxx<br>
+++ b/oox/source/ppt/layoutfragmenthandler.cxx<br>
@@ -27,7 +27,6 @@<br>
#include "oox/ppt/layoutfragmenthandler.hxx"<br>
#include "oox/drawingml/shapegroupcontext.hxx"<br>
<br>
-using rtl::OUString;<br>
using namespace ::com::sun::star;<br>
using namespace ::oox::core;<br>
using namespace ::oox::drawingml;<br>
diff --git a/oox/source/ppt/pptfilterhelpers.cxx b/oox/source/ppt/pptfilterhelpers.cxx<br>
index bd275ba..ca6ba36 100644<br>
--- a/oox/source/ppt/pptfilterhelpers.cxx<br>
+++ b/oox/source/ppt/pptfilterhelpers.cxx<br>
@@ -23,11 +23,6 @@<br>
<br>
#include "pptfilterhelpers.hxx"<br>
<br>
-<br>
-using rtl::OUString;<br>
-<br>
-#include "pptfilterhelpers.hxx"<br>
-<br>
namespace oox { namespace ppt {<br>
<br>
// BEGIN CUT&PASTE from sd pptanimations.hxx<br>
diff --git a/oox/source/ppt/pptfilterhelpers.hxx b/oox/source/ppt/pptfilterhelpers.hxx<br>
index ed2e4f6..3924b2d 100644<br>
--- a/oox/source/ppt/pptfilterhelpers.hxx<br>
+++ b/oox/source/ppt/pptfilterhelpers.hxx<br>
@@ -79,7 +79,7 @@<br>
sal_Int16 mnSubType;<br>
sal_Bool mbDirection; // true: default geometric direction<br>
<br>
- static const transition* find( const rtl::OUString& rName );<br>
+ static const transition* find( const OUString& rName );<br>
static const sal_Char* find( const sal_Int16 mnType, const sal_Int16 mnSubType, const sal_Bool bDirection );<br>
};<br>
// END CUT&PASTE<br>
diff --git a/oox/source/ppt/pptgraphicshapecontext.cxx b/oox/source/ppt/pptgraphicshapecontext.cxx<br>
index 71d7f97..e21b9a1 100644<br>
--- a/oox/source/ppt/pptgraphicshapecontext.cxx<br>
+++ b/oox/source/ppt/pptgraphicshapecontext.cxx<br>
@@ -36,7 +36,6 @@<br>
#include "oox/drawingml/textbodycontext.hxx"<br>
#include <oox/token/tokens.hxx><br>
<br>
-using rtl::OUString;<br>
using namespace oox::core;<br>
using namespace ::com::sun::star;<br>
using namespace ::com::sun::star::uno;<br>
diff --git a/oox/source/ppt/pptimport.cxx b/oox/source/ppt/pptimport.cxx<br>
index a8e4d0e..0635526 100644<br>
--- a/oox/source/ppt/pptimport.cxx<br>
+++ b/oox/source/ppt/pptimport.cxx<br>
@@ -24,7 +24,6 @@<br>
#include "oox/helper/graphichelper.hxx"<br>
#include "oox/ole/vbaproject.hxx"<br>
<br>
-using ::rtl::OUString;<br>
using namespace ::com::sun::star;<br>
using namespace ::com::sun::star::uno;<br>
using namespace ::com::sun::star::xml::sax;<br>
diff --git a/oox/source/ppt/pptshape.cxx b/oox/source/ppt/pptshape.cxx<br>
index e42321e..6da39d3 100644<br>
--- a/oox/source/ppt/pptshape.cxx<br>
+++ b/oox/source/ppt/pptshape.cxx<br>
@@ -29,7 +29,6 @@<br>
#include <basegfx/matrix/b2dhommatrix.hxx><br>
#include "oox/ppt/slidepersist.hxx"<br>
<br>
-using rtl::OUString;<br>
using namespace ::oox::core;<br>
using namespace ::oox::drawingml;<br>
using namespace ::com::sun::star;<br>
@@ -117,13 +116,13 @@<br>
const awt::Rectangle* pShapeRect,<br>
::oox::drawingml::ShapeIdMap* pShapeMap )<br>
{<br>
- OSL_TRACE("add shape id: %s location: %s subtype: %d service: %s", rtl::OUStringToOString(msId, RTL_TEXTENCODING_UTF8 ).getStr(), meShapeLocation == Master ? "master" : meShapeLocation == Slide ? "slide" : meShapeLocation == Layout ? "layout" : "other", mnSubType, rtl::OUStringToOString(msServiceName, RTL_TEXTENCODING_UTF8 ).getStr());<br>
+ OSL_TRACE("add shape id: %s location: %s subtype: %d service: %s", OUStringToOString(msId, RTL_TEXTENCODING_UTF8 ).getStr(), meShapeLocation == Master ? "master" : meShapeLocation == Slide ? "slide" : meShapeLocation == Layout ? "layout" : "other", mnSubType, OUStringToOString(msServiceName, RTL_TEXTENCODING_UTF8 ).getStr());<br>
// only placeholder from layout are being inserted<br>
if ( mnSubType && ( meShapeLocation == Master ) )<br>
return;<br>
try<br>
{<br>
- rtl::OUString sServiceName( msServiceName );<br>
+ OUString sServiceName( msServiceName );<br>
if( !sServiceName.isEmpty() )<br>
{<br>
oox::drawingml::TextListStylePtr aMasterTextListStyle;<br>
@@ -133,7 +132,7 @@<br>
if ( sServiceName != "com.sun.star.drawing.GraphicObjectShape" &&<br>
sServiceName != "com.sun.star.drawing.OLE2Shape" )<br>
{<br>
- const rtl::OUString sOutlinerShapeService( "com.sun.star.presentation.OutlinerShape" );<br>
+ const OUString sOutlinerShapeService( "com.sun.star.presentation.OutlinerShape" );<br>
OSL_TRACE("has master: %p", rSlidePersist.getMasterPersist().get());<br>
switch( mnSubType )<br>
{<br>
@@ -147,7 +146,7 @@<br>
case XML_subTitle :<br>
{<br>
if ( ( meShapeLocation == Master ) || ( meShapeLocation == Layout ) )<br>
- sServiceName = rtl::OUString();<br>
+ sServiceName = OUString();<br>
else {<br>
sServiceName = "com.sun.star.presentation.SubtitleShape";<br>
aMasterTextListStyle = rSlidePersist.getMasterPersist().get() ? rSlidePersist.getMasterPersist()->getTitleTextStyle() : rSlidePersist.getTitleTextStyle();<br>
@@ -224,7 +223,7 @@<br>
}<br>
}<br>
<br>
- OSL_TRACE("shape service: %s", rtl::OUStringToOString(sServiceName, RTL_TEXTENCODING_UTF8 ).getStr());<br>
+ OSL_TRACE("shape service: %s", OUStringToOString(sServiceName, RTL_TEXTENCODING_UTF8 ).getStr());<br>
<br>
if( mnSubType && getSubTypeIndex().has() && meShapeLocation == Layout ) {<br>
oox::drawingml::ShapePtr pPlaceholder = PPTShape::findPlaceholderByIndex( getSubTypeIndex().get(), rSlidePersist.getShapes()->getChildren(), true );<br>
@@ -282,7 +281,7 @@<br>
}<br>
if( pPPTPlaceholder->mpPlaceholder.get() ) {<br>
OSL_TRACE("placeholder has parent placeholder: %s type: %s index: %d",<br>
- rtl::OUStringToOString( pPPTPlaceholder->mpPlaceholder->getId(), RTL_TEXTENCODING_UTF8 ).getStr(),<br>
+ OUStringToOString( pPPTPlaceholder->mpPlaceholder->getId(), RTL_TEXTENCODING_UTF8 ).getStr(),<br>
lclDebugSubType( pPPTPlaceholder->mpPlaceholder->getSubType() ),<br>
pPPTPlaceholder->mpPlaceholder->getSubTypeIndex().get() );<br>
OSL_TRACE("has textbody %d", pPPTPlaceholder->mpPlaceholder->getTextBody() != NULL );<br>
@@ -297,7 +296,7 @@<br>
} else if( !mpPlaceholder.get() ) {<br>
aMasterTextListStyle.reset();<br>
}<br>
- OSL_TRACE("placeholder id: %s", pPlaceholder.get() ? rtl::OUStringToOString(pPlaceholder->getId(), RTL_TEXTENCODING_UTF8 ).getStr() : "not found");<br>
+ OSL_TRACE("placeholder id: %s", pPlaceholder.get() ? OUStringToOString(pPlaceholder->getId(), RTL_TEXTENCODING_UTF8 ).getStr() : "not found");<br>
}<br>
<br>
if ( !sServiceName.isEmpty() )<br>
@@ -337,7 +336,7 @@<br>
{<br>
try<br>
{<br>
- rtl::OUString aTitleText;<br>
+ OUString aTitleText;<br>
Reference< XTextRange > xText( xShape, UNO_QUERY_THROW );<br>
aTitleText = xText->getString();<br>
if ( !aTitleText.isEmpty() && ( aTitleText.getLength() < 64 ) ) // just a magic value, but we don't want to set slide names which are too long<br>
diff --git a/oox/source/ppt/pptshapecontext.cxx b/oox/source/ppt/pptshapecontext.cxx<br>
index 82a7250..a42fe8d 100644<br>
--- a/oox/source/ppt/pptshapecontext.cxx<br>
+++ b/oox/source/ppt/pptshapecontext.cxx<br>
@@ -36,7 +36,6 @@<br>
#include "oox/drawingml/textbodycontext.hxx"<br>
#include "oox/drawingml/transform2dcontext.hxx"<br>
<br>
-using rtl::OUString;<br>
using namespace oox::core;<br>
using namespace ::com::sun::star;<br>
using namespace ::com::sun::star::uno;<br>
@@ -191,7 +190,7 @@<br>
}<br>
if ( pPlaceholder.get() )<br>
{<br>
- OSL_TRACE("shape %s will get shape reference %s applied", rtl::OUStringToOString(mpShapePtr->getId(), RTL_TEXTENCODING_UTF8 ).getStr(), rtl::OUStringToOString(pPlaceholder->getId(), RTL_TEXTENCODING_UTF8 ).getStr());<br>
+ OSL_TRACE("shape %s will get shape reference %s applied", OUStringToOString(mpShapePtr->getId(), RTL_TEXTENCODING_UTF8 ).getStr(), OUStringToOString(pPlaceholder->getId(), RTL_TEXTENCODING_UTF8 ).getStr());<br>
mpShapePtr->applyShapeReference( *pPlaceholder.get() );<br>
PPTShape* pPPTShape = dynamic_cast< PPTShape* >( pPlaceholder.get() );<br>
if ( pPPTShape )<br>
diff --git a/oox/source/ppt/pptshapegroupcontext.cxx b/oox/source/ppt/pptshapegroupcontext.cxx<br>
index 9ade8fa..c77353c 100644<br>
--- a/oox/source/ppt/pptshapegroupcontext.cxx<br>
+++ b/oox/source/ppt/pptshapegroupcontext.cxx<br>
@@ -35,7 +35,6 @@<br>
#include "oox/drawingml/fillproperties.hxx"<br>
#include "extdrawingfragmenthandler.hxx"<br>
<br>
-using rtl::OUString;<br>
using namespace oox::core;<br>
using namespace ::com::sun::star;<br>
using namespace ::com::sun::star::uno;<br>
diff --git a/oox/source/ppt/pptshapepropertiescontext.cxx b/oox/source/ppt/pptshapepropertiescontext.cxx<br>
index 2013386..f49f905 100644<br>
--- a/oox/source/ppt/pptshapepropertiescontext.cxx<br>
+++ b/oox/source/ppt/pptshapepropertiescontext.cxx<br>
@@ -33,7 +33,6 @@<br>
#include "oox/drawingml/customshapegeometry.hxx"<br>
#include "oox/drawingml/textbodycontext.hxx"<br>
<br>
-using rtl::OUString;<br>
using namespace oox::core;<br>
using namespace ::com::sun::star;<br>
using namespace ::com::sun::star::uno;<br>
diff --git a/oox/source/ppt/presentationfragmenthandler.cxx b/oox/source/ppt/presentationfragmenthandler.cxx<br>
index c92cdad..196a470 100644<br>
--- a/oox/source/ppt/presentationfragmenthandler.cxx<br>
+++ b/oox/source/ppt/presentationfragmenthandler.cxx<br>
@@ -41,7 +41,6 @@<br>
#include "oox/ppt/layoutfragmenthandler.hxx"<br>
#include "oox/ppt/pptimport.hxx"<br>
<br>
-using rtl::OUString;<br>
using namespace ::com::sun::star;<br>
using namespace ::oox::core;<br>
using namespace ::oox::drawingml;<br>
@@ -89,7 +88,7 @@<br>
Reference< XPropertySetInfo > xPropSetInfo( xPropSet->getPropertySetInfo() );<br>
if ( xPropSetInfo->hasPropertyByName( sURL ) )<br>
{<br>
- rtl::OUString aURL;<br>
+ OUString aURL;<br>
if ( xPropSet->getPropertyValue( sURL ) >>= aURL )<br>
{<br>
const OUString sSlide = CREATE_OUSTRING( "#Slide " );<br>
@@ -136,7 +135,7 @@<br>
// todo: localized progress bar text<br>
const Reference< task::XStatusIndicator >& rxStatusIndicator( getFilter().getStatusIndicator() );<br>
if ( rxStatusIndicator.is() )<br>
- rxStatusIndicator->start( rtl::OUString(), 10000 );<br>
+ rxStatusIndicator->start( OUString(), 10000 );<br>
<br>
try<br>
{<br>
@@ -163,7 +162,7 @@<br>
OUString aSlideFragmentPath = getFragmentPathFromRelId( maSlidesVector[ nSlide ] );<br>
if( !aSlideFragmentPath.isEmpty() )<br>
{<br>
- rtl::OUString aMasterFragmentPath;<br>
+ OUString aMasterFragmentPath;<br>
SlidePersistPtr pMasterPersistPtr;<br>
SlidePersistPtr pSlidePersistPtr( new SlidePersist( rFilter, sal_False, sal_False, xSlide,<br>
ShapePtr( new PPTShape( Slide, "com.sun.star.drawing.GroupShape" ) ), mpTextListStyle ) );<br>
@@ -286,9 +285,9 @@<br>
}<br>
catch( uno::Exception& )<br>
{<br>
- OSL_FAIL( OString(rtl::OString("oox::ppt::PresentationFragmentHandler::EndDocument(), "<br>
+ OSL_FAIL( OString(OString("oox::ppt::PresentationFragmentHandler::EndDocument(), "<br>
"exception caught: ") +<br>
- rtl::OUStringToOString(<br>
+ OUStringToOString(<br>
comphelper::anyToString( cppu::getCaughtException() ),<br>
RTL_TEXTENCODING_UTF8 )).getStr() );<br>
<br>
diff --git a/oox/source/ppt/slidefragmenthandler.cxx b/oox/source/ppt/slidefragmenthandler.cxx<br>
index a59f2e1..643fad2 100644<br>
--- a/oox/source/ppt/slidefragmenthandler.cxx<br>
+++ b/oox/source/ppt/slidefragmenthandler.cxx<br>
@@ -39,7 +39,6 @@<br>
#include "oox/ppt/pptimport.hxx"<br>
<br>
<br>
-using rtl::OUString;<br>
using namespace ::com::sun::star;<br>
using namespace ::oox::core;<br>
using namespace ::oox::drawingml;<br>
@@ -214,9 +213,9 @@<br>
}<br>
catch( uno::Exception& )<br>
{<br>
- OSL_FAIL( OString(rtl::OString("oox::ppt::SlideFragmentHandler::EndElement(), "<br>
+ OSL_FAIL( OString(OString("oox::ppt::SlideFragmentHandler::EndElement(), "<br>
"exception caught: ") +<br>
- rtl::OUStringToOString(<br>
+ OUStringToOString(<br>
comphelper::anyToString( cppu::getCaughtException() ),<br>
RTL_TEXTENCODING_UTF8 )).getStr() );<br>
}<br>
diff --git a/oox/source/ppt/slidemastertextstylescontext.cxx b/oox/source/ppt/slidemastertextstylescontext.cxx<br>
index da25e95..71f6767 100644<br>
--- a/oox/source/ppt/slidemastertextstylescontext.cxx<br>
+++ b/oox/source/ppt/slidemastertextstylescontext.cxx<br>
@@ -21,7 +21,6 @@<br>
#include "oox/drawingml/textliststylecontext.hxx"<br>
#include "oox/ppt/slidemastertextstylescontext.hxx"<br>
<br>
-using rtl::OUString;<br>
using namespace ::oox::core;<br>
using namespace ::com::sun::star::uno;<br>
using namespace ::com::sun::star::xml::sax;<br>
diff --git a/oox/source/ppt/slidepersist.cxx b/oox/source/ppt/slidepersist.cxx<br>
index 77a1601..aebf0f5 100644<br>
--- a/oox/source/ppt/slidepersist.cxx<br>
+++ b/oox/source/ppt/slidepersist.cxx<br>
@@ -208,13 +208,13 @@<br>
if ( aXNameAccess.is() && aXNamed.is() )<br>
{<br>
oox::drawingml::TextListStylePtr pTextListStylePtr;<br>
- rtl::OUString aStyle;<br>
- rtl::OUString aFamily;<br>
+ OUString aStyle;<br>
+ OUString aFamily;<br>
<br>
- const rtl::OUString sOutline( RTL_CONSTASCII_USTRINGPARAM( "outline1" ) );<br>
- const rtl::OUString sTitle( RTL_CONSTASCII_USTRINGPARAM( "title" ) );<br>
- const rtl::OUString sStandard( RTL_CONSTASCII_USTRINGPARAM( "standard" ) );<br>
- const rtl::OUString sSubtitle( RTL_CONSTASCII_USTRINGPARAM( "subtitle" ) );<br>
+ const OUString sOutline( "outline1" );<br>
+ const OUString sTitle( "title" );<br>
+ const OUString sStandard( "standard" );<br>
+ const OUString sSubtitle( "subtitle" );<br>
<br>
for( int i = 0; i < 4; i++ ) // todo: aggregation of bodystyle (subtitle)<br>
{<br>
@@ -245,7 +245,7 @@<br>
{<br>
pTextListStylePtr = maOtherTextStylePtr;<br>
aStyle = sStandard;<br>
- aFamily = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "graphics" ) );<br>
+ aFamily = OUString( "graphics" );<br>
break;<br>
}<br>
case 5 : // subtitle<br>
@@ -276,7 +276,7 @@<br>
{<br>
sal_Char pOutline[ 9 ] = "outline1";<br>
pOutline[ 7 ] = static_cast< sal_Char >( '0' + nLevel );<br>
- rtl::OUString sOutlineStyle( rtl::OUString::createFromAscii( pOutline ) );<br>
+ OUString sOutlineStyle( OUString::createFromAscii( pOutline ) );<br>
if ( xFamilies->hasByName( sOutlineStyle ) )<br>
{<br>
xFamilies->getByName( sOutlineStyle ) >>= aXStyle;<br>
@@ -313,7 +313,7 @@<br>
std::vector< oox::drawingml::ShapePtr >::iterator aChildIter( rChildren.begin() );<br>
while( aChildIter != rChildren.end() ) {<br>
PPTShape* pPPTShape = dynamic_cast< PPTShape* >( (*aChildIter++).get() );<br>
- OSL_TRACE("hide shape with id: %s", rtl::OUStringToOString(pPPTShape->getId(), RTL_TEXTENCODING_UTF8 ).getStr());<br>
+ OSL_TRACE("hide shape with id: %s", OUStringToOString(pPPTShape->getId(), RTL_TEXTENCODING_UTF8 ).getStr());<br>
pPPTShape->setHiddenMasterShape( true );<br>
}<br>
}<br>
diff --git a/oox/source/ppt/slidetimingcontext.cxx b/oox/source/ppt/slidetimingcontext.cxx<br>
index 2bcdc75..6fe48aa 100644<br>
--- a/oox/source/ppt/slidetimingcontext.cxx<br>
+++ b/oox/source/ppt/slidetimingcontext.cxx<br>
@@ -29,7 +29,6 @@<br>
#include "oox/ppt/timenodelistcontext.hxx"<br>
#include "buildlistcontext.hxx"<br>
<br>
-using rtl::OUString;<br>
using namespace ::com::sun::star;<br>
using namespace ::oox::core;<br>
using namespace ::oox::drawingml;<br>
diff --git a/oox/source/ppt/slidetransition.cxx b/oox/source/ppt/slidetransition.cxx<br>
index cd918b2..7f060c0 100644<br>
--- a/oox/source/ppt/slidetransition.cxx<br>
+++ b/oox/source/ppt/slidetransition.cxx<br>
@@ -31,7 +31,6 @@<br>
#include "oox/token/tokens.hxx"<br>
#include "pptfilterhelpers.hxx"<br>
<br>
-using rtl::OUString;<br>
using namespace ::com::sun::star::uno;<br>
using namespace ::com::sun::star::beans;<br>
using namespace ::com::sun::star::animations;<br>
diff --git a/oox/source/ppt/slidetransitioncontext.cxx b/oox/source/ppt/slidetransitioncontext.cxx<br>
index 59ac599..5c56c98 100644<br>
--- a/oox/source/ppt/slidetransitioncontext.cxx<br>
+++ b/oox/source/ppt/slidetransitioncontext.cxx<br>
@@ -31,7 +31,6 @@<br>
#include "oox/drawingml/shapegroupcontext.hxx"<br>
#include "oox/helper/attributelist.hxx"<br>
<br>
-using rtl::OUString;<br>
using namespace ::com::sun::star;<br>
using namespace ::oox::core;<br>
using namespace ::oox::drawingml;<br>
diff --git a/oox/source/ppt/soundactioncontext.cxx b/oox/source/ppt/soundactioncontext.cxx<br>
index 2b353d7..b1f72b5 100644<br>
--- a/oox/source/ppt/soundactioncontext.cxx<br>
+++ b/oox/source/ppt/soundactioncontext.cxx<br>
@@ -26,7 +26,6 @@<br>
#include "oox/helper/propertymap.hxx"<br>
#include "oox/drawingml/embeddedwavaudiofile.hxx"<br>
<br>
-using rtl::OUString;<br>
using namespace ::oox::core;<br>
using namespace ::com::sun::star::xml::sax;<br>
using namespace ::com::sun::star::uno;<br>
@@ -63,17 +62,6 @@<br>
// try the builtIn version<br>
url = msSndName;<br>
}<br>
-#if 0 // OOo does not support embedded data yet<br>
- else if ( msEmbedded.getLength() != 0 )<br>
- {<br>
- RelationsRef xRel = getHandler()->getRelations();<br>
- url = xRel->getRelationById( msEmbedded )->msTarget;<br>
- }<br>
- else if ( msLink.getLength() != 0 )<br>
- {<br>
- url = msLink;<br>
- }<br>
-#endif<br>
if ( !url.isEmpty() )<br>
{<br>
maSlideProperties[ PROP_Sound ] <<= url;<br>
diff --git a/oox/source/ppt/timeanimvaluecontext.cxx b/oox/source/ppt/timeanimvaluecontext.cxx<br>
index bb59518..cfae1ce 100644<br>
--- a/oox/source/ppt/timeanimvaluecontext.cxx<br>
+++ b/oox/source/ppt/timeanimvaluecontext.cxx<br>
@@ -60,8 +60,8 @@<br>
{<br>
mbInValue = true;<br>
TimeAnimationValue val;<br>
- val.msFormula = rAttribs.getString( XML_fmla, rtl::OUString() );<br>
- val.msTime = rAttribs.getString( XML_tm, rtl::OUString() );<br>
+ val.msFormula = rAttribs.getString( XML_fmla, OUString() );<br>
+ val.msTime = rAttribs.getString( XML_tm, OUString() );<br>
maTavList.push_back( val );<br>
return this;<br>
}<br>
diff --git a/oox/source/ppt/timenode.cxx b/oox/source/ppt/timenode.cxx<br>
index 21ddf36..e02d3cf 100644<br>
--- a/oox/source/ppt/timenode.cxx<br>
+++ b/oox/source/ppt/timenode.cxx<br>
@@ -41,7 +41,6 @@<br>
#include "oox/helper/helper.hxx"<br>
#include "oox/core/xmlfilterbase.hxx"<br>
<br>
-using ::rtl::OUString;<br>
using namespace ::oox::core;<br>
using namespace ::com::sun::star::beans;<br>
using namespace ::com::sun::star::container;<br>
@@ -59,7 +58,6 @@<br>
switch( nNodeType )<br>
{<br>
case AnimationNodeType::PAR:<br>
-// sServiceName = CREATE_OUSTRING("com.sun.star.animations.IterateContainer");<br>
sServiceName = CREATE_OUSTRING("com.sun.star.animations.ParallelTimeContainer");<br>
break;<br>
case AnimationNodeType::SEQ:<br>
diff --git a/oox/source/ppt/timenodelistcontext.cxx b/oox/source/ppt/timenodelistcontext.cxx<br>
index 39ef150..fedcf46 100644<br>
--- a/oox/source/ppt/timenodelistcontext.cxx<br>
+++ b/oox/source/ppt/timenodelistcontext.cxx<br>
@@ -61,8 +61,6 @@<br>
using namespace ::com::sun::star::xml::sax;<br>
using ::com::sun::star::beans::NamedValue;<br>
<br>
-using ::rtl::OUString;<br>
-<br>
namespace oox { namespace ppt {<br>
<br>
struct AnimColor<br>
@@ -257,7 +255,7 @@<br>
switch( maType )<br>
{<br>
case XML_verb:<br>
- aParamValue.Name = OUString(RTL_CONSTASCII_USTRINGPARAM("Verb"));<br>
+ aParamValue.Name = OUString("Verb");<br>
// TODO make sure msCommand has what we want<br>
aParamValue.Value <<= msCommand.toInt32();<br>
nCommand = EffectCommands::VERB;<br>
@@ -272,7 +270,7 @@<br>
{<br>
nCommand = EffectCommands::PLAY;<br>
}<br>
- else if( msCommand.compareToAscii( RTL_CONSTASCII_STRINGPARAM("playFrom") ) == 0 )<br>
+ else if( msCommand.compareToAscii( "playFrom" ) == 0 )<br>
{<br>
const OUString aMediaTime( msCommand.copy( 9, msCommand.getLength() - 10 ) );<br>
rtl_math_ConversionStatus eStatus;<br>
diff --git a/oox/source/ppt/timetargetelementcontext.cxx b/oox/source/ppt/timetargetelementcontext.cxx<br>
index ed6fbab..388a88d 100644<br>
--- a/oox/source/ppt/timetargetelementcontext.cxx<br>
+++ b/oox/source/ppt/timetargetelementcontext.cxx<br>
@@ -32,8 +32,6 @@<br>
using namespace ::com::sun::star::xml::sax;<br>
using namespace ::oox::core;<br>
<br>
-using ::rtl::OUString;<br>
-<br>
namespace oox { namespace ppt {<br>
<br>
<br>
<br>
--<br>
To view, visit <a href="https://gerrit.libreoffice.org/1520" target="_blank">https://gerrit.libreoffice.org/1520</a><br>
To unsubscribe, visit <a href="https://gerrit.libreoffice.org/settings" target="_blank">https://gerrit.libreoffice.org/settings</a><br>
<br>
Gerrit-MessageType: newchange<br>
Gerrit-Change-Id: I434462635392c750e2359f9d656d5e1885f2a0dc<br>
Gerrit-PatchSet: 1<br>
Gerrit-Project: core<br>
Gerrit-Branch: master<br>
Gerrit-Owner: José Guilherme Vanz <<a href="mailto:guilherme.sft@gmail.com">guilherme.sft@gmail.com</a>><br>
<br>
_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
</blockquote></div><br></div>