summaryrefslogtreecommitdiffstats
path: root/sw/source/ui/inc/fldmgr.hxx
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2001-06-08 12:47:33 +0000
committerOliver Specht <os@openoffice.org>2001-06-08 12:47:33 +0000
commitec748265324c05a9958e988373e4a98839e44aa9 (patch)
treeb05ccd63c5376ab7639cd028c8f4d8d655f0813d /sw/source/ui/inc/fldmgr.hxx
parentBug #86377#: cache the original string for overwrite mode and handle this mode (diff)
downloadcore-ec748265324c05a9958e988373e4a98839e44aa9.tar.gz
core-ec748265324c05a9958e988373e4a98839e44aa9.zip
#84832# #84836# use connection parameter in drag and drop, form letter, merge field and insert db as text
Diffstat (limited to 'sw/source/ui/inc/fldmgr.hxx')
-rw-r--r--sw/source/ui/inc/fldmgr.hxx42
1 files changed, 33 insertions, 9 deletions
diff --git a/sw/source/ui/inc/fldmgr.hxx b/sw/source/ui/inc/fldmgr.hxx
index 2d379b09ea6e..4901a9693973 100644
--- a/sw/source/ui/inc/fldmgr.hxx
+++ b/sw/source/ui/inc/fldmgr.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fldmgr.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: os $ $Date: 2001-03-02 14:08:37 $
+ * last change: $Author: os $ $Date: 2001-06-08 13:47:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -75,6 +75,9 @@
#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_
#include <com/sun/star/uno/Reference.h>
#endif
+#ifndef _COM_SUN_STAR_UNO_ANY_H_
+#include <com/sun/star/uno/Any.h>
+#endif
namespace com{namespace sun{namespace star{
namespace container{
class XNameAccess;
@@ -123,7 +126,34 @@ struct SwFldGroupRgn
Beschreibung: Der FeldManager handelt das Einfuegen von Felder
ueber Command-Strings
--------------------------------------------------------------------*/
+struct SwInsertFld_Data
+{
+ USHORT nTypeId;
+ USHORT nSubType;
+ const String sPar1;
+ const String sPar2;
+ ULONG nFormatId;
+ SwWrtShell* pSh;
+ sal_Unicode cSeparator;
+ ::com::sun::star::uno::Any aDBDataSource;
+ ::com::sun::star::uno::Any aDBConnection;
+ ::com::sun::star::uno::Any aDBColumn;
+
+ SwInsertFld_Data(USHORT nType, USHORT nSub, const String& rPar1, const String& rPar2,
+ ULONG nFmtId, SwWrtShell* pShell = NULL, sal_Unicode cSep = ' ') :
+ nTypeId(nType),
+ nSubType(nSub),
+ sPar1(rPar1),
+ sPar2(rPar2),
+ nFormatId(nFmtId),
+ pSh(pShell),
+ cSeparator(cSep) {}
+
+ SwInsertFld_Data() :
+ pSh(0),
+ cSeparator(' '){}
+};
class SwFldMgr
{
private:
@@ -153,13 +183,7 @@ public:
~SwFldMgr();
// Feld einfuegen ueber TypeId (TYP_ ...)
- BOOL InsertFld( USHORT nTypeId,
- USHORT nSubType,
- const String& rPar1,
- const String& rPar2,
- ULONG nFormatId,
- SwWrtShell* pSh = NULL,
- sal_Unicode cSeparator = ' ');
+ BOOL InsertFld( const SwInsertFld_Data& rData );
BOOL InsertURL( const String& rName,
const String& rVal,