Kaydet (Commit) 7a64fe91 authored tarafından Caolán McNamara's avatar Caolán McNamara

convert readonly info to .ui

Change-Id: Ib0c7f47ceae35e7255f6ed6fbbcc12e59e0bd956
Reviewed-on: https://gerrit.libreoffice.org/5728Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 07aefbe3
......@@ -112,6 +112,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/indexentry \
sw/uiconfig/swriter/ui/inputfielddialog \
sw/uiconfig/swriter/ui/indentpage \
sw/uiconfig/swriter/ui/inforeadonlydialog \
sw/uiconfig/swriter/ui/insertautotextdialog \
sw/uiconfig/swriter/ui/insertbookmark \
sw/uiconfig/swriter/ui/insertbreak \
......
......@@ -36,6 +36,7 @@
#include <vcl/svapp.hxx>
#include <vcl/help.hxx>
#include <vcl/layout.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/gradient.hxx>
#include <vcl/scrbar.hxx>
......@@ -203,7 +204,8 @@ void SidebarTxtControl::KeyInput( const KeyEvent& rKeyEvt )
}
else
{
InfoBox( this, SW_RES( MSG_READONLY_CONTENT )).Execute();
MessageDialog(this, "InfoReadonlyDialog",
"modules/swriter/ui/inforeadonlydialog.ui").Execute();
}
}
if (bDone)
......
......@@ -79,8 +79,6 @@
#define STR_DELETE_FOOTER (RC_DOCVW_BEGIN + 26)
#define STR_FORMAT_FOOTER (RC_DOCVW_BEGIN + 27)
#define MSG_READONLY_CONTENT (RC_DOCVW_BEGIN + 1)
#define DOCVW_ACT_END STR_SMARTTAG_CLICK
#if DOCVW_ACT_END > RC_DOCVW_END
......
......@@ -248,11 +248,6 @@ String STR_FTNNOTE
Text [ en-US ] = "Footnote: " ;
};
InfoBox MSG_READONLY_CONTENT
{
Message [ en-US ] = "Readonly content cannot be changed.\nNo modifications will be accepted";
};
String STR_TABLE_COL_ADJUST
{
Text [ en-US ] = "Adjust table column" ;
......
......@@ -1832,7 +1832,8 @@ KEYINPUT_CHECKTABLE_INSDEL:
}
else
{
InfoBox( this, SW_RES( MSG_READONLY_CONTENT )).Execute();
MessageDialog(this, "InfoReadonlyDialog",
"modules/swriter/ui/inforeadonlydialog.ui").Execute();
eKeyState = KS_End;
}
break;
......@@ -1992,7 +1993,8 @@ KEYINPUT_CHECKTABLE_INSDEL:
}
else
{
InfoBox( this, SW_RES( MSG_READONLY_CONTENT )).Execute();
MessageDialog(this, "InfoReadonlyDialog",
"modules/swriter/ui/inforeadonlydialog.ui").Execute();
eKeyState = KS_End;
}
break;
......@@ -2397,7 +2399,8 @@ KEYINPUT_CHECKTABLE_INSDEL:
}
else
{
InfoBox( this, SW_RES( MSG_READONLY_CONTENT )).Execute();
MessageDialog(this, "InfoReadonlyDialog",
"modules/swriter/ui/inforeadonlydialog.ui").Execute();
eKeyState = KS_End;
}
break;
......
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkMessageDialog" id="InfoReadonlyDialog">
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="title" translatable="yes">Readonly Content</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
<property name="buttons">ok</property>
<property name="text" translatable="yes">Readonly content cannot be changed.</property>
<property name="secondary_text" translatable="yes">No modifications will be accepted.</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">end</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>
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