diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2015-05-19 12:38:59 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2015-05-19 12:44:25 +0200 |
commit | 737863ce3466391733c3f66766ab764d2fbda4ab (patch) | |
tree | 3700c6409ec23b97bdec2c9beffffbb096011d11 /sd | |
parent | 339cfd98124cd3f6db697d5ec57fa687c7d99db6 (diff) |
Related tdf#88056: Use different placeholders for Impress and Draw
Change-Id: Ib087baada3660bf0d31e1295cbac322dada53d2d
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/app/sdmod2.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/app/strings.src | 9 | ||||
-rw-r--r-- | sd/source/ui/inc/strings.hrc | 3 |
3 files changed, 14 insertions, 4 deletions
diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx index 5025cab3d5e4..a817f5ed2767 100644 --- a/sd/source/ui/app/sdmod2.cxx +++ b/sd/source/ui/app/sdmod2.cxx @@ -269,7 +269,11 @@ IMPL_LINK(SdModule, CalcFieldValueHdl, EditFieldInfo*, pInfo) aRepresentation = pPage->GetName(); } else - aRepresentation = SdResId(STR_FIELD_PLACEHOLDER_PAGETITLE).toString(); + { + aRepresentation = ( ( pDoc->GetDocumentType() == DOCUMENT_TYPE_IMPRESS ) + ? SdResId(STR_FIELD_PLACEHOLDER_SLIDENAME).toString() + : SdResId(STR_FIELD_PLACEHOLDER_PAGENAME).toString() ); + } pInfo->SetRepresentation( aRepresentation ); } diff --git a/sd/source/ui/app/strings.src b/sd/source/ui/app/strings.src index 2f31991605dd..ed790cfb9d6e 100644 --- a/sd/source/ui/app/strings.src +++ b/sd/source/ui/app/strings.src @@ -1076,9 +1076,14 @@ String STR_FIELD_PLACEHOLDER_COUNT Text [ en-US ] = "<count>" ; }; -String STR_FIELD_PLACEHOLDER_PAGETITLE +String STR_FIELD_PLACEHOLDER_SLIDENAME { - Text [ en-US ] = "<title>" ; + Text [ en-US ] = "<slide-name>" ; +}; + +String STR_FIELD_PLACEHOLDER_PAGENAME +{ + Text [ en-US ] = "<page-name>" ; }; String STR_PLACEHOLDER_DESCRIPTION_NOTES diff --git a/sd/source/ui/inc/strings.hrc b/sd/source/ui/inc/strings.hrc index f713b83bb30b..a5da566ec55a 100644 --- a/sd/source/ui/inc/strings.hrc +++ b/sd/source/ui/inc/strings.hrc @@ -372,7 +372,8 @@ #define STR_UNDO_HANGULHANJACONVERSION (RID_APP_START+696) #define STR_FIELD_PLACEHOLDER_COUNT (RID_APP_START+697) -#define STR_FIELD_PLACEHOLDER_PAGETITLE (RID_APP_START+698) +#define STR_FIELD_PLACEHOLDER_SLIDENAME (RID_APP_START+698) +#define STR_FIELD_PLACEHOLDER_PAGENAME (RID_APP_START+699) #define STR_LEFT_PANE_DRAW_TITLE (RID_APP_START+700) #define STR_LEFT_PANE_IMPRESS_TITLE (RID_APP_START+701) |