summaryrefslogtreecommitdiff
path: root/sc/source/core/data/stlpool.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/stlpool.cxx')
-rw-r--r--sc/source/core/data/stlpool.cxx98
1 files changed, 49 insertions, 49 deletions
diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx
index c391f09b1380..b6f609389645 100644
--- a/sc/source/core/data/stlpool.cxx
+++ b/sc/source/core/data/stlpool.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,7 +71,7 @@
//========================================================================
ScStyleSheetPool::ScStyleSheetPool( SfxItemPool& rPoolP,
- ScDocument* pDocument )
+ ScDocument* pDocument )
: SfxStyleSheetPool( rPoolP ),
pActualStyleSheet( NULL ),
pDoc( pDocument ),
@@ -97,11 +97,11 @@ void ScStyleSheetPool::SetDocument( ScDocument* pDocument )
SfxStyleSheetBase& ScStyleSheetPool::Make( const String& rName,
SfxStyleFamily eFam, USHORT mask, USHORT nPos )
{
- // When updating styles from a template, Office 5.1 sometimes created
- // files with multiple default styles.
- // Create new styles in that case:
+ // When updating styles from a template, Office 5.1 sometimes created
+ // files with multiple default styles.
+ // Create new styles in that case:
- //! only when loading?
+ //! only when loading?
if ( rName.EqualsAscii(STRING_STANDARD) && Find( rName, eFam ) != NULL )
{
@@ -122,8 +122,8 @@ SfxStyleSheetBase& ScStyleSheetPool::Make( const String& rName,
//------------------------------------------------------------------------
SfxStyleSheetBase* __EXPORT ScStyleSheetPool::Create(
- const String& rName,
- SfxStyleFamily eFamily,
+ const String& rName,
+ SfxStyleFamily eFamily,
USHORT nMaskP )
{
ScStyleSheet* pSheet = new ScStyleSheet( rName, *this, eFamily, nMaskP );
@@ -160,7 +160,7 @@ void __EXPORT ScStyleSheetPool::Remove( SfxStyleSheetBase* pStyle )
void ScStyleSheetPool::CopyStyleFrom( ScStyleSheetPool* pSrcPool,
const String& rName, SfxStyleFamily eFamily )
{
- // this ist Dest-Pool
+ // this ist Dest-Pool
SfxStyleSheetBase* pStyleSheet = pSrcPool->Find( rName, eFamily );
if (pStyleSheet)
@@ -175,7 +175,7 @@ void ScStyleSheetPool::CopyStyleFrom( ScStyleSheetPool* pSrcPool,
const SfxPoolItem* pItem;
if ( eFamily == SFX_STYLE_FAMILY_PAGE )
{
- // Set-Items
+ // Set-Items
if ( rSourceSet.GetItemState( ATTR_PAGE_HEADERSET, FALSE, &pItem ) == SFX_ITEM_SET )
{
@@ -210,23 +210,23 @@ void ScStyleSheetPool::CopyStyleFrom( ScStyleSheetPool* pSrcPool,
//------------------------------------------------------------------------
//
-// Standard-Vorlagen
+// Standard-Vorlagen
//
//------------------------------------------------------------------------
-#define SCSTR(id) ScGlobal::GetRscString(id)
+#define SCSTR(id) ScGlobal::GetRscString(id)
void ScStyleSheetPool::CopyStdStylesFrom( ScStyleSheetPool* pSrcPool )
{
- // Default-Styles kopieren
-
- CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_STANDARD), SFX_STYLE_FAMILY_PARA );
- CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_RESULT), SFX_STYLE_FAMILY_PARA );
- CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_RESULT1), SFX_STYLE_FAMILY_PARA );
- CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_HEADLINE), SFX_STYLE_FAMILY_PARA );
- CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_HEADLINE1), SFX_STYLE_FAMILY_PARA );
- CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_STANDARD), SFX_STYLE_FAMILY_PAGE );
- CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_REPORT), SFX_STYLE_FAMILY_PAGE );
+ // Default-Styles kopieren
+
+ CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_STANDARD), SFX_STYLE_FAMILY_PARA );
+ CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_RESULT), SFX_STYLE_FAMILY_PARA );
+ CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_RESULT1), SFX_STYLE_FAMILY_PARA );
+ CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_HEADLINE), SFX_STYLE_FAMILY_PARA );
+ CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_HEADLINE1), SFX_STYLE_FAMILY_PARA );
+ CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_STANDARD), SFX_STYLE_FAMILY_PAGE );
+ CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_REPORT), SFX_STYLE_FAMILY_PAGE );
}
//------------------------------------------------------------------------
@@ -248,27 +248,27 @@ void lcl_CheckFont( SfxItemSet& rSet, LanguageType eLang, USHORT nFontType, USHO
void ScStyleSheetPool::CreateStandardStyles()
{
- // neue Eintraege auch bei CopyStdStylesFrom eintragen
-
- Color aColBlack ( COL_BLACK );
- Color aColGrey ( COL_LIGHTGRAY );
- String aStr;
- xub_StrLen nStrLen;
- String aHelpFile;//XXX JN welcher Text???
- //ULONG nNumFmt = 0L;
- SfxItemSet* pSet = NULL;
- SfxItemSet* pHFSet = NULL;
- SvxSetItem* pHFSetItem = NULL;
- ScEditEngineDefaulter* pEdEngine = new ScEditEngineDefaulter( EditEngine::CreatePool(), TRUE );
+ // neue Eintraege auch bei CopyStdStylesFrom eintragen
+
+ Color aColBlack ( COL_BLACK );
+ Color aColGrey ( COL_LIGHTGRAY );
+ String aStr;
+ xub_StrLen nStrLen;
+ String aHelpFile;//XXX JN welcher Text???
+ //ULONG nNumFmt = 0L;
+ SfxItemSet* pSet = NULL;
+ SfxItemSet* pHFSet = NULL;
+ SvxSetItem* pHFSetItem = NULL;
+ ScEditEngineDefaulter* pEdEngine = new ScEditEngineDefaulter( EditEngine::CreatePool(), TRUE );
pEdEngine->SetUpdateMode( FALSE );
- EditTextObject* pEmptyTxtObj = pEdEngine->CreateTextObject();
- EditTextObject* pTxtObj = NULL;
- ScPageHFItem* pHeaderItem = new ScPageHFItem( ATTR_PAGE_HEADERRIGHT );
- ScPageHFItem* pFooterItem = new ScPageHFItem( ATTR_PAGE_FOOTERRIGHT );
- ScStyleSheet* pSheet = NULL;
- SvxBorderLine aBorderLine ( &aColBlack, DEF_LINE_WIDTH_2 );
- SvxBoxItem aBoxItem ( ATTR_BORDER );
- SvxBoxInfoItem aBoxInfoItem ( ATTR_BORDER_INNER );
+ EditTextObject* pEmptyTxtObj = pEdEngine->CreateTextObject();
+ EditTextObject* pTxtObj = NULL;
+ ScPageHFItem* pHeaderItem = new ScPageHFItem( ATTR_PAGE_HEADERRIGHT );
+ ScPageHFItem* pFooterItem = new ScPageHFItem( ATTR_PAGE_FOOTERRIGHT );
+ ScStyleSheet* pSheet = NULL;
+ SvxBorderLine aBorderLine ( &aColBlack, DEF_LINE_WIDTH_2 );
+ SvxBoxItem aBoxItem ( ATTR_BORDER );
+ SvxBoxInfoItem aBoxInfoItem ( ATTR_BORDER_INNER );
String aStrStandard = ScGlobal::GetRscString(STR_STYLENAME_STANDARD);
@@ -282,18 +282,18 @@ void ScStyleSheetPool::CreateStandardStyles()
pSheet = (ScStyleSheet*) &Make( aStrStandard, SFX_STYLE_FAMILY_PARA, SCSTYLEBIT_STANDARD );
pSheet->SetHelpId( aHelpFile, HID_SC_SHEET_CELL_STD );
- // if default fonts for the document's languages are different from the pool default,
- // put them into the default style
- // (not as pool defaults, because pool defaults can't be changed by the user)
- // the document languages must be set before creating the default styles!
+ // if default fonts for the document's languages are different from the pool default,
+ // put them into the default style
+ // (not as pool defaults, because pool defaults can't be changed by the user)
+ // the document languages must be set before creating the default styles!
pSet = &pSheet->GetItemSet();
LanguageType eLatin, eCjk, eCtl;
pDoc->GetLanguage( eLatin, eCjk, eCtl );
- // #108374# / #107782#: If the UI language is Korean, the default Latin font has to
- // be queried for Korean, too (the Latin language from the document can't be Korean).
- // This is the same logic as in SwDocShell::InitNew.
+ // #108374# / #107782#: If the UI language is Korean, the default Latin font has to
+ // be queried for Korean, too (the Latin language from the document can't be Korean).
+ // This is the same logic as in SwDocShell::InitNew.
LanguageType eUiLanguage = Application::GetSettings().GetUILanguage();
switch( eUiLanguage )
{
@@ -340,7 +340,7 @@ void ScStyleSheetPool::CreateStandardStyles()
// will now be done in GetItemSet();
// pSet = &pSheet->GetItemSet();
// nNumFmt = pDoc->GetFormatTable()->GetStandardFormat( NUMBERFORMAT_CURRENCY,
- // ScGlobal::eLnge );
+ // ScGlobal::eLnge );
// pSet->Put( SfxUInt32Item( ATTR_VALUE_FORMAT, nNumFmt ) );
//----------------