Copy the gcc's stdlibs to solver even if not packaging them
[LibreOffice.git] / reportdesign / inc / PropertyForward.hxx
blobbec7eb21c0a6f4d197acc1ba014924b3d3970237
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef RPTUI_PROPERTYSETFORWARD_HXX
29 #define RPTUI_PROPERTYSETFORWARD_HXX
31 #include "dllapi.h"
32 #include <com/sun/star/beans/XPropertyChangeListener.hpp>
33 #include <com/sun/star/beans/XPropertySet.hpp>
34 #include <com/sun/star/beans/XPropertySetInfo.hpp>
35 #include <cppuhelper/compbase1.hxx>
36 #include "cppuhelper/basemutex.hxx"
37 #include "RptDef.hxx"
40 //........................................................................
41 namespace rptui
43 //........................................................................
44 typedef ::cppu::WeakComponentImplHelper1< ::com::sun::star::beans::XPropertyChangeListener
45 > OPropertyForward_Base;
47 /** \class OPropertyMediator
48 * \brief This class ensures the communication between two XPropertySet instances.
49 * Identical properties will be set at the other propertyset.
50 * \ingroup reportdesign_source_ui_misc
52 class REPORTDESIGN_DLLPUBLIC OPropertyMediator : public ::cppu::BaseMutex
53 ,public OPropertyForward_Base
55 TPropertyNamePair m_aNameMap;
56 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xSource;
57 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> m_xSourceInfo;
58 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xDest;
59 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> m_xDestInfo;
60 sal_Bool m_bInChange;
61 OPropertyMediator(OPropertyMediator&);
62 void operator =(OPropertyMediator&);
63 protected:
64 virtual ~OPropertyMediator();
66 /** this function is called upon disposing the component
68 virtual void SAL_CALL disposing();
69 public:
70 OPropertyMediator(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& _xSource
71 ,const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& _xDest
72 ,const TPropertyNamePair& _aNameMap
73 ,sal_Bool _bReverse = sal_False);
75 // ::com::sun::star::beans::XPropertyChangeListener
76 virtual void SAL_CALL propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw(::com::sun::star::uno::RuntimeException);
78 // ::com::sun::star::lang::XEventListener
79 virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& _rSource ) throw (::com::sun::star::uno::RuntimeException);
81 /** stop the listening mode.
83 void stopListening();
85 /** starts the listening mode again.
87 void startListening();
89 //........................................................................
90 } // namespace rptui
91 //........................................................................
92 #endif // RPTUI_PROPERTYSETFORWARD_HXX
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */