diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-04-07 01:40:42 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-04-07 01:40:42 +0200 |
commit | 942acfd678f1599b4dc2b05d9e5b4eca07177459 (patch) | |
tree | 077ae0e8a8d0b06da7f64454ffc72d39c26a92aa /oox | |
parent | c1036d7ab06e6b85763e90659c08e1f450ff50ab (diff) |
Some cleaning in oox::dump :
oox::dump::InputObjectBase
oox::dump::Output
Diffstat (limited to 'oox')
-rw-r--r-- | oox/inc/oox/dump/dumperbase.hxx | 7 | ||||
-rw-r--r-- | oox/source/dump/dumperbase.cxx | 55 |
2 files changed, 0 insertions, 62 deletions
diff --git a/oox/inc/oox/dump/dumperbase.hxx b/oox/inc/oox/dump/dumperbase.hxx index a09988633b38..68df688268bb 100644 --- a/oox/inc/oox/dump/dumperbase.hxx +++ b/oox/inc/oox/dump/dumperbase.hxx @@ -1066,13 +1066,9 @@ public: void writeString( const ::rtl::OUString& rStr ); void writeArray( const sal_uInt8* pnData, sal_Size nSize, sal_Unicode cSep = OOX_DUMP_LISTSEP ); void writeBool( bool bData ); - void writeColorABGR( sal_Int32 nColor ); void writeDateTime( const ::com::sun::star::util::DateTime& rDateTime ); void writeColIndex( sal_Int32 nCol ); void writeRowIndex( sal_Int32 nRow ); - void writeColRowRange( sal_Int32 nColRow1, sal_Int32 nColRow2 ); - void writeColRange( sal_Int32 nCol1, sal_Int32 nCol2 ); - void writeRowRange( sal_Int32 nRow1, sal_Int32 nRow2 ); template< typename Type > inline void writeDec( Type nData, sal_Int32 nWidth = 0, sal_Unicode cFill = ' ' ) @@ -1531,9 +1527,6 @@ protected: ::rtl::OUString dumpCharArray( const String& rName, sal_Int32 nLen, rtl_TextEncoding eTextEnc, bool bHideTrailingNul = false ); ::rtl::OUString dumpUnicodeArray( const String& rName, sal_Int32 nLen, bool bHideTrailingNul = false ); - ::rtl::OUString dumpNullCharArray( const String& rName, rtl_TextEncoding eTextEnc ); - ::rtl::OUString dumpNullUnicodeArray( const String& rName ); - ::com::sun::star::util::DateTime dumpFileTime( const String& rName = EMPTY_STRING ); ::rtl::OUString dumpGuid( const String& rName = EMPTY_STRING ); diff --git a/oox/source/dump/dumperbase.cxx b/oox/source/dump/dumperbase.cxx index 2aaee5d286eb..1f1cbc22b1d4 100644 --- a/oox/source/dump/dumperbase.cxx +++ b/oox/source/dump/dumperbase.cxx @@ -1813,18 +1813,6 @@ void Output::writeBool( bool bData ) StringHelper::appendBool( maLine, bData ); } -void Output::writeColorABGR( sal_Int32 nColor ) -{ - writeChar( 'a' ); - writeDec( static_cast< sal_uInt8 >( nColor >> 24 ) ); - writeAscii( ",r" ); - writeDec( static_cast< sal_uInt8 >( nColor ) ); - writeAscii( ",g" ); - writeDec( static_cast< sal_uInt8 >( nColor >> 8 ) ); - writeAscii( ",b" ); - writeDec( static_cast< sal_uInt8 >( nColor >> 16 ) ); -} - void Output::writeDateTime( const DateTime& rDateTime ) { writeDec( rDateTime.Year, 4, '0' ); @@ -1850,27 +1838,6 @@ void Output::writeRowIndex( sal_Int32 nRow ) StringHelper::appendAddrRow( maLine, nRow, true ); } -void Output::writeColRowRange( sal_Int32 nColRow1, sal_Int32 nColRow2 ) -{ - writeDec( nColRow1 ); - writeChar( OOX_DUMP_RANGESEP ); - writeDec( nColRow2 ); -} - -void Output::writeColRange( sal_Int32 nCol1, sal_Int32 nCol2 ) -{ - writeColIndex( nCol1 ); - writeChar( OOX_DUMP_RANGESEP ); - writeColIndex( nCol2 ); -} - -void Output::writeRowRange( sal_Int32 nRow1, sal_Int32 nRow2 ) -{ - writeRowIndex( nRow1 ); - writeChar( OOX_DUMP_RANGESEP ); - writeRowIndex( nRow2 ); -} - // ---------------------------------------------------------------------------- bool Output::implIsValid() const @@ -2385,28 +2352,6 @@ OUString InputObjectBase::dumpUnicodeArray( const String& rName, sal_Int32 nLen, return aString; } -OUString InputObjectBase::dumpNullCharArray( const String& rName, rtl_TextEncoding eTextEnc ) -{ - OStringBuffer aBuffer; - sal_uInt8 nChar; - for( *mxStrm >> nChar; !mxStrm->isEof() && (nChar > 0); *mxStrm >> nChar ) - aBuffer.append( static_cast< sal_Char >( nChar ) ); - OUString aString = OStringToOUString( aBuffer.makeStringAndClear(), eTextEnc ); - writeStringItem( rName( "text" ), aString ); - return aString; -} - -OUString InputObjectBase::dumpNullUnicodeArray( const String& rName ) -{ - OUStringBuffer aBuffer; - sal_uInt16 nChar; - for( *mxStrm >> nChar; !mxStrm->isEof() && (nChar > 0); *mxStrm >> nChar ) - aBuffer.append( static_cast< sal_Unicode >( nChar ) ); - OUString aString = aBuffer.makeStringAndClear(); - writeStringItem( rName( "text" ), aString ); - return aString; -} - DateTime InputObjectBase::dumpFileTime( const String& rName ) { DateTime aDateTime; |