can't have bare english strings in .cxx

Change-Id: I1a14e37f3362c082bc460895ffd0b949c636b8ea
This commit is contained in:
Caolán McNamara 2014-06-23 13:36:37 +01:00
parent caf2d6543a
commit 43b0a48596
3 changed files with 24 additions and 33 deletions

View File

@ -24,12 +24,6 @@
#define HID_SDGRAPHICVIEWSHELL "SD_HID_SDGRAPHICVIEWSHELL" #define HID_SDGRAPHICVIEWSHELL "SD_HID_SDGRAPHICVIEWSHELL"
#define HID_SDOUTLINEVIEWSHELL "SD_HID_SDOUTLINEVIEWSHELL" #define HID_SDOUTLINEVIEWSHELL "SD_HID_SDOUTLINEVIEWSHELL"
#define HID_SD_OPTIONS_SNAP "SD_HID_SD_OPTIONS_SNAP" #define HID_SD_OPTIONS_SNAP "SD_HID_SD_OPTIONS_SNAP"
#define HID_SD_AUTOPILOT_PAGE1 "SD_HID_SD_AUTOPILOT_PAGE1"
#define HID_SD_AUTOPILOT_PAGE2 "SD_HID_SD_AUTOPILOT_PAGE2"
#define HID_SD_AUTOPILOT_PAGE3 "SD_HID_SD_AUTOPILOT_PAGE3"
#define HID_SD_AUTOPILOT_PAGE4 "SD_HID_SD_AUTOPILOT_PAGE4"
#define HID_SD_AUTOPILOT_PAGE5 "SD_HID_SD_AUTOPILOT_PAGE5"
#define HID_SD_AUTOPILOT_PAGE6 "SD_HID_SD_AUTOPILOT_PAGE6"
#define HID_SD_CBX_ONLYSELECTED "SD_HID_SD_CBX_ONLYSELECTED" #define HID_SD_CBX_ONLYSELECTED "SD_HID_SD_CBX_ONLYSELECTED"
#define HID_SD_BTN_FILTERDIALOG "SD_HID_SD_BTN_FILTERDIALOG" #define HID_SD_BTN_FILTERDIALOG "SD_HID_SD_BTN_FILTERDIALOG"
#define HID_SD_BTN_PAGE "SD_HID_SD_BTN_PAGE" #define HID_SD_BTN_PAGE "SD_HID_SD_BTN_PAGE"
@ -87,11 +81,6 @@
#define HID_FM_CTL_SELECTION "SD_HID_FM_CTL_SELECTION" #define HID_FM_CTL_SELECTION "SD_HID_FM_CTL_SELECTION"
#define HID_SD_AUTOPILOT_REGION "SD_HID_SD_AUTOPILOT_REGION"
#define HID_SD_AUTOPILOT_TEMPLATES "SD_HID_SD_AUTOPILOT_TEMPLATES"
#define HID_SD_AUTOPILOT_OPEN "SD_HID_SD_AUTOPILOT_OPEN"
#define HID_SD_AUTOPILOT_PAGETEMPLATES "SD_HID_SD_AUTOPILOT_PAGETEMPLATES"
#define HID_SD_TABBAR_PAGES "SD_HID_SD_TABBAR_PAGES" #define HID_SD_TABBAR_PAGES "SD_HID_SD_TABBAR_PAGES"
#define HID_SD_TABBAR_LAYERS "SD_HID_SD_TABBAR_LAYERS" #define HID_SD_TABBAR_LAYERS "SD_HID_SD_TABBAR_LAYERS"

View File

@ -77,17 +77,6 @@ using namespace ::sd;
using ::std::vector; using ::std::vector;
const char* PageHelpIds[] =
{
HID_SD_AUTOPILOT_PAGE1,
HID_SD_AUTOPILOT_PAGE2,
HID_SD_AUTOPILOT_PAGE3,
HID_SD_AUTOPILOT_PAGE4,
HID_SD_AUTOPILOT_PAGE5
};
class PasswordEntry class PasswordEntry
{ {
public: public:
@ -260,6 +249,9 @@ public:
DECL_LINK( SelectEffectHdl, void* ); DECL_LINK( SelectEffectHdl, void* );
DECL_LINK( OpenButtonHdl, Button * ); DECL_LINK( OpenButtonHdl, Button * );
OUString maCreateStr;
OUString maOpenStr;
// Common // Common
Assistent maAssistentFunc; Assistent maAssistentFunc;
CheckBox* mpPreviewFlag; CheckBox* mpPreviewFlag;
@ -353,6 +345,8 @@ AssistentDlgImpl::AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink,
assDlg->get(mpStartWithFlag, "startWithCheckbutton"); assDlg->get(mpStartWithFlag, "startWithCheckbutton");
assDlg->get(mpLastPageButton, "lastPageButton"); assDlg->get(mpLastPageButton, "lastPageButton");
assDlg->get(mpFinishButton, "finishButton"); assDlg->get(mpFinishButton, "finishButton");
maCreateStr = mpFinishButton->GetText();
maOpenStr = assDlg->get<PushButton>("open")->GetText();
assDlg->get(mpPreview, "previewControl"); assDlg->get(mpPreview, "previewControl");
assDlg->get(mpPage1235, "page1235Box"); assDlg->get(mpPage1235, "page1235Box");
mpNextPageButton = new NextButton( pWindow ); mpNextPageButton = new NextButton( pWindow );
@ -894,9 +888,9 @@ void AssistentDlgImpl::SetStartType( StartType eType )
mpPage1OpenPB->Show(eType == ST_OPEN); mpPage1OpenPB->Show(eType == ST_OPEN);
if (eType == ST_OPEN) if (eType == ST_OPEN)
mpFinishButton->SetText("~Open"); mpFinishButton->SetText(maOpenStr);
else else
mpFinishButton->SetText("~Create"); mpFinishButton->SetText(maCreateStr);
} }
StartType AssistentDlgImpl::GetStartType() StartType AssistentDlgImpl::GetStartType()
@ -1036,13 +1030,6 @@ void AssistentDlgImpl::ChangePage()
mpNextPageButton->Enable(!maAssistentFunc.IsLastPage()); mpNextPageButton->Enable(!maAssistentFunc.IsLastPage());
mpLastPageButton->Enable(!maAssistentFunc.IsFirstPage()); mpLastPageButton->Enable(!maAssistentFunc.IsFirstPage());
sal_uInt16 nPage = (sal_uInt16)maAssistentFunc.GetCurrentPage();
if( mpWindow )
{
mpWindow->SetHelpId( PageHelpIds[nPage-1]);
}
UpdatePage(); UpdatePage();
if( mpNextPageButton->IsEnabled() ) if( mpNextPageButton->IsEnabled() )
@ -1819,7 +1806,6 @@ AssistentDlg::~AssistentDlg()
delete mpImpl; delete mpImpl;
} }
SfxObjectShellLock AssistentDlg::GetDocument() SfxObjectShellLock AssistentDlg::GetDocument()
{ {
return mpImpl->GetDocument(); return mpImpl->GetDocument();

View File

@ -113,6 +113,22 @@
<property name="position">5</property> <property name="position">5</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkButton" id="open">
<property name="label">gtk-open</property>
<property name="use_action_appearance">False</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="no_show_all">True</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">6</property>
</packing>
</child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@ -1227,6 +1243,7 @@
<action-widget response="0">nextPage1Button</action-widget> <action-widget response="0">nextPage1Button</action-widget>
<action-widget response="0">nextPage2Button</action-widget> <action-widget response="0">nextPage2Button</action-widget>
<action-widget response="0">finishButton</action-widget> <action-widget response="0">finishButton</action-widget>
<action-widget response="0">open</action-widget>
</action-widgets> </action-widgets>
</object> </object>
<object class="GtkSizeGroup" id="sizegroup1"> <object class="GtkSizeGroup" id="sizegroup1">
@ -1249,5 +1266,4 @@
<widget name="page4Frame"/> <widget name="page4Frame"/>
</widgets> </widgets>
</object> </object>
<object class="GtkSizeGroup" id="sizegroup1"/>
</interface> </interface>