Update ooo320-m1
[ooovba.git] / reportdesign / source / ui / inc / FixedTextColor.hxx
blob6be4c07395378dbbc643a327809b31bc0d1316b4
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: UndoEnv.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 INCLUDED_FIXEDTEXTCOLOR_HXX
32 #define INCLUDED_FIXEDTEXTCOLOR_HXX
34 /** === begin UNO includes === **/
35 #include <com/sun/star/beans/PropertyChangeEvent.hpp>
36 #include <com/sun/star/container/XChild.hpp>
37 #include <com/sun/star/awt/XVclWindowPeer.hpp>
38 #include <com/sun/star/awt/XControl.hpp>
39 #include <com/sun/star/lang/XComponent.hpp>
40 #include <com/sun/star/report/XFixedText.hpp>
41 /** === end UNO includes === **/
43 #include <IReportControllerObserver.hxx>
45 //#include <boost/noncopyable.hpp>
46 #include <vector>
48 namespace rptui
50 class OReportController;
52 class FixedTextColor : public IReportControllerObserver
54 const OReportController& m_rReportController;
56 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XVclWindowPeer > getVclWindowPeer(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XFixedText >& _xComponent) throw(::com::sun::star::uno::RuntimeException);
57 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > getXControl(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XFixedText >& _xFixedText) throw(::com::sun::star::uno::RuntimeException);
59 void setPropertyTextColor(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XVclWindowPeer >& _xVclWindowPeer, sal_Int32 _nFormatKey);
61 // sal_Int32 getTextColor();
63 public:
64 FixedTextColor(const OReportController & _aObserver);
65 virtual ~FixedTextColor();
67 void notifyPropertyChange( const ::com::sun::star::beans::PropertyChangeEvent& _rEvent );
68 void notifyElementInserted( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxElement );
69 void handle( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxElement );
73 } // namespace rptui
76 #endif