diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-22 12:46:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-22 14:23:56 +0100 |
commit | 302cb1d031af68aa13820eae2265f46199433ab9 (patch) | |
tree | e4bfd40bc1b5412f0c1bf2e8c7a59de48446d17d /sw | |
parent | 5660bc11b0e80114ccf1ea9daa19c70e35b2d0e3 (diff) |
QueryBox DLG_CHANGE_AUTH_ENTRY -> MessageDialog + string
Change-Id: I836381f710e4f36b977284f6996bb135fc328049
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/index.hrc | 2 | ||||
-rw-r--r-- | sw/source/ui/index/idxmrk.src | 6 | ||||
-rw-r--r-- | sw/source/ui/index/swuiidxmrk.cxx | 3 |
3 files changed, 4 insertions, 7 deletions
diff --git a/sw/inc/index.hrc b/sw/inc/index.hrc index 192e3c108d26..aa4b9842c1b5 100644 --- a/sw/inc/index.hrc +++ b/sw/inc/index.hrc @@ -39,7 +39,7 @@ #define STR_AUTOMARK_TYPE (RC_INDEX_BEGIN + 17) #define STR_FILE_NOT_FOUND (RC_INDEX_BEGIN + 18) -#define DLG_CHANGE_AUTH_ENTRY (RC_INDEX_BEGIN + 19) +#define STR_QUERY_CHANGE_AUTH_ENTRY (RC_INDEX_BEGIN + 19) #define STR_USER_DEFINED_INDEX (RC_INDEX_BEGIN + 20) #define STR_NOSORTKEY (RC_INDEX_BEGIN + 21) #define STR_NO_CHAR_STYLE (RC_INDEX_BEGIN + 22) diff --git a/sw/source/ui/index/idxmrk.src b/sw/source/ui/index/idxmrk.src index 072fa46390c7..0519dbecc979 100644 --- a/sw/source/ui/index/idxmrk.src +++ b/sw/source/ui/index/idxmrk.src @@ -32,11 +32,9 @@ String STR_IDXMRK_INSERT Text [ en-US ] = "Insert Index Entry" ; }; -QueryBox DLG_CHANGE_AUTH_ENTRY +String STR_QUERY_CHANGE_AUTH_ENTRY { - BUTTONS = WB_YES_NO ; - DEFBUTTON = WB_DEF_NO ; - Message [ en-US ] = "The document already contains the bibliography entry but with different data. Do you want to adjust the existing entries?"; + Text [ en-US ] = "The document already contains the bibliography entry but with different data. Do you want to adjust the existing entries?"; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx index 7d302395f980..eed951a970da 100644 --- a/sw/source/ui/index/swuiidxmrk.cxx +++ b/sw/source/ui/index/swuiidxmrk.cxx @@ -31,7 +31,6 @@ #include <com/sun/star/util/SearchFlags.hpp> #include <svl/stritem.hxx> #include <vcl/layout.hxx> -#include <vcl/msgbox.hxx> #include <sfx2/dispatch.hxx> #include <svl/eitem.hxx> #include <unotools/textsearch.hxx> @@ -1205,7 +1204,7 @@ IMPL_LINK_NOARG(SwAuthorMarkPane, InsertHdl) bDifferent |= m_sFields[i] != pEntry->GetAuthorField((ToxAuthorityField)i); if(bDifferent) { - QueryBox aQuery(&m_rDialog, SW_RES(DLG_CHANGE_AUTH_ENTRY)); + MessageDialog aQuery(&m_rDialog, SW_RES(STR_QUERY_CHANGE_AUTH_ENTRY), VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO); if(RET_YES != aQuery.Execute()) return 0; } |