Files
libreoffice/forms/source/xforms/binding.cxx

1395 lines
42 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
re-base on ALv2 code. Includes: Patch contributed by Christian Lippka impress212: #i113063# patch: dubios self assign in svx/source/dialog/framelink.cxx http://svn.apache.org/viewvc?view=revision&revision=1167619 Patches contributed by Mathias Bauer gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 cws mba34issues01: #i117712#: fix several resource errors introduced by IAccessible2 implementation http://svn.apache.org/viewvc?view=revision&revision=1172343 cws mba34issues01: #i117719#: use correct resource ID http://svn.apache.org/viewvc?view=revision&revision=1172351 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 Patches contributed by Armin Le-Grand #118804# corrected GraphicExporter behaviour on shortcut when pixel graphic is requested http://svn.apache.org/viewvc?view=revision&revision=1240195 fix for #118525#: Using primitives for chart sub-geometry visualisation http://svn.apache.org/viewvc?view=revision&revision=1226879 #118485# - Styles for OLEs are not saved. http://svn.apache.org/viewvc?view=revision&revision=1182166 #118524: apply patch, followup fixes to 118485 http://svn.apache.org/viewvc?view=revision&revision=1186077 13f79535-47bb-0310-9956-ffa450edef68 Patch contributed by Regina Henschel linecap: Reintegrating finished LineCap feature http://svn.apache.org/viewvc?view=revision&revision=1232507 Patch contributed by Wang Lei (leiw) #i118760# split the first table cell vertically, then undo&redo, the Presentation app will crash http://svn.apache.org/viewvc?view=revision&revision=1301361 cleanup globlmn hacks, undo dependent fixmes.
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 .
*/
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
#include "binding.hxx"
#include "model.hxx"
#include "unohelper.hxx"
#include "NameContainer.hxx"
#include "evaluationcontext.hxx"
#include "convert.hxx"
#include "resourcehelper.hxx"
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
#include "xmlhelper.hxx"
#include "xformsevent.hxx"
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
#include <tools/diagnose_ex.h>
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
#include <algorithm>
#include <functional>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/xml/dom/XNodeList.hpp>
#include <com/sun/star/xml/dom/XNode.hpp>
#include <com/sun/star/xml/dom/XDocument.hpp>
#include <com/sun/star/xml/dom/XElement.hpp>
#include <com/sun/star/xml/dom/NodeType.hpp>
#include <com/sun/star/xml/dom/events/XEventTarget.hpp>
#include <com/sun/star/xml/dom/events/XEventListener.hpp>
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
#include <com/sun/star/xml/dom/events/XDocumentEvent.hpp>
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/container/XSet.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <comphelper/propertysetinfo.hxx>
#include <unotools/textsearch.hxx>
#include <cppuhelper/typeprovider.hxx>
using namespace com::sun::star::xml::xpath;
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
using namespace com::sun::star::xml::dom::events;
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
using std::vector;
using xforms::Binding;
using xforms::MIP;
using xforms::Model;
using xforms::getResource;
using xforms::EvaluationContext;
using com::sun::star::beans::PropertyVetoException;
using com::sun::star::beans::UnknownPropertyException;
using com::sun::star::beans::XPropertySet;
using com::sun::star::container::XSet;
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
using com::sun::star::container::XNameAccess;
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
using com::sun::star::form::binding::IncompatibleTypesException;
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
using com::sun::star::form::binding::InvalidBindingStateException;
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
using com::sun::star::form::binding::XValueBinding;
using com::sun::star::lang::EventObject;
using com::sun::star::lang::IllegalArgumentException;
using com::sun::star::lang::IndexOutOfBoundsException;
using com::sun::star::lang::NoSupportException;
using com::sun::star::lang::NullPointerException;
using com::sun::star::lang::WrappedTargetException;
using com::sun::star::lang::XUnoTunnel;
using com::sun::star::uno::Any;
using com::sun::star::uno::Reference;
using com::sun::star::uno::RuntimeException;
using com::sun::star::uno::Sequence;
using com::sun::star::uno::UNO_QUERY;
using com::sun::star::uno::UNO_QUERY_THROW;
using com::sun::star::uno::XInterface;
using com::sun::star::uno::Exception;
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
using com::sun::star::uno::makeAny;
using com::sun::star::util::XModifyListener;
using com::sun::star::xforms::XDataTypeRepository;
using com::sun::star::xml::dom::NodeType_ATTRIBUTE_NODE;
using com::sun::star::xml::dom::NodeType_TEXT_NODE;
using com::sun::star::xml::dom::XNode;
using com::sun::star::xml::dom::XNodeList;
using com::sun::star::xml::dom::events::XEventListener;
using com::sun::star::xml::dom::events::XEventTarget;
using com::sun::star::xsd::XDataType;
#define EXCEPT(msg) OUString(msg),static_cast<XValueBinding*>(this)
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
#define HANDLE_BindingID 0
#define HANDLE_BindingExpression 1
#define HANDLE_Model 2
#define HANDLE_ModelID 3
#define HANDLE_BindingNamespaces 4
#define HANDLE_ReadonlyExpression 5
#define HANDLE_RelevantExpression 6
#define HANDLE_RequiredExpression 7
#define HANDLE_ConstraintExpression 8
#define HANDLE_CalculateExpression 9
#define HANDLE_Type 10
#define HANDLE_ReadOnly 11 // from com.sun.star.form.binding.ValueBinding, for interaction with a bound form control
#define HANDLE_Relevant 12 // from com.sun.star.form.binding.ValueBinding, for interaction with a bound form control
#define HANDLE_ModelNamespaces 13
#define HANDLE_ExternalData 14
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
Binding::Binding() :
mxModel(),
msBindingID(),
maBindingExpression(),
maReadonly(),
mxNamespaces( new NameContainer<OUString>() ),
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
mbInCalculate( false ),
mnDeferModifyNotifications( 0 ),
mbValueModified( false ),
mbBindingModified( false )
{
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
initializePropertySet();
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
Binding::~Binding() throw()
{
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
_setModel(NULL);
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
Binding::Model_t Binding::getModel() const
{
return mxModel;
}
void Binding::_setModel( const Model_t& xModel )
{
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
PropertyChangeNotifier aNotifyModelChange( *this, HANDLE_Model );
PropertyChangeNotifier aNotifyModelIDChange( *this, HANDLE_ModelID );
// prepare binding for removal of old model
clear(); // remove all cached data (e.g. XPath evaluation results)
XNameContainer_t xNamespaces = getModelNamespaces(); // save namespaces
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
mxModel = xModel;
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
// set namespaces (and move to model, if appropriate)
setBindingNamespaces( xNamespaces );
_checkBindingID();
notifyAndCachePropertyValue( HANDLE_ExternalData );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
OUString Binding::getModelID() const
{
Model* pModel = getModelImpl();
return ( pModel == NULL ) ? OUString() : pModel->getID();
}
Binding::XNodeList_t Binding::getXNodeList()
{
// first make sure we are bound
if( ! maBindingExpression.hasValue() )
bind( false );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
return maBindingExpression.getXNodeList();
}
bool Binding::isSimpleBinding() const
{
return maBindingExpression.isSimpleExpression()
&& maReadonly.isSimpleExpression()
&& maRelevant.isSimpleExpression()
&& maRequired.isSimpleExpression()
&& maConstraint.isSimpleExpression()
&& maCalculate.isSimpleExpression();
}
bool Binding::isSimpleBindingExpression() const
{
return maBindingExpression.isSimpleExpression();
}
void Binding::update()
{
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
// clear all expressions (to remove cached node references)
maBindingExpression.clear();
maReadonly.clear();
maRelevant.clear();
maRequired.clear();
maConstraint.clear();
maCalculate.clear();
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
// let's just pretend the binding has been modified -> full rebind()
bindingModified();
}
void Binding::deferNotifications( bool bDefer )
{
mnDeferModifyNotifications += ( bDefer ? 1 : -1 );
OSL_ENSURE( mnDeferModifyNotifications >= 0, "you're deferring too much" );
if( mnDeferModifyNotifications == 0 )
{
if( mbBindingModified )
bindingModified();
if( mbValueModified )
valueModified();
}
OSL_ENSURE( ( mnDeferModifyNotifications > 0 )
|| ( ! mbBindingModified && ! mbValueModified ),
"deferred modifications not delivered?" );
}
bool Binding::isValid()
{
// TODO: determine whether node is suitable, not just whether it exists
return maBindingExpression.getNode().is() &&
isValid_DataType() &&
maMIP.isConstraint() &&
( ! maMIP.isRequired() ||
( maBindingExpression.hasValue() &&
!maBindingExpression.getString().isEmpty() ) );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
bool Binding::isUseful()
{
// we are useful, if
// 0) we don't have a model
// (at least, in this case we shouldn't be removed from the model)
// 1) we have a proper name
// 2) we have some MIPs,
// 3) we are bound to some control
// (this can be assumed if some listeners are set)
bool bUseful =
getModelImpl() == NULL
// || msBindingID.getLength() > 0
|| ! msTypeName.isEmpty()
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
|| ! maReadonly.isEmptyExpression()
|| ! maRelevant.isEmptyExpression()
|| ! maRequired.isEmptyExpression()
|| ! maConstraint.isEmptyExpression()
|| ! maCalculate.isEmptyExpression()
|| ! maModifyListeners.empty()
|| ! maListEntryListeners.empty()
|| ! maValidityListeners.empty();
return bUseful;
}
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
OUString Binding::explainInvalid()
{
OUString sReason;
if( ! maBindingExpression.getNode().is() )
{
sReason = ( maBindingExpression.getExpression().isEmpty() )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
? getResource( RID_STR_XFORMS_NO_BINDING_EXPRESSION )
: getResource( RID_STR_XFORMS_INVALID_BINDING_EXPRESSION );
}
else if( ! isValid_DataType() )
{
sReason = explainInvalid_DataType();
if( sReason.isEmpty() )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
// no explanation given by data type? Then give generic message
sReason = getResource( RID_STR_XFORMS_INVALID_VALUE,
maMIP.getTypeName() );
}
}
else if( ! maMIP.isConstraint() )
{
sReason = maMIP.getConstraintExplanation();
}
else if( maMIP.isRequired() && maBindingExpression.hasValue() &&
maBindingExpression.getString().isEmpty() )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
sReason = getResource( RID_STR_XFORMS_REQUIRED );
}
// else: no explanation given; should only happen if data is valid
OSL_ENSURE( sReason.isEmpty() == isValid(),
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
"invalid data should have an explanation!" );
return sReason;
}
EvaluationContext Binding::getEvaluationContext() const
{
OSL_ENSURE( getModelImpl() != NULL, "need model impl" );
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
EvaluationContext aContext = getModelImpl()->getEvaluationContext();
aContext.mxNamespaces = getBindingNamespaces();
return aContext;
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
::std::vector<EvaluationContext> Binding::getMIPEvaluationContexts()
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
OSL_ENSURE( getModelImpl() != NULL, "need model impl" );
// bind (in case we were not bound before)
bind( false );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
return _getMIPEvaluationContexts();
}
Binding::IntSequence_t Binding::getUnoTunnelID()
{
static cppu::OImplementationId aImplementationId;
return aImplementationId.getImplementationId();
}
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
Binding* SAL_CALL Binding::getBinding( const Reference<XPropertySet>& xPropertySet )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
Reference<XUnoTunnel> xTunnel( xPropertySet, UNO_QUERY );
return xTunnel.is()
? reinterpret_cast<Binding*>( xTunnel->getSomething(getUnoTunnelID()))
: NULL;
}
OUString Binding::getBindingID() const
{
return msBindingID;
}
void Binding::setBindingID( const OUString& sBindingID )
{
msBindingID = sBindingID;
}
OUString Binding::getBindingExpression() const
{
return maBindingExpression.getExpression();
}
void Binding::setBindingExpression( const OUString& sBindingExpression)
{
maBindingExpression.setExpression( sBindingExpression );
bindingModified();
}
OUString Binding::getReadonlyExpression() const
{
return maReadonly.getExpression();
}
void Binding::setReadonlyExpression( const OUString& sReadonly)
{
maReadonly.setExpression( sReadonly );
bindingModified();
}
OUString Binding::getRelevantExpression() const
{
return maRelevant.getExpression();
}
void Binding::setRelevantExpression( const OUString& sRelevant )
{
maRelevant.setExpression( sRelevant );
bindingModified();
}
OUString Binding::getRequiredExpression() const
{
return maRequired.getExpression();
}
void Binding::setRequiredExpression( const OUString& sRequired )
{
maRequired.setExpression( sRequired );
bindingModified();
}
OUString Binding::getConstraintExpression() const
{
return maConstraint.getExpression();
}
void Binding::setConstraintExpression( const OUString& sConstraint )
{
maConstraint.setExpression( sConstraint );
msExplainConstraint = getResource( RID_STR_XFORMS_INVALID_CONSTRAINT,
sConstraint );
// TODO: This should only re-evaluate the constraint, and notify
// the validity constraint listeners; instead we currently pretend
// the entire binding was notified, which does a little too much.
bindingModified();
}
OUString Binding::getCalculateExpression() const
{
return maCalculate.getExpression();
}
void Binding::setCalculateExpression( const OUString& sCalculate )
{
maCalculate.setExpression( sCalculate );
bindingModified();
}
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
OUString Binding::getType() const
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
return msTypeName;
}
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
void Binding::setType( const OUString& sTypeName )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
msTypeName = sTypeName;
bindingModified();
}
Binding::XNameContainer_t Binding::getBindingNamespaces() const
{
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
// return _getNamespaces();
return mxNamespaces;
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
void Binding::setBindingNamespaces( const XNameContainer_t& rNamespaces )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
_setNamespaces( rNamespaces, true );
}
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
Binding::XNameContainer_t Binding::getModelNamespaces() const
{
return _getNamespaces();
}
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
void Binding::setModelNamespaces( const XNameContainer_t& rNamespaces )
{
_setNamespaces( rNamespaces, false );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
bool Binding::getReadOnly() const
{
return maMIP.isReadonly();
}
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
bool Binding::getRelevant() const
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
return maMIP.isRelevant();
}
bool Binding::getExternalData() const
{
bool bExternalData = true;
if ( !mxModel.is() )
return bExternalData;
try
{
Reference< XPropertySet > xModelProps( mxModel, UNO_QUERY_THROW );
OSL_VERIFY(
xModelProps->getPropertyValue( "ExternalData" ) >>= bExternalData );
}
catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
return bExternalData;
}
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
void Binding::checkLive()
throw( RuntimeException )
{
if( ! isLive() )
throw RuntimeException( EXCEPT("Binding not initialized") );
}
void Binding::checkModel()
throw( RuntimeException )
{
if( ! mxModel.is() )
throw RuntimeException( EXCEPT("Binding has no Model") );
}
bool Binding::isLive() const
{
const Model* pModel = getModelImpl();
return ( pModel != NULL ) ? pModel->isInitialized() : false;
}
Model* Binding::getModelImpl() const
{
return getModelImpl( mxModel );
}
Model* Binding::getModelImpl( const Model_t& xModel ) const
{
Reference<XUnoTunnel> xTunnel( xModel, UNO_QUERY );
Model* pModel = xTunnel.is()
? reinterpret_cast<Model*>(
xTunnel->getSomething( Model::getUnoTunnelID() ) )
: NULL;
return pModel;
}
static void lcl_addListenerToNode( Reference<XNode> xNode,
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
Reference<XEventListener> xListener )
{
Reference<XEventTarget> xTarget( xNode, UNO_QUERY );
if( xTarget.is() )
{
xTarget->addEventListener( "DOMCharacterDataModified",
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
xListener, false );
xTarget->addEventListener( "DOMCharacterDataModified",
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
xListener, true );
xTarget->addEventListener( "DOMAttrModified",
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
xListener, false );
xTarget->addEventListener( "DOMAttrModified",
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
xListener, true );
xTarget->addEventListener( "DOMAttrModified",
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
xListener, true );
xTarget->addEventListener( "xforms-generic",
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
xListener, true );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
}
static void lcl_removeListenerFromNode( Reference<XNode> xNode,
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
Reference<XEventListener> xListener )
{
Reference<XEventTarget> xTarget( xNode, UNO_QUERY );
if( xTarget.is() )
{
xTarget->removeEventListener( "DOMCharacterDataModified",
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
xListener, false );
xTarget->removeEventListener( "DOMCharacterDataModified",
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
xListener, true );
xTarget->removeEventListener( "DOMAttrModified",
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
xListener, false );
xTarget->removeEventListener( "DOMAttrModified",
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
xListener, true );
xTarget->removeEventListener( "xforms-generic",
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
xListener, true );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
}
::std::vector<EvaluationContext> Binding::_getMIPEvaluationContexts() const
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
OSL_ENSURE( getModelImpl() != NULL, "need model impl" );
// iterate over nodes of bind expression and create
// EvaluationContext for each
PathExpression::NodeVector_t aNodes = maBindingExpression.getNodeList();
::std::vector<EvaluationContext> aVector;
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
sal_Int32 nCount = 0; // count nodes for context position
for( PathExpression::NodeVector_t::iterator aIter = aNodes.begin();
aIter != aNodes.end();
2010-12-19 16:28:33 +00:00
++aIter, ++nCount )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
OSL_ENSURE( aIter->is(), "no node?" );
// create proper evaluation context for this MIP
aVector.push_back( EvaluationContext( *aIter, getModel(),
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
getBindingNamespaces(),
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
nCount, aNodes.size() ) );
}
return aVector;
}
void Binding::bind( bool bForceRebind )
{
checkModel();
// bind() will evaluate this binding as follows:
// 1) evaluate the binding expression
// 1b) if necessary, create node according to 'lazy author' rules
// 2) register suitable listeners on the instance (and remove old ones)
// 3) remove old MIPs defined by this binding
// 4) for every node in the binding nodeset do:
// 1) create proper evaluation context for this MIP
// 2) evaluate calculate expression (and push value into instance)
// 3) evaluate remaining MIPs
// 4) evaluate the locally defined MIPs, and push them to the model
// 1) evaluate the binding expression
EvaluationContext aContext = getEvaluationContext();
maBindingExpression.evaluate( aContext );
if( ! maBindingExpression.getNode().is() )
{
// 1b) create node (if valid element name)
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
if( isValidQName( maBindingExpression.getExpression(),
aContext.mxNamespaces ) )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
aContext.mxContextNode->appendChild(
Reference<XNode>(
aContext.mxContextNode->getOwnerDocument()->createElement(
maBindingExpression.getExpression() ),
UNO_QUERY ) );
maBindingExpression.evaluate( aContext );
OSL_ENSURE( maBindingExpression.getNode().is(),
"we should bind to the newly inserted node!" );
}
}
PathExpression::NodeVector_t aNodes = maBindingExpression.getNodeList();
// 2) register suitable listeners on the instance (and remove old ones)
if( maEventNodes.empty() || bForceRebind )
{
for( XNodes_t::iterator aIter = maEventNodes.begin();
aIter != maEventNodes.end();
2010-12-19 16:28:33 +00:00
++aIter )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
lcl_removeListenerFromNode( *aIter, this );
maEventNodes.clear();
if( isSimpleBinding() )
for( PathExpression::NodeVector_t::iterator aIter = aNodes.begin();
aIter != aNodes.end();
2010-12-19 16:28:33 +00:00
++aIter )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
maEventNodes.push_back( *aIter );
else
maEventNodes.push_back(
Reference<XNode>( aContext.mxContextNode->getOwnerDocument(),
UNO_QUERY_THROW ) );
for( PathExpression::NodeVector_t::iterator aIter2 = maEventNodes.begin();
aIter2 != maEventNodes.end();
2010-12-19 16:28:33 +00:00
++aIter2 )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
lcl_addListenerToNode( *aIter2, this );
}
// 3) remove old MIPs defined by this binding
Model* pModel = getModelImpl();
OSL_ENSURE( pModel != NULL, "need model" );
pModel->removeMIPs( this );
// 4) calculate all MIPs
::std::vector<EvaluationContext> aMIPContexts = _getMIPEvaluationContexts();
for( ::std::vector<EvaluationContext>::iterator aIter = aMIPContexts.begin();
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
aIter != aMIPContexts.end();
2011-08-09 00:17:54 +02:00
++aIter )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
EvaluationContext& rContext = *aIter;
// evaluate calculate expression (and push value into instance)
// (prevent recursion using mbInCalculate
if( ! maCalculate.isEmptyExpression() )
{
if( ! mbInCalculate )
{
mbInCalculate = true;
maCalculate.evaluate( rContext );
pModel->setSimpleContent( rContext.mxContextNode,
maCalculate.getString() );
mbInCalculate = false;
}
}
// now evaluate remaining MIPs in the appropriate context
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
maReadonly.evaluate( rContext );
maRelevant.evaluate( rContext );
maRequired.evaluate( rContext );
maConstraint.evaluate( rContext );
// type is static; does not need updating
// evaluate the locally defined MIPs, and push them to the model
pModel->addMIP( this, rContext.mxContextNode, getLocalMIP() );
}
}
// helper for Binding::valueModified
static void lcl_modified( const Binding::XModifyListener_t xListener,
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
const Reference<XInterface> xSource )
{
OSL_ENSURE( xListener.is(), "no listener?" );
xListener->modified( EventObject( xSource ) );
}
// helper for Binding::valueModified
static void lcl_listentry( const Binding::XListEntryListener_t xListener,
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
const Reference<XInterface> xSource )
{
OSL_ENSURE( xListener.is(), "no listener?" );
// TODO: send fine granular events
xListener->allEntriesChanged( EventObject( xSource ) );
}
// helper for Binding::valueModified
static void lcl_validate( const Binding::XValidityConstraintListener_t xListener,
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
const Reference<XInterface> xSource )
{
OSL_ENSURE( xListener.is(), "no listener?" );
xListener->validityConstraintChanged( EventObject( xSource ) );
}
void Binding::valueModified()
{
// defer notifications, if so desired
if( mnDeferModifyNotifications > 0 )
{
mbValueModified = true;
return;
}
mbValueModified = false;
// query MIP used by our first node (also note validity)
Reference<XNode> xNode = maBindingExpression.getNode();
maMIP = getModelImpl()->queryMIP( xNode );
// distribute MIPs _used_ by this binding
if( xNode.is() )
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
{
notifyAndCachePropertyValue( HANDLE_ReadOnly );
notifyAndCachePropertyValue( HANDLE_Relevant );
}
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
// iterate over _value_ listeners and send each a modified signal,
// using this object as source (will also update validity, because
// control will query once the value has changed)
Reference<XInterface> xSource = static_cast<XPropertySet*>( this );
::std::for_each( maModifyListeners.begin(),
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
maModifyListeners.end(),
::std::bind2nd( ::std::ptr_fun( lcl_modified ), xSource ) );
::std::for_each( maListEntryListeners.begin(),
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
maListEntryListeners.end(),
::std::bind2nd( ::std::ptr_fun( lcl_listentry ), xSource ) );
::std::for_each( maValidityListeners.begin(),
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
maValidityListeners.end(),
::std::bind2nd( ::std::ptr_fun( lcl_validate ), xSource ) );
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
2011-12-07 02:33:51 -08:00
// now distribute MIPs to children
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
if( xNode.is() )
distributeMIP( xNode->getFirstChild() );
}
void Binding::distributeMIP( const XNode_t & rxNode ) {
typedef com::sun::star::xforms::XFormsEventConcrete XFormsEvent_t;
OUString sEventName("xforms-generic");
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
XFormsEvent_t *pEvent = new XFormsEvent_t;
pEvent->initXFormsEvent(sEventName, sal_True, sal_False);
Reference<XEvent> xEvent(pEvent);
// naive depth-first traversal
XNode_t xNode( rxNode );
while(xNode.is()) {
// notifications should be triggered at the
// leaf nodes first, bubbling upwards the hierarchy.
XNode_t child(xNode->getFirstChild());
if(child.is())
distributeMIP(child);
// we're standing at a particular node somewhere
// below the one which changed a property (MIP).
// bindings which are listening at this node will receive
// a notification message about what exactly happened.
Reference< XEventTarget > target(xNode,UNO_QUERY);
target->dispatchEvent(xEvent);
xNode = xNode->getNextSibling();
};
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
void Binding::bindingModified()
{
// defer notifications, if so desired
if( mnDeferModifyNotifications > 0 )
{
mbBindingModified = true;
return;
}
mbBindingModified = false;
// rebind (if live); then call valueModified
// A binding should be inert until its model is fully constructed.
if( isLive() )
{
bind( true );
valueModified();
}
}
MIP Binding::getLocalMIP() const
{
MIP aMIP;
if( maReadonly.hasValue() )
aMIP.setReadonly( maReadonly.getBool( false ) );
if( maRelevant.hasValue() )
aMIP.setRelevant( maRelevant.getBool( true ) );
if( maRequired.hasValue() )
aMIP.setRequired( maRequired.getBool( false ) );
if( maConstraint.hasValue() )
{
aMIP.setConstraint( maConstraint.getBool( true ) );
if( ! aMIP.isConstraint() )
aMIP.setConstraintExplanation( msExplainConstraint );
}
if( !msTypeName.isEmpty() )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
aMIP.setTypeName( msTypeName );
// calculate: only handle presence of calculate; value set elsewhere
aMIP.setHasCalculate( !maCalculate.isEmptyExpression() );
return aMIP;
}
Binding::XDataType_t Binding::getDataType()
{
OSL_ENSURE( getModel().is(), "need model" );
OSL_ENSURE( getModel()->getDataTypeRepository().is(), "need types" );
Reference<XDataTypeRepository> xRepository(
getModel()->getDataTypeRepository(), UNO_QUERY );
OUString sTypeName = maMIP.getTypeName();
return ( xRepository.is() && xRepository->hasByName( sTypeName ) )
? Reference<XDataType>( xRepository->getByName( sTypeName ), UNO_QUERY)
: Reference<XDataType>( NULL );
}
bool Binding::isValid_DataType()
{
Reference<XDataType> xDataType = getDataType();
return xDataType.is()
? xDataType->validate( maBindingExpression.getString() )
: true;
}
OUString Binding::explainInvalid_DataType()
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
Reference<XDataType> xDataType = getDataType();
return xDataType.is()
? xDataType->explainInvalid( maBindingExpression.getString() )
: OUString();
}
void Binding::clear()
{
// remove MIPs contributed by this binding
Model* pModel = getModelImpl();
if( pModel != NULL )
pModel->removeMIPs( this );
// remove all references
for( XNodes_t::iterator aIter = maEventNodes.begin();
aIter != maEventNodes.end();
2010-12-19 16:28:33 +00:00
++aIter )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
lcl_removeListenerFromNode( *aIter, this );
maEventNodes.clear();
// clear expressions
maBindingExpression.clear();
maReadonly.clear();
maRelevant.clear();
maRequired.clear();
maConstraint.clear();
maCalculate.clear();
// TODO: what about our listeners?
}
static void lcl_removeOtherNamespaces( const Binding::XNameContainer_t& xFrom,
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
Binding::XNameContainer_t& xTo )
{
OSL_ENSURE( xFrom.is(), "no source" );
OSL_ENSURE( xTo.is(), "no target" );
// iterate over name in source
Sequence<OUString> aNames = xTo->getElementNames();
sal_Int32 nNames = aNames.getLength();
const OUString* pNames = aNames.getConstArray();
for( sal_Int32 i = 0; i < nNames; i++ )
{
const OUString& rName = pNames[i];
if( ! xFrom->hasByName( rName ) )
xTo->removeByName( rName );
}
}
/** copy namespaces from one namespace container into another
* @param bOverwrite true: overwrite namespaces in target
* false: do not overwrite namespaces in target
* @param bMove true: move namespaces (i.e., delete in source)
* false: copy namespaces (do not modify source)
* @param bFromSource true: use elements from source
* false: use only elements from target
*/
static void lcl_copyNamespaces( const Binding::XNameContainer_t& xFrom,
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
Binding::XNameContainer_t& xTo,
bool bOverwrite )
{
OSL_ENSURE( xFrom.is(), "no source" );
OSL_ENSURE( xTo.is(), "no target" );
// iterate over name in source
Sequence<OUString> aNames = xFrom->getElementNames();
sal_Int32 nNames = aNames.getLength();
const OUString* pNames = aNames.getConstArray();
for( sal_Int32 i = 0; i < nNames; i++ )
{
const OUString& rName = pNames[i];
// determine whether to copy the value, and whether to delete
// it in the source:
bool bInTarget = xTo->hasByName( rName );
// we copy: if property is in target, and
// if bOverwrite is set, or when the namespace prefix is free
bool bCopy = bOverwrite || ! bInTarget;
// and now... ACTION!
if( bCopy )
{
if( bInTarget )
xTo->replaceByName( rName, xFrom->getByName( rName ) );
else
xTo->insertByName( rName, xFrom->getByName( rName ) );
}
}
}
// implement get*Namespaces()
// (identical for both variants)
Binding::XNameContainer_t Binding::_getNamespaces() const
{
XNameContainer_t xNamespaces = new NameContainer<OUString>();
lcl_copyNamespaces( mxNamespaces, xNamespaces, true );
// merge model's with binding's own namespaces
Model* pModel = getModelImpl();
if( pModel != NULL )
lcl_copyNamespaces( pModel->getNamespaces(), xNamespaces, false );
return xNamespaces;
}
// implement set*Namespaces()
// bBinding = true: setBindingNamespaces, otherwise: setModelNamespaces
void Binding::_setNamespaces( const XNameContainer_t& rNamespaces,
bool bBinding )
{
Model* pModel = getModelImpl();
XNameContainer_t xModelNamespaces = ( pModel != NULL )
? pModel->getNamespaces()
: NULL;
OSL_ENSURE( ( pModel != NULL ) == xModelNamespaces.is(), "no model nmsp?");
// remove deleted namespaces
lcl_removeOtherNamespaces( rNamespaces, mxNamespaces );
if( !bBinding && xModelNamespaces.is() )
lcl_removeOtherNamespaces( rNamespaces, xModelNamespaces );
// copy namespaces as appropriate
Sequence<OUString> aNames = rNamespaces->getElementNames();
sal_Int32 nNames = aNames.getLength();
const OUString* pNames = aNames.getConstArray();
for( sal_Int32 i = 0; i < nNames; i++ )
{
const OUString& rName = pNames[i];
Any aValue = rNamespaces->getByName( rName );
// determine whether the namespace should go into model's or
// into binding's namespaces
bool bLocal =
! xModelNamespaces.is()
|| mxNamespaces->hasByName( rName )
|| ( bBinding
&& xModelNamespaces.is()
&& xModelNamespaces->hasByName( rName ) );
// write namespace into the appropriate namespace container
XNameContainer_t& rWhich = bLocal ? mxNamespaces : xModelNamespaces;
OSL_ENSURE( rWhich.is(), "whoops" );
if( rWhich->hasByName( rName ) )
rWhich->replaceByName( rName, aValue );
else
rWhich->insertByName( rName, aValue );
// always 'promote' namespaces from binding to model, if equal
if( xModelNamespaces.is()
&& xModelNamespaces->hasByName( rName )
&& mxNamespaces->hasByName( rName )
&& xModelNamespaces->getByName( rName ) == mxNamespaces->getByName( rName ) )
{
mxNamespaces->removeByName( rName );
}
}
// ... done. But we modified the binding!
bindingModified();
}
void Binding::_checkBindingID()
{
if( getModel().is() )
{
Reference<XNameAccess> xBindings( getModel()->getBindings(), UNO_QUERY_THROW );
if( msBindingID.isEmpty() )
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
{
// no binding ID? then make one up!
OUString sIDPrefix = getResource( RID_STR_XFORMS_BINDING_UI_NAME ) + " ";
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
sal_Int32 nNumber = 0;
OUString sName;
do
{
nNumber++;
sName = sIDPrefix + OUString::number( nNumber );
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
}
while( xBindings->hasByName( sName ) );
setBindingID( sName );
}
}
}
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
//
// XValueBinding
//
Binding::Sequence_Type_t Binding::getSupportedValueTypes()
throw( RuntimeException )
{
return Convert::get().getTypes();
}
sal_Bool Binding::supportsType( const Type_t& rType )
throw( RuntimeException )
{
return Convert::get().hasType( rType );
}
Binding::Any_t Binding::getValue( const Type_t& rType )
throw( IncompatibleTypesException,
RuntimeException )
{
// first, check for model
checkLive();
// second, check for type
if( ! supportsType( rType ) )
throw IncompatibleTypesException( EXCEPT( "type unsupported" ) );
// return string value (if present; else return empty Any)
Binding::Any_t result = Any();
if(maBindingExpression.hasValue()) {
OUString pathExpr(maBindingExpression.getString());
Convert &rConvert = Convert::get();
result = rConvert.toAny(pathExpr,rType);
}
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
return result;
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
void Binding::setValue( const Any_t& aValue )
throw( IncompatibleTypesException,
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
InvalidBindingStateException,
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
NoSupportException,
RuntimeException )
{
// first, check for model
checkLive();
// check for supported type
if( ! supportsType( aValue.getValueType() ) )
throw IncompatibleTypesException( EXCEPT( "type unsupported" ) );
if( maBindingExpression.hasValue() )
{
Binding::XNode_t xNode = maBindingExpression.getNode();
if( xNode.is() )
{
OUString sValue = Convert::get().toXSD( aValue );
bool bSuccess = getModelImpl()->setSimpleContent( xNode, sValue );
if( ! bSuccess )
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
throw InvalidBindingStateException( EXCEPT( "can't set value" ) );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
else
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
throw InvalidBindingStateException( EXCEPT( "no suitable node found" ) );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
else
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
throw InvalidBindingStateException( EXCEPT( "no suitable node found" ) );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
//
// XListEntry Source
//
sal_Int32 Binding::getListEntryCount()
throw( RuntimeException )
{
// first, check for model
checkLive();
// return size of node list
return maBindingExpression.getNodeList().size();
}
static void lcl_getString( const Reference<XNode>& xNode, OUStringBuffer& rBuffer )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
if( xNode->getNodeType() == NodeType_TEXT_NODE
|| xNode->getNodeType() == NodeType_ATTRIBUTE_NODE )
{
rBuffer.append( xNode->getNodeValue() );
}
else
{
for( Reference<XNode> xChild = xNode->getFirstChild();
xChild.is();
xChild = xChild->getNextSibling() )
{
lcl_getString( xChild, rBuffer );
}
}
}
static OUString lcl_getString( const Reference<XNode>& xNode )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
OUStringBuffer aBuffer;
lcl_getString( xNode, aBuffer );
return aBuffer.makeStringAndClear();
}
OUString Binding::getListEntry( sal_Int32 nPosition )
throw( IndexOutOfBoundsException,
RuntimeException )
{
// first, check for model
checkLive();
// check bounds and return proper item
PathExpression::NodeVector_t aNodes = maBindingExpression.getNodeList();
if( nPosition < 0 || nPosition >= static_cast<sal_Int32>( aNodes.size() ) )
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
throw IndexOutOfBoundsException( EXCEPT("") );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
return lcl_getString( aNodes[ nPosition ] );
}
Sequence<OUString> Binding::getAllListEntries()
throw( RuntimeException )
{
// first, check for model
checkLive();
// create sequence of string values
PathExpression::NodeVector_t aNodes = maBindingExpression.getNodeList();
Sequence<OUString> aSequence( aNodes.size() );
OUString* pSequence = aSequence.getArray();
for( sal_Int32 n = 0; n < aSequence.getLength(); n++ )
{
pSequence[n] = lcl_getString( aNodes[n] );
}
return aSequence;
}
void Binding::addListEntryListener( const XListEntryListener_t& xListener )
throw( NullPointerException,
RuntimeException )
{
OSL_ENSURE( xListener.is(), "need listener!" );
if( ::std::find( maListEntryListeners.begin(),
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
maListEntryListeners.end(),
xListener)
== maListEntryListeners.end() )
maListEntryListeners.push_back( xListener );
}
void Binding::removeListEntryListener( const XListEntryListener_t& xListener )
throw( NullPointerException,
RuntimeException )
{
XListEntryListeners_t::iterator aIter =
::std::find( maListEntryListeners.begin(), maListEntryListeners.end(),
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
xListener );
if( aIter != maListEntryListeners.end() )
maListEntryListeners.erase( aIter );
}
//
// XValidator
//
sal_Bool Binding::isValid( const Any_t& )
throw( RuntimeException )
{
// first, check for model
checkLive();
// ignore value; determine validate only on current data
return isValid();
}
OUString Binding::explainInvalid(
const Any_t& /*Value*/ )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
throw( RuntimeException )
{
// first, check for model
checkLive();
// ignore value; determine explanation only on current data
return explainInvalid();
}
void Binding::addValidityConstraintListener(
const XValidityConstraintListener_t& xListener )
throw( NullPointerException,
RuntimeException )
{
OSL_ENSURE( xListener.is(), "need listener!" );
if( ::std::find(maValidityListeners.begin(), maValidityListeners.end(), xListener)
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
== maValidityListeners.end() )
maValidityListeners.push_back( xListener );
}
void Binding::removeValidityConstraintListener(
const XValidityConstraintListener_t& xListener )
throw( NullPointerException,
RuntimeException )
{
XValidityConstraintListeners_t::iterator aIter =
::std::find( maValidityListeners.begin(), maValidityListeners.end(),
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
xListener );
if( aIter != maValidityListeners.end() )
maValidityListeners.erase( aIter );
}
//
// xml::dom::event::XEventListener
//
void Binding::handleEvent( const XEvent_t& xEvent )
throw( RuntimeException )
{
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
OUString sType(xEvent->getType());
//OUString sEventMIPChanged("xforms-generic");
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
//if(sType.equals(sEventMIPChanged)) {
if(sType.equalsAscii("xforms-generic")) {
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
// the modification of the 'mnDeferModifyNotifications'-member
// is necessary to prevent infinite notication looping.
// This can happened in case the binding which caused
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
// the notification chain is listening to those events
// as well...
bool bPreserveValueModified = mbValueModified;
mnDeferModifyNotifications++;
valueModified();
--mnDeferModifyNotifications;
mbValueModified = bPreserveValueModified;
return;
}
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
// if we're a dynamic binding, we better re-bind, too!
bind( false );
// our value was maybe modified
valueModified();
}
//
// lang::XUnoTunnel
//
sal_Int64 Binding::getSomething( const IntSequence_t& xId )
throw( RuntimeException )
{
return reinterpret_cast<sal_Int64>( ( xId == getUnoTunnelID() ) ? this : NULL );
}
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
//
// XCloneable
//
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
Binding::XCloneable_t SAL_CALL Binding::createClone()
throw( RuntimeException )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
Reference< XPropertySet > xClone;
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
Model* pModel = getModelImpl();
if ( pModel )
xClone = pModel->cloneBinding( this );
else
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
xClone = new Binding;
copy( this, xClone );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
return XCloneable_t( xClone, UNO_QUERY );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
//
// property set implementations
//
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
#define REGISTER_PROPERTY( property, type ) \
registerProperty( PROPERTY( property, type ), \
new DirectPropertyAccessor< Binding, type >( this, &Binding::set##property, &Binding::get##property ) );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
#define REGISTER_PROPERTY_RO( property, type ) \
registerProperty( PROPERTY_RO( property, type ), \
new DirectPropertyAccessor< Binding, type >( this, NULL, &Binding::get##property ) );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
#define REGISTER_BOOL_PROPERTY_RO( property ) \
registerProperty( PROPERTY_RO( property, sal_Bool ), \
new BooleanPropertyAccessor< Binding, bool >( this, NULL, &Binding::get##property ) );
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
void Binding::initializePropertySet()
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
{
REGISTER_PROPERTY ( BindingID, OUString );
REGISTER_PROPERTY ( BindingExpression, OUString );
REGISTER_PROPERTY_RO ( Model, Model_t );
REGISTER_PROPERTY ( BindingNamespaces, XNameContainer_t );
REGISTER_PROPERTY ( ModelNamespaces, XNameContainer_t );
REGISTER_PROPERTY_RO ( ModelID, OUString );
REGISTER_PROPERTY ( ReadonlyExpression, OUString );
REGISTER_PROPERTY ( RelevantExpression, OUString );
REGISTER_PROPERTY ( RequiredExpression, OUString );
REGISTER_PROPERTY ( ConstraintExpression, OUString );
REGISTER_PROPERTY ( CalculateExpression, OUString );
REGISTER_PROPERTY ( Type, OUString );
REGISTER_PROPERTY_RO ( ReadOnly, bool );
REGISTER_PROPERTY_RO ( Relevant, bool );
REGISTER_BOOL_PROPERTY_RO( ExternalData );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
initializePropertyValueCache( HANDLE_ReadOnly );
initializePropertyValueCache( HANDLE_Relevant );
initializePropertyValueCache( HANDLE_ExternalData );
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
}
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
void Binding::addModifyListener(
const XModifyListener_t& xListener )
throw( RuntimeException )
{
OSL_ENSURE( xListener.is(), "need listener!" );
if( ::std::find( maModifyListeners.begin(), maModifyListeners.end(), xListener )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
== maModifyListeners.end() )
maModifyListeners.push_back( xListener );
// HACK: currently, we have to 'push' some MIPs to the control
// (read-only, relevant, etc.) To enable this, we need to update
// the control at least once when it registers here.
valueModified();
}
void Binding::removeModifyListener(
const XModifyListener_t& xListener )
throw( RuntimeException )
{
ModifyListeners_t::iterator aIter =
::std::find( maModifyListeners.begin(), maModifyListeners.end(), xListener );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
if( aIter != maModifyListeners.end() )
maModifyListeners.erase( aIter );
}
OUString Binding::getName()
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
throw( RuntimeException )
{
return getBindingID();
}
void SAL_CALL Binding::setName( const OUString& rName )
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
throw( RuntimeException )
{
INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED 2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update() Issue number: Submitted by: Reviewed by: 2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events (also remove unused code) Issue number: Submitted by: Reviewed by: 2005/01/25 18:24:36 mbu 1.2.6.12: #i41255 2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference (these were necessary to work around a using declaration in xformsevent.hxx) 2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties 2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling 2004/12/27 15:24:17 fs 1.2.6.8: #i10000# 2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive... 2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced 2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found Issue number: Submitted by: Reviewed by: 2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename) Issue number: Submitted by: Reviewed by: 2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced 2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible) Issue number: Submitted by: Reviewed by: 2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
// use the XPropertySet methods, so the change in the name is notified to the
// property listeners
setFastPropertyValue( HANDLE_BindingID, makeAny( rName ) );
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED 2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present Issue number: Submitted by: Reviewed by: 2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context Issue number: Submitted by: Reviewed by: 2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode Issue number: Submitted by: Reviewed by: 2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding Issue number: Submitted by: Reviewed by: 2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset 2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive 2004/08/03 15:41:47 fs 1.1.2.21: #i10000# 2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/07/28 06:21:45 fs 1.1.2.19: #i10000# 2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1 Issue number: Submitted by: Reviewed by: 2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter 2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages Issue number: Submitted by: Reviewed by: 2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems (typedef names in throw clauses; include-before-forward-declaration) Issue number: Submitted by: Reviewed by: 2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc Issue number: Submitted by: Reviewed by: 2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems Issue number: Submitted by: Reviewed by: 2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions Issue number: Submitted by: Reviewed by: 2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid() Issue number: Submitted by: Reviewed by: 2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation Issue number: Submitted by: Reviewed by: 2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability Issue number: Submitted by: Reviewed by: 2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation 2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings 2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support 2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */