sync master with lastest vba changes
[ooovba.git] / reportdesign / source / core / inc / ReportComponent.hxx
blob0f8813a66320878a19040aef6d2e915ef2e37096
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ReportComponent.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef RPT_REPORTCOMPONENT_HXX
32 #define RPT_REPORTCOMPONENT_HXX
34 #include <com/sun/star/uno/XComponentContext.hpp>
35 #include <com/sun/star/container/XChild.hpp>
36 #include <com/sun/star/drawing/XShape.hpp>
37 #include <com/sun/star/lang/XServiceInfo.hpp>
38 #include <com/sun/star/lang/XTypeProvider.hpp>
39 #include <com/sun/star/lang/XUnoTunnel.hpp>
40 #include <com/sun/star/uno/XAggregation.hpp>
41 #include <com/sun/star/report/XReportComponent.hpp>
42 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
43 #include <cppuhelper/weakref.hxx>
44 #include <comphelper/uno3.hxx>
46 namespace reportdesign
48 class OReportComponentProperties
50 public:
51 ::com::sun::star::uno::WeakReference< ::com::sun::star::container::XChild > m_xParent;
52 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
53 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >
54 m_xFactory;
55 ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > m_xShape;
56 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation > m_xProxy;
57 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xProperty;
58 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XTypeProvider > m_xTypeProvider;
59 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XUnoTunnel > m_xUnoTunnel;
60 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XServiceInfo > m_xServiceInfo;
61 ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aMasterFields;
62 ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aDetailFields;
63 ::rtl::OUString m_sName;
64 ::sal_Int32 m_nHeight;
65 ::sal_Int32 m_nWidth;
66 ::sal_Int32 m_nPosX;
67 ::sal_Int32 m_nPosY;
68 ::sal_Int32 m_nBorderColor;
69 ::sal_Int16 m_nBorder;
70 ::sal_Bool m_bPrintRepeatedValues;
72 OReportComponentProperties(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & _xContext
74 :m_xContext(_xContext)
75 ,m_nHeight(0)
76 ,m_nWidth(0)
77 ,m_nPosX(0)
78 ,m_nPosY(0)
79 ,m_nBorderColor(0)
80 ,m_nBorder(2)
81 ,m_bPrintRepeatedValues(sal_True)
83 ~OReportComponentProperties();
85 void setShape(::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& _xShape
86 ,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent>& _xTunnel
87 ,oslInterlockedCount& _rRefCount);
90 #endif // RPT_REPORTCOMPONENT_HXX