Bump for 3.6-28
[LibreOffice.git] / extensions / source / propctrlr / xsdvalidationpropertyhandler.hxx
blob9bcf9e4dd3e4a4852f8eebec7a630fe85af597f9
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 ************************************************************************/
29 #ifndef EXTENSIONS_SOURCE_PROPCTRLR_XSDVALIDATIONPROPERTYHANDLER_HXX
30 #define EXTENSIONS_SOURCE_PROPCTRLR_XSDVALIDATIONPROPERTYHANDLER_HXX
32 #include "propertyhandler.hxx"
34 /** === begin UNO includes === **/
35 /** === end UNO includes === **/
37 #include <memory>
39 //........................................................................
40 namespace pcr
42 //........................................................................
44 class XSDValidationHelper;
45 //====================================================================
46 //= XSDValidationPropertyHandler
47 //====================================================================
48 class XSDValidationPropertyHandler;
49 typedef HandlerComponentBase< XSDValidationPropertyHandler > XSDValidationPropertyHandler_Base;
50 class XSDValidationPropertyHandler : public XSDValidationPropertyHandler_Base
52 private:
53 ::std::auto_ptr< XSDValidationHelper > m_pHelper;
55 public:
56 XSDValidationPropertyHandler(
57 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext
60 static ::rtl::OUString SAL_CALL getImplementationName_static( ) throw (::com::sun::star::uno::RuntimeException);
61 static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_static( ) throw (::com::sun::star::uno::RuntimeException);
63 protected:
64 ~XSDValidationPropertyHandler();
66 protected:
67 // XPropertyHandler overriables
68 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& _rPropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
69 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& _rPropertyName, const ::com::sun::star::uno::Any& _rValue ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
70 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString >
71 SAL_CALL getSupersededProperties( ) throw (::com::sun::star::uno::RuntimeException);
72 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString >
73 SAL_CALL getActuatingProperties( ) throw (::com::sun::star::uno::RuntimeException);
74 virtual ::com::sun::star::inspection::LineDescriptor
75 SAL_CALL describePropertyLine( const ::rtl::OUString& _rPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlFactory >& _rxControlFactory ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::NullPointerException, ::com::sun::star::uno::RuntimeException);
76 virtual ::com::sun::star::inspection::InteractiveSelectionResult
77 SAL_CALL onInteractivePropertySelection( const ::rtl::OUString& _rPropertyName, sal_Bool _bPrimary, ::com::sun::star::uno::Any& _rData, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XObjectInspectorUI >& _rxInspectorUI ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::NullPointerException, ::com::sun::star::uno::RuntimeException);
78 virtual void SAL_CALL actuatingPropertyChanged( const ::rtl::OUString& _rActuatingPropertyName, const ::com::sun::star::uno::Any& _rNewValue, const ::com::sun::star::uno::Any& _rOldValue, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XObjectInspectorUI >& _rxInspectorUI, sal_Bool ) throw (::com::sun::star::lang::NullPointerException, ::com::sun::star::uno::RuntimeException);
79 virtual void SAL_CALL addPropertyChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& _rxListener ) throw (::com::sun::star::uno::RuntimeException);
80 virtual void SAL_CALL removePropertyChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& _rxListener ) throw (::com::sun::star::uno::RuntimeException);
82 // PropertyHandler overridables
83 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >
84 SAL_CALL doDescribeSupportedProperties() const;
85 virtual void onNewComponent();
87 private:
88 bool implPrepareRemoveCurrentDataType() SAL_THROW(());
89 bool implDoRemoveCurrentDataType() SAL_THROW(());
91 bool implPrepareCloneDataCurrentType( ::rtl::OUString& _rNewName ) SAL_THROW(());
92 bool implDoCloneCurrentDataType( const ::rtl::OUString& _rNewName ) SAL_THROW(());
94 /** retrieves the names of the data types which our introspectee can be validated against
96 void implGetAvailableDataTypeNames( ::std::vector< ::rtl::OUString >& /* [out] */ _rNames ) const SAL_THROW(());
99 //........................................................................
100 } // namespace pcr
101 //........................................................................
103 #endif // EXTENSIONS_SOURCE_PROPCTRLR_XSDVALIDATIONPROPERTYHANDLER_HXX
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */