summaryrefslogtreecommitdiff
path: root/sw/inc/swdbdata.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-05-06 10:33:46 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-05-06 11:33:33 +0200
commit7bd6f298b43732fd5d4a270f2493ae11eb20ad22 (patch)
treee57dce0784fde27f87a5b37af0a5bb6767661e18 /sw/inc/swdbdata.hxx
parent27d94c482e82ea5d4f202109614c6fb3578fb0a4 (diff)
sw: add SwDBData::sEmbeddedName
It is supposed to contain the name of a stream in the document storage (like "Object 1") that has an embedded database for mail merge data source definition purposes. It's just loaded / saved from ODF at the moment, it's not yet used for anything. Change-Id: Ida366478fd83aa51e66e958ac09d852332c227c9
Diffstat (limited to 'sw/inc/swdbdata.hxx')
-rw-r--r--sw/inc/swdbdata.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/inc/swdbdata.hxx b/sw/inc/swdbdata.hxx
index 6d91e2b85558..02ccf6807815 100644
--- a/sw/inc/swdbdata.hxx
+++ b/sw/inc/swdbdata.hxx
@@ -28,14 +28,16 @@ struct SwDBData
OUString sDataSource;
OUString sCommand; //table, query or statement
sal_Int32 nCommandType; //com::sun::star::sdb::CommandType
+ /// Name of the embedded database that's included in the current document.
+ OUString sEmbeddedName;
SwDBData() :
nCommandType(0){}
void dumpAsXml(struct _xmlTextWriter* pWriter) const;
bool operator !=(const SwDBData& rCmp) const
- {return rCmp.sDataSource != sDataSource || rCmp.sCommand != sCommand || rCmp.nCommandType != nCommandType;}
+ {return rCmp.sDataSource != sDataSource || rCmp.sCommand != sCommand || rCmp.nCommandType != nCommandType || rCmp.sEmbeddedName != sEmbeddedName;}
bool operator ==(const SwDBData& rCmp) const
- {return rCmp.sDataSource == sDataSource && rCmp.sCommand == sCommand && rCmp.nCommandType == nCommandType;}
+ {return rCmp.sDataSource == sDataSource && rCmp.sCommand == sCommand && rCmp.nCommandType == nCommandType && rCmp.sEmbeddedName == sEmbeddedName;}
};
#endif