Files
libreoffice/sw/source/ui/dbui/mmoutputpage.cxx

1278 lines
47 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
re-base on ALv2 code. Includes: Patches contributed by Oliver-Rainer Wittmann sw34bf06: #i117783# - Writer's implementation of XPagePrintable - apply print settings to new printing routines http://svn.apache.org/viewvc?view=revision&revision=1172115 sw34bf06: #o12311627# use <rtl_random> methods to create unique ids for list styles and list ids http://svn.apache.org/viewvc?view=revision&revision=1172112 sw34bf06 #i114725#,#i115828# - method <SwDoc::ClearDoc()> - clear list structures completely http://svn.apache.org/viewvc?view=revision&revision=1172122 i#118572 - remove ui string and help content regarding usage of Java Mail in Writer's Mail Merge as Java Mail is not used. http://svn.apache.org/viewvc?view=revision&revision=1197035 Patches contributed by Mathias Bauer cws mba34issues01: #i117718#: provide filter name in case storage of medium does not allow to detect one http://svn.apache.org/viewvc?view=revision&revision=1172350 cws mba34issues01: #i117721#: directly provide parameters retrieved from SfxMedium http://svn.apache.org/viewvc?view=revision&revision=1172353 gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 cws mba34issues01: #i117723#: convert assertion into trace http://svn.apache.org/viewvc?view=revision&revision=1172355 cws mba34issues01: #i117699#: keep layout alive until swdoc dies http://svn.apache.org/viewvc?view=revision&revision=1172362 cws mba34issues01: #i117943#: missing color attributes in RTF clipboard http://svn.apache.org/viewvc?view=revision&revision=1172363 Patch contributed by Henning Brinkmann imported patch i#103878 http://svn.apache.org/viewvc?view=revision&revision=1172109 Patches contributed by Michael Stahl sw34bf06: #i117955#: WW8 export: disable storing of section breaks in endnotes http://svn.apache.org/viewvc?view=revision&revision=1172119 Patch contributed by imacat Fixed the Asian language work count. http://svn.apache.org/viewvc?view=revision&revision=1241345 Patch contributed by Pedro Giffuni i#20878 - Add comment with BZ issue for reference. http://svn.apache.org/viewvc?view=revision&revision=1244517 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 add writerperfect dependency.
2011-03-31 10:05:04 +02:00
/*
* 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 .
*/
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
#include <mmoutputpage.hxx>
#include <mailmergewizard.hxx>
#include <mmconfigitem.hxx>
#include <mailmergechildwindow.hxx>
#include <mailconfigpage.hxx>
#include <swmessdialog.hxx>
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
#include <cmdid.h>
#include <swtypes.hxx>
#include <view.hxx>
#include <wrtsh.hxx>
#include <docsh.hxx>
#include <IDocumentDeviceAccess.hxx>
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
#include <hintids.hxx>
#include <editeng/scripttypeitem.hxx>
#include <editeng/langitem.hxx>
#include <svl/itemset.hxx>
#include <svl/stritem.hxx>
#include <svtools/ehdl.hxx>
#include <svtools/sfxecode.hxx>
#include <vcl/layout.hxx>
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
#include <vcl/msgbox.hxx>
#include <sfx2/dinfdlg.hxx>
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
#include <sfx2/printer.hxx>
#include <sfx2/fcontnr.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/docfile.hxx>
#include <tools/urlobj.hxx>
#include <svl/urihelper.hxx>
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
#include <vcl/print.hxx>
#include <unotools/tempfile.hxx>
#include <osl/file.hxx>
#include <mmgreetingspage.hxx>
#include <com/sun/star/frame/XStorable.hpp>
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
#include <com/sun/star/sdb/XColumn.hpp>
#include <com/sun/star/task/ErrorCodeIOException.hpp>
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
#include <dbmgr.hxx>
#include <swunohelper.hxx>
#include <osl/mutex.hxx>
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
#include <shellio.hxx>
2010-01-13 22:25:07 +01:00
#include <svtools/htmlcfg.hxx>
#include <sfx2/event.hxx>
#include <swevent.hxx>
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
#include <mmoutputpage.hrc>
2008-10-01 06:46:01 +00:00
#include <dbui.hxx>
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
#include <dbui.hrc>
#include <helpid.h>
#include <sfx2/app.hxx>
2008-10-01 06:46:01 +00:00
#include <statstr.hrc>
#include <unomid.h>
#include <comphelper/string.hxx>
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
using namespace svt;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
static String lcl_GetExtensionForDocType(sal_uLong nDocType)
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
OUString sExtension;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
switch( nDocType )
{
case MM_DOCTYPE_OOO : sExtension = OUString( "odt" ); break;
case MM_DOCTYPE_PDF : sExtension = OUString( "pdf" ); break;
case MM_DOCTYPE_WORD: sExtension = OUString( "doc" ); break;
case MM_DOCTYPE_HTML: sExtension = OUString( "html" ); break;
case MM_DOCTYPE_TEXT: sExtension = OUString( "txt" ); break;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
return sExtension;
}
static OUString lcl_GetColumnValueOf(const OUString& rColumn, Reference < container::XNameAccess>& rxColAccess )
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
OUString sRet;
try
{
if (rxColAccess->hasByName(rColumn))
{
Any aCol = rxColAccess->getByName(rColumn);
Reference< sdb::XColumn > xColumn;
aCol >>= xColumn;
if(xColumn.is())
sRet = xColumn->getString();
}
}
catch (const uno::Exception&)
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
}
return sRet;
}
class SwSaveWarningBox_Impl : public SwMessageAndEditDialog
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
DECL_LINK( ModifyHdl, Edit*);
public:
SwSaveWarningBox_Impl(Window* pParent, const OUString& rFileName);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
OUString GetFileName() const
{
return m_pEdit->GetText();
}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
};
class SwSendQueryBox_Impl : public SwMessageAndEditDialog
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
bool bIsEmptyAllowed;
DECL_LINK( ModifyHdl, Edit*);
public:
SwSendQueryBox_Impl(Window* pParent, const OString& rID,
const OUString& rUIXMLDescription);
void SetValue(const OUString& rSet)
{
m_pEdit->SetText(rSet);
ModifyHdl(m_pEdit);
}
OUString GetValue() const
{
return m_pEdit->GetText();
}
void SetIsEmptyTextAllowed(bool bSet)
{
bIsEmptyAllowed = bSet;
ModifyHdl(m_pEdit);
}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
};
SwSaveWarningBox_Impl::SwSaveWarningBox_Impl(Window* pParent, const OUString& rFileName)
: SwMessageAndEditDialog(pParent, "AlreadyExistsDialog",
"modules/swriter/ui/alreadyexistsdialog.ui")
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
m_pEdit->SetText(rFileName);
m_pEdit->SetModifyHdl(LINK(this, SwSaveWarningBox_Impl, ModifyHdl));
INetURLObject aTmp(rFileName);
m_pPrimaryMessage->SetText(m_pPrimaryMessage->GetText().replaceAll("%1", aTmp.getName(
INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET)));
ModifyHdl(m_pEdit);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
IMPL_LINK( SwSaveWarningBox_Impl, ModifyHdl, Edit*, pEdit)
{
m_pOKPB->Enable(!pEdit->GetText().isEmpty());
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
return 0;
}
SwSendQueryBox_Impl::SwSendQueryBox_Impl(Window* pParent, const OString& rID,
const OUString& rUIXMLDescription)
: SwMessageAndEditDialog(pParent, rID, rUIXMLDescription)
, bIsEmptyAllowed(true)
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
m_pImageIM->SetImage(QueryBox::GetStandardImage());
m_pEdit->SetModifyHdl(LINK(this, SwSendQueryBox_Impl, ModifyHdl));
ModifyHdl(m_pEdit);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
IMPL_LINK( SwSendQueryBox_Impl, ModifyHdl, Edit*, pEdit)
{
m_pOKPB->Enable(bIsEmptyAllowed || !pEdit->GetText().isEmpty());
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
return 0;
}
class SwCopyToDialog : public SfxModalDialog
{
Edit* m_pCCED;
Edit* m_pBCCED;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
public:
SwCopyToDialog(Window* pParent)
: SfxModalDialog(pParent, "CCDialog",
"modules/swriter/ui/ccdialog.ui")
{
get(m_pCCED, "cc");
get(m_pBCCED, "bcc");
}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
OUString GetCC() {return m_pCCED->GetText();}
void SetCC(const OUString& rSet) {m_pCCED->SetText(rSet);}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
OUString GetBCC() {return m_pBCCED->GetText();}
void SetBCC(const OUString& rSet) {m_pBCCED->SetText(rSet);}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
};
SwMailMergeOutputPage::SwMailMergeOutputPage( SwMailMergeWizard* _pParent) :
svt::OWizardPage( _pParent, SW_RES(DLG_MM_OUTPUT_PAGE)),
#ifdef _MSC_VER
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
#pragma warning (disable : 4355)
#endif
m_aHeaderFI(this, SW_RES( FI_HEADER ) ),
m_aOptionsFI(this, SW_RES( FI_OPTIONS ) ),
m_aSaveStartDocRB(this, SW_RES( RB_SAVESTARTDOC ) ),
m_aSaveMergedDocRB(this, SW_RES( RB_SAVEMERGEDDOC ) ),
m_aPrintRB(this, SW_RES( RB_PRINT ) ),
m_aSendMailRB(this, SW_RES( RB_SENDMAIL ) ),
m_aSeparatorFL(this, SW_RES( FL_SEPARATOR ) ),
m_aSaveStartDocPB(this, SW_RES( PB_SAVESTARTDOC ) ),
m_aSaveAsOneRB(this, SW_RES( RB_SAVEASONE ) ),
m_aSaveIndividualRB(this, SW_RES( RB_SAVEINDIVIDUAL ) ),
m_aPrintAllRB(this, SW_RES( RB_PRINTALL ) ),
m_aSendAllRB( this, SW_RES( RB_SENDALL ) ),
m_aFromRB(this, SW_RES( RB_FROM ) ),
m_aFromNF(this, SW_RES( NF_FROM ) ),
m_aToFT(this, SW_RES( FT_TO ) ),
m_aToNF(this, SW_RES( NF_TO ) ),
m_aSaveNowPB(this, SW_RES( PB_SAVENOW ) ),
m_aPrinterFT(this, SW_RES( FT_PRINT ) ),
m_aPrinterLB(this, SW_RES( LB_PRINT ) ),
m_aPrinterSettingsPB(this, SW_RES( PB_PRINTERSETTINGS ) ),
m_aPrintNowPB(this, SW_RES( PB_PRINTNOW ) ),
m_aMailToFT( this, SW_RES( FT_MAILTO ) ),
m_aMailToLB( this, SW_RES( LB_MAILTO ) ),
m_aCopyToPB( this, SW_RES( PB_COPYTO ) ),
m_aSubjectFT( this, SW_RES( FT_SUBJECT ) ),
m_aSubjectED( this, SW_RES( ED_SUBJECT ) ),
m_aSendAsFT( this, SW_RES( FT_SENDAS ) ),
m_aSendAsLB( this, SW_RES( LB_SENDAS ) ),
m_aAttachmentFT( this, SW_RES( FT_ATTACHMENT ) ),
m_aAttachmentED( this, SW_RES( ED_ATTACHMENT ) ),
m_aSendAsPB( this, SW_RES( PB_SENDAS ) ),
m_aSendDocumentsPB( this, SW_RES( PB_SENDDOCUMENTS ) ),
m_sSaveStartST(SW_RES( ST_SAVESTART ) ),
m_sSaveMergedST(SW_RES( ST_SAVEMERGED ) ),
m_sPrintST(SW_RES( ST_PRINT ) ),
m_sSendMailST(SW_RES( ST_SENDMAIL ) ),
m_sDefaultAttachmentST(SW_RES( ST_DEFAULTATTACHMENT )),
m_sNoSubjectST(SW_RES( ST_NOSUBJECT )),
m_sConfigureMail(SW_RES( ST_CONFIGUREMAIL)),
#ifdef _MSC_VER
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
#pragma warning (default : 4355)
#endif
2008-10-01 06:46:01 +00:00
m_bCancelSaving( false ),
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
m_pWizard(_pParent),
m_pTempPrinter( 0 )
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
FreeResource();
SwMailMergeConfigItem& rConfigItem = m_pWizard->GetConfigItem();
// #i51949# hide e-Mail option if e-Mail is not supported
if(!rConfigItem.IsMailAvailable())
m_aSendMailRB.Hide();
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
Link aLink = LINK(this, SwMailMergeOutputPage, OutputTypeHdl_Impl);
m_aSaveStartDocRB.SetClickHdl(aLink);
m_aSaveMergedDocRB.SetClickHdl(aLink);
m_aPrintRB.SetClickHdl(aLink);
m_aSendMailRB.SetClickHdl(aLink);
m_aSaveStartDocRB.Check();
m_aPrintAllRB.Check();
m_aSaveAsOneRB.Check();
m_aSendAllRB.Check();
m_aSaveStartDocPB.SetClickHdl(LINK(this, SwMailMergeOutputPage, SaveStartHdl_Impl));
m_aSaveNowPB.SetClickHdl(LINK(this, SwMailMergeOutputPage, SaveOutputHdl_Impl));
m_aPrinterLB.SetSelectHdl(LINK(this, SwMailMergeOutputPage, PrinterChangeHdl_Impl));
m_aPrintNowPB.SetClickHdl(LINK(this, SwMailMergeOutputPage, PrintHdl_Impl));
m_aPrinterSettingsPB.SetClickHdl(LINK(this, SwMailMergeOutputPage, PrinterSetupHdl_Impl));
m_aSendAsPB.SetClickHdl(LINK(this, SwMailMergeOutputPage, SendAsHdl_Impl)),
m_aSendDocumentsPB.SetClickHdl(LINK(this, SwMailMergeOutputPage, SendDocumentsHdl_Impl)),
m_aSendAsLB.SetSelectHdl(LINK(this, SwMailMergeOutputPage, SendTypeHdl_Impl));
m_nFromToRBPos = m_aFromRB.GetPosPixel().Y();
m_nFromToFTPos = m_aToFT.GetPosPixel().Y();
m_nFromToNFPos = m_aFromNF.GetPosPixel().Y();
m_nRBOffset = m_nFromToRBPos - m_aSaveIndividualRB.GetPosPixel().Y();
OutputTypeHdl_Impl(&m_aSaveStartDocRB);
m_aCopyToPB.SetClickHdl(LINK(this, SwMailMergeOutputPage, CopyToHdl_Impl));
m_aSaveAsOneRB.SetClickHdl(LINK(this, SwMailMergeOutputPage, DocumentSelectionHdl_Impl));
m_aSaveIndividualRB.SetClickHdl(LINK(this, SwMailMergeOutputPage, DocumentSelectionHdl_Impl));
m_aPrintAllRB.SetClickHdl(LINK(this, SwMailMergeOutputPage, DocumentSelectionHdl_Impl));
m_aSendAllRB.SetClickHdl(LINK(this, SwMailMergeOutputPage, DocumentSelectionHdl_Impl));
m_aFromRB.SetClickHdl(LINK(this, SwMailMergeOutputPage, DocumentSelectionHdl_Impl));
//#i63267# printing might be disabled
m_aPrintRB.Enable(!Application::GetSettings().GetMiscSettings().GetDisablePrinting());
}
SwMailMergeOutputPage::~SwMailMergeOutputPage()
{
delete m_pTempPrinter;
}
void SwMailMergeOutputPage::ActivatePage()
{
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
//fill printer ListBox
const std::vector<OUString>& rPrinters = Printer::GetPrinterQueues();
unsigned int nCount = rPrinters.size();
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if ( nCount )
{
for( unsigned int i = 0; i < nCount; i++ )
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
m_aPrinterLB.InsertEntry( rPrinters[i] );
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
}
SwMailMergeConfigItem& rConfigItem = m_pWizard->GetConfigItem();
SwView* pTargetView = rConfigItem.GetTargetView();
2010-10-20 15:36:15 +01:00
OSL_ENSURE(pTargetView, "no target view exists");
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(pTargetView)
{
SfxPrinter* pPrinter = pTargetView->GetWrtShell().getIDocumentDeviceAccess()->getPrinter( true );
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
m_aPrinterLB.SelectEntry( pPrinter->GetName() );
m_aToNF.SetValue( rConfigItem.GetMergedDocumentCount() );
m_aToNF.SetMax( rConfigItem.GetMergedDocumentCount() );
}
m_aPrinterLB.SelectEntry( rConfigItem.GetSelectedPrinter() );
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
SwView* pSourceView = rConfigItem.GetSourceView();
2010-10-20 15:36:15 +01:00
OSL_ENSURE(pSourceView, "no source view exists");
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(pSourceView)
{
SwDocShell* pDocShell = pSourceView->GetDocShell();
if ( pDocShell->HasName() )
{
INetURLObject aTmp( pDocShell->GetMedium()->GetName() );
m_aAttachmentED.SetText(aTmp.getName(
INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET ));
}
}
}
bool SwMailMergeOutputPage::canAdvance() const
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
return false;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
IMPL_LINK(SwMailMergeOutputPage, OutputTypeHdl_Impl, RadioButton*, pButton)
{
Control* aControls[] =
{
&m_aSaveStartDocPB,
&m_aSaveAsOneRB, &m_aSaveIndividualRB,
&m_aFromRB, &m_aFromNF, &m_aToFT, &m_aToNF,
&m_aSaveNowPB,
&m_aPrinterFT, &m_aPrinterLB, &m_aPrinterSettingsPB, &m_aPrintAllRB,
&m_aPrintNowPB,
&m_aMailToFT, &m_aMailToLB, &m_aCopyToPB,
&m_aSubjectFT, &m_aSubjectED,
&m_aSendAsFT, &m_aSendAsLB, &m_aSendAsPB,
&m_aAttachmentFT, &m_aAttachmentED,
&m_aSendAllRB, &m_aSendDocumentsPB,
0
};
SetUpdateMode(sal_True);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
Control** pControl = aControls;
do
{
(*pControl)->Show(sal_False);
} while(*(++pControl));
if(&m_aSaveStartDocRB == pButton)
{
m_aSaveStartDocPB.Show();
m_aSeparatorFL.SetText(m_sSaveStartST);
}
else if(&m_aSaveMergedDocRB == pButton)
{
Control* aSaveMergedControls[] =
{
&m_aSaveAsOneRB, &m_aSaveIndividualRB,
&m_aFromRB, &m_aFromNF, &m_aToFT, &m_aToNF,
&m_aSaveNowPB,
0
};
Control** pSaveMergeControl = aSaveMergedControls;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
do
{
(*pSaveMergeControl)->Show(sal_True);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
} while(*(++pSaveMergeControl));
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(!m_aFromRB.IsChecked() && !m_aSaveAsOneRB.IsChecked())
{
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
m_aSaveIndividualRB.Check();
}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
m_aSeparatorFL.SetText(m_sSaveMergedST);
//reposition the from/to line
if(m_aFromRB.GetPosPixel().Y() != m_nFromToRBPos)
{
Point aPos(m_aFromRB.GetPosPixel()); aPos.Y() = m_nFromToRBPos; m_aFromRB.SetPosPixel(aPos);
aPos = m_aToFT.GetPosPixel(); aPos.Y() = m_nFromToFTPos; m_aToFT.SetPosPixel(aPos);
aPos = m_aFromNF.GetPosPixel(); aPos.Y() = m_nFromToNFPos; m_aFromNF.SetPosPixel(aPos);
aPos = m_aToNF.GetPosPixel(); aPos.Y() = m_nFromToNFPos; m_aToNF.SetPosPixel(aPos);
}
}
else if(&m_aPrintRB == pButton)
{
Control* aPrintControls[] =
{
&m_aFromRB, &m_aFromNF, &m_aToFT, &m_aToNF,
&m_aPrinterFT, &m_aPrinterLB, &m_aPrinterSettingsPB, &m_aPrintAllRB,
&m_aPrintNowPB,
0
};
Control** pPrinterControl = aPrintControls;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
do
{
(*pPrinterControl)->Show(sal_True);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
} while(*(++pPrinterControl));
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(!m_aFromRB.IsChecked())
m_aPrintAllRB.Check();
m_aSeparatorFL.SetText(m_sPrintST);
//reposition the from/to line
long nRB_FT_Offset = m_nFromToRBPos - m_nFromToFTPos;
long nNewRBXPos = m_aPrintAllRB.GetPosPixel().Y() + m_nRBOffset;
Point aPos(m_aFromRB.GetPosPixel());aPos.Y() = nNewRBXPos; m_aFromRB.SetPosPixel(aPos);
aPos = m_aToFT.GetPosPixel(); aPos.Y() = nNewRBXPos + nRB_FT_Offset; m_aToFT.SetPosPixel(aPos);
aPos = m_aFromNF.GetPosPixel(); aPos.Y() = nNewRBXPos + nRB_FT_Offset; m_aFromNF.SetPosPixel(aPos);
aPos = m_aToNF.GetPosPixel(); aPos.Y() = nNewRBXPos + nRB_FT_Offset; m_aToNF.SetPosPixel(aPos);
}
2010-11-25 08:42:25 +01:00
else
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
Control* aMailControls[] =
{
&m_aFromRB, &m_aFromNF, &m_aToFT, &m_aToNF,
&m_aMailToFT, &m_aMailToLB, &m_aCopyToPB,
&m_aSubjectFT, &m_aSubjectED,
&m_aSendAsFT, &m_aSendAsLB, &m_aSendAsPB,
&m_aAttachmentFT, &m_aAttachmentED,
&m_aSendAllRB, &m_aSendDocumentsPB, 0
};
Control** pMailControl = aMailControls;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
do
{
(*pMailControl)->Show(sal_True);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
} while(*(++pMailControl));
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(!m_aFromRB.IsChecked())
m_aSendAllRB.Check();
if(m_aAttachmentED.GetText().isEmpty())
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
String sAttach( m_sDefaultAttachmentST );
sAttach += '.';
sAttach += lcl_GetExtensionForDocType(
(sal_uLong)m_aSendAsLB.GetEntryData(m_aSendAsLB.GetSelectEntryPos()));
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
m_aAttachmentED.SetText( sAttach );
}
m_aSeparatorFL.SetText(m_sSendMailST);
//fill mail address ListBox
if(!m_aMailToLB.GetEntryCount())
{
SwMailMergeConfigItem& rConfigItem = m_pWizard->GetConfigItem();
//select first column
uno::Reference< sdbcx::XColumnsSupplier > xColsSupp( rConfigItem.GetResultSet(), uno::UNO_QUERY);
//get the name of the actual columns
uno::Reference < container::XNameAccess> xColAccess = xColsSupp.is() ? xColsSupp->getColumns() : 0;
uno::Sequence< OUString > aFields;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(xColAccess.is())
aFields = xColAccess->getElementNames();
const OUString* pFields = aFields.getConstArray();
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
for(sal_Int32 nField = 0; nField < aFields.getLength(); ++nField)
m_aMailToLB.InsertEntry(pFields[nField]);
m_aMailToLB.SelectEntryPos(0);
// then select the right one - may not be available
const ResStringArray& rHeaders = rConfigItem.GetDefaultAddressHeaders();
String sEMailColumn = rHeaders.GetString( MM_PART_E_MAIL );
Sequence< OUString> aAssignment =
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
rConfigItem.GetColumnAssignment( rConfigItem.GetCurrentDBData() );
if(aAssignment.getLength() > MM_PART_E_MAIL && !aAssignment[MM_PART_E_MAIL].isEmpty())
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
sEMailColumn = aAssignment[MM_PART_E_MAIL];
m_aMailToLB.SelectEntry(sEMailColumn);
// HTML format pre-selected
m_aSendAsLB.SelectEntryPos(3);
SendTypeHdl_Impl(&m_aSendAsLB);
}
if(m_aSendAllRB.GetPosPixel().Y() + m_nRBOffset != m_aFromRB.GetPosPixel().Y())
{
long nRB_FT_Offset = m_nFromToRBPos - m_nFromToFTPos;
long nNewRBXPos = m_aSendAllRB.GetPosPixel().Y() + m_nRBOffset;
Point aPos(m_aFromRB.GetPosPixel());aPos.Y() = nNewRBXPos; m_aFromRB.SetPosPixel(aPos);
aPos = m_aToFT.GetPosPixel(); aPos.Y() = nNewRBXPos + nRB_FT_Offset; m_aToFT.SetPosPixel(aPos);
aPos = m_aFromNF.GetPosPixel(); aPos.Y() = nNewRBXPos + nRB_FT_Offset; m_aFromNF.SetPosPixel(aPos);
aPos = m_aToNF.GetPosPixel(); aPos.Y() = nNewRBXPos + nRB_FT_Offset; m_aToNF.SetPosPixel(aPos);
}
}
m_aFromRB.GetClickHdl().Call(m_aFromRB.IsChecked() ? &m_aFromRB : 0);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
SetUpdateMode(sal_False);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
return 0;
}
IMPL_LINK(SwMailMergeOutputPage, DocumentSelectionHdl_Impl, RadioButton*, pButton)
{
sal_Bool bEnableFromTo = pButton == &m_aFromRB;
m_aFromNF.Enable(bEnableFromTo);
m_aToFT.Enable(bEnableFromTo);
m_aToNF.Enable(bEnableFromTo);
return 0;
}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
IMPL_LINK(SwMailMergeOutputPage, CopyToHdl_Impl, PushButton*, pButton)
{
SwCopyToDialog* pDlg = new SwCopyToDialog(pButton);
pDlg->SetCC(m_sCC );
pDlg->SetBCC(m_sBCC);
if(RET_OK == pDlg->Execute())
{
m_sCC = pDlg->GetCC() ;
m_sBCC = pDlg->GetBCC();
}
delete pDlg;
return 0;
}
IMPL_LINK(SwMailMergeOutputPage, SaveStartHdl_Impl, PushButton*, pButton)
{
SwMailMergeConfigItem& rConfigItem = m_pWizard->GetConfigItem();
SwView* pSourceView = rConfigItem.GetSourceView();
2010-10-20 15:36:15 +01:00
OSL_ENSURE( pSourceView, "source view missing");
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(pSourceView)
{
SfxViewFrame* pSourceViewFrm = pSourceView->GetViewFrame();
uno::Reference< frame::XFrame > xFrame =
pSourceViewFrm->GetFrame().GetFrameInterface();
xFrame->getContainerWindow()->setVisible(sal_True);
pSourceViewFrm->GetDispatcher()->Execute(SID_SAVEDOC, SFX_CALLMODE_SYNCHRON);
xFrame->getContainerWindow()->setVisible(sal_False);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
SwDocShell* pDocShell = pSourceView->GetDocShell();
//if the document has been saved it's URL has to be stored for
// later use and it can be closed now
if(pDocShell->HasName() && !pDocShell->IsModified())
{
INetURLObject aURL = pDocShell->GetMedium()->GetURLObject();
//update the attachment name
if(m_aAttachmentED.GetText().isEmpty())
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
if ( pDocShell->HasName() )
{
m_aAttachmentED.SetText(aURL.getName(
INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET ));
}
}
rConfigItem.AddSavedDocument(
aURL.GetMainURL(INetURLObject::DECODE_TO_IURI));
pButton->Enable(sal_False);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
m_pWizard->enableButtons(WZB_FINISH, sal_True);
pButton->Enable(sal_False);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
}
return 0;
}
2008-10-01 06:46:01 +00:00
IMPL_LINK_NOARG(SwMailMergeOutputPage, SaveCancelHdl_Impl)
2008-10-01 06:46:01 +00:00
{
m_bCancelSaving = true;
return 0;
}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
IMPL_LINK(SwMailMergeOutputPage, SaveOutputHdl_Impl, PushButton*, pButton)
{
SwMailMergeConfigItem& rConfigItem = m_pWizard->GetConfigItem();
SwView* pTargetView = rConfigItem.GetTargetView();
2010-10-20 15:36:15 +01:00
OSL_ENSURE(pTargetView, "no target view exists");
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(!pTargetView)
return 0;
if(m_aSaveAsOneRB.IsChecked())
{
OUString sFilter;
const OUString sPath = SwMailMergeHelper::CallSaveAsDialog(sFilter);
if (sPath.isEmpty())
return 0;
uno::Sequence< beans::PropertyValue > aValues(1);
beans::PropertyValue* pValues = aValues.getArray();
2012-12-21 12:00:43 +01:00
pValues[0].Name = "FilterName";
pValues[0].Value <<= sFilter;
uno::Reference< frame::XStorable > xStore( pTargetView->GetDocShell()->GetModel(), uno::UNO_QUERY);
sal_uInt32 nErrorCode = ERRCODE_NONE;
try
{
xStore->storeToURL( sPath, aValues );
}
2011-07-26 23:49:42 +01:00
catch (const task::ErrorCodeIOException& rErrorEx)
{
2011-07-26 23:49:42 +01:00
nErrorCode = (sal_uInt32)rErrorEx.ErrCode;
}
2011-07-26 23:49:42 +01:00
catch (const Exception&)
{
nErrorCode = ERRCODE_IO_GENERAL;
}
if( nErrorCode != ERRCODE_NONE )
{
SfxErrorContext aEc(ERRCTX_SFX_SAVEASDOC, pTargetView->GetDocShell()->GetTitle());
ErrorHandler::HandleError( nErrorCode );
}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
else
{
sal_uInt32 nBegin = 0;
sal_uInt32 nEnd = 0;
if(m_aSaveIndividualRB.IsChecked())
{
nBegin = 0;
nEnd = rConfigItem.GetMergedDocumentCount();
}
else
{
nBegin = static_cast< sal_Int32 >(m_aFromNF.GetValue() - 1);
nEnd = static_cast< sal_Int32 >(m_aToNF.GetValue());
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(nEnd > rConfigItem.GetMergedDocumentCount())
nEnd = rConfigItem.GetMergedDocumentCount();
}
OUString sFilter;
OUString sPath = SwMailMergeHelper::CallSaveAsDialog(sFilter);
if (sPath.isEmpty())
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
return 0;
String sTargetTempURL = URIHelper::SmartRel2Abs(
INetURLObject(), utl::TempFile::CreateTempName(),
URIHelper::GetMaybeFileHdl());
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
const SfxFilter *pSfxFlt = SwIoSystem::GetFilterOfFormat(
OUString( FILTER_XML ),
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
SwDocShell::Factory().GetFilterContainer() );
uno::Sequence< beans::PropertyValue > aValues(1);
beans::PropertyValue* pValues = aValues.getArray();
2012-12-21 12:00:43 +01:00
pValues[0].Name = "FilterName";
pValues[0].Value <<= OUString(pSfxFlt->GetFilterName());
uno::Reference< frame::XStorable > xStore( pTargetView->GetDocShell()->GetModel(), uno::UNO_QUERY);
sal_uInt32 nErrorCode = ERRCODE_NONE;
try
{
xStore->storeToURL( sTargetTempURL, aValues );
}
2011-07-26 23:49:42 +01:00
catch (const task::ErrorCodeIOException& rErrorEx)
{
2011-07-26 23:49:42 +01:00
nErrorCode = (sal_uInt32)rErrorEx.ErrCode;
}
2011-07-26 23:49:42 +01:00
catch (const Exception&)
{
nErrorCode = ERRCODE_IO_GENERAL;
}
if( nErrorCode != ERRCODE_NONE )
{
SfxErrorContext aEc(ERRCTX_SFX_SAVEASDOC, pTargetView->GetDocShell()->GetTitle());
ErrorHandler::HandleError( nErrorCode );
}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
2008-10-01 06:46:01 +00:00
SwView* pSourceView = rConfigItem.GetSourceView();
PrintMonitor aSaveMonitor(this, PrintMonitor::MONITOR_TYPE_SAVE);
aSaveMonitor.m_pDocName->SetText(pSourceView->GetDocShell()->GetTitle(22));
aSaveMonitor.m_pCancel->SetClickHdl(LINK(this, SwMailMergeOutputPage, SaveCancelHdl_Impl));
aSaveMonitor.m_pPrinter->SetText( INetURLObject( sPath ).getFSysPath( INetURLObject::FSYS_DETECT ) );
2008-10-01 06:46:01 +00:00
m_bCancelSaving = false;
aSaveMonitor.Show();
m_pWizard->enableButtons(WZB_CANCEL, sal_False);
for(sal_uInt32 nDoc = nBegin; nDoc < nEnd && !m_bCancelSaving; ++nDoc)
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
SwDocMergeInfo& rInfo = rConfigItem.GetDocumentMergeInfo(nDoc);
INetURLObject aURL(sPath);
OUString sExtension = aURL.getExtension();
if (sExtension.isEmpty())
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
sExtension = comphelper::string::getToken(pSfxFlt->GetWildcard().getGlob(), 1, '.');
sPath += "." + sExtension;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
2008-10-01 06:46:01 +00:00
String sStat(SW_RES(STR_STATSTR_LETTER));
sStat += ' ';
sStat += OUString::number( nDoc );
aSaveMonitor.m_pPrintInfo->SetText(sStat);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
//now extract a document from the target document
// the shell will be closed at the end, but it is more safe to use SfxObjectShellLock here
SfxObjectShellLock xTempDocShell( new SwDocShell( SFX_CREATE_MODE_STANDARD ) );
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
xTempDocShell->DoInitNew( 0 );
SfxViewFrame* pTempFrame = SfxViewFrame::LoadHiddenDocument( *xTempDocShell, 0 );
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
SwView* pTempView = static_cast<SwView*>( pTempFrame->GetViewShell() );
pTargetView->GetWrtShell().StartAction();
SwgReaderOption aOpt;
aOpt.SetTxtFmts( sal_True );
aOpt.SetFrmFmts( sal_True );
aOpt.SetPageDescs( sal_True );
aOpt.SetNumRules( sal_True );
aOpt.SetMerge( sal_False );
pTempView->GetDocShell()->LoadStylesFromFile(
sTargetTempURL, aOpt, sal_True );
pTargetView->GetWrtShell().PastePages(pTempView->GetWrtShell(),
(sal_uInt16)rInfo.nStartPageInTarget, (sal_uInt16)rInfo.nEndPageInTarget );
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
pTargetView->GetWrtShell().EndAction();
//then save it
String sOutPath = aURL.GetMainURL(INetURLObject::DECODE_TO_IURI);
String sCounter = OUString('_');
sCounter += OUString::number(nDoc);
sOutPath.Insert(sCounter, sOutPath.Len() - sExtension.getLength() - 1);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
while(true)
{
//time for other slots is needed
for(sal_Int16 r = 0; r < 10; ++r)
Application::Reschedule();
bool bFailed = false;
try
{
pValues[0].Value <<= sFilter;
uno::Reference< frame::XStorable > xTempStore( xTempDocShell->GetModel(), uno::UNO_QUERY);
xTempStore->storeToURL( sOutPath, aValues );
}
2011-07-26 23:49:42 +01:00
catch (const uno::Exception&)
{
bFailed = true;
}
if(bFailed)
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
SwSaveWarningBox_Impl aWarning( pButton, sOutPath );
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(RET_OK == aWarning.Execute())
sOutPath = aWarning.GetFileName();
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
else
{
xTempDocShell->DoClose();
return 0;
}
}
else
{
xTempDocShell->DoClose();
break;
}
}
}
::osl::File::remove( sTargetTempURL );
}
2008-10-01 06:46:01 +00:00
m_pWizard->enableButtons(WZB_CANCEL, sal_True);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
m_pWizard->enableButtons(WZB_FINISH, sal_True);
return 0;
}
IMPL_LINK(SwMailMergeOutputPage, PrinterChangeHdl_Impl, ListBox*, pBox)
{
SwView *const pTargetView = m_pWizard->GetConfigItem().GetTargetView();
SfxPrinter *const pDocumentPrinter = pTargetView->GetWrtShell()
.getIDocumentDeviceAccess()->getPrinter(true);
if (pDocumentPrinter && pBox->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND)
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
const QueueInfo* pInfo = Printer::GetQueueInfo( pBox->GetSelectEntry(), false );
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if( pInfo )
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
if ( !m_pTempPrinter )
{
if ((pDocumentPrinter->GetName() == pInfo->GetPrinterName()) &&
(pDocumentPrinter->GetDriverName() == pInfo->GetDriver()))
{
m_pTempPrinter = new Printer(pDocumentPrinter->GetJobSetup());
}
else
m_pTempPrinter = new Printer( *pInfo );
}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
else
{
if( (m_pTempPrinter->GetName() != pInfo->GetPrinterName()) ||
(m_pTempPrinter->GetDriverName() != pInfo->GetDriver()) )
{
delete m_pTempPrinter;
m_pTempPrinter = new Printer( *pInfo );
}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
}
else if( ! m_pTempPrinter )
m_pTempPrinter = new Printer();
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
m_aPrinterSettingsPB.Enable( m_pTempPrinter->HasSupport( SUPPORT_SETUPDIALOG ) );
}
else
m_aPrinterSettingsPB.Disable();
m_pWizard->GetConfigItem().SetSelectedPrinter( pBox->GetSelectEntry() );
return 0;
}
IMPL_LINK_NOARG(SwMailMergeOutputPage, PrintHdl_Impl)
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
SwView* pTargetView = m_pWizard->GetConfigItem().GetTargetView();
2010-10-20 15:36:15 +01:00
OSL_ENSURE(pTargetView, "no target view exists");
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(!pTargetView)
return 0;
sal_uInt32 nBegin = 0;
sal_uInt32 nEnd = 0;
SwMailMergeConfigItem& rConfigItem = m_pWizard->GetConfigItem();
if(m_aPrintAllRB.IsChecked())
{
nBegin = 0;
nEnd = rConfigItem.GetMergedDocumentCount();
}
else
{
nBegin = static_cast< sal_Int32 >(m_aFromNF.GetValue() - 1);
nEnd = static_cast< sal_Int32 >(m_aToNF.GetValue());
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(nEnd > rConfigItem.GetMergedDocumentCount())
nEnd = rConfigItem.GetMergedDocumentCount();
}
rConfigItem.SetPrintRange( (sal_uInt16)nBegin, (sal_uInt16)nEnd );
2009-09-01 08:22:22 +00:00
SwDocMergeInfo& rStartInfo = rConfigItem.GetDocumentMergeInfo(nBegin);
SwDocMergeInfo& rEndInfo = rConfigItem.GetDocumentMergeInfo(nEnd - 1);
OUString sPages(OUString::number( rStartInfo.nStartPageInTarget ));
sPages += OUString(" - ");
sPages += OUString::number( rEndInfo.nEndPageInTarget );
2009-09-01 08:22:22 +00:00
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
SwWrtShell& rSh = pTargetView->GetWrtShell();
pTargetView->SetMailMergeConfigItem(&rConfigItem, 0, sal_False);
if(m_pTempPrinter)
{
SfxPrinter *const pDocumentPrinter = pTargetView->GetWrtShell()
.getIDocumentDeviceAccess()->getPrinter(true);
pDocumentPrinter->SetPrinterProps(m_pTempPrinter);
// this should be able to handle setting its own printer
pTargetView->SetPrinter(pDocumentPrinter);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
SfxObjectShell* pObjSh = pTargetView->GetViewFrame()->GetObjectShell();
SFX_APP()->NotifyEvent(SfxEventHint(SW_EVENT_MAIL_MERGE, SwDocShell::GetEventName(STR_SW_EVENT_MAIL_MERGE), pObjSh));
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
rSh.GetNewDBMgr()->SetMergeType( DBMGR_MERGE_DOCUMENTS );
2008-10-01 06:46:01 +00:00
SfxBoolItem aMergeSilent(SID_SILENT, sal_False);
m_pWizard->enableButtons(WZB_CANCEL, sal_False);
2009-09-01 08:22:22 +00:00
uno::Sequence < beans::PropertyValue > aProps( 2 );
aProps[0]. Name = OUString("MonitorVisible");
2009-09-01 08:22:22 +00:00
aProps[0].Value <<= sal_True;
aProps[1]. Name = OUString("Pages");
2009-09-01 08:22:22 +00:00
aProps[1]. Value <<= sPages;
pTargetView->ExecPrint( aProps, false, true );
SFX_APP()->NotifyEvent(SfxEventHint(SW_EVENT_MAIL_MERGE_END, SwDocShell::GetEventName(STR_SW_EVENT_MAIL_MERGE_END), pObjSh));
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
pTargetView->SetMailMergeConfigItem(0, 0, sal_False);
2008-10-01 06:46:01 +00:00
m_pWizard->enableButtons(WZB_CANCEL, sal_True);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
m_pWizard->enableButtons(WZB_FINISH, sal_True);
return 0;
}
IMPL_LINK(SwMailMergeOutputPage, PrinterSetupHdl_Impl, PushButton*, pButton)
{
if( !m_pTempPrinter )
PrinterChangeHdl_Impl(&m_aPrinterLB);
if(m_pTempPrinter)
m_pTempPrinter->Setup(pButton);
return 0;
}
IMPL_LINK(SwMailMergeOutputPage, SendTypeHdl_Impl, ListBox*, pBox)
{
sal_uLong nDocType = (sal_uLong)pBox->GetEntryData(pBox->GetSelectEntryPos());
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
sal_Bool bEnable = MM_DOCTYPE_HTML != nDocType && MM_DOCTYPE_TEXT != nDocType;
m_aSendAsPB.Enable( bEnable );
m_aAttachmentFT.Enable( bEnable );
m_aAttachmentED.Enable( bEnable );
if(bEnable)
{
//add the correct extension
OUString sAttach(m_aAttachmentED.GetText());
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
//do nothing if the user has removed the name - the warning will come early enough
if (!sAttach.isEmpty())
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
sal_Int32 nTokenCount = comphelper::string::getTokenCount(sAttach, '.');
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if( 2 > nTokenCount)
{
sAttach += OUString('.');
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
++nTokenCount;
}
sAttach = comphelper::string::setToken(sAttach, nTokenCount - 1, '.', lcl_GetExtensionForDocType( nDocType ));
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
m_aAttachmentED.SetText(sAttach);
}
}
return 0;
}
IMPL_LINK(SwMailMergeOutputPage, SendAsHdl_Impl, PushButton*, pButton)
{
SwMailBodyDialog* pDlg = new SwMailBodyDialog(pButton, m_pWizard);
pDlg->SetBody(m_sBody);
if(RET_OK == pDlg->Execute())
{
m_sBody = pDlg->GetBody();
}
return 0;
}
2010-10-11 17:38:56 -05:00
2011-03-14 21:35:43 +01:00
/*-------------------------------------------------------------------------
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
Send documents as e-mail
-----------------------------------------------------------------------*/
IMPL_LINK(SwMailMergeOutputPage, SendDocumentsHdl_Impl, PushButton*, pButton)
{
SwMailMergeConfigItem& rConfigItem = m_pWizard->GetConfigItem();
//get the composed document
SwView* pTargetView = rConfigItem.GetTargetView();
2010-10-20 15:36:15 +01:00
OSL_ENSURE(pTargetView, "no target view exists");
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(!pTargetView)
return 0;
if(rConfigItem.GetMailServer().isEmpty() ||
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
!SwMailMergeHelper::CheckMailAddress(rConfigItem.GetMailAddress()) )
{
QueryBox aQuery(pButton, WB_YES_NO_CANCEL, m_sConfigureMail);
sal_uInt16 nRet = aQuery.Execute();
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(RET_YES == nRet )
{
SfxAllItemSet aSet(pTargetView->GetPool());
SwMailConfigDlg* pDlg = new SwMailConfigDlg(pButton, aSet);
nRet = pDlg->Execute();
delete pDlg;
}
if(nRet != RET_OK && nRet != RET_YES)
return 0;
}
//add the documents
sal_uInt32 nBegin = 0;
sal_uInt32 nEnd = 0;
if(m_aSendAllRB.IsChecked())
{
nBegin = 0;
nEnd = rConfigItem.GetMergedDocumentCount();
}
else
{
nBegin = static_cast< sal_Int32 >(m_aFromNF.GetValue() - 1);
nEnd = static_cast< sal_Int32 >(m_aToNF.GetValue());
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(nEnd > rConfigItem.GetMergedDocumentCount())
nEnd = rConfigItem.GetMergedDocumentCount();
}
bool bAsBody = false;
rtl_TextEncoding eEncoding = ::osl_getThreadTextEncoding();
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
SfxFilterContainer* pFilterContainer = SwDocShell::Factory().GetFilterContainer();
const SfxFilter *pSfxFlt = 0;
sal_uLong nDocType = (sal_uLong)m_aSendAsLB.GetEntryData(m_aSendAsLB.GetSelectEntryPos());
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
String sExtension = lcl_GetExtensionForDocType(nDocType);
switch( nDocType )
{
case MM_DOCTYPE_OOO:
{
//Make sure we don't pick e.g. the flat xml filter
//for this format
pSfxFlt = SwIoSystem::GetFilterOfFormat(
OUString( FILTER_XML ),
SwDocShell::Factory().GetFilterContainer() );
}
break;
case MM_DOCTYPE_PDF:
{
pSfxFlt = pFilterContainer->GetFilter4FilterName(
OUString("writer_pdf_Export"),
SFX_FILTER_EXPORT);
}
break;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
case MM_DOCTYPE_WORD:
{
//the method SwIOSystemGetFilterOfFormat( ) returns the template filter
//because it uses the same user data :-(
SfxFilterMatcher aMatcher( pFilterContainer->GetName() );
2011-05-20 09:06:56 +01:00
SfxFilterMatcherIter aIter( aMatcher );
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
const SfxFilter* pFilter = aIter.First();
while ( pFilter )
{
if( pFilter->GetUserData() == FILTER_WW8 && pFilter->CanExport() )
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
pSfxFlt = pFilter;
break;
}
pFilter = aIter.Next();
}
}
break;
case MM_DOCTYPE_HTML:
{
bAsBody = true;
2011-05-20 09:06:56 +01:00
SvxHtmlOptions& rHtmlOptions = SvxHtmlOptions::Get();
eEncoding = rHtmlOptions.GetTextEncoding();
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
break;
case MM_DOCTYPE_TEXT:
{
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
bAsBody = true;
pSfxFlt = pFilterContainer->GetFilter4FilterName(
OUString("Text (encoded)"), SFX_FILTER_EXPORT);
}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
break;
}
if(!pSfxFlt)
pSfxFlt = pFilterContainer->GetFilter4Extension(sExtension, SFX_FILTER_EXPORT);
if(!pSfxFlt)
return 0;
OUString sMimeType = pSfxFlt->GetMimeType();
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(m_aSubjectED.GetText().isEmpty())
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
SwSendQueryBox_Impl aQuery(pButton, "SubjectDialog",
"modules/swriter/ui/subjectdialog.ui");
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
aQuery.SetIsEmptyTextAllowed(true);
aQuery.SetValue(m_sNoSubjectST);
if(RET_OK == aQuery.Execute())
{
if(aQuery.GetValue() != m_sNoSubjectST)
m_aSubjectED.SetText(aQuery.GetValue());
}
else
return 0;
}
if(!bAsBody && m_aAttachmentED.GetText().isEmpty())
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
SwSendQueryBox_Impl aQuery(pButton, "AttachNameDialog",
"modules/swriter/ui/attachnamedialog.ui");
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
aQuery.SetIsEmptyTextAllowed(false);
if(RET_OK == aQuery.Execute())
{
OUString sAttach(aQuery.GetValue());
sal_Int32 nTokenCount = comphelper::string::getTokenCount(sAttach, '.');
if (2 > nTokenCount)
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
sAttach += OUString('.');
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
++nTokenCount;
}
sAttach = comphelper::string::setToken(sAttach, nTokenCount - 1, '.', lcl_GetExtensionForDocType(
(sal_uLong)m_aSendAsLB.GetEntryData(m_aSendAsLB.GetSelectEntryPos())));
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
m_aAttachmentED.SetText(sAttach);
}
else
return 0;
}
SfxStringItem aFilterName( SID_FILTER_NAME, pSfxFlt->GetFilterName() );
String sEMailColumn = m_aMailToLB.GetSelectEntry();
2010-10-20 15:36:15 +01:00
OSL_ENSURE( sEMailColumn.Len(), "No email column selected");
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
Reference< sdbcx::XColumnsSupplier > xColsSupp( rConfigItem.GetResultSet(), UNO_QUERY);
Reference < container::XNameAccess> xColAccess = xColsSupp.is() ? xColsSupp->getColumns() : 0;
if(!sEMailColumn.Len() || !xColAccess.is() || !xColAccess->hasByName(sEMailColumn))
return 0;
OUString sFilterOptions;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(MM_DOCTYPE_TEXT == nDocType)
{
SwAsciiOptions aOpt;
sal_uInt16 nAppScriptType = GetI18NScriptTypeOfLanguage( (sal_uInt16)GetAppLanguage() );
sal_uInt16 nWhich = GetWhichOfScript( RES_CHRATR_LANGUAGE, nAppScriptType);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
aOpt.SetLanguage( ((SvxLanguageItem&)pTargetView->GetWrtShell().
GetDefault( nWhich )).GetLanguage());
aOpt.SetParaFlags( LINEEND_CR );
aOpt.WriteUserData( sFilterOptions );
}
String sTargetTempURL = URIHelper::SmartRel2Abs(
INetURLObject(), utl::TempFile::CreateTempName(),
URIHelper::GetMaybeFileHdl());
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
const SfxFilter *pTargetSfxFlt = SwIoSystem::GetFilterOfFormat(
OUString( FILTER_XML ),
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
SwDocShell::Factory().GetFilterContainer() );
uno::Sequence< beans::PropertyValue > aValues(1);
beans::PropertyValue* pValues = aValues.getArray();
2012-12-21 12:00:43 +01:00
pValues[0].Name = "FilterName";
pValues[0].Value <<= OUString(pTargetSfxFlt->GetFilterName());
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
uno::Reference< frame::XStorable > xStore( pTargetView->GetDocShell()->GetModel(), uno::UNO_QUERY);
xStore->storeToURL( sTargetTempURL, aValues );
//create the send dialog
SwSendMailDialog* pDlg = new SwSendMailDialog( pButton, rConfigItem );
pDlg->SetDocumentCount( nEnd );
pDlg->ShowDialog();
//help to force painting the dialog
//TODO/CLEANUP
//predetermined breaking point
for ( sal_Int16 i = 0; i < 25; i++)
Application::Reschedule();
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
for(sal_uInt32 nDoc = nBegin; nDoc < nEnd; ++nDoc)
{
m_pWizard->EnterWait();
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
SwDocMergeInfo& rInfo = rConfigItem.GetDocumentMergeInfo(nDoc);
//now extract a document from the target document
// the shell will be closed at the end, but it is more safe to use SfxObjectShellLock here
SfxObjectShellLock xTempDocShell( new SwDocShell( SFX_CREATE_MODE_STANDARD ) );
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
xTempDocShell->DoInitNew( 0 );
SfxViewFrame* pTempFrame = SfxViewFrame::LoadHiddenDocument( *xTempDocShell, 0 );
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
SwView* pTempView = static_cast<SwView*>( pTempFrame->GetViewShell() );
pTargetView->GetWrtShell().StartAction();
SwgReaderOption aOpt;
aOpt.SetTxtFmts( sal_True );
aOpt.SetFrmFmts( sal_True );
aOpt.SetPageDescs( sal_True );
aOpt.SetNumRules( sal_True );
aOpt.SetMerge( sal_False );
pTempView->GetDocShell()->LoadStylesFromFile(
sTargetTempURL, aOpt, sal_True );
pTargetView->GetWrtShell().PastePages(pTempView->GetWrtShell(),
(sal_uInt16)rInfo.nStartPageInTarget, (sal_uInt16)rInfo.nEndPageInTarget );
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
pTargetView->GetWrtShell().EndAction();
//then save it
SfxStringItem aName(SID_FILE_NAME,
URIHelper::SmartRel2Abs(
INetURLObject(), utl::TempFile::CreateTempName(0),
URIHelper::GetMaybeFileHdl()) );
{
uno::Sequence< beans::PropertyValue > aFilterValues(MM_DOCTYPE_TEXT == nDocType ? 2 : 1);
beans::PropertyValue* pFilterValues = aFilterValues.getArray();
2012-12-21 12:00:43 +01:00
pFilterValues[0].Name = "FilterName";
pFilterValues[0].Value <<= OUString(pSfxFlt->GetFilterName());
if(MM_DOCTYPE_TEXT == nDocType)
{
2012-12-21 12:00:43 +01:00
pFilterValues[1].Name = "FilterOptions";
pFilterValues[1].Value <<= sFilterOptions;
}
uno::Reference< frame::XStorable > xTempStore( pTempView->GetDocShell()->GetModel(), uno::UNO_QUERY);
xTempStore->storeToURL( aName.GetValue(), aFilterValues );
}
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
xTempDocShell->DoClose();
2011-01-11 17:40:02 +01:00
sal_Int32 nTarget = rConfigItem.MoveResultSet(rInfo.nDBRow);
OSL_ENSURE( nTarget == rInfo.nDBRow, "row of current document could not be selected");
2011-01-11 20:26:37 +00:00
(void)nTarget;
2010-10-20 15:36:15 +01:00
OSL_ENSURE( sEMailColumn.Len(), "No email column selected");
OUString sEMail = lcl_GetColumnValueOf(sEMailColumn, xColAccess);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
SwMailDescriptor aDesc;
aDesc.sEMail = sEMail;
OUString sBody;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
if(bAsBody)
{
{
//read in the temporary file and use it as mail body
SfxMedium aMedium( aName.GetValue(), STREAM_READ);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
SvStream* pInStream = aMedium.GetInStream();
if(pInStream)
pInStream->SetStreamCharSet( eEncoding );
else
{
OSL_FAIL("no output file created?");
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
continue;
}
OString sLine;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
sal_Bool bDone = pInStream->ReadLine( sLine );
while ( bDone )
{
sBody += OStringToOUString(sLine, eEncoding);
sBody += OUString('\n');
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
bDone = pInStream->ReadLine( sLine );
}
}
//remove the temporary file
SWUnoHelper::UCB_DeleteFile( aName.GetValue() );
}
else
{
sBody = m_sBody;
aDesc.sAttachmentURL = aName.GetValue();
OUString sAttachment(m_aAttachmentED.GetText());
sal_Int32 nTokenCount = comphelper::string::getTokenCount(sAttachment, '.');
if (2 > nTokenCount)
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
sAttachment += OUString('.');
sAttachment = comphelper::string::setToken(sAttachment, nTokenCount, '.', sExtension);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
else if (sAttachment.getToken( nTokenCount - 1, '.') != sExtension)
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
sAttachment += sExtension;
aDesc.sAttachmentName = sAttachment;
aDesc.sMimeType = sMimeType;
if(rConfigItem.IsGreetingLine(sal_True))
{
OUString sNameColumn = rConfigItem.GetAssignedColumn(MM_PART_LASTNAME);
OUString sName = lcl_GetColumnValueOf(sNameColumn, xColAccess);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
String sGreeting;
if(!sName.isEmpty() && rConfigItem.IsIndividualGreeting(sal_True))
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
{
OUString sGenderColumn = rConfigItem.GetAssignedColumn(MM_PART_GENDER);
const OUString& sFemaleValue = rConfigItem.GetFemaleGenderValue();
OUString sGenderValue = lcl_GetColumnValueOf(sGenderColumn, xColAccess);
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
SwMailMergeConfigItem::Gender eGenderType = sGenderValue == sFemaleValue ?
SwMailMergeConfigItem::FEMALE :
SwMailMergeConfigItem::MALE;
sGreeting = SwAddressPreview::FillData(
rConfigItem.GetGreetings(eGenderType)
[rConfigItem.GetCurrentGreeting(eGenderType)],
rConfigItem);
}
else
{
sGreeting =
rConfigItem.GetGreetings(SwMailMergeConfigItem::NEUTRAL)
[rConfigItem.GetCurrentGreeting(SwMailMergeConfigItem::NEUTRAL)];
}
sGreeting += '\n';
OUString sTemp( sGreeting );
sTemp += sBody;
sBody = sTemp;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
}
aDesc.sBodyContent = sBody;
if(MM_DOCTYPE_HTML == nDocType)
{
aDesc.sBodyMimeType = OUString("text/html; charset=");
aDesc.sBodyMimeType += OUString::createFromAscii(
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
rtl_getBestMimeCharsetFromTextEncoding( eEncoding ));
}
else
aDesc.sBodyMimeType =
OUString("text/plain; charset=UTF-8; format=flowed");
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
aDesc.sSubject = m_aSubjectED.GetText();
aDesc.sCC = m_sCC;
aDesc.sBCC = m_sBCC;
pDlg->AddDocument( aDesc );
//help to force painting the dialog
for ( sal_Int16 i = 0; i < 25; i++)
Application::Reschedule();
//stop creating of data when dialog has been closed
if(!pDlg->IsVisible())
{
m_pWizard->LeaveWait();
break;
}
m_pWizard->LeaveWait();
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
}
pDlg->EnableDesctruction();
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
::osl::File::remove( sTargetTempURL );
m_pWizard->enableButtons(WZB_FINISH, sal_True);
//the dialog deletes itself
//delete pDlg;
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED 2004/09/14 14:51:51 os 1.1.2.24: #i25107# more checks for correct mail settings 2004/09/13 07:50:53 os 1.1.2.23: #i25107# increase mail format ListBox 2004/09/10 14:23:01 os 1.1.2.22: #i25107# use direct printing 2004/09/09 15:23:32 os 1.1.2.21: #i25107# fill the e-mail-column ListBox with the real column names 2004/09/03 13:08:36 os 1.1.2.20: #i25107# SwView::SetMailMergeConfigItem changed 2004/09/03 08:16:46 os 1.1.2.19: #i25107# last fixes 2004/08/27 09:44:43 os 1.1.2.18: #i25107# Send mail dialog now modal 2004/08/20 14:20:04 os 1.1.2.17: #i25107# most of the remaining issues fixed 2004/08/18 15:17:57 os 1.1.2.16: #i25107# mail merge leftovers 2004/08/12 14:28:34 os 1.1.2.15: #i25107# concatenation of body texts fixed 2004/07/13 08:30:37 os 1.1.2.14: #i25107# changed mail API 2004/07/07 11:26:37 os 1.1.2.13: #i25107# content type added to body and attachment 2004/07/06 11:25:40 os 1.1.2.12: #i25107# weekly check-in 2004/07/02 09:15:14 os 1.1.2.11: #i25107# weekly check-in 2004/06/25 13:39:12 os 1.1.2.10: #i25107# weekly check-in 2004/06/23 14:06:54 os 1.1.2.9: #i25107# weekly check-in 2004/06/17 07:02:30 os 1.1.2.8: #i25107# weekly check-in 2004/06/03 09:04:01 os 1.1.2.7: #i25107# merge error corrected 2004/05/28 12:44:24 os 1.1.2.6: #i25107# some output functions impl. 2004/05/18 06:22:50 os 1.1.2.5: #i25107# some output types implemented 2004/05/14 13:58:02 os 1.1.2.4: #i25107# weekly check-in 2004/04/30 14:32:28 os 1.1.2.3: #i25107# intermediate check-in 2004/04/13 15:33:11 os 1.1.2.2: #i25107# mail merge progress 2004/04/08 08:38:24 os 1.1.2.1: #i25107# new mail merge wizard
2004-09-20 12:18:10 +00:00
return 0;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */