office-gobmx/forms/source/component/Hidden.hxx

87 lines
3.5 KiB
C++
Raw Normal View History

2010-10-27 06:45:03 -05:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2000-09-18 10:33:13 -05:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2000-09-18 10:33:13 -05:00
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
2000-09-18 10:33:13 -05:00
*
* OpenOffice.org - a multi-platform office productivity suite
2000-09-18 10:33:13 -05:00
*
* This file is part of OpenOffice.org.
2000-09-18 10:33:13 -05:00
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
2000-09-18 10:33:13 -05:00
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
2000-09-18 10:33:13 -05:00
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
2000-09-18 10:33:13 -05:00
*
************************************************************************/
#ifndef _FORMS_HIDDEN_HXX_
#define _FORMS_HIDDEN_HXX_
#include "FormComponent.hxx"
//.........................................................................
namespace frm
{
//==================================================================
// OHiddenModel
//==================================================================
class OHiddenModel
:public OControlModel
{
::rtl::OUString m_sHiddenValue;
public:
DECLARE_DEFAULT_LEAF_XTOR( OHiddenModel );
2000-09-18 10:33:13 -05:00
// OPropertySetHelper
2000-11-23 01:48:15 -06:00
virtual void SAL_CALL getFastPropertyValue(::com::sun::star::uno::Any& rValue, sal_Int32 nHandle) const;
virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue )
throw (::com::sun::star::uno::Exception);
2000-09-18 10:33:13 -05:00
virtual sal_Bool SAL_CALL convertFastPropertyValue(
2000-11-23 01:48:15 -06:00
::com::sun::star::uno::Any& _rConvertedValue, ::com::sun::star::uno::Any& _rOldValue, sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rValue )
throw (::com::sun::star::lang::IllegalArgumentException);
2000-09-18 10:33:13 -05:00
// XServiceInfo
IMPLEMENTATION_NAME(OHiddenModel);
virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
// XPersistObject
2000-11-23 01:48:15 -06:00
virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
2000-09-18 10:33:13 -05:00
virtual void SAL_CALL
2000-11-23 01:48:15 -06:00
write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
2000-09-18 10:33:13 -05:00
virtual void SAL_CALL
2000-11-23 01:48:15 -06:00
read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
2000-09-18 10:33:13 -05:00
// OControlModel's property handling
virtual void describeFixedProperties(
::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps
) const;
// prevent method hiding
using OControlModel::getFastPropertyValue;
protected:
DECLARE_XCLONEABLE( );
2000-09-18 10:33:13 -05:00
};
#endif // _FORMS_HIDDEN_HXX_
//.........................................................................
}
//.........................................................................
2010-10-27 06:45:03 -05:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */