bryner%brianryner.com
85bfc9957e
Get the string value by evaluating the binding expression as a string, rather than always looking at the instance node's child. This fixes binding expressions that reference attributes. r=aaronr.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163215 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-04 22:24:40 +00:00
bryner%brianryner.com
846ad899bb
- Implement nsISupports for nsXFormsControl so that we can QI to it
...
- Add a Refresh() method to nsXFormsControl, which will soon be called on all form controls by the model, in response to a refresh event.
- Move mInstanceNode onto nsXFormsControl, since all controls will have one.
- Move creation of input to OnCreated so that we always have a visualContent to return.
- Move binding of input control from DocumentChanged to AttributeSet
- Implment Refresh for InputElement, which fetches the value from the instance data and sets it in the text or checkbox control.
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163108 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-01 20:32:50 +00:00
bryner%brianryner.com
58b80d908a
Rename GetInstanceNode to FindInstanceNode, to indicate that it's not particularly cheap to call.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163101 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-01 19:08:47 +00:00
bryner%brianryner.com
c843e98a5f
Don't crash if the referenced bind element isn't in the document.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163098 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-01 18:56:38 +00:00
bryner%brianryner.com
512e081c72
Fix GetModelAndBind to return a valid pointer to the model element, by using nsIXTFPrivate to get a pointer to the object rather than an interface wrapper.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163094 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-01 18:36:18 +00:00
bryner%brianryner.com
db5fb352a8
Fix GetInstanceNode to use correct context node and to handle both ref and nodeset.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163091 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-01 18:27:27 +00:00
bryner%brianryner.com
999f93d94e
fix indentation
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@162672 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-22 19:12:57 +00:00
bryner%brianryner.com
0019f63901
Factor out a base class for XForms elements and a base class for form control elements. Move code for cloning a set of iid's for scripting onto nsXFormsElement. Make input elements create an anonymous html:input, which will eventually get its type set from the schema type bound to the instance data node.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@161953 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-08 23:59:47 +00:00