Kaydet (Commit) 533b91f8 authored tarafından Manal Alhassoun's avatar Manal Alhassoun Kaydeden (comit) Caolán McNamara

convert delete hatch querybox to .ui

Change-Id: If550ac8ad58ea7ff05650692d1a506c5088d05e2
Reviewed-on: https://gerrit.libreoffice.org/6708Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 530f091d
......@@ -106,6 +106,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
cui/uiconfig/ui/querychangelineenddialog \
cui/uiconfig/ui/querydeletechartcolordialog \
cui/uiconfig/ui/querydeletedictionarydialog \
cui/uiconfig/ui/querydeletehatchdialog \
cui/uiconfig/ui/querydeletelineenddialog \
cui/uiconfig/ui/querydeletelinestyledialog \
cui/uiconfig/ui/queryduplicatedialog \
......
......@@ -86,7 +86,6 @@
#define RID_SVXSTR_ASK_CHANGE_LINESTYLE (RID_SVX_START + 177)
#define RID_SVXSTR_DESC_HATCH (RID_SVX_START + 232)
#define RID_SVXSTR_ASK_DEL_HATCH (RID_SVX_START + 234)
#define RID_SVXSTR_ASK_CHANGE_HATCH (RID_SVX_START + 235)
#define RID_SVXSTR_CHANGE (RID_SVX_START + 181)
#define RID_SVXSTR_ADD (RID_SVX_START + 182)
......
......@@ -59,10 +59,6 @@ String RID_SVXSTR_DESC_HATCH
{
Text [ en-US ] = "Please enter a name for the hatching:" ;
};
String RID_SVXSTR_ASK_DEL_HATCH
{
Text [ en-US ] = "Do you want to delete the hatching?" ;
};
String RID_SVXSTR_ASK_CHANGE_HATCH
{
Text [ en-US ] = "The hatching type was modified but not saved. \nModify the selected hatching type or add a new hatching type." ;
......
......@@ -626,8 +626,7 @@ IMPL_LINK_NOARG(SvxHatchTabPage, ClickDeleteHdl_Impl)
if( nPos != LISTBOX_ENTRY_NOTFOUND )
{
QueryBox aQueryBox( GetParentDialog(), WinBits( WB_YES_NO | WB_DEF_NO ),
OUString( CUI_RES( RID_SVXSTR_ASK_DEL_HATCH ) ) );
MessageDialog aQueryBox( GetParentDialog(),"AskDelHatchDialog","cui/ui/querydeletehatchdialog.ui");
if( aQueryBox.Execute() == RET_YES )
{
......
......@@ -5,6 +5,7 @@
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="title" translatable="yes">Save arrowhead ?</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
<property name="message_type">warning</property>
......
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkMessageDialog" id="AskDelHatchDialog">
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="title" translatable="yes">Delete hatching?</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
<property name="message_type">question</property>
<property name="buttons">yes-no</property>
<property name="text" translatable="yes">Do you want to delete the hatching?</property>
<child internal-child="vbox">
<object class="GtkBox" id="messagedialog-vbox">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">24</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="messagedialog-action_area">
<property name="can_focus">False</property>
<property name="layout_style">center</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
</object>
</child>
</object>
</interface>
......@@ -5,6 +5,7 @@
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="title" translatable="yes">Delete line style?</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
<property name="message_type">question</property>
......
......@@ -5,6 +5,7 @@
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="title" translatable="yes">Duplicate name</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
<property name="message_type">warning</property>
......
......@@ -5,6 +5,7 @@
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="title" translatable="yes">No loaded file</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
<property name="message_type">error</property>
......
......@@ -5,6 +5,7 @@
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="title" translatable="yes">No saved file</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
<property name="message_type">error</property>
......
......@@ -5,6 +5,7 @@
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="title" translatable="yes">Save list?</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
<property name="message_type">warning</property>
......
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