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 {
// ============================================================================
using ::rtl::OUString;
// ============================================================================
namespace {
......
......@@ -48,14 +48,6 @@ using namespace ::com::sun::star::uno;
using ::comphelper::MediaDescriptor;
using ::oox::core::FilterBase;
using ::rtl::OString;
using ::rtl::OStringBuffer;
using ::rtl::OStringToOUString;
using ::rtl::OUString;
using ::rtl::OUStringBuffer;
using ::rtl::OUStringToOString;
// ============================================================================
namespace {
......@@ -2465,7 +2457,7 @@ void XmlStreamObject::implDumpText( TextInputStream& rTextStrm )
matching start/end elements and the element text on the same line. */
OUStringBuffer aOldStartElem;
// special handling for VML
bool bIsVml = InputOutputHelper::getFileNameExtension( maSysFileName ).equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("vml"));
bool bIsVml = InputOutputHelper::getFileNameExtension( maSysFileName ).equalsIgnoreAsciiCaseAscii("vml");
while( !rTextStrm.isEof() )
{
......@@ -2622,7 +2614,7 @@ void RecordObjectBase::writeHeader()
// ============================================================================
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 )
{
BinaryInputStreamRef xRecStrm( new SequenceInputStream( *mxRecData ) );
......
......@@ -39,12 +39,6 @@ namespace dump {
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::uno;
using ::rtl::OString;
using ::rtl::OStringToOUString;
using ::rtl::OUString;
using ::rtl::OUStringBuffer;
// ============================================================================
// ============================================================================
OUString OleInputObjectBase::dumpAnsiString32( const String& rName )
......@@ -552,7 +546,7 @@ void OleStorageObject::implDumpStream( const Reference< XInputStream >& rxStrm,
{
if ( rStrmName == "\001CompObj" )
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();
else
BinaryStreamObject( *this, rxStrm, rSysFileName ).dump();
......@@ -1523,13 +1517,13 @@ void FormControlStreamObject::implDump()
{
if ( maProgId == "Forms.CommandButton.1" )
AxCommandButtonObject( *this ).dump();
else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.TextBox.1" ) ) ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.ListBox.1" ) ) ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.ComboBox.1" ) ) ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.CheckBox.1" ) ) ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.OptionButton.1" ) ) ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.ToggleButton.1" ) ) ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "RefEdit.Ctrl" ) ) )
else if( maProgId == "Forms.TextBox.1" ||
maProgId == "Forms.ListBox.1" ||
maProgId == "Forms.ComboBox.1" ||
maProgId == "Forms.CheckBox.1" ||
maProgId == "Forms.OptionButton.1" ||
maProgId == "Forms.ToggleButton.1" ||
maProgId == "RefEdit.Ctrl" )
AxMorphControlObject( *this ).dump();
else if ( maProgId == "Forms.Label.1" )
AxLabelObject( *this ).dump();
......@@ -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;
}
......
......@@ -37,7 +37,6 @@ using namespace ::com::sun::star::io;
using namespace ::com::sun::star::uno;
using ::oox::core::FilterBase;
using ::rtl::OUString;
// ============================================================================
......@@ -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 )
{
OUString aExt = InputOutputHelper::getFileNameExtension( rStrmName );
if( aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("pptx")) ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("potx")) )
if( aExt.equalsIgnoreAsciiCaseAscii("pptx") ||
aExt.equalsIgnoreAsciiCaseAscii("potx") )
{
Dumper( getContext(), rxStrm, rSysFileName ).dump();
}
#if FIXME
else if(
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlsb")) ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlsm")) ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlsx")) ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xltm")) ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xltx")) )
aExt.equalsIgnoreAsciiCaseAscii("xlsb") ||
aExt.equalsIgnoreAsciiCaseAscii("xlsm") ||
aExt.equalsIgnoreAsciiCaseAscii("xlsx") ||
aExt.equalsIgnoreAsciiCaseAscii("xltm") ||
aExt.equalsIgnoreAsciiCaseAscii("xltx") )
{
::oox::dump::xlsb::Dumper( getContext(), rxStrm, rSysFileName ).dump();
}
else if(
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xla")) ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlc")) ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlm")) ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xls")) ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlt")) ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xlw")) )
aExt.equalsIgnoreAsciiCaseAscii("xla") ||
aExt.equalsIgnoreAsciiCaseAscii("xlc") ||
aExt.equalsIgnoreAsciiCaseAscii("xlm") ||
aExt.equalsIgnoreAsciiCaseAscii("xls") ||
aExt.equalsIgnoreAsciiCaseAscii("xlt") ||
aExt.equalsIgnoreAsciiCaseAscii("xlw") )
{
::oox::dump::biff::Dumper( getContext(), rxStrm, rSysFileName ).dump();
}
#endif
else if(
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("xml")) ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("vml")) ||
aExt.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("rels")) )
aExt.equalsIgnoreAsciiCaseAscii("xml") ||
aExt.equalsIgnoreAsciiCaseAscii("vml") ||
aExt.equalsIgnoreAsciiCaseAscii("rels") )
{
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 ) );
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