summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc/outline.cxx
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2001-07-20 09:40:14 +0000
committerMartin Gallwey <mtg@openoffice.org>2001-07-20 09:40:14 +0000
commitf7a2475e8b7f64b24674c5a05821834d29d246d6 (patch)
tree94e225371e6754ef9d3103a7dbbde6dc6e3538b0 /sw/source/ui/misc/outline.cxx
parent8c647ce2ad551e9614b6218325d87e559641a69e (diff)
#89999# use the static methods in the new SwStyleNameMapper class for Programmatic Name <-> UI Name <-> Pool Id conversion
Diffstat (limited to 'sw/source/ui/misc/outline.cxx')
-rw-r--r--sw/source/ui/misc/outline.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx
index 4c041dcf64..22308ec280 100644
--- a/sw/source/ui/misc/outline.cxx
+++ b/sw/source/ui/misc/outline.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: outline.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: os $ $Date: 2001-07-10 07:09:15 $
+ * last change: $Author: mtg $ $Date: 2001-07-20 10:34:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -154,6 +154,9 @@
#ifndef _UTL_CONFIGMGR_HXX_
#include <unotools/configmgr.hxx>
#endif
+#ifndef _SWSTYLENAMEMAPPER_HXX
+#include <SwStyleNameMapper.hxx>
+#endif
#define C2S(cChar) UniString::CreateFromAscii(cChar)
/* -----------------------------31.01.01 10:23--------------------------------
@@ -326,7 +329,7 @@ SwOutlineTabDialog::SwOutlineTabDialog(Window* pParent,
for(USHORT i = 0; i < MAXLEVEL; ++i )
{
// wurde die Vorlage noch nicht angelegt, dann ist sie noch an dieserPosition
- if( !rWrtSh.GetParaStyle( GetDocPoolNm( RES_POOLCOLL_HEADLINE1 + i,
+ if( !rWrtSh.GetParaStyle( SwStyleNameMapper::GetUIName( RES_POOLCOLL_HEADLINE1 + i,
sHeadline )) )
aCollNames[i] = sHeadline;
}
@@ -491,7 +494,7 @@ short SwOutlineTabDialog::Ok()
for( i = 0; i < MAXLEVEL; ++i )
{
String sHeadline;
- ::GetDocPoolNm( RES_POOLCOLL_HEADLINE1 + i, sHeadline );
+ ::SwStyleNameMapper::GetUIName( RES_POOLCOLL_HEADLINE1 + i, sHeadline );
SwTxtFmtColl* pColl = rWrtSh.FindTxtFmtCollByName( sHeadline );
if( !pColl )
{
@@ -919,7 +922,7 @@ void SwOutlineSettingsTabPage::SetWrtShell(SwWrtShell* pShell)
USHORT i;
for( i = 0; i < MAXLEVEL; ++i )
{
- aCollBox.InsertEntry( GetDocPoolNm( RES_POOLCOLL_HEADLINE1 + i, sStr ));
+ aCollBox.InsertEntry( SwStyleNameMapper::GetUIName( RES_POOLCOLL_HEADLINE1 + i, sStr ));
aLevelLB.InsertEntry( String::CreateFromInt32(i + 1) );
}
sStr.AssignAscii( RTL_CONSTASCII_STRINGPARAM( "1 - " ));