svl/source/numbers/numhead.cxx | 68 ----------------------------------------- svl/source/numbers/numhead.hxx | 32 ------------------- 2 files changed, 100 deletions(-)
New commits: commit c38d9f4e63c948cd298c82f6276f8dd2bcee6cdd Author: Takeshi Abe <t...@fixedpoint.jp> Date: Sun May 5 11:53:55 2013 +0900 drop commented-out code Change-Id: I7384a4fd82c8807dfaf9049306b65fe3ef5cab42 diff --git a/svl/source/numbers/numhead.cxx b/svl/source/numbers/numhead.cxx index 8c106bb..04964e9 100644 --- a/svl/source/numbers/numhead.cxx +++ b/svl/source/numbers/numhead.cxx @@ -24,74 +24,6 @@ // ID's fuer Dateien: #define SV_NUMID_SIZES 0x4200 -// STATIC DATA ----------------------------------------------------------- - -//SEG_EOFGLOBALS() - -// ======================================================================= -/* wird fuer SvNumberformatter nicht gebraucht -//#pragma SEG_FUNCDEF(numhead_01) - -SvNumReadHeader::SvNumReadHeader(SvStream& rNewStream) : - rStream( rNewStream ) -{ - sal_uLong nDataSize; - rStream >> nDataSize; - nDataEnd = rStream.Tell() + nDataSize; -} - -//#pragma SEG_FUNCDEF(numhead_02) - -SvNumReadHeader::~SvNumReadHeader() -{ - sal_uLong nReadEnd = rStream.Tell(); - DBG_ASSERT( nReadEnd <= nDataEnd, "zuviele Bytes gelesen" ); - if ( nReadEnd != nDataEnd ) - rStream.Seek(nDataEnd); // Rest ueberspringen -} - -//#pragma SEG_FUNCDEF(numhead_03) - -sal_uLong SvNumReadHeader::BytesLeft() const -{ - sal_uLong nReadEnd = rStream.Tell(); - if (nReadEnd <= nDataEnd) - return nDataEnd-nReadEnd; - - OSL_FAIL("Fehler bei SvNumReadHeader::BytesLeft"); - return 0; -} - -// ----------------------------------------------------------------------- - -//#pragma SEG_FUNCDEF(numhead_04) - -SvNumWriteHeader::SvNumWriteHeader(SvStream& rNewStream, sal_uLong nDefault) : - rStream( rNewStream ) -{ - nDataSize = nDefault; - rStream << nDataSize; - nDataPos = rStream.Tell(); -} - -//#pragma SEG_FUNCDEF(numhead_05) - -SvNumWriteHeader::~SvNumWriteHeader() -{ - sal_uLong nPos = rStream.Tell(); - - if ( nPos - nDataPos != nDataSize ) // Default getroffen? - { - nDataSize = nPos - nDataPos; - rStream.Seek(nDataPos - sizeof(sal_uInt32)); - rStream << nDataSize; // Groesse am Anfang eintragen - rStream.Seek(nPos); - } -} -*/ - -// ======================================================================= - //#pragma SEG_FUNCDEF(numhead_06) //! mit Skip() synchron diff --git a/svl/source/numbers/numhead.hxx b/svl/source/numbers/numhead.hxx index d5b2a8a..9e7bd2a 100644 --- a/svl/source/numbers/numhead.hxx +++ b/svl/source/numbers/numhead.hxx @@ -22,38 +22,6 @@ #include <tools/stream.hxx> -// ----------------------------------------------------------------------- - - // "Automatischer" Record-Header mit Groessenangabe - -/* wird fuer SvNumberFormatter nicht gebraucht -class SvNumReadHeader -{ -private: - SvStream& rStream; - sal_uLong nDataEnd; - -public: - SvNumReadHeader(SvStream& rNewStream); - ~SvNumReadHeader(); - - sal_uLong BytesLeft() const; -}; - -class SvNumWriteHeader -{ -private: - SvStream& rStream; - sal_uLong nDataPos; - sal_uLong nDataSize; - -public: - SvNumWriteHeader(SvStream& rNewStream, sal_uLong nDefault = 0); - ~SvNumWriteHeader(); -}; - -*/ - // Header mit Groessenangaben fuer mehrere Objekte class ImpSvNumMultipleReadHeader _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits