summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui/createaddresslistdialog.hxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-09-20 12:10:07 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-09-20 12:10:07 +0000
commit7b6c942987b1dfe805c82f25402c4f6f9aecafd9 (patch)
tree65a93b9985957f7bac343cc933278fca274f2294 /sw/source/ui/dbui/createaddresslistdialog.hxx
parent2e1bc92d46fdaa60675485a114517f8be78ffcf7 (diff)
INTEGRATION: CWS swmailmerge (1.1.2); FILE ADDED
2004/05/10 09:48:24 os 1.1.2.3: #i25107# syntax errors corrected 2004/04/30 14:32:18 os 1.1.2.2: #i25107# intermediate check-in 2004/04/13 15:34:42 os 1.1.2.1: #i25107# mail merge progress
Diffstat (limited to 'sw/source/ui/dbui/createaddresslistdialog.hxx')
-rw-r--r--sw/source/ui/dbui/createaddresslistdialog.hxx172
1 files changed, 172 insertions, 0 deletions
diff --git a/sw/source/ui/dbui/createaddresslistdialog.hxx b/sw/source/ui/dbui/createaddresslistdialog.hxx
new file mode 100644
index 000000000000..bd712a2e8e8d
--- /dev/null
+++ b/sw/source/ui/dbui/createaddresslistdialog.hxx
@@ -0,0 +1,172 @@
+/*************************************************************************
+ *
+ * $RCSfile: createaddresslistdialog.hxx,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: rt $ $Date: 2004-09-20 13:10:07 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (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.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _CREATEADDRESSLISTDIALOG_HXX
+#define _CREATEADDRESSLISTDIALOG_HXX
+
+#ifndef _BASEDLGS_HXX
+#include <sfx2/basedlgs.hxx>
+#endif
+
+#ifndef _SV_BUTTON_HXX
+#include <vcl/button.hxx>
+#endif
+#ifndef _STDCTRL_HXX
+#include <svtools/stdctrl.hxx>
+#endif
+#ifndef _SV_FIELD_HXX
+#include <vcl/field.hxx>
+#endif
+#ifndef _SV_LSTBOX_HXX
+#include <vcl/lstbox.hxx>
+#endif
+#include <vector>
+
+class SwAddressControl_Impl;
+class SwMailMergeConfigItem;
+/*-- 19.04.2004 12:09:46---------------------------------------------------
+ container of the created database
+ -----------------------------------------------------------------------*/
+struct SwCSVData
+{
+ ::std::vector< ::rtl::OUString > aDBColumnHeaders;
+ ::std::vector< ::std::vector< ::rtl::OUString> > aDBData;
+};
+/*-- 08.04.2004 14:04:39---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+class SwFindEntryDialog;
+class SwCreateAddressListDialog : public SfxModalDialog
+{
+ FixedInfo m_aAddressInformation;
+ SwAddressControl_Impl* m_pAddressControl;
+
+ PushButton m_aNewPB;
+ PushButton m_aDeletePB;
+ PushButton m_aFindPB;
+ PushButton m_aCustomizePB;
+
+ FixedInfo m_aViewEntriesFI;
+ PushButton m_aStartPB;
+ PushButton m_aPrevPB;
+ NumericField m_aSetNoNF;
+ PushButton m_aNextPB;
+ PushButton m_aEndPB;
+
+ FixedLine m_aSeparatorFL;
+ String m_sAddressListFilterName;
+
+ OKButton m_aOK;
+ CancelButton m_aCancel;
+ HelpButton m_aHelp;
+
+ String m_sURL;
+
+ SwCSVData* m_pCSVData;
+ SwFindEntryDialog* m_pFindDlg;
+
+ DECL_LINK(NewHdl_Impl, PushButton*);
+ DECL_LINK(DeleteHdl_Impl, PushButton*);
+ DECL_LINK(FindHdl_Impl, PushButton*);
+ DECL_LINK(CustomizeHdl_Impl, PushButton*);
+ DECL_LINK(OkHdl_Impl, PushButton*);
+ DECL_LINK(DBCursorHdl_Impl, PushButton*);
+ DECL_LINK(DBNumCursorHdl_Impl, NumericField*);
+
+ void UpdateButtons();
+
+public:
+ SwCreateAddressListDialog(
+ Window* pParent, const String& rURL, SwMailMergeConfigItem& rConfig);
+ ~SwCreateAddressListDialog();
+
+ const String& GetURL() const { return m_sURL; }
+ void Find( const String& rSearch, sal_Int32 nColumn);
+};
+/*-- 13.04.2004 13:30:21---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+class SwFindEntryDialog : public ModelessDialog
+{
+ FixedText m_aFindFT;
+ Edit m_aFindED;
+ CheckBox m_aFindOnlyCB;
+ ListBox m_aFindOnlyLB;
+
+ PushButton m_aFindPB;
+ CancelButton m_aCancel;
+ HelpButton m_aHelp;
+
+ SwCreateAddressListDialog* m_pParent;
+
+ DECL_LINK(FindHdl_Impl, PushButton*);
+ DECL_LINK(FindEnableHdl_Impl, Edit*);
+ DECL_LINK(CloseHdl_Impl, PushButton*);
+
+public:
+ SwFindEntryDialog(SwCreateAddressListDialog* pParent);
+ ~SwFindEntryDialog();
+
+ ListBox& GetFieldsListBox(){return m_aFindOnlyLB;}
+ String GetFindString() const {return m_aFindED.GetText();}
+};
+
+#endif
+