Commit Graph

153 Commits

Author SHA1 Message Date
inoussa
e195112d8b IDE ImportDlg's option to include files now works (Thanks Juha Maninnen) :
* Flag ofRevert is not needed. File is not added to project if already there.
  * Invalidate file cache after generating a Pascal file.
 Prevents error when opening it. Works also with older Lazarus versions.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3200 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-19 10:14:01 +00:00
inoussa
af326242a5 xsd_generator : Move duplicated code to a function (Thanks Juha Maninnen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3177 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 15:16:14 +00:00
inoussa
31bbc5c053 XSD generator: prevent a Nil object reference (=>AV) (Thanks Juha Maninnen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3176 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 15:11:10 +00:00
inoussa
1ca4e37446 Parser : map xsd:string to UnicodeString.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3055 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-17 17:25:51 +00:00
inoussa
3c995d69dd Delphi compatibility fix.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3054 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-17 17:24:38 +00:00
inoussa
aa29744538 Parser : map xsd:decimal to Currency.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3052 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-17 14:58:42 +00:00
inoussa
041a6b2a36 License change : All the code in WST is now using the FPC' RTL license (modified LGPL see COPYING.modifiedLGPL)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2997 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-03 16:34:30 +00:00
inoussa
a0ef2a66bf XSD schema import support : GUI handling, store relative fie name
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2993 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-03 15:27:53 +00:00
inoussa
0bff229235 Fix schema "import" generation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2986 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-02 01:49:33 +00:00
inoussa
019e7b604f IDE auto generated changes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2984 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-01 17:00:35 +00:00
inoussa
4edd9df7fa Better XSD/WSDL generation : "import" nodes are correctly generated.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2983 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-05-01 16:58:45 +00:00
inoussa
402f527cbb Remove not used variables, fix uninitialized variables.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2970 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-25 19:05:55 +00:00
inoussa
2ba7ee7cd2 Add support for External Schema referencing.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2947 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-18 13:36:57 +00:00
inoussa
3222dc18bc FPC-2.6.2 compatibility fix
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2842 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-11-19 15:25:37 +00:00
inoussa
29fbe0a4b9 Generator :
* unit without types should not have a "type" section
  * alias definitions should occurs according to their dependency on each other

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2841 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-11-19 14:37:07 +00:00
inoussa
0a2294b0d7 * Remove duplicated class' properties(Complex type restriction case)
* Add the "_" prefix or the "_Type" suffix only when necessary
* Search module by namespace if a namespace is provided (FindModule)
* Parse schema's imported documents

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2840 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-11-19 11:04:25 +00:00
inoussa
c56afc479f Auto unit renaming
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2817 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-10-30 14:38:32 +00:00
inoussa
58f603bdbe Correct base type searching : if not found then create a unresolved item.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2777 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-08-27 16:39:08 +00:00
inoussa
ab893594d7 Handle top level(global) declared attribute and references
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2695 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-03-05 15:48:26 +00:00
inoussa
467d62d6d7 "HAS_EXP_TREE" define to handle fcl-passrc expressions
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2586 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-10-29 19:31:17 +00:00
inoussa
cd54972062 Use TFPList in fpc 2.6.1 now
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2579 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-10-22 14:44:59 +00:00
inoussa
7d73bd43ac Use TFPList in fpc 2.6.1 now
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2574 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-10-22 13:37:15 +00:00
inoussa
13d25e5e00 Do not generate 2 type hints
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2573 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-10-22 13:31:03 +00:00
inoussa
76d8fd4b55 Use TList2
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2572 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-10-22 13:26:09 +00:00
inoussa
80b84e6c7d Handle untyped properties
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2507 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-09-06 12:31:10 +00:00
inoussa
0cb1b33ac4 Use "LocalName" and "NamespaceURI" to handle in-line name-space
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2488 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-08-13 20:40:08 +00:00
inoussa
6bbca25247 fcl-passrc now uses TFPList instead of TList.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2162 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-11-26 17:54:55 +00:00
inoussa
e4e3f34376 "CaseSensitive" fixes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2144 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-11-15 19:11:17 +00:00
inoussa
8b1e3a960e Parser's "CaseSensitive" implementation fix.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1963 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-09-16 00:56:48 +00:00
inoussa
fc1c449cd2 xsd's "choice" construct parsing + tests
parser is case sensitive  b default now, + tests

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1942 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-09-14 02:31:02 +00:00
inoussa
788d3ba426 Issue a error message instead of crashing if no "targetNamespace" is provided.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1934 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-09-10 22:29:42 +00:00
inoussa
e9067503ae Parser's "CaseSensitive" implementation. To got the parser Case-Sensitive, provide the "-cS" argument at command line when using ws_helper.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1931 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-09-10 03:44:54 +00:00
inoussa
2ed47823d7 update date to 2011
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1857 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-08-29 03:02:43 +00:00
inoussa
ac7aeb38c8 XSD's "include" handling, better "uses" generation for schema files translalted to pascal, better generated file names, handling of "import" and "include" in sub-directories, Handling of TComplexEnumContentRemotable
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1856 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-08-29 02:59:57 +00:00
inoussa
848a2159be Correct test for string-based type (optional)properties (for storage)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1483 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-02-02 15:37:47 +00:00
inoussa
4d54efd4e7 Typo correction(WriteDocumetation > WriteDocumentation).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1384 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-11-26 09:50:16 +00:00
inoussa
1c255f37a7 suppress various warnings/hints
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1372 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-11-08 14:26:03 +00:00
inoussa
3bf012d3a2 Type Library Editor AV Correction
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1360 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-11-01 12:08:12 +00:00
inoussa
c800c26ab4 Transform inline error text to ResourceString
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1355 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-10-16 18:38:07 +00:00
inoussa
3524335cab Transform inline error text to ResourceString
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1354 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-10-16 18:22:28 +00:00
inoussa
409a5f8ba7 Add xsd:language
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1351 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-10-15 13:46:26 +00:00
inoussa
2e7fa04712 Replace property "store" prefix by sWST_PROP_STORE_PREFIX( = 'wstHas_') (fix)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1350 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-10-15 13:43:44 +00:00
inoussa
3c12d5aa39 XSD "import" handling.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1341 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-10-11 12:28:07 +00:00
inoussa
040e7012bf Replace property "store" prefix by sWST_PROP_STORE_PREFIX( = 'wstHas_')
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1340 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-10-11 12:23:49 +00:00
inoussa
ed37484810 Replace property "store" prefix by sWST_PROP_STORE_PREFIX( = 'wstHas_')
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1339 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-10-11 12:22:23 +00:00
inoussa
fbaef11db8 composed name handling (such as "one-prop")
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1331 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-10-01 20:44:10 +00:00
inoussa
73653e4c9b easy access interface should be handle only in the unit containing the original interface.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1318 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-09-08 14:02:52 +00:00
inoussa
f8809ed35c Delete "_" if it is the last character of the generated name.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1317 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-09-08 14:00:31 +00:00
inoussa
61c6016709 fix warning
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1316 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-09-08 13:57:34 +00:00
inoussa
2e5b08e9d7 Correct "easy access" proxy implementation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1256 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-07-16 15:28:21 +00:00