summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/stylesbuffer.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-30 09:24:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-03-30 14:07:20 +0100
commit45e4f9e99b75ef8a125228bc42df7fb98af9d7bc (patch)
tree6a5b19bbe4316d56b14682c227c891f05db13b4c /sc/source/filter/oox/stylesbuffer.cxx
parent1889728897e16800d58773a302eb5232a6fada76 (diff)
callcatcher: regenerate unused code list
Diffstat (limited to 'sc/source/filter/oox/stylesbuffer.cxx')
-rw-r--r--sc/source/filter/oox/stylesbuffer.cxx96
1 files changed, 1 insertions, 95 deletions
diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx
index 4f2935b6a5ea..11a560812be3 100644
--- a/sc/source/filter/oox/stylesbuffer.cxx
+++ b/sc/source/filter/oox/stylesbuffer.cxx
@@ -3260,7 +3260,7 @@ void CellStyle::createCellStyle()
// #i1624# #i1768# ignore unnamed user styles
if( !mbCreated )
mbCreated = maFinalName.isEmpty();
-#if AVOID_UNO
+
::ScDocument& rDoc = getScDocument();
if( !mbCreated && !mpStyleSheet )
{
@@ -3290,42 +3290,6 @@ void CellStyle::createCellStyle()
if( bCreatePattern && mpStyleSheet && pXF )
mpStyleSheet->GetItemSet().Put( pXF->createPattern( bDefStyle ).GetItemSet() );
}
-#else
- /* #i103281# do not create another style of the same name, if it exists
- already. This is needed to prevent that styles pasted from clipboard
- get duplicated over and over. */
- if( !mbCreated ) try
- {
- Reference< XNameAccess > xCellStylesNA( getStyleFamily( false ), UNO_QUERY_THROW );
- mbCreated = xCellStylesNA->hasByName( maFinalName );
- }
- catch( Exception& )
- {
- }
-
- // create the style object in the document
- if( !mbCreated ) try
- {
- mbCreated = true;
- Reference< XStyle > xStyle( createStyleObject( maFinalName, false ), UNO_SET_THROW );
- // write style formatting properties
- PropertySet aPropSet( xStyle );
- getStyles().writeStyleXfToPropertySet( aPropSet, maModel.mnXfId );
- if( !maModel.isDefaultStyle() )
- xStyle->setParentStyle( getStyles().getDefaultStyleName() );
- }
- catch( Exception& )
- {
- }
-#endif
-}
-
-ScStyleSheet*
-CellStyle::createStyleSheet()
-{
- if ( !mpStyleSheet )
- createCellStyle();
- return mpStyleSheet;
}
void CellStyle::finalizeImport( const OUString& rFinalName )
@@ -3615,58 +3579,6 @@ void StylesBuffer::importCellStyle( SequenceInputStream& rStrm )
maCellStyles.importCellStyle( rStrm );
}
-void StylesBuffer::importPalette( BiffInputStream& rStrm )
-{
- maPalette.importPalette( rStrm );
-}
-
-void StylesBuffer::importFont( BiffInputStream& rStrm )
-{
- /* Font with index 4 is not stored in BIFF. This means effectively, first
- font in the BIFF file has index 0, fourth font has index 3, and fifth
- font has index 5. Insert a dummy font to correctly map passed font
- identifiers. */
- if( maFonts.size() == 4 )
- maFonts.push_back( maFonts.front() );
-
- FontRef xFont = createFont();
- xFont->importFont( rStrm );
-
- /* #i71033# Set stream text encoding from application font, if CODEPAGE
- record is missing. Must be done now (not while finalizeImport() runs),
- to be able to read all following byte strings correctly (e.g. cell
- style names). */
- if( maFonts.size() == 1 )
- setAppFontEncoding( xFont->getFontEncoding() );
-}
-
-void StylesBuffer::importFontColor( BiffInputStream& rStrm )
-{
- if( !maFonts.empty() )
- maFonts.back()->importFontColor( rStrm );
-}
-
-void StylesBuffer::importFormat( BiffInputStream& rStrm )
-{
- maNumFmts.importFormat( rStrm );
-}
-
-void StylesBuffer::importXf( BiffInputStream& rStrm )
-{
- XfRef xXf( new Xf( *this ) );
- xXf->importXf( rStrm );
-
- XfRef xCellXf, xStyleXf;
- (xXf->isCellXf() ? xCellXf : xStyleXf) = xXf;
- maCellXfs.push_back( xCellXf );
- maStyleXfs.push_back( xStyleXf );
-}
-
-void StylesBuffer::importStyle( BiffInputStream& rStrm )
-{
- maCellStyles.importStyle( rStrm );
-}
-
void StylesBuffer::finalizeImport()
{
// fonts first, are needed to finalize unit converter and XFs below
@@ -3906,12 +3818,6 @@ bool operator==( const Xf& rXf1, const Xf& rXf2 )
return false;
}
-void StylesBuffer::writeCellXfToPropertyMap( PropertyMap& rPropMap, sal_Int32 nXfId ) const
-{
- if( Xf* pXf = maCellXfs.get( nXfId ).get() )
- pXf->writeToPropertyMap( rPropMap );
-}
-
void StylesBuffer::writeCellXfToPropertySet( PropertySet& rPropSet, sal_Int32 nXfId ) const
{
if( Xf* pXf = maCellXfs.get( nXfId ).get() )