1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_REPORTDESIGN_SOURCE_CORE_INC_REPORTCOMPONENT_HXX
21 #define INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_REPORTCOMPONENT_HXX
23 #include <com/sun/star/uno/XComponentContext.hpp>
24 #include <com/sun/star/container/XChild.hpp>
25 #include <com/sun/star/drawing/XShape.hpp>
26 #include <com/sun/star/lang/XServiceInfo.hpp>
27 #include <com/sun/star/lang/XTypeProvider.hpp>
28 #include <com/sun/star/lang/XUnoTunnel.hpp>
29 #include <com/sun/star/uno/XAggregation.hpp>
30 #include <com/sun/star/report/XReportComponent.hpp>
31 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
32 #include <cppuhelper/weakref.hxx>
33 #include <comphelper/uno3.hxx>
35 namespace reportdesign
37 class OReportComponentProperties
40 ::com::sun::star::uno::WeakReference
< ::com::sun::star::container::XChild
> m_xParent
;
41 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
> m_xContext
;
42 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>
44 ::com::sun::star::uno::Reference
< ::com::sun::star::drawing::XShape
> m_xShape
;
45 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XAggregation
> m_xProxy
;
46 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> m_xProperty
;
47 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XTypeProvider
> m_xTypeProvider
;
48 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XUnoTunnel
> m_xUnoTunnel
;
49 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XServiceInfo
> m_xServiceInfo
;
50 ::com::sun::star::uno::Sequence
< OUString
> m_aMasterFields
;
51 ::com::sun::star::uno::Sequence
< OUString
> m_aDetailFields
;
53 ::sal_Int32 m_nHeight
;
57 ::sal_Int32 m_nBorderColor
;
58 ::sal_Int16 m_nBorder
;
59 bool m_bPrintRepeatedValues
;
61 OReportComponentProperties(::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
> const & _xContext
63 :m_xContext(_xContext
)
70 ,m_bPrintRepeatedValues(true)
72 ~OReportComponentProperties();
74 void setShape(::com::sun::star::uno::Reference
< ::com::sun::star::drawing::XShape
>& _xShape
75 ,const ::com::sun::star::uno::Reference
< ::com::sun::star::report::XReportComponent
>& _xTunnel
76 ,oslInterlockedCount
& _rRefCount
);
79 #endif // INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_REPORTCOMPONENT_HXX
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */