summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-07-12 09:56:53 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-07-12 10:07:16 +0200
commitfa72acc4bf926b5df3e484d72fcc9880994f7ea2 (patch)
tree191028f4da85c7c13e7258567e73bb746ddf80dc /sw
parentSwPostItMgr: these can be static (diff)
downloadcore-fa72acc4bf926b5df3e484d72fcc9880994f7ea2.tar.gz
core-fa72acc4bf926b5df3e484d72fcc9880994f7ea2.zip
SwXTextField: add getter method for m_nServiceId
Change-Id: I5a4f65da17062db1334bb0140b7b4545494adfa6
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/unofield.hxx1
-rw-r--r--sw/source/core/unocore/unofield.cxx5
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/inc/unofield.hxx b/sw/inc/unofield.hxx
index 71915fa5a175..c5833539f407 100644
--- a/sw/inc/unofield.hxx
+++ b/sw/inc/unofield.hxx
@@ -196,6 +196,7 @@ public:
/// @return an SwXTextField, either an already existing one or a new one
static SwXTextField* CreateSwXTextField(SwDoc & rDoc, SwFmtFld const& rFmt);
+ sal_uInt16 GetServiceId();
};
typedef
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index b2447f4752d8..c30697b7881c 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -1019,6 +1019,11 @@ SwXTextField* SwXTextField::CreateSwXTextField(SwDoc & rDoc, SwFmtFld const& rFm
return pField ? pField : new SwXTextField( rFmt, &rDoc );
}
+sal_uInt16 SwXTextField::GetServiceId()
+{
+ return m_nServiceId;
+}
+
struct SwFieldProperties_Impl
{
String sPar1;