LibreOffice Module test (master)  1
xnamereplace.hxx
Go to the documentation of this file.
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.
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_XNAMEREPLACE_HXX
11 #define INCLUDED_TEST_CONTAINER_XNAMEREPLACE_HXX
12 
13 #include <rtl/ustring.hxx>
14 #include <test/testdllapi.hxx>
15 
16 #include <com/sun/star/uno/XInterface.hpp>
17 
18 #include <com/sun/star/uno/Reference.hxx>
19 #include <com/sun/star/uno/Any.hxx>
20 
21 namespace apitest
22 {
24 {
25 public:
26  XNameReplace(const OUString& rName)
27  : m_aReplacementName(rName)
28  {
29  }
30 
31  virtual css::uno::Reference<css::uno::XInterface> init() = 0;
32  void testReplaceByName();
33 
34  void setElement(const css::uno::Any& rElement) { m_aReplacementElement = rElement; }
35 
36 protected:
38 
39 private:
41  css::uno::Any m_aReplacementElement;
42 };
43 
44 } // namespace apitest
45 
46 #endif // INCLUDED_TEST_CONTAINER_XNAMEREPLACE_HXX
47 
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
XNameReplace(const OUString &rName)
css::uno::Any m_aReplacementElement
void setElement(const css::uno::Any &rElement)
FILE * init(int, char **)
#define OOO_DLLPUBLIC_TEST
Definition: testdllapi.hxx:28