summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/writerhelper.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-16 12:50:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-16 17:14:31 +0100
commit71ec25ea725ee887a789fdb9dc2b221b8525bc61 (patch)
treec8c6f65cb4974b073628b1f66cffd2c17e4376ed /sw/source/filter/ww8/writerhelper.hxx
parentaac8281f705c8d621d54894b14893772e2ee6413 (diff)
drop templated HasItem in favour of new templated SfxItemSet::GetItem
Change-Id: Ia753e8728a68b90cbf7fe3adda1de8a3297bd782
Diffstat (limited to 'sw/source/filter/ww8/writerhelper.hxx')
-rw-r--r--sw/source/filter/ww8/writerhelper.hxx35
1 files changed, 0 insertions, 35 deletions
diff --git a/sw/source/filter/ww8/writerhelper.hxx b/sw/source/filter/ww8/writerhelper.hxx
index 29f231ab1b5b..0f5f52879f34 100644
--- a/sw/source/filter/ww8/writerhelper.hxx
+++ b/sw/source/filter/ww8/writerhelper.hxx
@@ -428,41 +428,6 @@ namespace sw
return DefaultItemGet<T>(rDoc.GetAttrPool(), eType);
}
- /** Return a pointer to a SfxPoolItem derived class if it exists in an
- SfxItemSet
-
- Writer's attributes are retrieved by passing a numeric identifier
- and receiving a SfxPoolItem reference which must then typically be
- cast back to its original type which is both tedious and verbose.
-
- HasItem returns a pointer to the requested SfxPoolItem for a given
- property id if it exists in the SfxItemSet or its chain of parents,
- e.g. fontsize
-
- HasItem uses item_cast () on the retrieved pointer to test that the
- retrieved property is of the type that the developer thinks it is.
-
- @param rSet
- The SfxItemSet whose property we want
-
- @param eType
- The numeric identifier of the default property to be retrieved
-
- @tplparam T
- A SfxPoolItem derived class of the retrieved property
-
- @return The T requested or 0 if no T found with id eType
-
- @author
- <a href="mailto:cmc@openoffice.org">Caol&aacute;n McNamara</a>
- */
- template<class T> const T* HasItem(const SfxItemSet &rSet,
- sal_uInt16 eType)
- {
- return item_cast<T>(rSet.GetItem(eType));
- }
-
-
/** Get the Paragraph Styles of a SwDoc
Writer's styles are in one of those dreaded macro based pre-STL