2010-10-27 12:45:03 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-21 22:06:52 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-11-05 02:31:05 +01:00
|
|
|
#ifndef INCLUDED_FORMS_SOURCE_XFORMS_MODEL_HXX
|
|
|
|
#define INCLUDED_FORMS_SOURCE_XFORMS_MODEL_HXX
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2015-03-17 12:25:11 +01:00
|
|
|
#include <cppuhelper/implbase.hxx>
|
2004-11-16 09:54:06 +00:00
|
|
|
#include <propertysetbase.hxx>
|
2013-03-01 16:32:32 +02:00
|
|
|
#include <com/sun/star/xforms/XModel2.hpp>
|
2004-11-16 09:54:06 +00:00
|
|
|
#include <com/sun/star/xforms/XFormsUIHelper1.hpp>
|
|
|
|
#include <com/sun/star/util/XUpdatable.hpp>
|
2015-03-17 12:25:11 +01:00
|
|
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
2004-11-16 09:54:06 +00:00
|
|
|
#include <com/sun/star/lang/XUnoTunnel.hpp>
|
|
|
|
|
|
|
|
#include <com/sun/star/uno/Reference.hxx>
|
2013-04-26 12:43:44 +00:00
|
|
|
#include "mip.hxx"
|
2004-11-16 09:54:06 +00:00
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
|
|
|
// forward declaractions
|
|
|
|
namespace com { namespace sun { namespace star
|
|
|
|
{
|
|
|
|
namespace xml { namespace dom { class XDocument; } }
|
|
|
|
namespace xml { namespace dom { class XNode; } }
|
|
|
|
namespace uno { template<typename T> class Sequence; }
|
|
|
|
namespace lang { class IndexOutOfBoundsException; }
|
|
|
|
namespace lang { class IllegalArgumentException; }
|
|
|
|
namespace beans { class XPropertySet; }
|
|
|
|
namespace container { class XSet; }
|
|
|
|
namespace container { class XNameContainer; }
|
|
|
|
namespace frame { class XModel; }
|
|
|
|
} } }
|
|
|
|
namespace xforms
|
|
|
|
{
|
|
|
|
class BindingCollection;
|
|
|
|
class SubmissionCollection;
|
|
|
|
class InstanceCollection;
|
|
|
|
class EvaluationContext;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
namespace xforms
|
|
|
|
{
|
|
|
|
|
|
|
|
/** An XForms Model. Contains:
|
|
|
|
* # (set of) instance data (XML DOM tree)
|
|
|
|
* # (set of) bindings
|
|
|
|
* # (set of) submissions
|
|
|
|
* # (NOT YET IMPLEMENTED) actions (set of)
|
|
|
|
*
|
|
|
|
* See http://www.w3.org/TR/xforms/ for more information.
|
|
|
|
*/
|
2015-03-17 12:25:11 +01:00
|
|
|
typedef cppu::ImplInheritanceHelper<
|
2005-03-23 10:37:16 +00:00
|
|
|
PropertySetBase,
|
2013-03-01 16:32:32 +02:00
|
|
|
com::sun::star::xforms::XModel2,
|
2005-03-23 10:37:16 +00:00
|
|
|
com::sun::star::xforms::XFormsUIHelper1,
|
|
|
|
com::sun::star::util::XUpdatable,
|
2015-03-17 12:25:11 +01:00
|
|
|
com::sun::star::lang::XUnoTunnel,
|
|
|
|
css::lang::XServiceInfo
|
2005-03-23 10:37:16 +00:00
|
|
|
> Model_t;
|
2004-11-16 09:54:06 +00:00
|
|
|
class Model : public Model_t
|
|
|
|
{
|
|
|
|
// a number of local typedefs, to make the remaining header readable
|
|
|
|
typedef com::sun::star::uno::Reference<com::sun::star::xml::dom::XDocument> XDocument_t;
|
|
|
|
typedef com::sun::star::uno::Reference<com::sun::star::xml::dom::XNode> XNode_t;
|
|
|
|
typedef com::sun::star::lang::IndexOutOfBoundsException IndexOutOfBoundsException_t;
|
|
|
|
typedef com::sun::star::lang::IllegalArgumentException IllegalArgumentException_t;
|
|
|
|
typedef com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> XPropertySet_t;
|
|
|
|
typedef com::sun::star::uno::Reference<com::sun::star::xforms::XDataTypeRepository> XDataTypeRepository_t;
|
|
|
|
typedef com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> XNameContainer_t;
|
|
|
|
typedef com::sun::star::uno::Reference<com::sun::star::xforms::XSubmission> XSubmission_t;
|
|
|
|
typedef com::sun::star::uno::Reference<com::sun::star::frame::XModel> Frame_XModel_t;
|
|
|
|
typedef com::sun::star::uno::Reference<com::sun::star::xforms::XModel> XModel_t;
|
2005-03-23 10:37:16 +00:00
|
|
|
typedef com::sun::star::uno::Reference<com::sun::star::task::XInteractionHandler> XInteractionHandler_t;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
typedef com::sun::star::uno::Reference<com::sun::star::container::XSet> XSet_t;
|
|
|
|
typedef com::sun::star::beans::PropertyVetoException PropertyVetoException_t;
|
|
|
|
typedef com::sun::star::beans::UnknownPropertyException UnknownPropertyException_t;
|
|
|
|
typedef com::sun::star::util::VetoException VetoException_t;
|
|
|
|
typedef com::sun::star::lang::WrappedTargetException WrappedTargetException_t;
|
|
|
|
typedef com::sun::star::uno::RuntimeException RuntimeException_t;
|
|
|
|
typedef com::sun::star::uno::Any Any_t;
|
|
|
|
typedef com::sun::star::uno::Sequence<sal_Int8> IntSequence_t;
|
|
|
|
typedef std::multimap<XNode_t,std::pair<void*,MIP> > MIPs_t;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString msID; /// the model ID
|
2004-11-16 09:54:06 +00:00
|
|
|
BindingCollection* mpBindings; /// the bindings
|
|
|
|
SubmissionCollection* mpSubmissions; /// the submissions
|
|
|
|
InstanceCollection* mpInstances; /// the instance(s)
|
|
|
|
|
|
|
|
XDataTypeRepository_t mxDataTypes; /// the XSD data-types used
|
|
|
|
XDocument_t mxForeignSchema; /// the XSD-schema part we cannot
|
|
|
|
/// map onto data types
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString msSchemaRef; /// xforms:model/@schema attribute
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
XNameContainer_t mxNamespaces; /// namespaces for entire model
|
|
|
|
|
|
|
|
|
|
|
|
// references to mpBindings/mpSubmissions, for UNO reference counting
|
|
|
|
XSet_t mxBindings;
|
|
|
|
XSet_t mxSubmissions;
|
|
|
|
XSet_t mxInstances;
|
|
|
|
|
|
|
|
MIPs_t maMIPs; /// map nodes to their MIPs
|
|
|
|
|
|
|
|
bool mbInitialized; /// has model been initialized ?
|
2008-06-25 13:30:14 +00:00
|
|
|
bool mbExternalData; /// is the data of this model to be considered an ingegral part of the document?
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2005-03-23 10:37:16 +00:00
|
|
|
void initializePropertySet();
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
void ensureAtLeastOneInstance();
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
/// create a new model with an empty, default instance
|
|
|
|
Model();
|
|
|
|
virtual ~Model() throw();
|
|
|
|
|
|
|
|
// get Model implementation from API object
|
|
|
|
static Model* getModel( const com::sun::star::uno::Reference<com::sun::star::xforms::XModel>& );
|
|
|
|
|
|
|
|
xforms::EvaluationContext getEvaluationContext();
|
|
|
|
|
|
|
|
|
|
|
|
static IntSequence_t getUnoTunnelID();
|
|
|
|
|
|
|
|
|
|
|
|
// get/set that part of the schema, that we can't interpret as data types
|
2014-06-12 14:06:28 +02:00
|
|
|
XDocument_t getForeignSchema() const { return mxForeignSchema;}
|
2004-11-16 09:54:06 +00:00
|
|
|
void setForeignSchema( const XDocument_t& );
|
|
|
|
|
|
|
|
// get/set the xforms:model/@schema attribute
|
2014-06-12 14:06:28 +02:00
|
|
|
OUString getSchemaRef() const { return msSchemaRef;}
|
2013-04-07 12:06:47 +02:00
|
|
|
void setSchemaRef( const OUString& );
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2005-03-23 10:37:16 +00:00
|
|
|
// get/set namespaces for entire model
|
2014-06-12 14:06:28 +02:00
|
|
|
XNameContainer_t getNamespaces() const { return mxNamespaces;}
|
2005-03-23 10:37:16 +00:00
|
|
|
void setNamespaces( const XNameContainer_t& );
|
|
|
|
|
2008-06-25 13:30:14 +00:00
|
|
|
// get/set the ExternalData property
|
2014-06-09 10:09:42 +02:00
|
|
|
bool getExternalData() const { return mbExternalData;}
|
2008-06-25 13:30:14 +00:00
|
|
|
void setExternalData( bool _bData );
|
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
#if OSL_DEBUG_LEVEL > 1
|
|
|
|
void dbg_assertInvariant() const;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
// MIP (model item property) management
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
// register MIPs which apply to a given node; only to be called by bindings
|
|
|
|
// (The pTag parameter serves only to be able to remove the MIPs
|
|
|
|
// that were added using the same tag. No functions will be
|
|
|
|
// performed on it; hence the void* type.)
|
|
|
|
void addMIP( void* pTag, const XNode_t&, const MIP& );
|
|
|
|
void removeMIPs( void* pTag );
|
|
|
|
|
2015-06-16 13:16:03 +02:00
|
|
|
/// query which MIPs apply to the given node
|
2004-11-16 09:54:06 +00:00
|
|
|
MIP queryMIP( const XNode_t& xNode ) const;
|
|
|
|
|
|
|
|
/// re-bind all bindings
|
|
|
|
void rebind();
|
|
|
|
|
|
|
|
/// call defer notifications on all bindings
|
|
|
|
void deferNotifications( bool );
|
|
|
|
|
|
|
|
/// set a data value in the instance
|
|
|
|
/// (also defers notifications)
|
2013-04-07 12:06:47 +02:00
|
|
|
bool setSimpleContent( const XNode_t&, const OUString& );
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
/// load instance data
|
|
|
|
void loadInstance( sal_Int32 nInstance );
|
|
|
|
void loadInstances();
|
|
|
|
|
|
|
|
/// has model been initialized?
|
2014-06-09 10:09:42 +02:00
|
|
|
bool isInitialized() const { return mbInitialized;}
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2005-03-23 10:37:16 +00:00
|
|
|
/// is model currently valid (for submission)?
|
|
|
|
bool isValid() const;
|
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
// XModel
|
|
|
|
// implement the xforms::XModel implementation
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual OUString SAL_CALL getID()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual void SAL_CALL setID( const OUString& sID )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual void SAL_CALL initialize()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual void SAL_CALL rebuild()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual void SAL_CALL recalculate()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual void SAL_CALL revalidate()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual void SAL_CALL refresh()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual void SAL_CALL submit( const OUString& sID )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( VetoException_t, WrappedTargetException_t, RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual void SAL_CALL submitWithInteraction( const OUString& id, const XInteractionHandler_t& _rxHandler )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( VetoException_t, WrappedTargetException_t, RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual XDataTypeRepository_t SAL_CALL getDataTypeRepository( )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
// XModel: instance management
|
|
|
|
|
|
|
|
virtual XSet_t SAL_CALL getInstances()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual XDocument_t SAL_CALL getInstanceDocument( const OUString& )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual XDocument_t SAL_CALL getDefaultInstance()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// XModel: binding management
|
|
|
|
|
|
|
|
virtual XPropertySet_t SAL_CALL createBinding()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual XPropertySet_t SAL_CALL cloneBinding( const XPropertySet_t& )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual XPropertySet_t SAL_CALL getBinding( const OUString& )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual XSet_t SAL_CALL getBindings()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
// XModel: submission management
|
|
|
|
|
|
|
|
virtual XSubmission_t SAL_CALL createSubmission()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual XSubmission_t SAL_CALL cloneSubmission( const XPropertySet_t& )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual XSubmission_t SAL_CALL getSubmission( const OUString& )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual XSet_t SAL_CALL getSubmissions()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-03-01 16:32:32 +02:00
|
|
|
// XPropertySet
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString& p)
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE
|
2013-03-01 16:32:32 +02:00
|
|
|
{ return PropertySetBase::getPropertyValue(p); }
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual void SAL_CALL addPropertyChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XPropertyChangeListener>& p2)
|
2014-04-23 09:05:24 +01:00
|
|
|
throw (css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-03-01 16:32:32 +02:00
|
|
|
{ PropertySetBase::addPropertyChangeListener(p1, p2); }
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual void SAL_CALL removePropertyChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XPropertyChangeListener>& p2)
|
2014-04-23 09:06:47 +01:00
|
|
|
throw (css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-03-01 16:32:32 +02:00
|
|
|
{ PropertySetBase::removePropertyChangeListener(p1, p2); }
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual void SAL_CALL addVetoableChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XVetoableChangeListener>& p2)
|
2014-04-23 09:06:15 +01:00
|
|
|
throw (css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE
|
2013-03-01 16:32:32 +02:00
|
|
|
{ PropertySetBase::addVetoableChangeListener(p1, p2); }
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual void SAL_CALL removeVetoableChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XVetoableChangeListener>& p2)
|
2014-04-22 21:04:17 +01:00
|
|
|
throw( css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE
|
2013-03-01 16:32:32 +02:00
|
|
|
{ PropertySetBase::removeVetoableChangeListener(p1, p2); }
|
|
|
|
|
|
|
|
virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE
|
2013-03-01 16:32:32 +02:00
|
|
|
{ return PropertySetBase::getPropertySetInfo(); }
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual void SAL_CALL setPropertyValue(const OUString& p1, const com::sun::star::uno::Any& p2)
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE
|
2013-03-01 16:32:32 +02:00
|
|
|
{ PropertySetBase::setPropertyValue(p1, p2); }
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
// XFormsUIHelper1 & friends:
|
|
|
|
// (implementation in model_ui.cxx)
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
/// determine a reasonable control service for a given node
|
|
|
|
/// (based on data type MIP assigned to the node)
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual OUString SAL_CALL getDefaultServiceNameForNode( const XNode_t& xNode ) throw (RuntimeException_t, std::exception) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
/// call getDefaultBindingExpressionForNode with default evaluation context
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual OUString SAL_CALL getDefaultBindingExpressionForNode( const XNode_t& xNode ) throw (RuntimeException_t, std::exception) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
/// determine a reasonable default binding expression for a given node
|
|
|
|
/// and a given evaluation context
|
|
|
|
/// @returns expression, or empty string if no expression could be derived
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString getDefaultBindingExpressionForNode(
|
2004-11-16 09:54:06 +00:00
|
|
|
const XNode_t&,
|
|
|
|
const EvaluationContext& );
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual OUString SAL_CALL getNodeDisplayName( const XNode_t&,
|
2004-11-16 09:54:06 +00:00
|
|
|
sal_Bool bDetail )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual OUString SAL_CALL getNodeName( const XNode_t& )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual OUString SAL_CALL getBindingName( const XPropertySet_t&,
|
2004-11-16 09:54:06 +00:00
|
|
|
sal_Bool bDetail )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual OUString SAL_CALL getSubmissionName( const XPropertySet_t&,
|
2004-11-16 09:54:06 +00:00
|
|
|
sal_Bool bDetail )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2005-03-23 10:37:16 +00:00
|
|
|
virtual XPropertySet_t SAL_CALL cloneBindingAsGhost( const XPropertySet_t& )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2005-03-23 10:37:16 +00:00
|
|
|
|
|
|
|
virtual void SAL_CALL removeBindingIfUseless( const XPropertySet_t& )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2005-03-23 10:37:16 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual XDocument_t SAL_CALL newInstance( const OUString& sName,
|
|
|
|
const OUString& sURL,
|
2004-11-16 09:54:06 +00:00
|
|
|
sal_Bool bURLOnce )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual void SAL_CALL renameInstance( const OUString& sFrom,
|
|
|
|
const OUString& sTo,
|
|
|
|
const OUString& sURL,
|
2005-03-23 10:37:16 +00:00
|
|
|
sal_Bool bURLOnce )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual void SAL_CALL removeInstance( const OUString& sName )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
virtual XModel_t SAL_CALL newModel( const Frame_XModel_t& xComponent,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& sName )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
virtual void SAL_CALL renameModel( const Frame_XModel_t& xComponent,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& sFrom,
|
|
|
|
const OUString& sTo )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual void SAL_CALL removeModel( const Frame_XModel_t& xComponent,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& sName )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
virtual XNode_t SAL_CALL createElement( const XNode_t& xParent,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& sName )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual XNode_t SAL_CALL createAttribute( const XNode_t& xParent,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& sName )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual XNode_t SAL_CALL renameNode( const XNode_t& xNode,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& sName )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual XPropertySet_t SAL_CALL getBindingForNode( const XNode_t&,
|
|
|
|
sal_Bool bCreate )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual void SAL_CALL removeBindingForNode( const XNode_t& )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual OUString SAL_CALL getResultForExpression(
|
2004-11-16 09:54:06 +00:00
|
|
|
const XPropertySet_t& xBinding,
|
|
|
|
sal_Bool bIsBindingExpression,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& sExpression )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual sal_Bool SAL_CALL isValidXMLName( const OUString& sName )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual sal_Bool SAL_CALL isValidPrefixName( const OUString& sName )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
virtual void SAL_CALL setNodeValue(
|
|
|
|
const XNode_t& xNode,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& sValue )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
// XUpdatable
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
virtual void SAL_CALL update()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
// XUnoTunnel
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
virtual sal_Int64 SAL_CALL getSomething( const IntSequence_t& )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t, std::exception ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
// XTypeProvider::getImplementationId
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2004-11-16 09:54:06 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
virtual IntSequence_t SAL_CALL getImplementationId()
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( RuntimeException_t ) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
|
2015-03-17 12:25:11 +01:00
|
|
|
OUString SAL_CALL getImplementationName()
|
|
|
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
|
|
|
|
sal_Bool SAL_CALL supportsService(OUString const & ServiceName)
|
|
|
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
|
|
|
|
css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
|
|
|
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2004-11-16 09:54:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
#endif
|
2010-10-27 12:45:03 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|