summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorManal Alhassoun <malhassoun@kacst.edu.sa>2013-11-18 13:42:05 +0300
committerCaolán McNamara <caolanm@redhat.com>2013-11-20 03:50:29 -0600
commit533b91f87be3147a9a6bdb2e1b20165aa4921e37 (patch)
tree2323d0874a57d42555af0eb1fbf6cc68e04eb56c /cui
parent530f091d2166c3bc1c0abefaf45e3994ef7d8c66 (diff)
convert delete hatch querybox to .ui
Change-Id: If550ac8ad58ea7ff05650692d1a506c5088d05e2 Reviewed-on: https://gerrit.libreoffice.org/6708 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/UIConfig_cui.mk1
-rw-r--r--cui/source/inc/cuires.hrc1
-rw-r--r--cui/source/tabpages/strings.src4
-rw-r--r--cui/source/tabpages/tphatch.cxx3
-rw-r--r--cui/uiconfig/ui/querychangelineenddialog.ui1
-rw-r--r--cui/uiconfig/ui/querydeletehatchdialog.ui34
-rw-r--r--cui/uiconfig/ui/querydeletelinestyledialog.ui1
-rw-r--r--cui/uiconfig/ui/queryduplicatedialog.ui1
-rw-r--r--cui/uiconfig/ui/querynoloadedfiledialog.ui1
-rw-r--r--cui/uiconfig/ui/querynosavefiledialog.ui1
-rw-r--r--cui/uiconfig/ui/querysavelistdialog.ui1
11 files changed, 42 insertions, 7 deletions
diff --git a/cui/UIConfig_cui.mk b/cui/UIConfig_cui.mk
index 830689bb165f..474189ab380a 100644
--- a/cui/UIConfig_cui.mk
+++ b/cui/UIConfig_cui.mk
@@ -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 \
diff --git a/cui/source/inc/cuires.hrc b/cui/source/inc/cuires.hrc
index 4a887c292435..99fdaa25de62 100644
--- a/cui/source/inc/cuires.hrc
+++ b/cui/source/inc/cuires.hrc
@@ -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)
diff --git a/cui/source/tabpages/strings.src b/cui/source/tabpages/strings.src
index 6d9d5243f7c2..db8c177411b6 100644
--- a/cui/source/tabpages/strings.src
+++ b/cui/source/tabpages/strings.src
@@ -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." ;
diff --git a/cui/source/tabpages/tphatch.cxx b/cui/source/tabpages/tphatch.cxx
index d6c4d60575b2..6ebda18f8025 100644
--- a/cui/source/tabpages/tphatch.cxx
+++ b/cui/source/tabpages/tphatch.cxx
@@ -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 )
{
diff --git a/cui/uiconfig/ui/querychangelineenddialog.ui b/cui/uiconfig/ui/querychangelineenddialog.ui
index 397afaf0cd61..8712336eaa47 100644
--- a/cui/uiconfig/ui/querychangelineenddialog.ui
+++ b/cui/uiconfig/ui/querychangelineenddialog.ui
@@ -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>
diff --git a/cui/uiconfig/ui/querydeletehatchdialog.ui b/cui/uiconfig/ui/querydeletehatchdialog.ui
new file mode 100644
index 000000000000..cd8020942ab2
--- /dev/null
+++ b/cui/uiconfig/ui/querydeletehatchdialog.ui
@@ -0,0 +1,34 @@
+<?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>
diff --git a/cui/uiconfig/ui/querydeletelinestyledialog.ui b/cui/uiconfig/ui/querydeletelinestyledialog.ui
index 3a4bf2b1bee1..9aea902379ea 100644
--- a/cui/uiconfig/ui/querydeletelinestyledialog.ui
+++ b/cui/uiconfig/ui/querydeletelinestyledialog.ui
@@ -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>
diff --git a/cui/uiconfig/ui/queryduplicatedialog.ui b/cui/uiconfig/ui/queryduplicatedialog.ui
index 79905ef266fa..89bc7c3bd426 100644
--- a/cui/uiconfig/ui/queryduplicatedialog.ui
+++ b/cui/uiconfig/ui/queryduplicatedialog.ui
@@ -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>
diff --git a/cui/uiconfig/ui/querynoloadedfiledialog.ui b/cui/uiconfig/ui/querynoloadedfiledialog.ui
index 35975775c6ca..c715093f431b 100644
--- a/cui/uiconfig/ui/querynoloadedfiledialog.ui
+++ b/cui/uiconfig/ui/querynoloadedfiledialog.ui
@@ -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>
diff --git a/cui/uiconfig/ui/querynosavefiledialog.ui b/cui/uiconfig/ui/querynosavefiledialog.ui
index d6565f164fa6..9fed973eeca2 100644
--- a/cui/uiconfig/ui/querynosavefiledialog.ui
+++ b/cui/uiconfig/ui/querynosavefiledialog.ui
@@ -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>
diff --git a/cui/uiconfig/ui/querysavelistdialog.ui b/cui/uiconfig/ui/querysavelistdialog.ui
index 7c47ea49703d..5bd2c3d38021 100644
--- a/cui/uiconfig/ui/querysavelistdialog.ui
+++ b/cui/uiconfig/ui/querysavelistdialog.ui
@@ -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>