summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-25 15:20:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-25 16:45:29 +0100
commit98ef8894dd01665eda2c303543c366a15a553af7 (patch)
treec69314048cfec81d92aaee6d43ff5e6c141ebfa9 /filter
parent57488f2a10ad7a40bfed6e02024aea8d3d1bf493 (diff)
convert RID_PDF_WARNPDFAPASSWORD to MessageDialog + string
Change-Id: I40da6ede705bf8e56adee7a45c56cb60cf42d166
Diffstat (limited to 'filter')
-rw-r--r--filter/source/pdf/impdialog.cxx6
-rw-r--r--filter/source/pdf/impdialog.hrc2
-rw-r--r--filter/source/pdf/impdialog.src5
3 files changed, 6 insertions, 7 deletions
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index 9149a8a3add6..ba74e6f93d00 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -21,9 +21,9 @@
#include "impdialog.hxx"
#include "impdialog.hrc"
-#include "vcl/svapp.hxx"
-#include "vcl/msgbox.hxx"
+#include <vcl/layout.hxx>
#include <vcl/settings.hxx>
+#include <vcl/svapp.hxx>
#include "sfx2/passwd.hxx"
#include "svtools/miscopt.hxx"
@@ -814,7 +814,7 @@ IMPL_LINK_NOARG(ImpPDFTabGeneralPage, ToggleExportPDFAHdl)
// if a password was set, inform the user that this will not be used in PDF/A case
if( mpCbPDFA1b->IsChecked() && pSecPage && pSecPage->hasPassword() )
{
- WarningBox aBox( this, PDFFilterResId( RID_PDF_WARNPDFAPASSWORD ) );
+ MessageDialog aBox(this, PDFFilterResId(STR_WARN_PASSWORD_PDFA), VCL_MESSAGE_WARNING);
aBox.Execute();
}
diff --git a/filter/source/pdf/impdialog.hrc b/filter/source/pdf/impdialog.hrc
index 0927cb00d654..d55d59087fc2 100644
--- a/filter/source/pdf/impdialog.hrc
+++ b/filter/source/pdf/impdialog.hrc
@@ -19,7 +19,7 @@
#include <filter.hrc>
-#define RID_PDF_WARNPDFAPASSWORD (RID_PDF_DIALOG_START + 6)
+#define STR_WARN_PASSWORD_PDFA (RID_PDF_DIALOG_START + 6)
//strings for PDF security, user password management
#define STR_PDF_EXPORT_UDPWD (RID_PDF_DIALOG_START + 7)
diff --git a/filter/source/pdf/impdialog.src b/filter/source/pdf/impdialog.src
index 32d81a490486..8bb05129f328 100644
--- a/filter/source/pdf/impdialog.src
+++ b/filter/source/pdf/impdialog.src
@@ -33,10 +33,9 @@ String STR_PDF_EXPORT_ODPWD
Text[ en-US ] = "Set permission password";
};
-WarningBox RID_PDF_WARNPDFAPASSWORD
+String STR_WARN_PASSWORD_PDFA
{
- Title[en-US] = "PDF/A Export";
- Message[ en-US ] = "PDF/A does not allow encryption. The exported PDF file will not be password protected.";
+ Text [ en-US ] = "PDF/A does not allow encryption. The exported PDF file will not be password protected.";
};
String STR_WARN_TRANSP_PDFA_SHORT