summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-03-29 23:19:11 +0200
committerJulien Nabet <serval2412@yahoo.fr>2016-03-30 05:05:41 +0000
commit709e99af4958216c75b27c07793d5140214f179d (patch)
tree90697e414572b65c0704e3307e2c76e088685061 /sfx2
parentfa7416a6af4b40d9223c27ce58e66b69bdd53fd1 (diff)
Replace IMPL_FORWARD_LOOP in sfx2/source/bastyp/fltfnc.cxx
Change-Id: Ic9eda24be82a54c3907ffe6eb749e927db87dee7 Reviewed-on: https://gerrit.libreoffice.org/23605 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/bastyp/fltfnc.cxx23
1 files changed, 15 insertions, 8 deletions
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx
index a1c7b0bdeeb9..04bfdb1ddb91 100644
--- a/sfx2/source/bastyp/fltfnc.cxx
+++ b/sfx2/source/bastyp/fltfnc.cxx
@@ -154,16 +154,23 @@ public:
}
};
-#define IMPL_FORWARD_LOOP( aMethod, ArgType, aArg ) \
-std::shared_ptr<const SfxFilter> SfxFilterContainer::aMethod( ArgType aArg, SfxFilterFlags nMust, SfxFilterFlags nDont ) const \
-{\
- SfxFilterMatcher aMatch( pImpl->aName ); \
- return aMatch.aMethod( aArg, nMust, nDont ); \
+std::shared_ptr<const SfxFilter> SfxFilterContainer::GetFilter4EA(const OUString& rEA, SfxFilterFlags nMust, SfxFilterFlags nDont) const
+{
+ SfxFilterMatcher aMatch(pImpl->aName);
+ return aMatch.GetFilter4EA(rEA, nMust, nDont);
+}
+
+std::shared_ptr<const SfxFilter> SfxFilterContainer::GetFilter4Extension(const OUString& rExt, SfxFilterFlags nMust, SfxFilterFlags nDont) const
+{
+ SfxFilterMatcher aMatch(pImpl->aName);
+ return aMatch.GetFilter4Extension(rExt, nMust, nDont);
}
-IMPL_FORWARD_LOOP( GetFilter4EA, const OUString&, rEA );
-IMPL_FORWARD_LOOP( GetFilter4Extension, const OUString&, rExt );
-IMPL_FORWARD_LOOP( GetFilter4FilterName, const OUString&, rName );
+std::shared_ptr<const SfxFilter> SfxFilterContainer::GetFilter4FilterName(const OUString& rName, SfxFilterFlags nMust, SfxFilterFlags nDont) const
+{
+ SfxFilterMatcher aMatch(pImpl->aName);
+ return aMatch.GetFilter4FilterName(rName, nMust, nDont);
+}
std::shared_ptr<const SfxFilter> SfxFilterContainer::GetAnyFilter( SfxFilterFlags nMust, SfxFilterFlags nDont ) const
{