1*2d785d7eSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*2d785d7eSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*2d785d7eSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*2d785d7eSAndrew Rist * distributed with this work for additional information 6*2d785d7eSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*2d785d7eSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*2d785d7eSAndrew Rist * "License"); you may not use this file except in compliance 9*2d785d7eSAndrew Rist * with the License. You may obtain a copy of the License at 10*2d785d7eSAndrew Rist * 11*2d785d7eSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*2d785d7eSAndrew Rist * 13*2d785d7eSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*2d785d7eSAndrew Rist * software distributed under the License is distributed on an 15*2d785d7eSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*2d785d7eSAndrew Rist * KIND, either express or implied. See the License for the 17*2d785d7eSAndrew Rist * specific language governing permissions and limitations 18*2d785d7eSAndrew Rist * under the License. 19*2d785d7eSAndrew Rist * 20*2d785d7eSAndrew Rist *************************************************************/ 21*2d785d7eSAndrew Rist 22*2d785d7eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _MODEL_HXX 25cdf0e10cSrcweir #define _MODEL_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir 28cdf0e10cSrcweir // include for parent class(es) 29cdf0e10cSrcweir #include <cppuhelper/implbase4.hxx> 30cdf0e10cSrcweir #include <propertysetbase.hxx> 31cdf0e10cSrcweir #include <com/sun/star/xforms/XModel.hpp> 32cdf0e10cSrcweir #include <com/sun/star/xforms/XFormsUIHelper1.hpp> 33cdf0e10cSrcweir #include <com/sun/star/util/XUpdatable.hpp> 34cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp> 35cdf0e10cSrcweir 36cdf0e10cSrcweir 37cdf0e10cSrcweir // includes for member variables 38cdf0e10cSrcweir #include <com/sun/star/uno/Reference.hxx> 39cdf0e10cSrcweir #include <map> 40cdf0e10cSrcweir 41cdf0e10cSrcweir 42cdf0e10cSrcweir // forward declaractions 43cdf0e10cSrcweir namespace com { namespace sun { namespace star 44cdf0e10cSrcweir { 45cdf0e10cSrcweir namespace xml { namespace dom { class XDocument; } } 46cdf0e10cSrcweir namespace xml { namespace dom { class XNode; } } 47cdf0e10cSrcweir namespace uno { template<typename T> class Sequence; } 48cdf0e10cSrcweir namespace lang { class IndexOutOfBoundsException; } 49cdf0e10cSrcweir namespace lang { class IllegalArgumentException; } 50cdf0e10cSrcweir namespace beans { class XPropertySet; } 51cdf0e10cSrcweir namespace container { class XSet; } 52cdf0e10cSrcweir namespace container { class XNameContainer; } 53cdf0e10cSrcweir namespace frame { class XModel; } 54cdf0e10cSrcweir } } } 55cdf0e10cSrcweir namespace rtl { class OUString; } 56cdf0e10cSrcweir namespace xforms 57cdf0e10cSrcweir { 58cdf0e10cSrcweir class Binding; 59cdf0e10cSrcweir class MIP; 60cdf0e10cSrcweir class BindingCollection; 61cdf0e10cSrcweir class SubmissionCollection; 62cdf0e10cSrcweir class InstanceCollection; 63cdf0e10cSrcweir class EvaluationContext; 64cdf0e10cSrcweir } 65cdf0e10cSrcweir 66cdf0e10cSrcweir 67cdf0e10cSrcweir namespace xforms 68cdf0e10cSrcweir { 69cdf0e10cSrcweir 70cdf0e10cSrcweir /** An XForms Model. Contains: 71cdf0e10cSrcweir * # (set of) instance data (XML DOM tree) 72cdf0e10cSrcweir * # (set of) bindings 73cdf0e10cSrcweir * # (set of) submissions 74cdf0e10cSrcweir * # (NOT YET IMPLEMENTED) actions (set of) 75cdf0e10cSrcweir * 76cdf0e10cSrcweir * See http://www.w3.org/TR/xforms/ for more information. 77cdf0e10cSrcweir */ 78cdf0e10cSrcweir typedef cppu::ImplInheritanceHelper4< 79cdf0e10cSrcweir PropertySetBase, 80cdf0e10cSrcweir com::sun::star::xforms::XModel, 81cdf0e10cSrcweir com::sun::star::xforms::XFormsUIHelper1, 82cdf0e10cSrcweir com::sun::star::util::XUpdatable, 83cdf0e10cSrcweir com::sun::star::lang::XUnoTunnel 84cdf0e10cSrcweir > Model_t; 85cdf0e10cSrcweir class Model : public Model_t 86cdf0e10cSrcweir { 87cdf0e10cSrcweir // a number of local typedefs, to make the remaining header readable 88cdf0e10cSrcweir typedef com::sun::star::uno::Reference<com::sun::star::xml::dom::XDocument> XDocument_t; 89cdf0e10cSrcweir typedef com::sun::star::uno::Reference<com::sun::star::xml::dom::XNode> XNode_t; 90cdf0e10cSrcweir typedef com::sun::star::lang::IndexOutOfBoundsException IndexOutOfBoundsException_t; 91cdf0e10cSrcweir typedef com::sun::star::lang::IllegalArgumentException IllegalArgumentException_t; 92cdf0e10cSrcweir typedef com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> XPropertySet_t; 93cdf0e10cSrcweir typedef com::sun::star::uno::Reference<com::sun::star::xforms::XDataTypeRepository> XDataTypeRepository_t; 94cdf0e10cSrcweir typedef com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> XNameContainer_t; 95cdf0e10cSrcweir typedef com::sun::star::uno::Reference<com::sun::star::xforms::XSubmission> XSubmission_t; 96cdf0e10cSrcweir typedef com::sun::star::uno::Reference<com::sun::star::frame::XModel> Frame_XModel_t; 97cdf0e10cSrcweir typedef com::sun::star::uno::Reference<com::sun::star::xforms::XModel> XModel_t; 98cdf0e10cSrcweir typedef com::sun::star::uno::Reference<com::sun::star::task::XInteractionHandler> XInteractionHandler_t; 99cdf0e10cSrcweir 100cdf0e10cSrcweir typedef com::sun::star::uno::Reference<com::sun::star::container::XSet> XSet_t; 101cdf0e10cSrcweir typedef com::sun::star::beans::PropertyVetoException PropertyVetoException_t; 102cdf0e10cSrcweir typedef com::sun::star::beans::UnknownPropertyException UnknownPropertyException_t; 103cdf0e10cSrcweir typedef com::sun::star::util::VetoException VetoException_t; 104cdf0e10cSrcweir typedef com::sun::star::lang::WrappedTargetException WrappedTargetException_t; 105cdf0e10cSrcweir typedef com::sun::star::uno::RuntimeException RuntimeException_t; 106cdf0e10cSrcweir typedef com::sun::star::uno::Any Any_t; 107cdf0e10cSrcweir typedef com::sun::star::uno::Sequence<sal_Int8> IntSequence_t; 108cdf0e10cSrcweir typedef std::multimap<XNode_t,std::pair<void*,MIP> > MIPs_t; 109cdf0e10cSrcweir 110cdf0e10cSrcweir 111cdf0e10cSrcweir private: 112cdf0e10cSrcweir 113cdf0e10cSrcweir rtl::OUString msID; /// the model ID 114cdf0e10cSrcweir BindingCollection* mpBindings; /// the bindings 115cdf0e10cSrcweir SubmissionCollection* mpSubmissions; /// the submissions 116cdf0e10cSrcweir InstanceCollection* mpInstances; /// the instance(s) 117cdf0e10cSrcweir 118cdf0e10cSrcweir XDataTypeRepository_t mxDataTypes; /// the XSD data-types used 119cdf0e10cSrcweir XDocument_t mxForeignSchema; /// the XSD-schema part we cannot 120cdf0e10cSrcweir /// map onto data types 121cdf0e10cSrcweir rtl::OUString msSchemaRef; /// xforms:model/@schema attribute 122cdf0e10cSrcweir 123cdf0e10cSrcweir XNameContainer_t mxNamespaces; /// namespaces for entire model 124cdf0e10cSrcweir 125cdf0e10cSrcweir 126cdf0e10cSrcweir // references to mpBindings/mpSubmissions, for UNO reference counting 127cdf0e10cSrcweir XSet_t mxBindings; 128cdf0e10cSrcweir XSet_t mxSubmissions; 129cdf0e10cSrcweir XSet_t mxInstances; 130cdf0e10cSrcweir 131cdf0e10cSrcweir MIPs_t maMIPs; /// map nodes to their MIPs 132cdf0e10cSrcweir 133cdf0e10cSrcweir bool mbInitialized; /// has model been initialized ? 134cdf0e10cSrcweir bool mbExternalData; /// is the data of this model to be considered an ingegral part of the document? 135cdf0e10cSrcweir 136cdf0e10cSrcweir void initializePropertySet(); 137cdf0e10cSrcweir 138cdf0e10cSrcweir void ensureAtLeastOneInstance(); 139cdf0e10cSrcweir 140cdf0e10cSrcweir 141cdf0e10cSrcweir public: 142cdf0e10cSrcweir 143cdf0e10cSrcweir /// create a new model with an empty, default instance 144cdf0e10cSrcweir Model(); 145cdf0e10cSrcweir virtual ~Model() throw(); 146cdf0e10cSrcweir 147cdf0e10cSrcweir // get Model implementation from API object 148cdf0e10cSrcweir static Model* getModel( const com::sun::star::uno::Reference<com::sun::star::xforms::XModel>& ); 149cdf0e10cSrcweir 150cdf0e10cSrcweir xforms::EvaluationContext getEvaluationContext(); 151cdf0e10cSrcweir 152cdf0e10cSrcweir 153cdf0e10cSrcweir static IntSequence_t getUnoTunnelID(); 154cdf0e10cSrcweir 155cdf0e10cSrcweir 156cdf0e10cSrcweir // get/set that part of the schema, that we can't interpret as data types 157cdf0e10cSrcweir XDocument_t getForeignSchema() const; 158cdf0e10cSrcweir void setForeignSchema( const XDocument_t& ); 159cdf0e10cSrcweir 160cdf0e10cSrcweir // get/set the xforms:model/@schema attribute 161cdf0e10cSrcweir rtl::OUString getSchemaRef() const; 162cdf0e10cSrcweir void setSchemaRef( const rtl::OUString& ); 163cdf0e10cSrcweir 164cdf0e10cSrcweir // get/set namespaces for entire model 165cdf0e10cSrcweir XNameContainer_t getNamespaces() const; 166cdf0e10cSrcweir void setNamespaces( const XNameContainer_t& ); 167cdf0e10cSrcweir 168cdf0e10cSrcweir // get/set the ExternalData property 169cdf0e10cSrcweir bool getExternalData() const; 170cdf0e10cSrcweir void setExternalData( bool _bData ); 171cdf0e10cSrcweir 172cdf0e10cSrcweir 173cdf0e10cSrcweir #if OSL_DEBUG_LEVEL > 1 174cdf0e10cSrcweir void dbg_assertInvariant() const; 175cdf0e10cSrcweir #endif 176cdf0e10cSrcweir 177cdf0e10cSrcweir 178cdf0e10cSrcweir // 179cdf0e10cSrcweir // MIP (model item property) management 180cdf0e10cSrcweir // 181cdf0e10cSrcweir 182cdf0e10cSrcweir // register MIPs which apply to a given node; only to be called by bindings 183cdf0e10cSrcweir // (The pTag parameter serves only to be able to remove the MIPs 184cdf0e10cSrcweir // that were added using the same tag. No functions will be 185cdf0e10cSrcweir // performed on it; hence the void* type.) 186cdf0e10cSrcweir void addMIP( void* pTag, const XNode_t&, const MIP& ); 187cdf0e10cSrcweir void removeMIPs( void* pTag ); 188cdf0e10cSrcweir 189cdf0e10cSrcweir /// query which MIPs appy to the given node 190cdf0e10cSrcweir MIP queryMIP( const XNode_t& xNode ) const; 191cdf0e10cSrcweir 192cdf0e10cSrcweir /// re-bind all bindings 193cdf0e10cSrcweir void rebind(); 194cdf0e10cSrcweir 195cdf0e10cSrcweir /// call defer notifications on all bindings 196cdf0e10cSrcweir void deferNotifications( bool ); 197cdf0e10cSrcweir 198cdf0e10cSrcweir /// set a data value in the instance 199cdf0e10cSrcweir /// (also defers notifications) 200cdf0e10cSrcweir bool setSimpleContent( const XNode_t&, const rtl::OUString& ); 201cdf0e10cSrcweir 202cdf0e10cSrcweir /// load instance data 203cdf0e10cSrcweir void loadInstance( sal_Int32 nInstance ); 204cdf0e10cSrcweir void loadInstances(); 205cdf0e10cSrcweir 206cdf0e10cSrcweir /// has model been initialized? 207cdf0e10cSrcweir bool isInitialized() const; 208cdf0e10cSrcweir 209cdf0e10cSrcweir /// is model currently valid (for submission)? 210cdf0e10cSrcweir bool isValid() const; 211cdf0e10cSrcweir 212cdf0e10cSrcweir 213cdf0e10cSrcweir 214cdf0e10cSrcweir // 215cdf0e10cSrcweir // XModel 216cdf0e10cSrcweir // implement the xforms::XModel implementation 217cdf0e10cSrcweir // 218cdf0e10cSrcweir 219cdf0e10cSrcweir 220cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getID() 221cdf0e10cSrcweir throw( RuntimeException_t ); 222cdf0e10cSrcweir 223cdf0e10cSrcweir virtual void SAL_CALL setID( const rtl::OUString& sID ) 224cdf0e10cSrcweir throw( RuntimeException_t ); 225cdf0e10cSrcweir 226cdf0e10cSrcweir virtual void SAL_CALL initialize() 227cdf0e10cSrcweir throw( RuntimeException_t ); 228cdf0e10cSrcweir 229cdf0e10cSrcweir virtual void SAL_CALL rebuild() 230cdf0e10cSrcweir throw( RuntimeException_t ); 231cdf0e10cSrcweir 232cdf0e10cSrcweir virtual void SAL_CALL recalculate() 233cdf0e10cSrcweir throw( RuntimeException_t ); 234cdf0e10cSrcweir 235cdf0e10cSrcweir virtual void SAL_CALL revalidate() 236cdf0e10cSrcweir throw( RuntimeException_t ); 237cdf0e10cSrcweir 238cdf0e10cSrcweir virtual void SAL_CALL refresh() 239cdf0e10cSrcweir throw( RuntimeException_t ); 240cdf0e10cSrcweir 241cdf0e10cSrcweir virtual void SAL_CALL submit( const rtl::OUString& sID ) 242cdf0e10cSrcweir throw( VetoException_t, WrappedTargetException_t, RuntimeException_t ); 243cdf0e10cSrcweir 244cdf0e10cSrcweir virtual void SAL_CALL submitWithInteraction( const ::rtl::OUString& id, const XInteractionHandler_t& _rxHandler ) 245cdf0e10cSrcweir throw( VetoException_t, WrappedTargetException_t, RuntimeException_t ); 246cdf0e10cSrcweir 247cdf0e10cSrcweir virtual XDataTypeRepository_t SAL_CALL getDataTypeRepository( ) 248cdf0e10cSrcweir throw( RuntimeException_t ); 249cdf0e10cSrcweir 250cdf0e10cSrcweir 251cdf0e10cSrcweir // XModel: instance management 252cdf0e10cSrcweir 253cdf0e10cSrcweir virtual XSet_t SAL_CALL getInstances() 254cdf0e10cSrcweir throw( RuntimeException_t ); 255cdf0e10cSrcweir 256cdf0e10cSrcweir virtual XDocument_t SAL_CALL getInstanceDocument( const rtl::OUString& ) 257cdf0e10cSrcweir throw( RuntimeException_t ); 258cdf0e10cSrcweir 259cdf0e10cSrcweir virtual XDocument_t SAL_CALL getDefaultInstance() 260cdf0e10cSrcweir throw( RuntimeException_t ); 261cdf0e10cSrcweir 262cdf0e10cSrcweir 263cdf0e10cSrcweir 264cdf0e10cSrcweir // XModel: binding management 265cdf0e10cSrcweir 266cdf0e10cSrcweir virtual XPropertySet_t SAL_CALL createBinding() 267cdf0e10cSrcweir throw( RuntimeException_t ); 268cdf0e10cSrcweir 269cdf0e10cSrcweir virtual XPropertySet_t SAL_CALL cloneBinding( const XPropertySet_t& ) 270cdf0e10cSrcweir throw( RuntimeException_t ); 271cdf0e10cSrcweir 272cdf0e10cSrcweir virtual XPropertySet_t SAL_CALL getBinding( const rtl::OUString& ) 273cdf0e10cSrcweir throw( RuntimeException_t ); 274cdf0e10cSrcweir 275cdf0e10cSrcweir virtual XSet_t SAL_CALL getBindings() 276cdf0e10cSrcweir throw( RuntimeException_t ); 277cdf0e10cSrcweir 278cdf0e10cSrcweir 279cdf0e10cSrcweir // XModel: submission management 280cdf0e10cSrcweir 281cdf0e10cSrcweir virtual XSubmission_t SAL_CALL createSubmission() 282cdf0e10cSrcweir throw( RuntimeException_t ); 283cdf0e10cSrcweir 284cdf0e10cSrcweir virtual XSubmission_t SAL_CALL cloneSubmission( const XPropertySet_t& ) 285cdf0e10cSrcweir throw( RuntimeException_t ); 286cdf0e10cSrcweir 287cdf0e10cSrcweir virtual XSubmission_t SAL_CALL getSubmission( const rtl::OUString& ) 288cdf0e10cSrcweir throw( RuntimeException_t ); 289cdf0e10cSrcweir 290cdf0e10cSrcweir virtual XSet_t SAL_CALL getSubmissions() 291cdf0e10cSrcweir throw( RuntimeException_t ); 292cdf0e10cSrcweir 293cdf0e10cSrcweir 294cdf0e10cSrcweir 295cdf0e10cSrcweir // 296cdf0e10cSrcweir // XFormsUIHelper1 & friends: 297cdf0e10cSrcweir // (implementation in model_ui.cxx) 298cdf0e10cSrcweir // 299cdf0e10cSrcweir 300cdf0e10cSrcweir /// determine a reasonable control service for a given node 301cdf0e10cSrcweir /// (based on data type MIP assigned to the node) 302cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getDefaultServiceNameForNode( const XNode_t& xNode ) throw (RuntimeException_t); 303cdf0e10cSrcweir 304cdf0e10cSrcweir /// call getDefaultBindingExpressionForNode with default evaluation context 305cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getDefaultBindingExpressionForNode( const XNode_t& xNode ) throw (RuntimeException_t); 306cdf0e10cSrcweir 307cdf0e10cSrcweir /// determine a reasonable default binding expression for a given node 308cdf0e10cSrcweir /// and a given evaluation context 309cdf0e10cSrcweir /// @returns expression, or empty string if no expression could be derived 310cdf0e10cSrcweir rtl::OUString getDefaultBindingExpressionForNode( 311cdf0e10cSrcweir const XNode_t&, 312cdf0e10cSrcweir const EvaluationContext& ); 313cdf0e10cSrcweir 314cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getNodeDisplayName( const XNode_t&, 315cdf0e10cSrcweir sal_Bool bDetail ) 316cdf0e10cSrcweir throw( RuntimeException_t ); 317cdf0e10cSrcweir 318cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getNodeName( const XNode_t& ) 319cdf0e10cSrcweir throw( RuntimeException_t ); 320cdf0e10cSrcweir 321cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getBindingName( const XPropertySet_t&, 322cdf0e10cSrcweir sal_Bool bDetail ) 323cdf0e10cSrcweir throw( RuntimeException_t ); 324cdf0e10cSrcweir 325cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getSubmissionName( const XPropertySet_t&, 326cdf0e10cSrcweir sal_Bool bDetail ) 327cdf0e10cSrcweir throw( RuntimeException_t ); 328cdf0e10cSrcweir 329cdf0e10cSrcweir virtual XPropertySet_t SAL_CALL cloneBindingAsGhost( const XPropertySet_t& ) 330cdf0e10cSrcweir throw( RuntimeException_t ); 331cdf0e10cSrcweir 332cdf0e10cSrcweir virtual void SAL_CALL removeBindingIfUseless( const XPropertySet_t& ) 333cdf0e10cSrcweir throw( RuntimeException_t ); 334cdf0e10cSrcweir 335cdf0e10cSrcweir virtual XDocument_t SAL_CALL newInstance( const rtl::OUString& sName, 336cdf0e10cSrcweir const rtl::OUString& sURL, 337cdf0e10cSrcweir sal_Bool bURLOnce ) 338cdf0e10cSrcweir throw( RuntimeException_t ); 339cdf0e10cSrcweir 340cdf0e10cSrcweir virtual void SAL_CALL renameInstance( const rtl::OUString& sFrom, 341cdf0e10cSrcweir const rtl::OUString& sTo, 342cdf0e10cSrcweir const rtl::OUString& sURL, 343cdf0e10cSrcweir sal_Bool bURLOnce ) 344cdf0e10cSrcweir throw( RuntimeException_t ); 345cdf0e10cSrcweir 346cdf0e10cSrcweir virtual void SAL_CALL removeInstance( const rtl::OUString& sName ) 347cdf0e10cSrcweir throw( RuntimeException_t ); 348cdf0e10cSrcweir 349cdf0e10cSrcweir 350cdf0e10cSrcweir virtual XModel_t SAL_CALL newModel( const Frame_XModel_t& xComponent, 351cdf0e10cSrcweir const rtl::OUString& sName ) 352cdf0e10cSrcweir throw( RuntimeException_t ); 353cdf0e10cSrcweir virtual void SAL_CALL renameModel( const Frame_XModel_t& xComponent, 354cdf0e10cSrcweir const rtl::OUString& sFrom, 355cdf0e10cSrcweir const rtl::OUString& sTo ) 356cdf0e10cSrcweir throw( RuntimeException_t ); 357cdf0e10cSrcweir 358cdf0e10cSrcweir virtual void SAL_CALL removeModel( const Frame_XModel_t& xComponent, 359cdf0e10cSrcweir const rtl::OUString& sName ) 360cdf0e10cSrcweir throw( RuntimeException_t ); 361cdf0e10cSrcweir 362cdf0e10cSrcweir 363cdf0e10cSrcweir virtual XNode_t SAL_CALL createElement( const XNode_t& xParent, 364cdf0e10cSrcweir const rtl::OUString& sName ) 365cdf0e10cSrcweir throw( RuntimeException_t ); 366cdf0e10cSrcweir 367cdf0e10cSrcweir virtual XNode_t SAL_CALL createAttribute( const XNode_t& xParent, 368cdf0e10cSrcweir const rtl::OUString& sName ) 369cdf0e10cSrcweir throw( RuntimeException_t ); 370cdf0e10cSrcweir 371cdf0e10cSrcweir virtual XNode_t SAL_CALL renameNode( const XNode_t& xNode, 372cdf0e10cSrcweir const rtl::OUString& sName ) 373cdf0e10cSrcweir throw( RuntimeException_t ); 374cdf0e10cSrcweir 375cdf0e10cSrcweir virtual XPropertySet_t SAL_CALL getBindingForNode( const XNode_t&, 376cdf0e10cSrcweir sal_Bool bCreate ) 377cdf0e10cSrcweir throw( RuntimeException_t ); 378cdf0e10cSrcweir 379cdf0e10cSrcweir virtual void SAL_CALL removeBindingForNode( const XNode_t& ) 380cdf0e10cSrcweir throw( RuntimeException_t ); 381cdf0e10cSrcweir 382cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getResultForExpression( 383cdf0e10cSrcweir const XPropertySet_t& xBinding, 384cdf0e10cSrcweir sal_Bool bIsBindingExpression, 385cdf0e10cSrcweir const rtl::OUString& sExpression ) 386cdf0e10cSrcweir throw( RuntimeException_t ); 387cdf0e10cSrcweir 388cdf0e10cSrcweir virtual sal_Bool SAL_CALL isValidXMLName( const rtl::OUString& sName ) 389cdf0e10cSrcweir throw( RuntimeException_t ); 390cdf0e10cSrcweir 391cdf0e10cSrcweir virtual sal_Bool SAL_CALL isValidPrefixName( const rtl::OUString& sName ) 392cdf0e10cSrcweir throw( RuntimeException_t ); 393cdf0e10cSrcweir 394cdf0e10cSrcweir virtual void SAL_CALL setNodeValue( 395cdf0e10cSrcweir const XNode_t& xNode, 396cdf0e10cSrcweir const rtl::OUString& sValue ) 397cdf0e10cSrcweir throw( RuntimeException_t ); 398cdf0e10cSrcweir 399cdf0e10cSrcweir 400cdf0e10cSrcweir // 401cdf0e10cSrcweir // XUpdatable 402cdf0e10cSrcweir // 403cdf0e10cSrcweir 404cdf0e10cSrcweir public: 405cdf0e10cSrcweir virtual void SAL_CALL update() 406cdf0e10cSrcweir throw( RuntimeException_t ); 407cdf0e10cSrcweir 408cdf0e10cSrcweir // 409cdf0e10cSrcweir // XUnoTunnel 410cdf0e10cSrcweir // 411cdf0e10cSrcweir 412cdf0e10cSrcweir public: 413cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( const IntSequence_t& ) 414cdf0e10cSrcweir throw( RuntimeException_t ); 415cdf0e10cSrcweir 416cdf0e10cSrcweir // 417cdf0e10cSrcweir // XTypeProvider::getImplementationId 418cdf0e10cSrcweir // 419cdf0e10cSrcweir 420cdf0e10cSrcweir public: 421cdf0e10cSrcweir virtual IntSequence_t SAL_CALL getImplementationId() 422cdf0e10cSrcweir throw( RuntimeException_t ); 423cdf0e10cSrcweir 424cdf0e10cSrcweir }; 425cdf0e10cSrcweir 426cdf0e10cSrcweir // finally, allow 'shifting' of Model objects into/out of Any 427cdf0e10cSrcweir void operator <<= ( com::sun::star::uno::Any&, const xforms::Model* ); 428cdf0e10cSrcweir bool operator >>= ( xforms::Model*, const com::sun::star::uno::Any& ); 429cdf0e10cSrcweir 430cdf0e10cSrcweir } // namespace 431cdf0e10cSrcweir #endif 432