diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-04-09 11:37:16 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-04-09 11:38:40 +0200 |
commit | b3e2cbc68f3501d3925f8789b1addc8ad4f8e9c0 (patch) | |
tree | 7cdfac24a291311f6ea46fdb2d8d8581f22955b5 /sc | |
parent | 2753a9904ce4caeeacca5eb2987319dc179c428b (diff) |
Dump other unused functions in oox
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/inc/commentsbuffer.hxx | 2 | ||||
-rw-r--r-- | sc/source/filter/inc/condformatbuffer.hxx | 2 | ||||
-rw-r--r-- | sc/source/filter/inc/stylesbuffer.hxx | 2 | ||||
-rw-r--r-- | sc/source/filter/oox/commentsbuffer.cxx | 29 | ||||
-rw-r--r-- | sc/source/filter/oox/condformatbuffer.cxx | 5 | ||||
-rw-r--r-- | sc/source/filter/oox/stylesbuffer.cxx | 15 |
6 files changed, 0 insertions, 55 deletions
diff --git a/sc/source/filter/inc/commentsbuffer.hxx b/sc/source/filter/inc/commentsbuffer.hxx index 81143a982235..9827b8299e34 100644 --- a/sc/source/filter/inc/commentsbuffer.hxx +++ b/sc/source/filter/inc/commentsbuffer.hxx @@ -73,8 +73,6 @@ public: void importCommentPr( const AttributeList& rAttribs ); /** Imports a cell comment from the passed stream of a COMMENT record. */ void importComment( SequenceInputStream& rStrm ); - /** Imports a cell comment from the passed stream of a NOTE record. */ - void importNote( BiffInputStream& rStrm ); /** Creates and returns a new rich-string object for the comment text. */ RichStringRef createText(); diff --git a/sc/source/filter/inc/condformatbuffer.hxx b/sc/source/filter/inc/condformatbuffer.hxx index 393a9d0875a9..e236375b2113 100644 --- a/sc/source/filter/inc/condformatbuffer.hxx +++ b/sc/source/filter/inc/condformatbuffer.hxx @@ -168,8 +168,6 @@ public: CondFormatRef importConditionalFormatting( const AttributeList& rAttribs ); /** Imports settings from the CONDFORMATTING record. */ CondFormatRef importCondFormatting( SequenceInputStream& rStrm ); - /** Imports settings from the CFHEADER record. */ - void importCfHeader( BiffInputStream& rStrm ); /** Creates all conditional formatting in the Calc document. */ void finalizeImport(); diff --git a/sc/source/filter/inc/stylesbuffer.hxx b/sc/source/filter/inc/stylesbuffer.hxx index 22af2beed409..409af4d971e6 100644 --- a/sc/source/filter/inc/stylesbuffer.hxx +++ b/sc/source/filter/inc/stylesbuffer.hxx @@ -148,8 +148,6 @@ public: void importPaletteColor( const AttributeList& rAttribs ); /** Appends a new color from the passed RGBCOLOR record. */ void importPaletteColor( SequenceInputStream& rStrm ); - /** Imports the PALETTE record from the passed stream. */ - void importPalette( BiffInputStream& rStrm ); /** Rturns the RGB value of the color with the passed index. */ sal_Int32 getColor( sal_Int32 nPaletteIdx ) const; diff --git a/sc/source/filter/oox/commentsbuffer.cxx b/sc/source/filter/oox/commentsbuffer.cxx index a1bef7dfa5c5..0ea4ca2e2b4f 100644 --- a/sc/source/filter/oox/commentsbuffer.cxx +++ b/sc/source/filter/oox/commentsbuffer.cxx @@ -145,35 +145,6 @@ void Comment::importComment( SequenceInputStream& rStrm ) getAddressConverter().convertToCellRangeUnchecked( maModel.maRange, aBinRange, getSheetIndex() ); } -void Comment::importNote( BiffInputStream& rStrm ) -{ - BinAddress aBinAddr; - rStrm >> aBinAddr; - // cell range will be checked while inserting the comment into the document - getAddressConverter().convertToCellRangeUnchecked( maModel.maRange, BinRange( aBinAddr ), getSheetIndex() ); - - // remaining record data is BIFF dependent - switch( getBiff() ) - { - case BIFF2: - case BIFF3: - importNoteBiff2( rStrm ); - break; - case BIFF4: - case BIFF5: - importNoteBiff2( rStrm ); - // in BIFF4 and BIFF5, comments can have an associated sound - if( (rStrm.getNextRecId() == BIFF_ID_NOTESOUND) && rStrm.startNextRecord() ) - importNoteSound( rStrm ); - break; - case BIFF8: - importNoteBiff8( rStrm ); - break; - case BIFF_UNKNOWN: - break; - } -} - RichStringRef Comment::createText() { maModel.mxText.reset( new RichString( *this ) ); diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx index b10210fbecfc..2985a8faf846 100644 --- a/sc/source/filter/oox/condformatbuffer.cxx +++ b/sc/source/filter/oox/condformatbuffer.cxx @@ -735,11 +735,6 @@ CondFormatRef CondFormatBuffer::importCondFormatting( SequenceInputStream& rStrm return xCondFmt; } -void CondFormatBuffer::importCfHeader( BiffInputStream& rStrm ) -{ - createCondFormat()->importCfHeader( rStrm ); -} - void CondFormatBuffer::finalizeImport() { maCondFormats.forEachMem( &CondFormat::finalizeImport ); diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx index 11a560812be3..26b146a92e1a 100644 --- a/sc/source/filter/oox/stylesbuffer.cxx +++ b/sc/source/filter/oox/stylesbuffer.cxx @@ -550,21 +550,6 @@ void ColorPalette::importPaletteColor( SequenceInputStream& rStrm ) appendColor( nRgb & 0xFFFFFF ); } -void ColorPalette::importPalette( BiffInputStream& rStrm ) -{ - sal_uInt16 nCount; - rStrm >> nCount; - OSL_ENSURE( rStrm.getRemaining() == 4 * nCount, "ColorPalette::importPalette - wrong palette size" ); - - // fill palette from BIFF_COLOR_USEROFFSET - mnAppendIndex = BIFF_COLOR_USEROFFSET; - for( sal_uInt16 nIndex = 0; !rStrm.isEof() && (nIndex < nCount); ++nIndex ) - { - sal_Int32 nRgb = lclReadRgbColor( rStrm ); - appendColor( nRgb & 0xFFFFFF ); - } -} - sal_Int32 ColorPalette::getColor( sal_Int32 nPaletteIdx ) const { sal_Int32 nColor = API_RGB_TRANSPARENT; |