diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-01 10:42:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-01 11:54:31 +0000 |
commit | 7a64fe91db5fb231b3d980fb5d41fcdc87f86794 (patch) | |
tree | 5f4b6697db77c3fb0c42ae2fed15df97e324946e /sw/source | |
parent | 07aefbe310cad43bf9a71ba073486cddd7e062f2 (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')
-rw-r--r-- | sw/source/ui/docvw/SidebarTxtControl.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/docvw/docvw.hrc | 2 | ||||
-rw-r--r-- | sw/source/ui/docvw/docvw.src | 5 | ||||
-rw-r--r-- | sw/source/ui/docvw/edtwin.cxx | 9 |
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; |