fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / stoc / source / registry_tdprovider / structtypedescription.hxx
blobae8ecbab45e06fe93707a5fdc44de30059bdf560
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_stoc_source_registry_tdprovider_structtypedescription_hxx
21 #define INCLUDED_stoc_source_registry_tdprovider_structtypedescription_hxx
23 #include "com/sun/star/reflection/XPublished.hpp"
24 #include "com/sun/star/reflection/XStructTypeDescription.hpp"
25 #include "com/sun/star/uno/Reference.hxx"
26 #include "com/sun/star/uno/Sequence.hxx"
27 #include "cppuhelper/implbase2.hxx"
28 #include "rtl/ref.hxx"
29 #include "sal/types.h"
31 namespace com { namespace sun { namespace star {
32 namespace container { class XHierarchicalNameAccess; }
33 namespace reflection { class XCompoundTypeDescription; }
34 } } }
35 namespace stoc_rdbtdp { class CompoundTypeDescriptionImpl; }
37 namespace stoc { namespace registry_tdprovider {
39 class StructTypeDescription:
40 public cppu::WeakImplHelper2<
41 com::sun::star::reflection::XStructTypeDescription,
42 com::sun::star::reflection::XPublished >
44 public:
45 StructTypeDescription(
46 com::sun::star::uno::Reference<
47 com::sun::star::container::XHierarchicalNameAccess > const &
48 manager,
49 OUString const & name, OUString const & baseTypeName,
50 com::sun::star::uno::Sequence< sal_Int8 > const & data, bool published);
52 virtual ~StructTypeDescription();
54 virtual com::sun::star::uno::TypeClass SAL_CALL getTypeClass()
55 throw (com::sun::star::uno::RuntimeException);
57 virtual OUString SAL_CALL getName()
58 throw (com::sun::star::uno::RuntimeException);
60 virtual
61 com::sun::star::uno::Reference<
62 com::sun::star::reflection::XTypeDescription >
63 SAL_CALL getBaseType() throw (com::sun::star::uno::RuntimeException);
65 virtual
66 com::sun::star::uno::Sequence<
67 com::sun::star::uno::Reference<
68 com::sun::star::reflection::XTypeDescription > >
69 SAL_CALL getMemberTypes() throw (com::sun::star::uno::RuntimeException);
71 virtual com::sun::star::uno::Sequence< OUString > SAL_CALL
72 getMemberNames() throw (com::sun::star::uno::RuntimeException);
74 virtual com::sun::star::uno::Sequence< OUString > SAL_CALL
75 getTypeParameters() throw (com::sun::star::uno::RuntimeException);
77 virtual
78 com::sun::star::uno::Sequence<
79 com::sun::star::uno::Reference<
80 com::sun::star::reflection::XTypeDescription > >
81 SAL_CALL getTypeArguments() throw (com::sun::star::uno::RuntimeException);
83 virtual sal_Bool SAL_CALL isPublished()
84 throw (com::sun::star::uno::RuntimeException);
86 private:
87 StructTypeDescription(StructTypeDescription &); // not implemented
88 void operator =(StructTypeDescription); // not implemented
90 com::sun::star::uno::Sequence< sal_Int8 > m_data;
91 rtl::Reference< stoc_rdbtdp::CompoundTypeDescriptionImpl > m_base;
94 } }
96 #endif
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */