summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-31 11:28:46 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-01 06:48:50 +0000
commitc150ac07873e2861d0b4531fe88648801c9995be (patch)
tree9f09f6095644feb0b9eacf3af68bd02f046b7917 /sc
parent3aaa90c36c2910847576bd9362276b0e9b5acca4 (diff)
loplugin:unusedmethods
Change-Id: Ia7981447e96d9ac87526ad1276585ab3077d7f08 Reviewed-on: https://gerrit.libreoffice.org/25707 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/inc/stylesbuffer.hxx10
-rw-r--r--sc/source/filter/oox/stylesbuffer.cxx42
2 files changed, 0 insertions, 52 deletions
diff --git a/sc/source/filter/inc/stylesbuffer.hxx b/sc/source/filter/inc/stylesbuffer.hxx
index 26ff2b12c784..3f25bca704b6 100644
--- a/sc/source/filter/inc/stylesbuffer.hxx
+++ b/sc/source/filter/inc/stylesbuffer.hxx
@@ -334,8 +334,6 @@ public:
inline const ApiAlignmentData& getApiData() const { return maApiData; }
void fillToItemSet( SfxItemSet& rItemSet, bool bSkipPoolDefs = false ) const;
- /** Writes all alignment attributes to the passed property map. */
- void writeToPropertyMap( PropertyMap& rPropMap ) const;
private:
::SvxCellHorJustify GetScHorAlign() const;
@@ -383,8 +381,6 @@ public:
/** Returns the converted API protection data struct. */
inline const ApiProtectionData& getApiData() const { return maApiData; }
- /** Writes all protection attributes to the passed property map. */
- void writeToPropertyMap( PropertyMap& rPropMap ) const;
void fillToItemSet( SfxItemSet& rItemSet, bool bSkipPoolDefs = false ) const;
private:
ProtectionModel maModel; /// Protection model data.
@@ -881,17 +877,11 @@ public:
OUString createDxfStyle( sal_Int32 nDxfId ) const;
void writeFontToItemSet( SfxItemSet& rItemSet, sal_Int32 nFontId, bool bSkipPoolDefs = false ) const;
- /** Writes the font attributes of the specified font data to the passed property map. */
- void writeFontToPropertyMap( PropertyMap& rPropMap, sal_Int32 nFontId ) const;
sal_uLong writeNumFmtToItemSet( SfxItemSet& rItemSet, sal_Int32 nNumFmtId, bool bSkipPoolDefs = false ) const;
/** Writes the specified number format to the passed property map. */
- void writeNumFmtToPropertyMap( PropertyMap& rPropMap, sal_Int32 nNumFmtId ) const;
void writeBorderToItemSet( SfxItemSet& rItemSet, sal_Int32 nBorderId, bool bSkipPoolDefs = false ) const;
- /** Writes the border attributes of the specified border data to the passed property map. */
- void writeBorderToPropertyMap( PropertyMap& rPropMap, sal_Int32 nBorderId ) const;
/** Writes the fill attributes of the specified fill data to the passed property map. */
void writeFillToItemSet( SfxItemSet& rItemSet, sal_Int32 nFillId, bool bSkipPoolDefs = false ) const;
- void writeFillToPropertyMap( PropertyMap& rPropMap, sal_Int32 nFillId ) const;
/** Writes the cell formatting attributes of the specified XF to the passed property set. */
void writeCellXfToDoc( ScDocumentImport& rDoc, const css::table::CellRangeAddress& rRange, sal_Int32 nXfId ) const;
diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx
index 5e0e09b035f7..033d5d91411e 100644
--- a/sc/source/filter/oox/stylesbuffer.cxx
+++ b/sc/source/filter/oox/stylesbuffer.cxx
@@ -1346,20 +1346,6 @@ void Alignment::fillToItemSet( SfxItemSet& rItemSet, bool bSkipPoolDefs ) const
ScfTools::PutItem( rItemSet, SfxBoolItem( ATTR_SHRINKTOFIT, maApiData.mbShrink ), bSkipPoolDefs );
}
-void Alignment::writeToPropertyMap( PropertyMap& rPropMap ) const
-{
- rPropMap.setProperty( PROP_HoriJustify, maApiData.meHorJustify);
- rPropMap.setProperty( PROP_HoriJustifyMethod, maApiData.mnHorJustifyMethod);
- rPropMap.setProperty( PROP_VertJustify, maApiData.mnVerJustify);
- rPropMap.setProperty( PROP_VertJustifyMethod, maApiData.mnVerJustifyMethod);
- rPropMap.setProperty( PROP_WritingMode, maApiData.mnWritingMode);
- rPropMap.setProperty( PROP_RotateAngle, maApiData.mnRotation);
- rPropMap.setProperty( PROP_Orientation, maApiData.meOrientation);
- rPropMap.setProperty( PROP_ParaIndent, maApiData.mnIndent);
- rPropMap.setProperty( PROP_IsTextWrapped, maApiData.mbWrapText);
- rPropMap.setProperty( PROP_ShrinkToFit, maApiData.mbShrink);
-}
-
ProtectionModel::ProtectionModel() :
mbLocked( true ), // default in Excel and Calc
mbHidden( false )
@@ -1403,11 +1389,6 @@ void Protection::finalizeImport()
maApiData.maCellProt.IsFormulaHidden = maModel.mbHidden;
}
-void Protection::writeToPropertyMap( PropertyMap& rPropMap ) const
-{
- rPropMap.setProperty( PROP_CellProtection, maApiData.maCellProt);
-}
-
void Protection::fillToItemSet( SfxItemSet& rItemSet, bool bSkipPoolDefs ) const
{
ScfTools::PutItem( rItemSet, ScProtectionAttr( maApiData.maCellProt.IsLocked, maApiData.maCellProt.IsFormulaHidden ), bSkipPoolDefs );
@@ -3058,46 +3039,23 @@ void StylesBuffer::writeFontToItemSet( SfxItemSet& rItemSet, sal_Int32 nFontId,
pFont->fillToItemSet( rItemSet, false, bSkipPoolDefs );
}
-void StylesBuffer::writeFontToPropertyMap( PropertyMap& rPropMap, sal_Int32 nFontId ) const
-{
- if( Font* pFont = maFonts.get( nFontId ).get() )
- pFont->writeToPropertyMap( rPropMap, FONT_PROPTYPE_CELL );
-}
-
sal_uLong StylesBuffer::writeNumFmtToItemSet( SfxItemSet& rItemSet, sal_Int32 nNumFmtId, bool bSkipPoolDefs ) const
{
return maNumFmts.fillToItemSet( rItemSet, nNumFmtId, bSkipPoolDefs );
}
-void StylesBuffer::writeNumFmtToPropertyMap( PropertyMap& rPropMap, sal_Int32 nNumFmtId ) const
-{
- maNumFmts.writeToPropertyMap( rPropMap, nNumFmtId );
-}
-
void StylesBuffer::writeBorderToItemSet( SfxItemSet& rItemSet, sal_Int32 nBorderId, bool bSkipPoolDefs ) const
{
if( Border* pBorder = maBorders.get( nBorderId ).get() )
pBorder->fillToItemSet( rItemSet, bSkipPoolDefs );
}
-void StylesBuffer::writeBorderToPropertyMap( PropertyMap& rPropMap, sal_Int32 nBorderId ) const
-{
- if( Border* pBorder = maBorders.get( nBorderId ).get() )
- pBorder->writeToPropertyMap( rPropMap );
-}
-
void StylesBuffer::writeFillToItemSet( SfxItemSet& rItemSet, sal_Int32 nFillId, bool bSkipPoolDefs ) const
{
if( Fill* pFill = maFills.get( nFillId ).get() )
pFill->fillToItemSet( rItemSet, bSkipPoolDefs );
}
-void StylesBuffer::writeFillToPropertyMap( PropertyMap& rPropMap, sal_Int32 nFillId ) const
-{
- if( Fill* pFill = maFills.get( nFillId ).get() )
- pFill->writeToPropertyMap( rPropMap );
-}
-
bool operator==( const XfModel& rXfModel1, const XfModel& rXfModel2 )
{
return ( rXfModel1.mbCellXf == rXfModel2.mbCellXf &&