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