Kaydet (Commit) 302cb1d0 authored tarafından Caolán McNamara's avatar Caolán McNamara

QueryBox DLG_CHANGE_AUTH_ENTRY -> MessageDialog + string

Change-Id: I836381f710e4f36b977284f6996bb135fc328049
üst 5660bc11
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#define STR_AUTOMARK_TYPE (RC_INDEX_BEGIN + 17) #define STR_AUTOMARK_TYPE (RC_INDEX_BEGIN + 17)
#define STR_FILE_NOT_FOUND (RC_INDEX_BEGIN + 18) #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_USER_DEFINED_INDEX (RC_INDEX_BEGIN + 20)
#define STR_NOSORTKEY (RC_INDEX_BEGIN + 21) #define STR_NOSORTKEY (RC_INDEX_BEGIN + 21)
#define STR_NO_CHAR_STYLE (RC_INDEX_BEGIN + 22) #define STR_NO_CHAR_STYLE (RC_INDEX_BEGIN + 22)
......
...@@ -32,11 +32,9 @@ String STR_IDXMRK_INSERT ...@@ -32,11 +32,9 @@ String STR_IDXMRK_INSERT
Text [ en-US ] = "Insert Index Entry" ; Text [ en-US ] = "Insert Index Entry" ;
}; };
QueryBox DLG_CHANGE_AUTH_ENTRY String STR_QUERY_CHANGE_AUTH_ENTRY
{ {
BUTTONS = WB_YES_NO ; Text [ en-US ] = "The document already contains the bibliography entry but with different data. Do you want to adjust the existing entries?";
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?";
}; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <com/sun/star/util/SearchFlags.hpp> #include <com/sun/star/util/SearchFlags.hpp>
#include <svl/stritem.hxx> #include <svl/stritem.hxx>
#include <vcl/layout.hxx> #include <vcl/layout.hxx>
#include <vcl/msgbox.hxx>
#include <sfx2/dispatch.hxx> #include <sfx2/dispatch.hxx>
#include <svl/eitem.hxx> #include <svl/eitem.hxx>
#include <unotools/textsearch.hxx> #include <unotools/textsearch.hxx>
...@@ -1205,7 +1204,7 @@ IMPL_LINK_NOARG(SwAuthorMarkPane, InsertHdl) ...@@ -1205,7 +1204,7 @@ IMPL_LINK_NOARG(SwAuthorMarkPane, InsertHdl)
bDifferent |= m_sFields[i] != pEntry->GetAuthorField((ToxAuthorityField)i); bDifferent |= m_sFields[i] != pEntry->GetAuthorField((ToxAuthorityField)i);
if(bDifferent) 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()) if(RET_YES != aQuery.Execute())
return 0; return 0;
} }
......
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