summaryrefslogtreecommitdiff
path: root/sc/source/core/data
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-12-10 13:34:26 +0000
committerArmin Le Grand <alg@apache.org>2012-12-10 13:34:26 +0000
commit81664c037c8d6094b66c1660b6eee9693eadf401 (patch)
tree27956eca8779cba4d7f8d34b351dfcefe2a150f1 /sc/source/core/data
parent1d462c8d850eb390685c36bb0411a08cfd40ebfb (diff)
#121448# Aligned default fill color/ line style for all apps
Notes
Diffstat (limited to 'sc/source/core/data')
-rw-r--r--sc/source/core/data/documen2.cxx1
-rw-r--r--sc/source/core/data/documen3.cxx6
-rw-r--r--sc/source/core/data/documen9.cxx18
3 files changed, 5 insertions, 20 deletions
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index d51421612508..cd479332264c 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -204,7 +204,6 @@ ScDocument::ScDocument( ScDocumentMode eMode,
nVisSpellState( 0 ),
nAsianCompression(SC_ASIANCOMPRESSION_INVALID),
nAsianKerning(SC_ASIANKERNING_INVALID),
- bSetDrawDefaults( sal_False ),
bPastingDrawFromOtherDoc( sal_False ),
nInDdeLinkUpdate( 0 ),
bInUnoBroadcast( sal_False ),
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index 7e19b6734e2c..6cacf90436ca 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -1914,12 +1914,6 @@ void ScDocument::SetLanguage( LanguageType eLatin, LanguageType eCjk, LanguageTy
UpdateDrawLanguages(); // set edit engine defaults in drawing layer pool
}
-void ScDocument::SetDrawDefaults()
-{
- bSetDrawDefaults = sal_True;
- UpdateDrawDefaults();
-}
-
Rectangle ScDocument::GetMMRect( SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow, SCTAB nTab )
{
diff --git a/sc/source/core/data/documen9.cxx b/sc/source/core/data/documen9.cxx
index 7bfc6e3a349f..353816dbb400 100644
--- a/sc/source/core/data/documen9.cxx
+++ b/sc/source/core/data/documen9.cxx
@@ -192,7 +192,11 @@ void ScDocument::InitDrawLayer( SfxObjectShell* pDocShell )
pDrawLayer->SetDefaultTabulator( GetDocOptions().GetTabDistance() );
UpdateDrawPrinter();
- UpdateDrawDefaults();
+
+ // set draw defaults directly
+ SfxItemPool& rDrawPool = pDrawLayer->GetItemPool();
+ rDrawPool.SetPoolDefaultItem( SvxAutoKernItem( sal_True, EE_CHAR_PAIRKERNING ) );
+
UpdateDrawLanguages();
if (bImportingXML)
pDrawLayer->EnableAdjust(sal_False);
@@ -217,18 +221,6 @@ void ScDocument::UpdateDrawLanguages()
}
}
-void ScDocument::UpdateDrawDefaults()
-{
- // drawing layer defaults that are set for new documents (if InitNew was called)
-
- if ( pDrawLayer && bSetDrawDefaults )
- {
- SfxItemPool& rDrawPool = pDrawLayer->GetItemPool();
- rDrawPool.SetPoolDefaultItem( SvxAutoKernItem( sal_True, EE_CHAR_PAIRKERNING ) );
- pDrawLayer->SetDrawingLayerPoolDefaults();
- }
-}
-
void ScDocument::UpdateDrawPrinter()
{
if (pDrawLayer)