summaryrefslogtreecommitdiff
path: root/sw/inc/dbmgr.hxx
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2000-11-13 07:32:00 +0000
committerOliver Specht <os@openoffice.org>2000-11-13 07:32:00 +0000
commit5b25e96f684601f3de9ad3dca704da9c29b9b61d (patch)
treeabf74c7b657df7853da90e521de688a577db7028 /sw/inc/dbmgr.hxx
parent0e507befcdc74e051a8c2d18e1d3ab4d9b28a9bb (diff)
added methods for dispatch interface
Diffstat (limited to 'sw/inc/dbmgr.hxx')
-rw-r--r--sw/inc/dbmgr.hxx32
1 files changed, 28 insertions, 4 deletions
diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx
index ec76e2767a..fec12aa24c 100644
--- a/sw/inc/dbmgr.hxx
+++ b/sw/inc/dbmgr.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dbmgr.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: hr $ $Date: 2000-10-31 15:26:08 $
+ * last change: $Author: os $ $Date: 2000-11-13 08:25:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -94,6 +94,7 @@ namespace com{namespace sun{namespace star{
namespace beans{
class XPropertySet;
+ struct PropertyValue;
}
namespace sdbcx{
class XColumnsSupplier;
@@ -149,8 +150,8 @@ struct SwDSParam
::com::sun::star::uno::Reference<com::sun::star::util::XNumberFormatter> xFormatter;
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> xConnection;
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XStatement> xStatement;
- ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet> xResultSet;
-
+ ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet> xResultSet;
+ ::com::sun::star::uno::Sequence< sal_Int32 > aSelection;
SbaSelectionListRef xSelectionList;
BOOL bScrollable;
BOOL bSelectionList;
@@ -167,6 +168,20 @@ struct SwDSParam
bEndOfDB(FALSE),
nSelectionIndex(0)
{}
+
+ SwDSParam(const String& rSource, const String& rTable, BYTE nType,
+ ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet> xResSet,
+ ::com::sun::star::uno::Sequence< sal_Int32 > rSelection) :
+ sDataSource(rSource),
+ sTableOrQuery(rTable),
+ nTableOrQuery(nType),
+ bScrollable(TRUE),
+ bSelectionList(FALSE),
+ bEndOfDB(FALSE),
+ nSelectionIndex(0),
+ xResultSet(xResSet),
+ aSelection(rSelection)
+ {}
};
typedef SwDSParam* SwDSParamPtr;
SV_DECL_PTRARR_DEL(SwDSParamArr, SwDSParamPtr, 0, 5)
@@ -221,6 +236,9 @@ public:
inline void SetMergeType( USHORT nTyp ) { nMergeType = nTyp; }
// Mischen von Datensaetzen in Felder
+ BOOL MergeNew(USHORT nOpt, SwWrtShell& rSh,
+ const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rProperties,
+ const String *pPrinter = NULL);
BOOL Merge(USHORT nOpt, SwWrtShell* pSh, const String& rStatement,
const SbaSelectionListRef pSelectionList,
const String& rDataSource,
@@ -264,6 +282,12 @@ public:
inline BOOL IsInMerge() const { return bInMerge; }
void EndMerge();
+ void ExecuteFormLetter(SwWrtShell& rSh,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>& rProperties);
+
+ void InsertText(SwWrtShell& rSh,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>& rProperties);
+
// check if a data source is open as merge source
BOOL IsDataSourceOpen(const String& rDataSource, const String& rTableOrQuery)const;