Kaydet (Commit) 43b0a485 authored tarafından Caolán McNamara's avatar Caolán McNamara

can't have bare english strings in .cxx

Change-Id: I1a14e37f3362c082bc460895ffd0b949c636b8ea
üst caf2d654
...@@ -24,12 +24,6 @@ ...@@ -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 @@ ...@@ -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"
......
...@@ -77,17 +77,6 @@ using namespace ::sd; ...@@ -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: ...@@ -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, ...@@ -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 ) ...@@ -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() ...@@ -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() ...@@ -1819,7 +1806,6 @@ AssistentDlg::~AssistentDlg()
delete mpImpl; delete mpImpl;
} }
SfxObjectShellLock AssistentDlg::GetDocument() SfxObjectShellLock AssistentDlg::GetDocument()
{ {
return mpImpl->GetDocument(); return mpImpl->GetDocument();
......
...@@ -113,6 +113,22 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -1249,5 +1266,4 @@
<widget name="page4Frame"/> <widget name="page4Frame"/>
</widgets> </widgets>
</object> </object>
<object class="GtkSizeGroup" id="sizegroup1"/>
</interface> </interface>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment