summaryrefslogtreecommitdiff
path: root/sw/source/ui/fmtui
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2001-07-20 09:22:01 +0000
committerMartin Gallwey <mtg@openoffice.org>2001-07-20 09:22:01 +0000
commit521c286b31a5668b1284b7815668cd5d76cd7fbe (patch)
tree60cebbfdbe441101112d342bf3ca242b5698282e /sw/source/ui/fmtui
parent71cf1b5aa44a55305350be1646322ae425c716b9 (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/fmtui')
-rw-r--r--sw/source/ui/fmtui/tmpdlg.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/sw/source/ui/fmtui/tmpdlg.cxx b/sw/source/ui/fmtui/tmpdlg.cxx
index 80dffb35965b..2d920c34e2ea 100644
--- a/sw/source/ui/fmtui/tmpdlg.cxx
+++ b/sw/source/ui/fmtui/tmpdlg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tmpdlg.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: os $ $Date: 2001-07-10 11:23:01 $
+ * last change: $Author: mtg $ $Date: 2001-07-20 10:19:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -203,7 +203,9 @@
#ifndef _FMTUI_HRC
#include <fmtui.hrc>
#endif
-
+#ifndef _SWSTYLENAMEMAPPER_HXX
+#include <SwStyleNameMapper.hxx>
+#endif
extern SwWrtShell* GetActiveWrtShell();
@@ -466,8 +468,8 @@ const SfxItemSet* SwTemplateDlg::GetRefreshedSet()
void SwTemplateDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
{
//Namen der Vorlagen und Metric setzen
- String sNumCharFmt; GetDocPoolNm( RES_POOLCHR_NUM_LEVEL, sNumCharFmt);
- String sBulletCharFmt; GetDocPoolNm( RES_POOLCHR_BUL_LEVEL, sBulletCharFmt);
+ String sNumCharFmt; SwStyleNameMapper::GetUIName( RES_POOLCHR_NUM_LEVEL, sNumCharFmt);
+ String sBulletCharFmt; SwStyleNameMapper::GetUIName( RES_POOLCHR_BUL_LEVEL, sBulletCharFmt);
switch( nId )
{
@@ -571,7 +573,7 @@ void SwTemplateDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
{
List aList;
String* pNew = new String;
- GetDocPoolNm( RES_POOLCOLL_TEXT, *pNew );
+ SwStyleNameMapper::GetUIName( RES_POOLCOLL_TEXT, *pNew );
aList.Insert( pNew, (ULONG)0 );
if( pWrtShell )
{