diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-23 06:03:24 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-23 06:25:36 +0100 |
commit | e58dfb62106fc047d73ad0d62595ebc805ece5e1 (patch) | |
tree | b2da2424ee93fa7a4eacebbe919235e39d247ed1 /sc/source/ui/namedlg | |
parent | 9e8ae1d56076474e4673a953d8ebd726cb5daa18 (diff) |
ManageNames: move some strings to globstr.[sh]rc
Diffstat (limited to 'sc/source/ui/namedlg')
-rw-r--r-- | sc/source/ui/namedlg/namedefdlg.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/namedlg/namedlg.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/namedlg/namemgrtable.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/namedlg/namepast.cxx | 2 |
4 files changed, 8 insertions, 7 deletions
diff --git a/sc/source/ui/namedlg/namedefdlg.cxx b/sc/source/ui/namedlg/namedefdlg.cxx index c9ca2278b6ac..508ee7a2d3cd 100644 --- a/sc/source/ui/namedlg/namedefdlg.cxx +++ b/sc/source/ui/namedlg/namedefdlg.cxx @@ -32,6 +32,7 @@ #include <sfx2/app.hxx> #include "document.hxx" +#include "globstr.hrc" #include "globalnames.hxx" #include "rangenam.hxx" #include "reffact.hxx" @@ -72,7 +73,7 @@ ScNameDefDlg::ScNameDefDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParen maCursorPos( aCursorPos ), mErrMsgInvalidSym( ScResId( STR_INVALIDSYMBOL ) ), - maGlobalNameStr ( ResId::toString(ScResId(STR_GLOBAL_SCOPE)) ), + maGlobalNameStr ( ScGlobal::GetRscString(STR_GLOBAL_SCOPE) ), maErrInvalidNameStr( ResId::toString(ScResId(STR_ERR_NAME_INVALID))), maErrNameInUse ( ResId::toString(ScResId(STR_ERR_NAME_EXISTS))), maStrInfoDefault ( ResId::toString(ScResId(STR_DEFAULT_INFO))), diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx index ef567e57cdf5..1f2060b21e89 100644 --- a/sc/source/ui/namedlg/namedlg.cxx +++ b/sc/source/ui/namedlg/namedlg.cxx @@ -102,7 +102,7 @@ ScNameDlg::ScNameDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, // mErrMsgInvalidSym( ScResId( STR_INVALIDSYMBOL ) ), maErrMsgModifiedFailed( ResId::toString(ScResId( STR_MODIFYFAILED ) ) ), - maGlobalNameStr ( ResId::toString(ScResId(STR_GLOBAL_SCOPE)) ), + maGlobalNameStr ( ScGlobal::GetRscString(STR_GLOBAL_SCOPE) ), maErrInvalidNameStr( ResId::toString(ScResId(STR_ERR_NAME_INVALID))), maErrNameInUse ( ResId::toString(ScResId(STR_ERR_NAME_EXISTS))), maStrInfoDefault ( ResId::toString(ScResId(STR_DEFAULT_INFO))), diff --git a/sc/source/ui/namedlg/namemgrtable.cxx b/sc/source/ui/namedlg/namemgrtable.cxx index 538791fc251f..a72e765e536b 100644 --- a/sc/source/ui/namedlg/namemgrtable.cxx +++ b/sc/source/ui/namedlg/namemgrtable.cxx @@ -59,15 +59,15 @@ String createEntryString(const ScRangeNameLine& rLine) ScRangeManagerTable::ScRangeManagerTable( Window* pWindow, boost::ptr_map<rtl::OUString, ScRangeName>& rRangeMap ): SvTabListBox( pWindow, WB_SORT | WB_HSCROLL | WB_CLIPCHILDREN | WB_TABSTOP ), maHeaderBar( pWindow, WB_BUTTONSTYLE | WB_BOTTOMBORDER ), - maGlobalString( ResId::toString(ScResId(STR_GLOBAL_SCOPE))) + maGlobalString( ScGlobal::GetRscString(STR_GLOBAL_SCOPE)) { Size aBoxSize( pWindow->GetOutputSizePixel() ); maHeaderBar.SetPosSizePixel( Point(0, 0), Size( aBoxSize.Width(), 16 ) ); - String aNameStr(ScResId(STR_HEADER_NAME)); - String aRangeStr(ScResId(STR_HEADER_RANGE)); - String aScopeStr(ScResId(STR_HEADER_SCOPE)); + String aNameStr(ScGlobal::GetRscString(STR_HEADER_NAME)); + String aRangeStr(ScGlobal::GetRscString(STR_HEADER_RANGE)); + String aScopeStr(ScGlobal::GetRscString(STR_HEADER_SCOPE)); long nTabSize = aBoxSize.Width()/3; maHeaderBar.InsertItem( ITEMID_NAME, aNameStr, nTabSize, HIB_LEFT| HIB_VCENTER ); diff --git a/sc/source/ui/namedlg/namepast.cxx b/sc/source/ui/namedlg/namepast.cxx index 7db6abfc1dff..9c5706142d2a 100644 --- a/sc/source/ui/namedlg/namepast.cxx +++ b/sc/source/ui/namedlg/namepast.cxx @@ -44,7 +44,7 @@ //================================================================== -ScNamePasteDlg::ScNamePasteDlg( Window * pParent, ScDocShell* pShell, bool bInsList ) +ScNamePasteDlg::ScNamePasteDlg( Window * pParent, ScDocShell* pShell, bool ) : ModalDialog( pParent, ScResId( RID_SCDLG_NAMES_PASTE ) ), maHelpButton ( this, ScResId( BTN_HELP ) ), maBtnClose ( this, ScResId( BTN_CLOSE ) ), |