Update ooo320-m1
[ooovba.git] / reportdesign / source / ui / inc / FormattedFieldBeautifier.hxx
blob67ee03f5fdf2450cf9aafa9a7ffe50a063a2c9c1
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_FORMATTEDFIELDBEAUTIFIER_HXX
32 #define INCLUDED_FORMATTEDFIELDBEAUTIFIER_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/report/XReportComponent.hpp>
39 #include <com/sun/star/report/XFormattedField.hpp>
40 /** === end UNO includes === **/
42 //#include <boost/noncopyable.hpp>
43 #include <vector>
44 #include <IReportControllerObserver.hxx>
46 namespace rptui
48 class OReportController;
50 class FormattedFieldBeautifier : public IReportControllerObserver
52 const OReportController& m_rReportController;
53 sal_Int32 m_nTextColor;
55 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XVclWindowPeer > getVclWindowPeer(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent >& _xComponent) throw(::com::sun::star::uno::RuntimeException);
57 void setPlaceholderText( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxComponent );
58 void setPlaceholderText( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XVclWindowPeer >& _xVclWindowPeer, const ::rtl::OUString& _rText );
60 sal_Int32 getTextColor();
62 public:
63 FormattedFieldBeautifier(const OReportController & _aObserver);
64 virtual ~FormattedFieldBeautifier();
66 void notifyPropertyChange( const ::com::sun::star::beans::PropertyChangeEvent& _rEvent );
67 void notifyElementInserted( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxElement );
68 void handle( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxElement );
71 } // namespace rptui
74 #endif