From 284cdce6edc357f71543ff7392e8213e5da5150f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 9 Sep 2013 09:38:20 +0100 Subject: callcatcher: update unused code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I76825425ff084d3fb1e331fb7ff13b097744c208 Reviewed-on: https://gerrit.libreoffice.org/5882 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sc/source/filter/inc/stylesbuffer.hxx | 1 - sc/source/filter/oox/stylesbuffer.cxx | 38 ----------------------------------- sc/source/ui/inc/undocell.hxx | 1 - sc/source/ui/undo/undocell.cxx | 6 ------ 4 files changed, 46 deletions(-) (limited to 'sc') diff --git a/sc/source/filter/inc/stylesbuffer.hxx b/sc/source/filter/inc/stylesbuffer.hxx index 953f7fae5a83..58d9be51b898 100644 --- a/sc/source/filter/inc/stylesbuffer.hxx +++ b/sc/source/filter/inc/stylesbuffer.hxx @@ -718,7 +718,6 @@ public: /** Returns the cell protection data of this style. */ inline const Protection& getProtection() const { return maProtection; } - void writeToMarkData( ::ScMarkData& rMarkData, sal_Int32 nNumFmtId ); void applyPatternToAttrList( ::std::list& rAttrs, SCROW nRow1, SCROW nRow2, sal_Int32 nForceScNumFmt ); /** Writes all formatting attributes to the passed property map. */ diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx index 5024d069c96d..0280a4a9d133 100644 --- a/sc/source/filter/oox/stylesbuffer.cxx +++ b/sc/source/filter/oox/stylesbuffer.cxx @@ -2331,44 +2331,6 @@ void Xf::applyPatternToAttrList( ::std::list& rAttrs, SCROW nRow1, } } -void Xf::writeToMarkData( ::ScMarkData& rMarkData, sal_Int32 nNumFmtId ) -{ - createPattern(); - ScPatternAttr& rPat = *mpPattern; - ScDocument& rDoc = getScDocument(); - if ( isCellXf() ) - { - StylesBuffer& rStyles = getStyles(); - rStyles.createCellStyle( maModel.mnStyleXfId ); - - mpStyleSheet = rStyles.getCellStyleSheet( maModel.mnStyleXfId ); - if ( mpStyleSheet ) - { - rDoc.ApplySelectionStyle( static_cast(*mpStyleSheet), rMarkData ); - } - else - { - ScStyleSheetPool* pStylePool = rDoc.GetStyleSheetPool(); - if (pStylePool) - { - ScStyleSheet* pStyleSheet = static_cast( - pStylePool->Find( - ScGlobal::GetRscString(STR_STYLENAME_STANDARD), SFX_STYLE_FAMILY_PARA)); - - if (pStyleSheet) - rDoc.ApplySelectionStyle( static_cast(*pStyleSheet), rMarkData ); - } - } - } - if ( nNumFmtId >= 0 ) - { - ScPatternAttr aNumPat(rDoc.GetPool()); - getStyles().writeNumFmtToItemSet( aNumPat.GetItemSet(), nNumFmtId ); - rPat.GetItemSet().Put(aNumPat.GetItemSet()); - } - rDoc.ApplySelectionPattern( rPat, rMarkData ); -} - void Xf::writeToPropertyMap( PropertyMap& rPropMap ) const { StylesBuffer& rStyles = getStyles(); diff --git a/sc/source/ui/inc/undocell.hxx b/sc/source/ui/inc/undocell.hxx index aacc8d91a4f4..e9e7d58d495c 100644 --- a/sc/source/ui/inc/undocell.hxx +++ b/sc/source/ui/inc/undocell.hxx @@ -146,7 +146,6 @@ class ScUndoSetCell : public ScSimpleUndo { public: TYPEINFO(); - ScUndoSetCell( ScDocShell* pDocSh, const ScAddress& rPos, const ScCellValue& rNewVal ); ScUndoSetCell( ScDocShell* pDocSh, const ScAddress& rPos, const ScCellValue& rOldVal, const ScCellValue& rNewVal ); virtual ~ScUndoSetCell(); diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx index f577e72f7168..499ca5e31af7 100644 --- a/sc/source/ui/undo/undocell.cxx +++ b/sc/source/ui/undo/undocell.cxx @@ -401,12 +401,6 @@ bool ScUndoEnterValue::CanRepeat(SfxRepeatTarget& /* rTarget */) const return false; } -ScUndoSetCell::ScUndoSetCell( ScDocShell* pDocSh, const ScAddress& rPos, const ScCellValue& rNewVal ) : - ScSimpleUndo(pDocSh), maPos(rPos), maNewValue(rNewVal), mnEndChangeAction(0) -{ - SetChangeTrack(); -} - ScUndoSetCell::ScUndoSetCell( ScDocShell* pDocSh, const ScAddress& rPos, const ScCellValue& rOldVal, const ScCellValue& rNewVal ) : ScSimpleUndo(pDocSh), maPos(rPos), maOldValue(rOldVal), maNewValue(rNewVal), mnEndChangeAction(0) { -- cgit