Kaydet (Commit) 9a30ab1b authored tarafından José Guilherme Vanz's avatar José Guilherme Vanz Kaydeden (comit) Olivier Hallot

rtl:: prefixes removal in oox

This commit removes some ::rtl:: prefixes and macros in oox

Change-Id: I8b24535775df85cc5bb87cc808afcd338ec52df6
Signed-off-by: 's avatarJosé Guilherme Vanz <guilherme.sft@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/1334Reviewed-by: 's avatarOlivier Hallot <olivier.hallot@alta.org.br>
Tested-by: 's avatarOlivier Hallot <olivier.hallot@alta.org.br>
üst b53a329a
...@@ -26,9 +26,6 @@ namespace dump { ...@@ -26,9 +26,6 @@ namespace dump {
// ============================================================================ // ============================================================================
using ::rtl::OUString;
// ============================================================================
namespace { namespace {
......
...@@ -48,14 +48,6 @@ using namespace ::com::sun::star::uno; ...@@ -48,14 +48,6 @@ using namespace ::com::sun::star::uno;
using ::comphelper::MediaDescriptor; using ::comphelper::MediaDescriptor;
using ::oox::core::FilterBase; using ::oox::core::FilterBase;
using ::rtl::OString;
using ::rtl::OStringBuffer;
using ::rtl::OStringToOUString;
using ::rtl::OUString;
using ::rtl::OUStringBuffer;
using ::rtl::OUStringToOString;
// ============================================================================
namespace { namespace {
...@@ -2465,7 +2457,7 @@ void XmlStreamObject::implDumpText( TextInputStream& rTextStrm ) ...@@ -2465,7 +2457,7 @@ void XmlStreamObject::implDumpText( TextInputStream& rTextStrm )
matching start/end elements and the element text on the same line. */ matching start/end elements and the element text on the same line. */
OUStringBuffer aOldStartElem; OUStringBuffer aOldStartElem;
// special handling for VML // special handling for VML
bool bIsVml = InputOutputHelper::getFileNameExtension( maSysFileName ).equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("vml")); bool bIsVml = InputOutputHelper::getFileNameExtension( maSysFileName ).equalsIgnoreAsciiCaseAscii("vml");
while( !rTextStrm.isEof() ) while( !rTextStrm.isEof() )
{ {
...@@ -2622,7 +2614,7 @@ void RecordObjectBase::writeHeader() ...@@ -2622,7 +2614,7 @@ void RecordObjectBase::writeHeader()
// ============================================================================ // ============================================================================
void SequenceRecordObjectBase::construct( const ObjectBase& rParent, void SequenceRecordObjectBase::construct( const ObjectBase& rParent,
const BinaryInputStreamRef& rxBaseStrm, const ::rtl::OUString& rSysFileName, const BinaryInputStreamRef& rxBaseStrm, const OUString& rSysFileName,
const String& rRecNames, const String& rSimpleRecs ) const String& rRecNames, const String& rSimpleRecs )
{ {
BinaryInputStreamRef xRecStrm( new SequenceInputStream( *mxRecData ) ); BinaryInputStreamRef xRecStrm( new SequenceInputStream( *mxRecData ) );
......
...@@ -39,12 +39,6 @@ namespace dump { ...@@ -39,12 +39,6 @@ namespace dump {
using namespace ::com::sun::star::io; using namespace ::com::sun::star::io;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using ::rtl::OString;
using ::rtl::OStringToOUString;
using ::rtl::OUString;
using ::rtl::OUStringBuffer;
// ============================================================================
// ============================================================================ // ============================================================================
OUString OleInputObjectBase::dumpAnsiString32( const String& rName ) OUString OleInputObjectBase::dumpAnsiString32( const String& rName )
...@@ -552,7 +546,7 @@ void OleStorageObject::implDumpStream( const Reference< XInputStream >& rxStrm, ...@@ -552,7 +546,7 @@ void OleStorageObject::implDumpStream( const Reference< XInputStream >& rxStrm,
{ {
if ( rStrmName == "\001CompObj" ) if ( rStrmName == "\001CompObj" )
OleCompObjObject( *this, rxStrm, rSysFileName ).dump(); OleCompObjObject( *this, rxStrm, rSysFileName ).dump();
else if( rStrmName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "\005SummaryInformation" ) ) || rStrmName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "\005DocumentSummaryInformation" ) ) ) else if( rStrmName == "\005SummaryInformation" || rStrmName == "\005DocumentSummaryInformation" )
OlePropertyStreamObject( *this, rxStrm, rSysFileName ).dump(); OlePropertyStreamObject( *this, rxStrm, rSysFileName ).dump();
else else
BinaryStreamObject( *this, rxStrm, rSysFileName ).dump(); BinaryStreamObject( *this, rxStrm, rSysFileName ).dump();
...@@ -1523,13 +1517,13 @@ void FormControlStreamObject::implDump() ...@@ -1523,13 +1517,13 @@ void FormControlStreamObject::implDump()
{ {
if ( maProgId == "Forms.CommandButton.1" ) if ( maProgId == "Forms.CommandButton.1" )
AxCommandButtonObject( *this ).dump(); AxCommandButtonObject( *this ).dump();
else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.TextBox.1" ) ) || else if( maProgId == "Forms.TextBox.1" ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.ListBox.1" ) ) || maProgId == "Forms.ListBox.1" ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.ComboBox.1" ) ) || maProgId == "Forms.ComboBox.1" ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.CheckBox.1" ) ) || maProgId == "Forms.CheckBox.1" ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.OptionButton.1" ) ) || maProgId == "Forms.OptionButton.1" ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.ToggleButton.1" ) ) || maProgId == "Forms.ToggleButton.1" ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "RefEdit.Ctrl" ) ) ) maProgId == "RefEdit.Ctrl" )
AxMorphControlObject( *this ).dump(); AxMorphControlObject( *this ).dump();
else if ( maProgId == "Forms.Label.1" ) else if ( maProgId == "Forms.Label.1" )
AxLabelObject( *this ).dump(); AxLabelObject( *this ).dump();
...@@ -1966,7 +1960,7 @@ VbaSharedData::VbaSharedData() : ...@@ -1966,7 +1960,7 @@ VbaSharedData::VbaSharedData() :
{ {
} }
bool VbaSharedData::isModuleStream( const ::rtl::OUString& rStrmName ) const bool VbaSharedData::isModuleStream( const OUString& rStrmName ) const
{ {
return maStrmOffsets.count( rStrmName ) > 0; return maStrmOffsets.count( rStrmName ) > 0;
} }
......
...@@ -37,7 +37,6 @@ using namespace ::com::sun::star::io; ...@@ -37,7 +37,6 @@ using namespace ::com::sun::star::io;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using ::oox::core::FilterBase; using ::oox::core::FilterBase;
using ::rtl::OUString;
// ============================================================================ // ============================================================================
...@@ -49,42 +48,42 @@ RootStorageObject::RootStorageObject( const DumperBase& rParent ) ...@@ -49,42 +48,42 @@ RootStorageObject::RootStorageObject( const DumperBase& rParent )
void RootStorageObject::implDumpStream( const Reference< XInputStream >& rxStrm, const OUString& rStrgPath, const OUString& rStrmName, const OUString& rSysFileName ) void RootStorageObject::implDumpStream( const Reference< XInputStream >& rxStrm, const OUString& rStrgPath, const OUString& rStrmName, const OUString& rSysFileName )
{ {
OUString aExt = InputOutputHelper::getFileNameExtension( rStrmName ); OUString aExt = InputOutputHelper::getFileNameExtension( rStrmName );
if( aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("pptx")) || if( aExt.equalsIgnoreAsciiCaseAscii("pptx") ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("potx")) ) aExt.equalsIgnoreAsciiCaseAscii("potx") )
{ {
Dumper( getContext(), rxStrm, rSysFileName ).dump(); Dumper( getContext(), rxStrm, rSysFileName ).dump();
} }
#if FIXME #if FIXME
else if( else if(
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlsb")) || aExt.equalsIgnoreAsciiCaseAscii("xlsb") ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlsm")) || aExt.equalsIgnoreAsciiCaseAscii("xlsm") ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlsx")) || aExt.equalsIgnoreAsciiCaseAscii("xlsx") ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xltm")) || aExt.equalsIgnoreAsciiCaseAscii("xltm") ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xltx")) ) aExt.equalsIgnoreAsciiCaseAscii("xltx") )
{ {
::oox::dump::xlsb::Dumper( getContext(), rxStrm, rSysFileName ).dump(); ::oox::dump::xlsb::Dumper( getContext(), rxStrm, rSysFileName ).dump();
} }
else if( else if(
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xla")) || aExt.equalsIgnoreAsciiCaseAscii("xla") ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlc")) || aExt.equalsIgnoreAsciiCaseAscii("xlc") ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlm")) || aExt.equalsIgnoreAsciiCaseAscii("xlm") ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xls")) || aExt.equalsIgnoreAsciiCaseAscii("xls") ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlt")) || aExt.equalsIgnoreAsciiCaseAscii("xlt") ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlw")) ) aExt.equalsIgnoreAsciiCaseAscii("xlw") )
{ {
::oox::dump::biff::Dumper( getContext(), rxStrm, rSysFileName ).dump(); ::oox::dump::biff::Dumper( getContext(), rxStrm, rSysFileName ).dump();
} }
#endif #endif
else if( else if(
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xml")) || aExt.equalsIgnoreAsciiCaseAscii("xml") ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("vml")) || aExt.equalsIgnoreAsciiCaseAscii("vml") ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("rels")) ) aExt.equalsIgnoreAsciiCaseAscii("rels") )
{ {
XmlStreamObject( *this, rxStrm, rSysFileName ).dump(); XmlStreamObject( *this, rxStrm, rSysFileName ).dump();
} }
else if( aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("bin")) ) else if( aExt.equalsIgnoreAsciiCaseAscii("bin") )
{ {
if( rStrgPath.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ppt" ) ) && rStrmName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "vbaProject.bin" ) ) ) if( rStrgPath == "ppt" && rStrmName == "vbaProject.bin" )
{ {
StorageRef xStrg( new ::oox::ole::OleStorage( getContext(), rxStrm, false ) ); StorageRef xStrg( new ::oox::ole::OleStorage( getContext(), rxStrm, false ) );
VbaProjectStorageObject( *this, xStrg, rSysFileName ).dump(); VbaProjectStorageObject( *this, xStrg, rSysFileName ).dump();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment