Commit graph

118 commits

Author SHA1 Message Date
Adrien Prokopowicz
c5bbf1c0de [GB.XML.HTML]
* BUG: Fix the XmlElement.Id property.

git-svn-id: svn://localhost/gambas/trunk@5094 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-28 18:58:22 +00:00
Benoît Minisini
091b94b1ed [INTERPRETER]
* NEW: Allow components to access the interpreter API through a pointer and 
  not a full structure. It is a little bit slower (one more indirection),
  but it uses less memory: one pointer instead of about 180.

[GB.GTK]
* NEW: Use the indirect API access.

[GB.QT4]
* NEW: Use the indirect API access.

[GB.TASK]
* NEW: Use the indirect API access.
* NEW: Task now is now a stream that can read the standard output of the 
  background task.
* NEW: Task now raises the Read event when the background task has printed
  something on its standard output.
* NEW: Task now raises the Error event when the background task has printed
  something on its standard error output. The event handler receives the
  data in its first argument.

[GB.XML.RPC]
* BUG: Some english fixes in some error messages.


git-svn-id: svn://localhost/gambas/trunk@5077 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-25 15:13:39 +00:00
Adrien Prokopowicz
fcf0e8bf9b [GB.XML]
* BUG: Fix prefix management on elements.

git-svn-id: svn://localhost/gambas/trunk@5038 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-13 11:39:22 +00:00
Adrien Prokopowicz
02b50b1267 [GB.XML]
* NEW: Adds a Serialize() static method in XmlNode that serializes the given text.
* BUG: Correctly handle prefix when parsing a document.
* BUG: XmlWriter now correctly serializes the text and attribute values.
* BUG: The XmlDocument constructor now correctly raises an error message instead of crashing with signal #6.

git-svn-id: svn://localhost/gambas/trunk@5037 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-12 21:58:13 +00:00
Adrien Prokopowicz
a4a9decae9 [GB.XML]
* BUG: Try to fix a compilation error on some systems.

git-svn-id: svn://localhost/gambas/trunk@5035 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-12 15:25:27 +00:00
Adrien Prokopowicz
ad0519f583 [GB.XML]
* BUG: Fix the local, qualified and prefix naming, as mentioned in the W3C specification.
* BUG: Fix the XmlReader.Depth property management when enumerating the attributes of a node.

git-svn-id: svn://localhost/gambas/trunk@5034 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-12 12:38:39 +00:00
Adrien Prokopowicz
99bd6d0ff5 [GB.XML]
* BUG: Fix a segmentation fault in XmlReader freeing.

git-svn-id: svn://localhost/gambas/trunk@5032 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-11 21:53:44 +00:00
Adrien Prokopowicz
2df69cad2d [GB.XML]
* BUG: Fix some memory errors and leaks.

git-svn-id: svn://localhost/gambas/trunk@5025 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-10 09:53:13 +00:00
Adrien Prokopowicz
f01570446e [GB.XML]
* BUG: Fix the XmlReader.Node.IsEmptyElement property.

git-svn-id: svn://localhost/gambas/trunk@5010 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-06 19:04:28 +00:00
François Gallo
7947dd69f9 [CONFIGURATION]
* NEW: Add support for the MacPorts distribution. 
* BUG: Fix configuration issue for gb.qt.ext

[GB.CRYPT]
* NEW: it is now available for Mac OS X 10.8

[GB.QT4]
* BUG: Fix detection of X11 for the control DrawingArea on Mac OS X 10.8. 



git-svn-id: svn://localhost/gambas/trunk@5004 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-31 18:24:47 +00:00
Adrien Prokopowicz
d196bc0829 [GB.XML]
* BUG: Reading Special characters in text nodes don't crash anymore.

git-svn-id: svn://localhost/gambas/trunk@4991 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-25 21:07:50 +00:00
Adrien Prokopowicz
24f0205b30 [GB.XML]
* BUG: Fixed a memory leak when using XmlDocument.Save()
* BUG: Fix the un-escape parsing method, it don't crash anymore if there the parsed string is less than 3 bytes length.

git-svn-id: svn://localhost/gambas/trunk@4988 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-25 11:07:38 +00:00
Adrien Prokopowicz
840f1bbf0a [GB.XML]
* NEW: XmlDocument now internally inherits Node, so that they can contain other nodes than only a root element (that is now optional), as specified in the W3C specifications.
* BUG: Sloved a little typo error in the XmlElement.PreviousElement property.
* BUG: The CDATA node now correctly handles special characters.
* OPT: Some little optimizations in the ToString() (and similar) methods.


git-svn-id: svn://localhost/gambas/trunk@4985 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-23 18:28:15 +00:00
Adrien Prokopowicz
a20e032798 [GB.XML]
* BUG: No more memory leak when the XmlDocument.ToString() throws an error.
* BUG: When throwing an error, the XSLT parser returns anyway a valid (but empty) document.

git-svn-id: svn://localhost/gambas/trunk@4968 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-18 23:20:02 +00:00
Adrien Prokopowicz
64b7d351c7 [GB.XML]
* OPT: Defined a few variables and parameters as const.

git-svn-id: svn://localhost/gambas/trunk@4967 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-18 22:59:18 +00:00
Adrien Prokopowicz
ee6825874c [GB.XML]
* BUG: The document.FromString() method does not crashes anymore if no root element was found.

git-svn-id: svn://localhost/gambas/trunk@4966 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-18 22:43:35 +00:00
Adrien Prokopowicz
49718d9e08 [GB.XML]
* NEW: Added user data management in nodes. 

git-svn-id: svn://localhost/gambas/trunk@4965 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-17 21:16:04 +00:00
Benoît Minisini
97718051b1 [DEVELOPMENT ENVIRONMENT]
* OPT: New optimizations in profile file size.
* NEW: PageUp and PageDown keys now work as expected in the project filter 
  box.

[INTERPRETER]
* NEW: Support for new profile file format.

[GB.DEBUG]
* OPT: New profile file format.

[GB.LIBXML]
* NEW: Make this component exclude gb.xml.

[GB.XML]
* NEW: Make this component exclude gb.libxml.


git-svn-id: svn://localhost/gambas/trunk@4961 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-17 16:24:48 +00:00
Adrien Prokopowicz
907dae4d24 [GB.XML]
* BUG: Moved the previousSibling and NextSibling properties from XmlElement to XmlNode, and added PreviousElement and NextElement, so that there is no confusion with the W3C standards.
* BUG: Addef forgotten property XmlReader.Node.IsEmptyElement.
* OPT: Some optimisations in character comparison when parsing data.

git-svn-id: svn://localhost/gambas/trunk@4960 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-17 11:36:30 +00:00
Adrien Prokopowicz
45c8dae965 [GB.XML]
* BUG: The XML Declaration is now optional, as mentioned in the W3C specification.
* BUG: The ChildNodes and Children properties have moved from XmlElement to XmlNode, as mentioned in the W3C specification.
* BUG: The XML Error analyzer does not crashes anymore if the error has no defined position.
* BUG: Doctype are now partially handled, i.e. there is no doctype interface yet, so they are silently ignored.


git-svn-id: svn://localhost/gambas/trunk@4959 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-16 19:34:23 +00:00
Adrien Prokopowicz
db72947b9f [GB.XML]
* BUG: When parsing data, extra white-spaces at the beginning and the end of text nodes are correctly ignored.
* BUG: When they are null, reading TagName and Prefix properties from XmlElement does not crash anymore.

git-svn-id: svn://localhost/gambas/trunk@4943 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-11 15:14:13 +00:00
Adrien Prokopowicz
7d03122fa0 [GB.XML]
* NEW: Added two properties FirstChild and LastChild to XmlElement.

git-svn-id: svn://localhost/gambas/trunk@4932 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-10 13:53:38 +00:00
Adrien Prokopowicz
47985d1d8e [GB.XML]
* NEW: Added a new XmlElement.ClearChildren method, that removes all the children of an element.
* BUG: Setting the XmlElment.TextContent property now correctly remove all children of an element.
* BUG: Setting the XmlElment.TextContent with a null string has now no effect, as mentioned in the W3C specifications.

git-svn-id: svn://localhost/gambas/trunk@4930 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-10 00:17:15 +00:00
Adrien Prokopowicz
fc299f0180 [GB.XML]
* BUG: The TextContent property now correctly ignores the contents of comment nodes, as mentioned in the W3C specifications.

git-svn-id: svn://localhost/gambas/trunk@4928 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-09 23:33:56 +00:00
Adrien Prokopowicz
159390bc46 [GB.XML]
* BUG: Getting an attribute that doesn't exist doesn't crashes anymore, it returns a null string instead.
* BUG: The string comparison mode argument is now correctly handled by XmlElement.GetAttribute().

git-svn-id: svn://localhost/gambas/trunk@4927 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-09 22:22:11 +00:00
Adrien Prokopowicz
e8e480ac39 [GB.XML]
* BUG: The GetAttribute() method now correctly returns the attribute value.

git-svn-id: svn://localhost/gambas/trunk@4917 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-08 20:27:03 +00:00
Adrien Prokopowicz
91b8363562 [GB.XML]
* BUG: The encoding is now correctly specified in the document header.

git-svn-id: svn://localhost/gambas/trunk@4915 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-08 19:33:17 +00:00
Adrien Prokopowicz
2256d5f5a4 [GB.XML]
* OPT: Do not use the UTF-8 string methods anymore when parsing text opened with the XmlReader.FromString() method, they are too slow. This also may solve UTF-8 chars reading problems.

git-svn-id: svn://localhost/gambas/trunk@4910 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-08 15:30:42 +00:00
Adrien Prokopowicz
bbe2044823 [GB.XML]
* BUG: Solved a few bugs with the indentation in XmlWriter.

git-svn-id: svn://localhost/gambas/trunk@4889 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-03 17:16:36 +00:00
Benoît Minisini
1393597f4f [CONFIGURATION]
* BUG: When a top-level source directory actually several components, 
  compile the sub-components *after* the main components. This is 
  especially important with gb.xml and gb.xml.rpc.


git-svn-id: svn://localhost/gambas/trunk@4884 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-02 17:51:54 +00:00
Adrien Prokopowicz
ea697d57a2 [GB.XML]
* BUG: Solved a XmlElement instanciation problem.

git-svn-id: svn://localhost/gambas/trunk@4873 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-29 22:40:23 +00:00
Adrien Prokopowicz
c4375aa197 [GB.XML]
* BUG: Solved a few memory leaks.

git-svn-id: svn://localhost/gambas/trunk@4872 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-29 22:02:43 +00:00
Adrien Prokopowicz
0d4935d790 [GB.XML]
* BUG: Fixed a compilation problem.

git-svn-id: svn://localhost/gambas/trunk@4869 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-28 18:27:32 +00:00
Adrien Prokopowicz
e6fb654a59 [GB.XML]
* BUG: There are only name-chars in XmlReader element's tags.

git-svn-id: svn://localhost/gambas/trunk@4868 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-28 18:25:57 +00:00
Adrien Prokopowicz
6a1852c0ad [GB.XML]
* BUG: The XmlReader.Close() method is back.
* BUG: XmlReader node values don't have extra spaces anymore.

git-svn-id: svn://localhost/gambas/trunk@4864 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-27 12:17:47 +00:00
Adrien Prokopowicz
001a5947bd [GB.XML]
* BUG: Non-prefixed elements does not crashes anymore
* BUG: Parsing errors are now correctly catched when calling XmlElement.AppendFromText()

git-svn-id: svn://localhost/gambas/trunk@4861 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-26 17:45:57 +00:00
Adrien Prokopowicz
acab57079d [GB.XML]
* BUG: XmlReader now correctly raises the Element state.

git-svn-id: svn://localhost/gambas/trunk@4860 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-25 17:54:35 +00:00
Adrien Prokopowicz
d3dfb74567 [GB.XML]
* NEW: XmlElement now fully supports namespace prefixes in its tag name. See the Prefix property, and the GetChildrenByNameSpace and GetElementsByNameSpace  methods.

git-svn-id: svn://localhost/gambas/trunk@4859 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-25 16:33:14 +00:00
Adrien Prokopowicz
c8b94b5b15 [GB.XML]
* NEW: The GetAttribute(), GetChildrenByTagName(), GetChildrenByAttributeValue() andGetElementsByTagName() methods now take an new Mode argument, specifying the comparison method. It can be GB.Binary,  GB.IgnoreCase or GB.Like.
* BUG: The XmlElement.ChildElements does not contains Null fields anymore.
* BUG: Removed some debugging messages.

git-svn-id: svn://localhost/gambas/trunk@4858 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-25 12:44:15 +00:00
Adrien Prokopowicz
ee023f38e4 [GB.XML]
* NEW: XmlReader now supports the CDATA sections.
* BUG: Remove some debugging messages.
* BUG: The InsertAfter, InsertBefore and ReplaceChild functions now correctly preserve the added elements.

git-svn-id: svn://localhost/gambas/trunk@4857 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-25 09:37:40 +00:00
Adrien Prokopowicz
ef3bc6b361 [GB.XML]
* BUG: XmlReader.Node.Type now correctly shows the XmlReaderNodeType.Element value.
* BUG: Updated test module, so that it is compatible with gb.libxml.

git-svn-id: svn://localhost/gambas/trunk@4855 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-23 19:43:43 +00:00
Adrien Prokopowicz
ec9a9d5038 [GB.XML]
* BUG: XMLReader.Node.Type now correctly returns the state of the reader instead of the type of the node. (No, there isn't any error in this sentence)

git-svn-id: svn://localhost/gambas/trunk@4838 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-16 17:49:25 +00:00
Adrien Prokopowicz
213343c966 [GB.XML]
* BUG: XmlReader.Node.Attributes.Count now always returns an integer.

git-svn-id: svn://localhost/gambas/trunk@4835 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-15 19:23:01 +00:00
Adrien Prokopowicz
438116bdb3 [GB.XML]
* NEW: Text nodes now escapes their contents (like Html$()).
* BUG: TextNode.TextContent now correctly works.
* BUG: XmlElement.FromText() does not crash anymore.
* BUG: The last text node of a parsed text is now correctly added.

git-svn-id: svn://localhost/gambas/trunk@4832 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-15 01:33:48 +00:00
Adrien Prokopowicz
2011d69ee3 [GB.XML]
* BUG: The XMLWriter Text(), Comment(), CDATA() and PI() functions now correctly close their parent elements.

git-svn-id: svn://localhost/gambas/trunk@4829 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-13 23:10:33 +00:00
Adrien Prokopowicz
35b390e5e1 [GB.XML.XSLT]
* BUG: No more excessive line-breaks and spaces added to the output document.

[GB.XML]
* NEW: Text nodes that only contains white characters (\n \r \t and space) are now deleted when parsing.
* BUG: (non-)indentation now correctly works on text nodes.

git-svn-id: svn://localhost/gambas/trunk@4826 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-12 21:12:56 +00:00
Adrien Prokopowicz
5248d86f82 [GB.XML]
* BUG: Comments are now correctly supported.
* BUG: Fix a 32-bits compilation warning.

git-svn-id: svn://localhost/gambas/trunk@4824 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-12 18:17:10 +00:00
Benoît Minisini
442f8ce70e [CONFIGURATION]
* NEW: Switch version to 3.2.0.

[GB.XML]
* BUG: Fix a 64-bits compilation warning.



git-svn-id: svn://localhost/gambas/trunk@4815 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-09 02:44:17 +00:00
Adrien Prokopowicz
6fe4df8b2a [GB.XML]
* BUG: XmlReader now correctly reads comments.
* BUG: XmlReader now correctly reads self-closed elements.

git-svn-id: svn://localhost/gambas/trunk@4814 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-09 00:06:38 +00:00
Adrien Prokopowicz
54395ea31f [GB.XML]
* BUG: Fixed XmlExplorer document loading.
* BUG: Fixed the XmlElement.LastChildElement property.

git-svn-id: svn://localhost/gambas/trunk@4813 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-06 16:38:18 +00:00