Kaydet (Commit) be97f2f5 authored tarafından Szymon Kłos's avatar Szymon Kłos Kaydeden (comit) Caolán McNamara

DLG_MAILMERGEWIZARD conversion to .ui

Conflicts:
	sw/inc/dbui.hrc

Change-Id: Id224fd3a99abe8ec497a38c40b099dd7ae917890
Reviewed-on: https://gerrit.libreoffice.org/10494Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 27b71526
...@@ -22,10 +22,6 @@ ...@@ -22,10 +22,6 @@
#include "rcid.hrc" #include "rcid.hrc"
// Dialoge --------------------------------------------------------------------
#define DLG_MAILMERGEWIZARD (RC_DBUI_BEGIN + 3)
#define DLG_MAILMERGECHILD (RC_DBUI_BEGIN + 26) #define DLG_MAILMERGECHILD (RC_DBUI_BEGIN + 26)
// Strings ------------------------------------------------------------------ // Strings ------------------------------------------------------------------
...@@ -79,9 +75,19 @@ ...@@ -79,9 +75,19 @@
#define ST_COMPLETED (RC_DBUI_BEGIN + 49) #define ST_COMPLETED (RC_DBUI_BEGIN + 49)
#define ST_FAILED (RC_DBUI_BEGIN + 50) #define ST_FAILED (RC_DBUI_BEGIN + 50)
#define ST_TERMINATEQUERY (RC_DBUI_BEGIN + 51) #define ST_TERMINATEQUERY (RC_DBUI_BEGIN + 51)
#define ST_STARTING (RC_DBUI_BEGIN + 52)
#define ST_DOCUMETNTYPE (RC_DBUI_BEGIN + 53)
#define ST_ADDRESSBLOCK (RC_DBUI_BEGIN + 54)
#define ST_GREETINGSLINE (RC_DBUI_BEGIN + 55)
#define ST_LAYOUT (RC_DBUI_BEGIN + 56)
#define ST_PREPAREMERGE (RC_DBUI_BEGIN + 57)
#define ST_MERGE (RC_DBUI_BEGIN + 58)
#define ST_OUTPUT (RC_DBUI_BEGIN + 59)
#define ST_FINISH (RC_DBUI_BEGIN + 60)
#define ST_ADDRESSLIST (RC_DBUI_BEGIN + 61)
// ImageList // ImageList
#define ILIST (RC_DBUI_BEGIN + 52) #define ILIST (RC_DBUI_BEGIN + 62)
// Elements ----------------------------------------------------------------- // Elements -----------------------------------------------------------------
#define MM_PART_TITLE 0 #define MM_PART_TITLE 0
......
...@@ -36,15 +36,13 @@ ...@@ -36,15 +36,13 @@
#include <vcl/msgbox.hxx> #include <vcl/msgbox.hxx>
#include <helpid.h> #include <helpid.h>
#include <mailmergewizard.hrc>
using namespace svt; using namespace svt;
using namespace ::com::sun::star; using namespace ::com::sun::star;
SwMailMergeWizard::SwMailMergeWizard(SwView& rView, SwMailMergeConfigItem& rItem) : SwMailMergeWizard::SwMailMergeWizard(SwView& rView, SwMailMergeConfigItem& rItem) :
RoadmapWizard(&rView.GetViewFrame()->GetWindow(), RoadmapWizard(&rView.GetViewFrame()->GetWindow(),
SW_RES(DLG_MAILMERGEWIZARD), static_cast<sal_uInt32>(WZB_NEXT|WZB_PREVIOUS|WZB_FINISH|WZB_CANCEL|WZB_HELP)),
WZB_NEXT|WZB_PREVIOUS|WZB_FINISH|WZB_CANCEL|WZB_HELP),
m_pSwView(&rView), m_pSwView(&rView),
m_bDocumentLoad( false ), m_bDocumentLoad( false ),
m_rConfigItem(rItem), m_rConfigItem(rItem),
...@@ -60,7 +58,6 @@ SwMailMergeWizard::SwMailMergeWizard(SwView& rView, SwMailMergeConfigItem& rItem ...@@ -60,7 +58,6 @@ SwMailMergeWizard::SwMailMergeWizard(SwView& rView, SwMailMergeConfigItem& rItem
m_sFinish( SW_RES( ST_FINISH )), m_sFinish( SW_RES( ST_FINISH )),
m_nRestartPage( MM_DOCUMENTSELECTPAGE ) m_nRestartPage( MM_DOCUMENTSELECTPAGE )
{ {
FreeResource();
ShowButtonFixedLine(true); ShowButtonFixedLine(true);
defaultButton(WZB_NEXT); defaultButton(WZB_NEXT);
enableButtons(WZB_FINISH, false); enableButtons(WZB_FINISH, false);
......
/* -*- 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: */
...@@ -17,58 +17,56 @@ ...@@ -17,58 +17,56 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <mailmergewizard.hrc>
#include <dbui.hrc> #include <dbui.hrc>
ModalDialog DLG_MAILMERGEWIZARD String ST_STARTING
{ {
HelpID = "sw:ModalDialog:DLG_MAILMERGEWIZARD"; Text [ en-US ] = "Select starting document";
OutputSize = TRUE ; };
SVLook = TRUE ;
Text [ en-US ] = "Mail Merge Wizard" ;
Moveable = TRUE ;
String ST_STARTING String ST_DOCUMETNTYPE
{ {
Text [ en-US ] = "Select starting document"; Text [ en-US ] = "Select document type";
}; };
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_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: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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