summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-09 09:38:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-09 08:46:09 +0000
commit284cdce6edc357f71543ff7392e8213e5da5150f (patch)
tree224324994ee2d233ad3a6bf7c0fe52ac277ef1ac /sc
parentb226dcb50d6728b62f39c9fa2e016724324944e3 (diff)
callcatcher: update unused code
Change-Id: I76825425ff084d3fb1e331fb7ff13b097744c208 Reviewed-on: https://gerrit.libreoffice.org/5882 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/inc/stylesbuffer.hxx1
-rw-r--r--sc/source/filter/oox/stylesbuffer.cxx38
-rw-r--r--sc/source/ui/inc/undocell.hxx1
-rw-r--r--sc/source/ui/undo/undocell.cxx6
4 files changed, 0 insertions, 46 deletions
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<ScAttrEntry>& 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<ScAttrEntry>& 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<ScStyleSheet&>(*mpStyleSheet), rMarkData );
- }
- else
- {
- ScStyleSheetPool* pStylePool = rDoc.GetStyleSheetPool();
- if (pStylePool)
- {
- ScStyleSheet* pStyleSheet = static_cast<ScStyleSheet*>(
- pStylePool->Find(
- ScGlobal::GetRscString(STR_STYLENAME_STANDARD), SFX_STYLE_FAMILY_PARA));
-
- if (pStyleSheet)
- rDoc.ApplySelectionStyle( static_cast<ScStyleSheet&>(*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)
{