summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2014-07-23 16:38:34 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-07-24 15:08:11 +0000
commitbe97f2f553bfb1a584646ad75bd932e686ba80c2 (patch)
tree971ed8ebc6dd0d90371e9e0360ed1c418d7e34a6 /sw/source/ui
parent27b7152609a336c95c86fe31eb075e1955f4818a (diff)
DLG_MAILMERGEWIZARD conversion to .ui
Conflicts: sw/inc/dbui.hrc Change-Id: Id224fd3a99abe8ec497a38c40b099dd7ae917890 Reviewed-on: https://gerrit.libreoffice.org/10494 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/dbui/mailmergewizard.cxx5
-rw-r--r--sw/source/ui/dbui/mailmergewizard.hrc31
-rw-r--r--sw/source/ui/dbui/mailmergewizard.src92
3 files changed, 46 insertions, 82 deletions
diff --git a/sw/source/ui/dbui/mailmergewizard.cxx b/sw/source/ui/dbui/mailmergewizard.cxx
index 59fdfad0f6d5..b816633ede75 100644
--- a/sw/source/ui/dbui/mailmergewizard.cxx
+++ b/sw/source/ui/dbui/mailmergewizard.cxx
@@ -36,15 +36,13 @@
#include <vcl/msgbox.hxx>
#include <helpid.h>
-#include <mailmergewizard.hrc>
using namespace svt;
using namespace ::com::sun::star;
SwMailMergeWizard::SwMailMergeWizard(SwView& rView, SwMailMergeConfigItem& rItem) :
RoadmapWizard(&rView.GetViewFrame()->GetWindow(),
- SW_RES(DLG_MAILMERGEWIZARD),
- WZB_NEXT|WZB_PREVIOUS|WZB_FINISH|WZB_CANCEL|WZB_HELP),
+ static_cast<sal_uInt32>(WZB_NEXT|WZB_PREVIOUS|WZB_FINISH|WZB_CANCEL|WZB_HELP)),
m_pSwView(&rView),
m_bDocumentLoad( false ),
m_rConfigItem(rItem),
@@ -60,7 +58,6 @@ SwMailMergeWizard::SwMailMergeWizard(SwView& rView, SwMailMergeConfigItem& rItem
m_sFinish( SW_RES( ST_FINISH )),
m_nRestartPage( MM_DOCUMENTSELECTPAGE )
{
- FreeResource();
ShowButtonFixedLine(true);
defaultButton(WZB_NEXT);
enableButtons(WZB_FINISH, false);
diff --git a/sw/source/ui/dbui/mailmergewizard.hrc b/sw/source/ui/dbui/mailmergewizard.hrc
deleted file mode 100644
index ecae68597aff..000000000000
--- a/sw/source/ui/dbui/mailmergewizard.hrc
+++ /dev/null
@@ -1,31 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define ST_STARTING 1
-#define ST_DOCUMETNTYPE 2
-#define ST_ADDRESSBLOCK 3
-#define ST_GREETINGSLINE 4
-#define ST_LAYOUT 5
-#define ST_PREPAREMERGE 6
-#define ST_MERGE 7
-#define ST_OUTPUT 8
-#define ST_FINISH 9
-#define ST_ADDRESSLIST 10
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/dbui/mailmergewizard.src b/sw/source/ui/dbui/mailmergewizard.src
index 5194fbd0edbd..367657e13634 100644
--- a/sw/source/ui/dbui/mailmergewizard.src
+++ b/sw/source/ui/dbui/mailmergewizard.src
@@ -17,58 +17,56 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <mailmergewizard.hrc>
#include <dbui.hrc>
-ModalDialog DLG_MAILMERGEWIZARD
+String ST_STARTING
{
- HelpID = "sw:ModalDialog:DLG_MAILMERGEWIZARD";
- OutputSize = TRUE ;
- SVLook = TRUE ;
- Text [ en-US ] = "Mail Merge Wizard" ;
- Moveable = TRUE ;
+ Text [ en-US ] = "Select starting document";
+};
- String ST_STARTING
- {
- Text [ en-US ] = "Select starting document";
- };
- String ST_DOCUMETNTYPE
- {
- Text [ en-US ] = "Select document type";
- };
- String ST_ADDRESSBLOCK
- {
- Text [ en-US ] = "Insert address block";
- };
- String ST_ADDRESSLIST
- {
- Text [ en-US ] = "Select address list";
- };
- String ST_GREETINGSLINE
- {
- Text [ en-US ] = "Create salutation";
- };
- String ST_LAYOUT
- {
- Text [ en-US ] = "Adjust layout";
- };
- String ST_PREPAREMERGE
- {
- Text [ en-US ] = "Edit document";
- };
- String ST_MERGE
- {
- Text [ en-US ] = "Personalize document";
- };
- String ST_OUTPUT
- {
- Text [ en-US ] = "Save, print or send";
- };
- String ST_FINISH
- {
- Text [ en-US ] = "~Finish";
- };
+String ST_DOCUMETNTYPE
+{
+ Text [ en-US ] = "Select document type";
+};
+String ST_ADDRESSBLOCK
+{
+ Text [ en-US ] = "Insert address block";
+};
+
+String ST_ADDRESSLIST
+{
+ Text [ en-US ] = "Select address list";
+};
+
+String ST_GREETINGSLINE
+{
+ Text [ en-US ] = "Create salutation";
+};
+
+String ST_LAYOUT
+{
+ Text [ en-US ] = "Adjust layout";
+};
+
+String ST_PREPAREMERGE
+{
+ Text [ en-US ] = "Edit document";
+};
+
+String ST_MERGE
+{
+ Text [ en-US ] = "Personalize document";
+};
+
+String ST_OUTPUT
+{
+ Text [ en-US ] = "Save, print or send";
+};
+
+String ST_FINISH
+{
+ Text [ en-US ] = "~Finish";
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */