1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2 /* 3 * This file is part of the LibreOffice project. 4 * 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 */ 9 10 #ifndef INCLUDED_TEST_CONTAINER_XNAMED_HXX 11 #define INCLUDED_TEST_CONTAINER_XNAMED_HXX 12 13 #include <rtl/ustring.hxx> 14 15 #include <com/sun/star/uno/XInterface.hpp> 16 17 #include <com/sun/star/uno/Reference.hxx> 18 19 #include <test/testdllapi.hxx> 20 21 namespace apitest 22 { 23 class OOO_DLLPUBLIC_TEST XNamed 24 { 25 public: XNamed(const OUString & rTestName)26 XNamed(const OUString& rTestName) 27 : m_aTestName(rTestName) 28 { 29 } 30 31 void testGetName(); 32 void testSetName(); 33 // special case, here name is equal to links URL 34 void testSetNameByScSheetLinkObj(); 35 void testSetNameThrowsException(); 36 37 virtual css::uno::Reference<css::uno::XInterface> init() = 0; 38 39 protected: ~XNamed()40 ~XNamed() {} 41 42 private: 43 OUString m_aTestName; 44 }; 45 } 46 47 #endif // INCLUDED_TEST_CONTAINER_XNAMED_HXX 48 49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 50