diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-15 02:39:34 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-15 03:35:08 +0100 |
commit | fe8c3c69fd784af9df56706c0026b4a09aed1a2d (patch) | |
tree | ac515c490f2057f0036f4bbe9053cea573cfcb02 /sw/qa | |
parent | f7319622f63c9dae0eed9e60404d290580fce9fe (diff) |
we don't need to inherit from FiltersTest here
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/core/macros-test.cxx | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sw/qa/core/macros-test.cxx b/sw/qa/core/macros-test.cxx index 10e83bcbb9e7..d4ddbcada4b8 100644 --- a/sw/qa/core/macros-test.cxx +++ b/sw/qa/core/macros-test.cxx @@ -58,14 +58,11 @@ using namespace ::com::sun::star::uno; /* Implementation of Macros test */ -class SwMacrosTest - : public test::FiltersTest - , public test::BootstrapFixture +class SwMacrosTest : public test::BootstrapFixture { public: SwMacrosTest(); - virtual bool load(const rtl::OUString &rFilter, const rtl::OUString &rURL, const rtl::OUString &rUserData); SwDocShellRef load(const rtl::OUString &rFilter, const rtl::OUString &rURL, const rtl::OUString &rUserData, const rtl::OUString& rTypeName, sal_uLong nFormatType=0); uno::Reference< com::sun::star::lang::XComponent > loadFromDesktop(const rtl::OUString& rURL); @@ -108,18 +105,6 @@ uno::Reference< com::sun::star::lang::XComponent > SwMacrosTest::loadFromDesktop return xComponent; } - -bool SwMacrosTest::load(const rtl::OUString &rFilter, const rtl::OUString &rURL, - const rtl::OUString &rUserData) -{ - SwDocShellRef xDocShRef; - bool bLoaded = xDocShRef.Is(); - //reference counting of SwDocShellRef is very confused. - if (bLoaded) - xDocShRef->DoClose(); - return bLoaded; -} - void SwMacrosTest::createFileURL(const rtl::OUString& aFileBase, const rtl::OUString& aFileExtension, rtl::OUString& rFilePath) { rtl::OUString aSep(RTL_CONSTASCII_USTRINGPARAM("/")); |