summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/stylesbuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/oox/stylesbuffer.cxx')
-rw-r--r--sc/source/filter/oox/stylesbuffer.cxx76
1 files changed, 0 insertions, 76 deletions
diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx
index 28d32c00954e..dc2f589cc6f9 100644
--- a/sc/source/filter/oox/stylesbuffer.cxx
+++ b/sc/source/filter/oox/stylesbuffer.cxx
@@ -82,8 +82,6 @@ using ::com::sun::star::table::BorderLine2;
namespace oox {
namespace xls {
-
-
using namespace com::sun::star;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::container;
@@ -94,8 +92,6 @@ using namespace ::com::sun::star::uno;
using ::oox::core::FilterBase;
-
-
namespace {
// OOXML constants ------------------------------------------------------------
@@ -206,8 +202,6 @@ const sal_uInt8 BIFF_FONTUNDERL_DOUBLE = 2;
const sal_uInt8 BIFF_FONTUNDERL_SINGLE_ACC = 33;
const sal_uInt8 BIFF_FONTUNDERL_DOUBLE_ACC = 34;
-
-
sal_Int32 lclReadRgbColor( BinaryInputStream& rStrm )
{
sal_uInt8 nR, nG, nB, nA;
@@ -224,8 +218,6 @@ sal_Int32 lclReadRgbColor( BinaryInputStream& rStrm )
} // namespace
-
-
ExcelGraphicHelper::ExcelGraphicHelper( const WorkbookHelper& rHelper ) :
GraphicHelper( rHelper.getBaseFilter().getComponentContext(), rHelper.getBaseFilter().getTargetFrame(), rHelper.getBaseFilter().getStorage() ),
WorkbookHelper( rHelper )
@@ -244,8 +236,6 @@ sal_Int32 ExcelGraphicHelper::getPaletteColor( sal_Int32 nPaletteIdx ) const
return getStyles().getPaletteColor( nPaletteIdx );
}
-
-
void Color::setAuto()
{
clearTransformations();
@@ -341,8 +331,6 @@ SequenceInputStream& operator>>( SequenceInputStream& rStrm, Color& orColor )
return rStrm;
}
-
-
namespace {
/** Standard EGA colors, bright. */
@@ -397,8 +385,6 @@ static const sal_Int32 spnDefColors8[] =
} // namespace
-
-
ColorPalette::ColorPalette( const WorkbookHelper& rHelper )
: WorkbookHelper(rHelper)
, mnAppendIndex(0)
@@ -471,8 +457,6 @@ void ColorPalette::appendColor( sal_Int32 nRGBValue )
++mnAppendIndex;
}
-
-
namespace {
void lclSetFontName( ApiScriptFontName& rFontName, const FontDescriptor& rFontDesc, bool bHasGlyphs )
@@ -492,8 +476,6 @@ void lclSetFontName( ApiScriptFontName& rFontName, const FontDescriptor& rFontDe
} // namespace
-
-
FontModel::FontModel() :
mnScheme( XML_none ),
mnFamily( OOX_FONTFAMILY_NONE ),
@@ -544,8 +526,6 @@ void FontModel::setBiffEscapement( sal_uInt16 nEscapement )
mnEscapement = STATIC_ARRAY_SELECT( spnEscapes, nEscapement, XML_baseline );
}
-
-
ApiFontUsedFlags::ApiFontUsedFlags( bool bAllUsed ) :
mbNameUsed( bAllUsed ),
mbColorUsed( bAllUsed ),
@@ -561,16 +541,12 @@ ApiFontUsedFlags::ApiFontUsedFlags( bool bAllUsed ) :
{
}
-
-
ApiScriptFontName::ApiScriptFontName() :
mnFamily( ::com::sun::star::awt::FontFamily::DONTKNOW ),
mnTextEnc( RTL_TEXTENCODING_DONTKNOW )
{
}
-
-
ApiFontData::ApiFontData() :
maDesc(
"Calibri",
@@ -598,8 +574,6 @@ ApiFontData::ApiFontData() :
maLatinFont.maName = maDesc.Name;
}
-
-
Font::Font( const WorkbookHelper& rHelper, bool bDxf ) :
WorkbookHelper( rHelper ),
maModel( rHelper.getTheme().getDefaultFontModel() ),
@@ -1118,8 +1092,6 @@ void Font::writeToPropertySet( PropertySet& rPropSet, FontPropertyType ePropType
rPropSet.setProperties( aPropMap );
}
-
-
AlignmentModel::AlignmentModel() :
mnHorAlign( XML_general ),
mnVerAlign( XML_bottom ),
@@ -1147,8 +1119,6 @@ void AlignmentModel::setBiffVerAlign( sal_uInt8 nVerAlign )
mnVerAlign = STATIC_ARRAY_SELECT( spnVerAligns, nVerAlign, XML_bottom );
}
-
-
ApiAlignmentData::ApiAlignmentData() :
meHorJustify( ::com::sun::star::table::CellHoriJustify_STANDARD ),
mnHorJustifyMethod( ::com::sun::star::table::CellJustifyMethod::AUTO ),
@@ -1178,8 +1148,6 @@ bool operator==( const ApiAlignmentData& rLeft, const ApiAlignmentData& rRight )
(rLeft.mbShrink == rRight.mbShrink);
}
-
-
Alignment::Alignment( const WorkbookHelper& rHelper ) :
WorkbookHelper( rHelper )
{
@@ -1392,16 +1360,12 @@ void Alignment::writeToPropertyMap( PropertyMap& rPropMap ) const
rPropMap.setProperty( PROP_ShrinkToFit, maApiData.mbShrink);
}
-
-
ProtectionModel::ProtectionModel() :
mbLocked( true ), // default in Excel and Calc
mbHidden( false )
{
}
-
-
ApiProtectionData::ApiProtectionData() :
maCellProt( sal_True, sal_False, sal_False, sal_False )
{
@@ -1416,8 +1380,6 @@ bool operator==( const ApiProtectionData& rLeft, const ApiProtectionData& rRight
(rLeft.maCellProt.IsPrintHidden == rRight.maCellProt.IsPrintHidden);
}
-
-
Protection::Protection( const WorkbookHelper& rHelper ) :
WorkbookHelper( rHelper )
{
@@ -1451,8 +1413,6 @@ void Protection::fillToItemSet( SfxItemSet& rItemSet, bool bSkipPoolDefs ) const
ScfTools::PutItem( rItemSet, ScProtectionAttr( maApiData.maCellProt.IsLocked, maApiData.maCellProt.IsFormulaHidden ), bSkipPoolDefs );
}
-
-
namespace {
bool lcl_isBorder(const ::com::sun::star::table::BorderLine& rBorder)
@@ -1479,8 +1439,6 @@ void BorderLineModel::setBiffStyle( sal_Int32 nLineStyle )
mnStyle = STATIC_ARRAY_SELECT( spnStyleIds, nLineStyle, XML_none );
}
-
-
BorderModel::BorderModel( bool bDxf ) :
maLeft( bDxf ),
maRight( bDxf ),
@@ -1492,8 +1450,6 @@ BorderModel::BorderModel( bool bDxf ) :
{
}
-
-
ApiBorderData::ApiBorderData() :
mbBorderUsed( false ),
mbDiagUsed( false )
@@ -1535,8 +1491,6 @@ bool operator==( const ApiBorderData& rLeft, const ApiBorderData& rRight )
(rLeft.mbDiagUsed == rRight.mbDiagUsed);
}
-
-
namespace {
inline void lclSetBorderLineWidth( BorderLine& rBorderLine,
@@ -1549,8 +1503,6 @@ inline void lclSetBorderLineWidth( BorderLine& rBorderLine,
} // namespace
-
-
Border::Border( const WorkbookHelper& rHelper, bool bDxf ) :
WorkbookHelper( rHelper ),
maModel( bDxf ),
@@ -1773,8 +1725,6 @@ bool Border::convertBorderLine( BorderLine2& rBorderLine, const BorderLineModel&
}
-
-
PatternFillModel::PatternFillModel( bool bDxf ) :
mnPattern( XML_none ),
mbPattColorUsed( !bDxf ),
@@ -1796,8 +1746,6 @@ void PatternFillModel::setBiffPattern( sal_Int32 nPattern )
mnPattern = STATIC_ARRAY_SELECT( spnPatternIds, nPattern, XML_none );
}
-
-
GradientFillModel::GradientFillModel() :
mnType( XML_linear ),
mfAngle( 0.0 ),
@@ -1833,8 +1781,6 @@ void GradientFillModel::readGradientStop( SequenceInputStream& rStrm, bool bDxf
maColors[ fPosition ] = aColor;
}
-
-
ApiSolidFillData::ApiSolidFillData() :
mnColor( API_RGB_TRANSPARENT ),
mbTransparent( true ),
@@ -1850,8 +1796,6 @@ bool operator==( const ApiSolidFillData& rLeft, const ApiSolidFillData& rRight )
(rLeft.mbUsed == rRight.mbUsed);
}
-
-
namespace {
inline sal_Int32 lclGetMixedColorComp( sal_Int32 nPatt, sal_Int32 nFill, sal_Int32 nAlpha )
@@ -1869,8 +1813,6 @@ sal_Int32 lclGetMixedColor( sal_Int32 nPattColor, sal_Int32 nFillColor, sal_Int3
} // namespace
-
-
Fill::Fill( const WorkbookHelper& rHelper, bool bDxf ) :
WorkbookHelper( rHelper ),
mbDxf( bDxf )
@@ -2100,8 +2042,6 @@ void Fill::writeToPropertyMap( PropertyMap& rPropMap ) const
}
}
-
-
XfModel::XfModel() :
mnStyleXfId( -1 ),
mnFontId( -1 ),
@@ -2118,8 +2058,6 @@ XfModel::XfModel() :
{
}
-
-
Xf::Xf( const WorkbookHelper& rHelper ) :
WorkbookHelper( rHelper ),
maAlignment( rHelper ),
@@ -2383,8 +2321,6 @@ Xf::createPattern( bool bSkipPoolDefs )
return *mpPattern;
}
-
-
Dxf::Dxf( const WorkbookHelper& rHelper ) :
WorkbookHelper( rHelper )
{
@@ -2507,8 +2443,6 @@ void Dxf::fillToItemSet( SfxItemSet& rSet ) const
mxFill->fillToItemSet(rSet);
}
-
-
namespace {
const sal_Char* const spcStyleNamePrefix = "Excel Built-in ";
@@ -2594,8 +2528,6 @@ OUString lclCreateStyleName( const CellStyleModel& rModel )
} // namespace
-
-
CellStyleModel::CellStyleModel() :
mnXfId( -1 ),
mnBuiltinId( -1 ),
@@ -2616,8 +2548,6 @@ bool CellStyleModel::isDefaultStyle() const
return mbBuiltin && (mnBuiltinId == OOX_STYLE_NORMAL);
}
-
-
CellStyle::CellStyle( const WorkbookHelper& rHelper ) :
WorkbookHelper( rHelper ),
mbCreated( false ),
@@ -2697,8 +2627,6 @@ void CellStyle::finalizeImport( const OUString& rFinalName )
createCellStyle();
}
-
-
CellStyleBuffer::CellStyleBuffer( const WorkbookHelper& rHelper ) :
WorkbookHelper( rHelper )
{
@@ -2868,8 +2796,6 @@ OUString CellStyleBuffer::createCellStyle( const CellStyleRef& rxCellStyle ) con
return lclGetBuiltinStyleName( OOX_STYLE_NORMAL, OUString() );
}
-
-
AutoFormatModel::AutoFormatModel() :
mnAutoFormatId( 0 ),
mbApplyNumFmt( false ),
@@ -2881,8 +2807,6 @@ AutoFormatModel::AutoFormatModel() :
{
}
-
-
StylesBuffer::StylesBuffer( const WorkbookHelper& rHelper ) :
WorkbookHelper( rHelper ),
maPalette( rHelper ),