Commit graph

172 commits

Author SHA1 Message Date
Adrien Prokopowicz
c41939ed3b [GB.XML]
* NEW: Added a new Document property to XMLExplorer.
* NEW: Added the Name and Value properties to XMLReader.Node.Attributes and
  XMLNode.Attributes, to get the name and value of the enumerated attribute.
* BUG: Fixed the XMLNode.Attributes enumeration.
* BUG: Fixed XMLExplorer taking the document itself as a node.
* OPT: Rewrote internal exception handling.

[GB.XML.XSLT]
* NEW: Added a new method XSLT.TransformToString() that returns a string 
  instead of an XML document.
* BUG: Fixed internal error management.

git-svn-id: svn://localhost/gambas/trunk@6416 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-08-05 02:02:56 +00:00
Adrien Prokopowicz
c2e7d79812 [GB.XML]
* BUG: Fix the Like-pattern matching of the XmlElement.GetChildrenByAttributeValue() method.

git-svn-id: svn://localhost/gambas/trunk@6358 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-07-02 21:33:03 +00:00
Benoît Minisini
7abbd5e799 [DEVELOPMENT ENVIRONMENT]
* BUG: Don't check conflict on project configuration file if that files 
  does not exist.

[INTERPRETER]
* OPT: Move the string splitting routine in its own file and optimize it.

[INFORMER]
* BUG: Remove unneeded parenthesis on a test.

[GB.CLIPPER]
* BUG: Remove an unused variable.

[GB.DESKTOP]
* BUG: Fix error message in DesktopMime.

[GB.FORM]
* BUG: MaskBox: Raise the Change event after moving the cursor, so that it 
  behaves exactly like a TextBox.

[GB.FORM.MDI]
* NEW: Workspace: Count the number of detached windows so that the "detach 
  current tab" menu entry is disabled when needed.

[GB.GTK]
* BUG: Window.Utility should work even if the window is mapped now.

[GB.GTK3]
* BUG: Window.Utility should work even if the window is mapped now.

[GB.NET.PO3]
* NEW: Add a void constructor to the Pop3Client class for the 
  documentation.


git-svn-id: svn://localhost/gambas/trunk@6285 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-05-23 11:52:04 +00:00
Adrien Prokopowicz
a56f3233d6 [GB.XML.HTML]
* BUG: Fix the implementation of HTMLDocument.GetElementById().

git-svn-id: svn://localhost/gambas/trunk@6244 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-04-16 13:42:20 +00:00
Benoît Minisini
5e76433eeb [CONFIGURATION]
* NEW: Do not use deprecated autoconf macros anymore.
* NEW: The version information is now located in the 'version.m4' file in
  the source root directory.


git-svn-id: svn://localhost/gambas/trunk@6230 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-04-05 21:22:43 +00:00
Adrien Prokopowicz
be3e30e985 [GB.XML]
* BUG: Fix MacOSX detection for GCC.

[GB.XML.HTML]
* BUG: Now correctly uses the MacOSX fix when needed.

git-svn-id: svn://localhost/gambas/trunk@6200 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-03-11 10:47:05 +00:00
Adrien Prokopowicz
9104dacdb8 [GB.XML]
* BUG: Really fix MacOSX compatibility.

git-svn-id: svn://localhost/gambas/trunk@6199 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-03-11 10:26:18 +00:00
Adrien Prokopowicz
92fb1ad2c5 [GB.XML]
* BUG: Fix MacOSX compatibility.

git-svn-id: svn://localhost/gambas/trunk@6198 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-03-11 10:23:15 +00:00
Adrien Prokopowicz
eb39dcc65c [GB.XML]
* BUG: The XML DOM parser now correctly handles white spaces.

[GB.XML.HTML]
* BUG: The HTML DOM parser now correctly handles white spaces.

git-svn-id: svn://localhost/gambas/trunk@6197 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-03-11 08:54:20 +00:00
Alexander Kuiper
1fd178789b [GB.XML.RPC]
* BUG: miniServer could crash on an invalid request


git-svn-id: svn://localhost/gambas/trunk@6000 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-14 08:25:52 +00:00
Adrien Prokopowicz
d599c2e2d2 [GB.XML]
* BUG: The Boolean parameter 'Indent' of XMLDocument.ToString() is now 
  correctly interpreted.
* BUG: Serializing a comment that is a direct child of a document with 
  indentation enabled does not crash anymore.
* BUG: The Document.All property is now correctly declared as an XMLNode[]

[GB.XML.HTML]
* BUG: Serializing a comment that is a direct child of a document with 
  indentation enabled does not crash anymore.

git-svn-id: svn://localhost/gambas/trunk@5972 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-11-24 13:51:48 +00:00
Alexander Kuiper
183bfa39d7 [GB.XML.RPC]
* BUG: miniServer would give an out-of-bound with multiple parallel requests


git-svn-id: svn://localhost/gambas/trunk@5971 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-11-23 19:41:35 +00:00
Adrien Prokopowicz
f3264a5126 [GB.XML]
* BUG: XMLElement.AppendFromText() now behaves correctly if no extra arguments are given
* BUG: XMLElement.FromText() now correctly catches parsing exceptions.

git-svn-id: svn://localhost/gambas/trunk@5970 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-11-23 15:12:31 +00:00
Adrien Prokopowicz
f14bbd6097 [GB.XML]
* NEW: Added a new XMLNode.Deserialize() method.
* OPT: Remove some old unused source files.

git-svn-id: svn://localhost/gambas/trunk@5906 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-10-19 13:49:13 +00:00
Benoît Minisini
51a949eade [GB.XML.HTML]
* BUG: Add missing headers in 'Makefile.am' file.


git-svn-id: svn://localhost/gambas/trunk@5897 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-10-13 20:43:10 +00:00
Adrien Prokopowicz
119b7e2c47 [GB.XML]
* BUG: Fix incorrect Makefile.am.

[GB.XML.HTML]
* BUG: Fix incorrect Makefile.am.
* BUG: Fix incorrect file naming conventions.

git-svn-id: svn://localhost/gambas/trunk@5888 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-10-13 18:06:31 +00:00
Benoît Minisini
255fc160fe [GB.DATA]
* BUG: Fix incorrect Makefile.am file.

[GB.XML.HTML]
* BUG: Fix incorrect Makefile.am file.


git-svn-id: svn://localhost/gambas/trunk@5886 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-10-13 14:19:09 +00:00
Adrien Prokopowicz
815d513319 [GB.XML.HTML]
* BUG: Searching elements by CSS filter works correctly now.

git-svn-id: svn://localhost/gambas/trunk@5878 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-10-12 21:43:43 +00:00
Alexander Kuiper
13b97b38d6 [GB.XML.RPC]
* NEW: HTTP/1.1 100-Continue support in miniServer (specially for OpenRemote)
* BUG: HTTP/1.0 and 1.1 weren't recognized correctly
* BUG: Relaxed content-length check for buggy HTTP/1.0 clients


git-svn-id: svn://localhost/gambas/trunk@5853 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-09-27 18:45:48 +00:00
Adrien Prokopowicz
f6d866e635 [GB.XML]
* BUG: Fixed HTML5 Doctype handling.
* BUG: The "Extra root element" error is not thrown on HTML documents 
  anymore.
* BUG: The GetChildrenByAttributeValue() method still checks the child 
  nodes even if the given node is not an element.

[GB.XML.HTML]
* NEW: A closing tag that doesn't close any open tag, is now silently
  ignored.
* NEW: Malformed tags' contents are now silently ignored.
* BUG: Forgot to Implement the HtmlDocument.GetElementsByClassName() 
  method.
* BUG: Fixed self-closed elements handling.

git-svn-id: svn://localhost/gambas/trunk@5841 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-09-13 20:54:42 +00:00
Alexander Kuiper
040cd397fa [GB.XML.RPC]
BUG: miniServer would give an out-of-bound if content-length is wrong


git-svn-id: svn://localhost/gambas/trunk@5802 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-08-16 16:04:28 +00:00
Adrien Prokopowicz
9e89b18f20 [GB.XML.HTML]
* BUG: The HTML tag closing is now case-unsensitive.

git-svn-id: svn://localhost/gambas/trunk@5757 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-21 21:02:36 +00:00
Adrien Prokopowicz
1bc4a835a6 [GB.XML]
* BUG: Forgot some files while uploading the last revision.

git-svn-id: svn://localhost/gambas/trunk@5733 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-17 09:57:05 +00:00
Adrien Prokopowicz
522efa4ba9 [GB.XML]
* NEW: Added a new gb.xml Component API.
* NEW: The XMLElement.AppendFromText() method can now take the &1, &2 etc.
  Subst-like patterns.
* NEW: All the methods based on the parser can choose from the XML and the 
  HTML parser (if loaded), depending  on the document's (or parent
  document's) type.
* OPT: Renamed, reorganized and cleaned up the code.
* OPT: Removed the ugly cross-including sources to communicate with the
  subcomponents, which now use the XML Component Interface.
* OPT: Remove all the unneeded includes.
* OPT: The XML serializer does not check if the elements are self-closed 
  according to HTML specifications anymore. This is done only in the new
  HTML serializer.

[GB.XML.HTML]
* NEW: Added a new gb.xml.html Component API.
* NEW: Added a new (X)HTML parser, more flexible than the XML one,
  and automatically used with the HtmlDocument class.
* NEW: Generated HTML Documents now automatically use the new meta/charset
  element if the document is HTML5, and the old meta/content-type element
  only if the document is not HTML5.
* BUG: Loading an HTML document from a file while instanciating it
  correctly works now.
* BUG: Using the class or id CSS selector in a filter on an element that
  doesn't have these does not crashes anymore.

[GB.XML.XSLT]
* NEW: Now uses the gb.xml Component API.

git-svn-id: svn://localhost/gambas/trunk@5732 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-16 22:27:47 +00:00
Alexander Kuiper
588f665220 [GB.XML.RPC]
* BUG: Fixed that RpcClient could hang in sync mode, issue 450
* BUG: More fixes of the miniServer.class, issue 449


git-svn-id: svn://localhost/gambas/trunk@5728 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-11 20:57:39 +00:00
Benoît Minisini
29ab774c1c [DEVELOPMENT ENVIRONMENT]
* BUG: Fix the frame position when dragging a control from the toolbar on 
  a container.
* NEW: The project file properties dialog is now based on the new 
  FileProperties control.

[INTERPRETER]
* NEW: GB.OnErrorBegin() and GB.OnErrorEnd() are two new APIs that allow to
  register cleanup routines that are called when an error is raised between
  the GB.OnErrorBegin() call and the GB.OnErrorEnd() call.

[INFORMER]
* BUG: The value of  Float constants is now correctly dumped in *.info 
  files.

[GB.COMPLEX]
* NEW: Implement the same Complex.ToString() method as in gb.gsl.

[GB.DESKTOP]
* NEW: Desktop.DataDir is a new property that returns the directory where 
  the application must store its user-specific data.
* NEW: Desktop.ConfigDir is a new property that returns the directory where 
  the application must store its user-specific configuration.
* NEW: Desktop.CacheDir is a new property that returns the directory where 
  the application must store its user-specific cached data.
* NEW: Desktop.RuntimeDir is a new property that returns the directory 
  where the application must store its temporary runtime files.
* BUG: Fix a possible crash when searching a mimetype from the file 
  extension.

[GB.FORM]
* NEW: FileProperties is a new control that displays the properties of a 
  specific file or directory. It automatically computes the size of 
  directory contents through a background task.
* BUG: Setting the TabPanel.Border property now correctly refreshes its 
  layout.
* NEW: The stock icon map now can declare specific icons for specific 
  widget themes.

[GB.FORM.STOCK]
* NEW: Fix the 'tools' icon for elementary icon theme.

[GB.GSL]
* BUG: Fix the Vector.ToString() declaration.

[GB.QT4.EXT]
* NEW: The Editor.LineOffset property has been renamed as 
  Editor.LineNumberOffset.


git-svn-id: svn://localhost/gambas/trunk@5725 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-10 22:17:27 +00:00
Benoît Minisini
020fda58bc [GB.XML.RPC]
* BUG: Fixes of the miniServer class from issue 449


git-svn-id: svn://localhost/gambas/trunk@5720 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-07-04 19:52:24 +00:00
Adrien Prokopowicz
005d1e1603 * BUG: The XML DOM parser doesn't go beyond the string limits when looking
for an XML prolog anymore.

git-svn-id: svn://localhost/gambas/trunk@5716 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-30 11:23:42 +00:00
Adrien Prokopowicz
ac20bff9c7 * BUG: XmlWriter now correctly normalizes attribute values
git-svn-id: svn://localhost/gambas/trunk@5715 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-30 00:37:36 +00:00
Benoît Minisini
63fdf03e0d [GB.XML.RPC]
* BUG: Try to fix the RpcServer class.


git-svn-id: svn://localhost/gambas/trunk@5713 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-29 16:33:30 +00:00
Adrien Prokopowicz
4321262fc5 [GB.XML]
* BUG: The XmlNode.Serialize() method does not crashes anymore if a null
  string is given.

git-svn-id: svn://localhost/gambas/trunk@5622 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-04-27 19:21:28 +00:00
Adrien Prokopowicz
5e94fa80a4 [GB.XML]
* BUG: The XmlNode.Serialize method does not crash anymore if nothing has
  been serialized.
* BUG: The XmlNode.Serialize method now correctly handles the " (") 
  serialization.

git-svn-id: svn://localhost/gambas/trunk@5621 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-04-27 13:08:27 +00:00
Adrien Prokopowicz
cf484e4042 [GB.XML.RPC]
* BUG: The XmlRPCClient.Method property's return value is now coherent.

git-svn-id: svn://localhost/gambas/trunk@5620 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-04-23 07:42:24 +00:00
Benoît Minisini
42b3212cf1 [GB.XML.RPC]
* BUG: The component should compile correctly again.


git-svn-id: svn://localhost/gambas/trunk@5618 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-04-10 22:33:01 +00:00
Benoît Minisini
8f054e7655 [DEVELOPMENT ENVIRONMENT]
* NEW: Allow a component to have a requirement on the XML implementation 
  feature (i.e. 'gb.xml' or 'gb.libxml').


git-svn-id: svn://localhost/gambas/trunk@5617 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-04-10 11:07:38 +00:00
Adrien Prokopowicz
4f29df851f [GB.XML.HTML]
* BUG: Does not crash anymore if the id or class properties does not exist when reading them.

git-svn-id: svn://localhost/gambas/trunk@5594 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-03-26 14:25:18 +00:00
Adrien Prokopowicz
09c28801f7 [GB.NET.CURL]
* BUG: Initialize the HTTP data buffers before filling them.

[GB.XML.HTML]
* BUG: The XmlElement.GetChildById() method is now correctly implemented.

git-svn-id: svn://localhost/gambas/trunk@5581 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-03-15 20:06:05 +00:00
Adrien Prokopowicz
de1f5d50bc [GB.XML]
* BUG: XmlTextNode now behaves correctly if a null string or zero length is given to its constructor.
* OPT: Does not memchr() anymore to determine if the text representation of an element is self-closed, 
   allowing to improve XmlNode.ToString() (and similar) performance.
* OPT: The XmlNode.Serialize() now allocates a new string only if there are differences between the 
   original one and the escaped one, allowing to improve XmlNode.ToString() (and similar) performance.

git-svn-id: svn://localhost/gambas/trunk@5575 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-03-05 19:06:07 +00:00
Adrien Prokopowicz
1df7e9baba [GB.XML]
* OPT: Check if an element is self-closed only once when getting its string representation.

git-svn-id: svn://localhost/gambas/trunk@5574 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-03-04 04:29:20 +00:00
Adrien Prokopowicz
a300b16b36 [GB.XML.HTML]
* BUG: HtmlDocument now correctly sends its Doctype while getting its string representation.

git-svn-id: svn://localhost/gambas/trunk@5573 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-03-04 04:27:35 +00:00
Adrien Prokopowicz
7c84222a5a * BUG: The XmlExplorer.ReadFlags._get() method now returns a valid value if the flag ID is out of bounds
* BUG: Fixes a few memory leaks when freeing an XmlExplorer
* BUG: Fixes a crash when creating Attributes without values
* BUG: The XmlExplorer.Node property does not raises a Null Object error when reaching the end of the document
* BUG: XmlReader now raises an appropriate error if an lt sign is inside a tag
* OPT: The XmlExplorer.Open() method now directly calls the XmlDocument constructor instead of using an intermediate buffer

git-svn-id: svn://localhost/gambas/trunk@5565 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-02-25 00:55:30 +00:00
Adrien Prokopowicz
e4a6208b16 [GB.XML]
* BUG: The XML parser does not complain anymore when encountering a PI.
* BUG: Error positions now start from 1 instead of 0.

git-svn-id: svn://localhost/gambas/trunk@5564 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-02-24 23:26:01 +00:00
Benoît Minisini
dca578ebab [GB.XML.RPC]
* BUG: RpcClient works again.


git-svn-id: svn://localhost/gambas/trunk@5503 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-01-12 23:17:13 +00:00
Benoît Minisini
66feaf57be [GB.XML.RPC]
* BUG: Fix RpcClient hang while interpreting data.


git-svn-id: svn://localhost/gambas/trunk@5501 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-01-12 22:39:38 +00:00
Benoît Minisini
5577a3eb37 [GB.XML.RPC]
* BUG: The built-in HTTP server now send its data in one shot, by using the
  Begin and Send methods of the Stream class.


git-svn-id: svn://localhost/gambas/trunk@5500 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-01-12 22:35:50 +00:00
Adrien Prokopowicz
ed9e19991a [GB.XML]
* NEW: Adding a new XmlElement.RemoveAttribute() method.
* BUG: The XmlElement.AppendChild does not crash anymore if a null element is sent.
* BUG: The XmlReader.FromString() now raises an error if the input buffer is empty.
* BUG: Fix some compilation warnings on XMLWriter.
* BUG: Fix the XmlNode.GetChildrenByAttributeValue() search method.

git-svn-id: svn://localhost/gambas/trunk@5499 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-01-11 13:00:21 +00:00
Benoît Minisini
1f71712fe9 [GB.XML.RPC]
* BUG: Ensure that the RpcClient adds a newline at the end of the data it 
  sends, and that the "windows" newline sequence is used.


git-svn-id: svn://localhost/gambas/trunk@5498 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-01-09 23:41:54 +00:00
Adrien Prokopowicz
7b1043df8b [GB.XML]
* BUG: Fix compilation problem when disabling GCC optimizations.

git-svn-id: svn://localhost/gambas/trunk@5347 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-22 11:40:57 +00:00
François Gallo
1caf88fa30 [GB.XML]
* NEW: now available on OS X.


git-svn-id: svn://localhost/gambas/trunk@5344 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-20 23:16:29 +00:00
Adrien Prokopowicz
d31bbd73dd [GB.XML]
* BUG: The reader Node class now returns null node name, value and attributes if the current state is EndElement.

git-svn-id: svn://localhost/gambas/trunk@5323 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-13 09:26:33 +00:00