bryner%brianryner.com
2bdc455d83
Switch Equals and EqualsASCII to EqualsLiteral where we can.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163264 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-05 22:10:19 +00:00
bryner%brianryner.com
d75d116e54
- Make model elements keep track of which form controls are bound to them, and notify all of them when a refresh event is received.
...
- Make Refresh() handle adding a form control to its model, and WillSetAttribute (bind or ref) takes care of removing it.
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163118 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-01 22:06:50 +00:00
bryner%brianryner.com
0d9b9ab67c
For now, dispatch Refresh when schmas or external instance data finishes loading.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163097 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-01 18:53:19 +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
fe557a6749
context node for xpath evaluation should be the instance document's root element, not the document itself. thanks to allan beaufour for the fix.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@162298 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 09:09:56 +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
bryner%brianryner.com
e4b11f6b43
Fix for MSVC's for-loop-scoping
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@161266 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-25 18:52:49 +00:00
bryner%brianryner.com
b1f14f29da
Add a document property which contains all of the model elements in the document. The first model element in the list is responsible for firing model-construct-done on each model once all models have been initialized. Currently that happens when onload fires since models could be anywhere in the document.
...
Change mContent to a raw pointer to avoid circular reference leak.
Fixed bogus release of bind target rather than xpath expression.
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@160850 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-17 08:08:19 +00:00
bryner%brianryner.com
ddefe6607a
Rework events a bit. We now perform default actions by listening in the system event group rather than checking whether preventDefault was called after dispatch; this lets us respond to script-generated events as well as our own. Dispatch rebuild, recalculate, revalidate at the end of model initialization.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@160833 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-16 21:55:27 +00:00
bryner%brianryner.com
c613da1538
Add comment about missing hooks for namespace resolution in external instance data... this is why xpath expressions on external instance data currently fail.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@160694 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-12 00:14:34 +00:00
bryner%brianryner.com
88e46eea5b
Attach model item properties from bind elements, using new content node property mechanism.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@160691 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-12 00:00:48 +00:00
bryner%brianryner.com
98401688c3
- implement getInstanceDocument()
...
- evaluate xpath expression in <bind> nodeset attribute
- become a nsIDocumentObserver so that we can be notified of content removal; we'll need this for the model item hash.
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@160010 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-29 01:46:33 +00:00
bryner%brianryner.com
73fe9f4b9a
Sync with current XTF branch work.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@159969 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-28 09:12:22 +00:00
bryner%brianryner.com
c3973b464b
Keep track of what we're still expecting to load, so we can continue initialization once we have everything.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@159885 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-26 23:28:29 +00:00
bryner%brianryner.com
603e9b05f3
Add the rest of the event types that are relevant for model elements.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@159878 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-26 22:03:32 +00:00
bryner%brianryner.com
299cc29176
Beginnings of XTF-based XForms implementation. Nothing here does anything useful yet.
...
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@159757 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-23 23:47:14 +00:00