nss: upgrade to release 3.73
[LibreOffice.git] / include / test / style / xstyleloader.hxx
blobca34a72cf4b3e3ad04c01964004def8eca3c01d9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_TEST_STYLE_XSTYLELOADER_HXX
11 #define INCLUDED_TEST_STYLE_XSTYLELOADER_HXX
13 #include <com/sun/star/lang/XComponent.hpp>
14 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
15 #include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
16 #include <com/sun/star/uno/XInterface.hpp>
18 #include <com/sun/star/uno/Reference.hxx>
20 #include <rtl/ustring.hxx>
21 #include <test/testdllapi.hxx>
23 namespace apitest
25 class OOO_DLLPUBLIC_TEST XStyleLoader
27 public:
28 virtual css::uno::Reference<css::uno::XInterface> init() = 0;
29 virtual css::uno::Reference<css::sheet::XSpreadsheetDocument> getTargetDoc() = 0;
30 virtual css::uno::Reference<css::lang::XComponent> getSourceComponent() = 0;
31 virtual OUString getTestURL() = 0;
33 // XStyleLoader
34 void testLoadStylesFromURL();
35 void testLoadStylesFromStream();
36 // XStyleLoader2
37 void testLoadStylesFromDocument();
39 private:
40 static void checkStyleProperties(
41 css::uno::Reference<css::style::XStyleFamiliesSupplier> const& xFamilySupplier);
43 protected:
44 ~XStyleLoader() {}
47 } // namespace apitest
49 #endif // INCLUDED_TEST_STYLE_XSTYLELOADER_HXX
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */