summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-01 10:42:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-01 11:54:31 +0000
commit7a64fe91db5fb231b3d980fb5d41fcdc87f86794 (patch)
tree5f4b6697db77c3fb0c42ae2fed15df97e324946e /sw/source/ui
parent07aefbe310cad43bf9a71ba073486cddd7e062f2 (diff)
convert readonly info to .ui
Change-Id: Ib0c7f47ceae35e7255f6ed6fbbcc12e59e0bd956 Reviewed-on: https://gerrit.libreoffice.org/5728 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/docvw/SidebarTxtControl.cxx4
-rw-r--r--sw/source/ui/docvw/docvw.hrc2
-rw-r--r--sw/source/ui/docvw/docvw.src5
-rw-r--r--sw/source/ui/docvw/edtwin.cxx9
4 files changed, 9 insertions, 11 deletions
diff --git a/sw/source/ui/docvw/SidebarTxtControl.cxx b/sw/source/ui/docvw/SidebarTxtControl.cxx
index efa8fb886a67..4db10d0d6541 100644
--- a/sw/source/ui/docvw/SidebarTxtControl.cxx
+++ b/sw/source/ui/docvw/SidebarTxtControl.cxx
@@ -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)
diff --git a/sw/source/ui/docvw/docvw.hrc b/sw/source/ui/docvw/docvw.hrc
index fd6cd8ec41a1..7f5e5b6e9786 100644
--- a/sw/source/ui/docvw/docvw.hrc
+++ b/sw/source/ui/docvw/docvw.hrc
@@ -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
diff --git a/sw/source/ui/docvw/docvw.src b/sw/source/ui/docvw/docvw.src
index 130750e2325e..0451ad1443fc 100644
--- a/sw/source/ui/docvw/docvw.src
+++ b/sw/source/ui/docvw/docvw.src
@@ -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" ;
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 3321d288674b..a49e789ff35b 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -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;