summaryrefslogtreecommitdiff
path: root/source/text/sbasic/shared
AgeCommit message (Collapse)AuthorFilesLines
2017-07-06Rearrange help page for VBA functionslibreoffice-5-4Olivier Hallot12-142/+98
Save work for translators. Change-Id: I2072d85443ba32f10235123f3ba2b681182127d2 Reviewed-on: https://gerrit.libreoffice.org/39139 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-07-06Fixes for help pages after translation review.Olivier Hallot1-1/+1
Thanks to all translators for pinpointing these mistakes. Change-Id: I3746d3d81ded2af1e012cb38cdd20e9e529c2667 Reviewed-on: https://gerrit.libreoffice.org/39331 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-06-20fix bogus whitespace and unnecessary unit changesChristian Lohmaier1-3/+2
caused by either adding spaces at end-of-line or adding spaces when combining multi-line statements into single line also fix one validation issue (image can have either caption or alt elements) Change-Id: I467404fbf87fbf1681c0addc7b43154bba68d989 (cherry picked from commit 3bd5049b9e5b271646e1d5c92b22d79bde35a759)
2017-06-17tdf#84675 Add help page for NPer function of VBAOlivier Hallot2-1/+79
Change-Id: Id601138bc4ad390f8ec6c14fe41dc1f936ab5aab Reviewed-on: https://gerrit.libreoffice.org/38903 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-06-16tdf#84675 Add help page for MIRR function of VBAOlivier Hallot2-2/+80
Change-Id: I7b55b4994a1c65b714be3ad4114aee9233502276 Reviewed-on: https://gerrit.libreoffice.org/38901 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-06-16tdf#84675 Add help page for IRR function of VBAOlivier Hallot2-1/+78
Change-Id: If4218b4b9619766e25676d5c4be35db42d51b007 Reviewed-on: https://gerrit.libreoffice.org/38900 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-06-15tdf#84675 Add help page for IPmt function of VBAOlivier Hallot2-1/+78
Change-Id: Iddb382d9735c25f2ca77f8141457fb6bb497a696 Reviewed-on: https://gerrit.libreoffice.org/38809 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-06-14tdf#84675 Add help page for FV function of VBAOlivier Hallot2-1/+77
Change-Id: Ic1ac6629eed117d6d2ec8802162e69a45e599a0c Reviewed-on: https://gerrit.libreoffice.org/38802 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br> (cherry picked from commit 969c5806ff0d958e8dc19d1abe98a1493842e4ca) Reviewed-on: https://gerrit.libreoffice.org/38804
2017-06-14tdf#84675 Add help page for DDB function of VBAOlivier Hallot3-5/+87
Change-Id: I769a4f0863ca73db776e3ab1fb7faf1f25f3b2f7 Reviewed-on: https://gerrit.libreoffice.org/38803 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-05-30remove spurious spaces introduced in variablesChristian Lohmaier1-124/+124
introduced on error when combining lines in eb145d19480d245228dc6b1032a925adbff8ea78 Change-Id: Ia0f5b7287689bea541c422c20b2d647b82c21b0b (cherry picked from commit 6e54fc4fe1c01d4b3b015b9074f0dc8d10257ee9) Reviewed-on: https://gerrit.libreoffice.org/38200 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2017-05-30Mass remove excess spaces from inside tagsGabor Kelemen2-3/+3
This is fallout from the l10n and oldref attribute removal. Some tags were broken into two rows and the second was indented with spaces. The line break was removed along the tags, but those spaces were not. Command I used to catch these: find source/text/ -name "*xhp" | xargs sed -i -e 's#\" *>#\">#g' Change-Id: I6f9bad46cbfb7416950bee8230e358a3dd851def Reviewed-on: https://gerrit.libreoffice.org/37791 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> (cherry picked from commit 1ae135d7569571bc38fc1bcf0dfd24610039a86e) Reviewed-on: https://gerrit.libreoffice.org/38182
2017-05-20tdf#84675 Add help page for StrReverse VBAOlivier Hallot4-28/+91
Fixes some syntax definitions Mute l10n for VBA function names Change-Id: I06d7391a44b465339e3c82f333719488f7d843b2 Reviewed-on: https://gerrit.libreoffice.org/37855 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-05-19Fix XML according to DTDOlivier Hallot1-2/+3
Change-Id: I386772d2bc275eb49a96b18e40219abdc22df3f9 Reviewed-on: https://gerrit.libreoffice.org/37841 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br> (cherry picked from commit cc6b76b3b8ede1c9ad8e173df9fd5b813e9e6572) Reviewed-on: https://gerrit.libreoffice.org/37842
2017-05-19tdf#84675 Help VBA functions AscW, ChrW, InStrRevOlivier Hallot7-403/+672
These functions are enabled whith Option VBASupport 1 fix bookmark Fix metas Fix makefile & add InStrRev Bookmarking Fix category for DDB Change-Id: I12fed1cd521ffb846d2994323013e8dcc127381f Reviewed-on: https://gerrit.libreoffice.org/37826 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br> (cherry picked from commit eb145d19480d245228dc6b1032a925adbff8ea78) Reviewed-on: https://gerrit.libreoffice.org/37838
2017-05-19Basic: merge identical def and example DefxxxLaurent Balland-Poirier10-194/+38
Change-Id: I64abb89958c823d636c402ad4fee1f008742b491 Reviewed-on: https://gerrit.libreoffice.org/37789 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br> (cherry picked from commit fc04019be5ce20fe8acd95e1cc41ba099dd51cb0) Reviewed-on: https://gerrit.libreoffice.org/37828
2017-05-19Basic: beautify Examples with bascode tagLaurent Balland-Poirier22-161/+132
Correct many examples to use <bascode> tag to get colorised text Merge some identical examples in section Remove useless spaces Remove ^M at end of line with <bascode> Add localize="false" for pure Basic code Add comments from Johnny_M Treat 03101700.xhp in a different commit Change-Id: I94a799ee13829ed9086127aa7d0e722ffe1dd90d Reviewed-on: https://gerrit.libreoffice.org/33240 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br> (cherry picked from commit 3d5e0e547daaed4c5587d403877a04916cf23eb9) Reviewed-on: https://gerrit.libreoffice.org/37825
2017-05-19tdf#84675 (part4) document VBA macros supportOlivier Hallot3-18/+146
Change-Id: I61f60fb4f3ac27604a71972f0c1d8a7e9effdcc4 Reviewed-on: https://gerrit.libreoffice.org/37735 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br> (cherry picked from commit 6f947c50faf2969405749fc118659d9d9934eb91) Reviewed-on: https://gerrit.libreoffice.org/37774
2017-05-19tdf#84675 (part3) Document Basic constantsOlivier Hallot2-31/+231
Document Basic constants more explicitely. Change-Id: I76958041552148cc65e5bfb49eed6944991a0637 Reviewed-on: https://gerrit.libreoffice.org/37705 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br> (cherry picked from commit a50d8ddab0d6037ee72424a21a18b9d07d53bdb7) Reviewed-on: https://gerrit.libreoffice.org/37772
2017-05-19tdf#84675 (part2) Document hidden BASIC constantsOlivier Hallot1-21/+75
Constants for TypeName/Vartype add tablehead style Change-Id: Ic613e1552af96df4a57d461600e26c11d5b289c2 Reviewed-on: https://gerrit.libreoffice.org/37692 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br> (cherry picked from commit 115035ec9e29cc0db7837a52cd7ee8527526d6b1) Reviewed-on: https://gerrit.libreoffice.org/37771
2017-05-16Basic: add localize=false for some bascode linesLaurent Balland-Poirier21-67/+37
Change-Id: I78884c0421ef8ad935ca7214b9116fda29d2797f update: remove duplicate empty line at end of files Reviewed-on: https://gerrit.libreoffice.org/33766 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-05-16Mute l10n for numbersOlivier Hallot2-20/+20
Change-Id: I3fe0ef570e49899449444dad5f29107dc7534071 Reviewed-on: https://gerrit.libreoffice.org/37689 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-05-16Mute L10n in some <bascode> linesOlivier Hallot2-19/+19
Change-Id: I2503568589b869b717f5c997434340d00892a275 Reviewed-on: https://gerrit.libreoffice.org/37687 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-05-16tdf#84675 (part2) document hidden BASIC func/constOlivier Hallot2-27/+159
GetAttr() SetAttr Valid ATTR for SetAttr statement are ATTR_NORMAL ATTR_READONLY ATTR_HIDDEN Others ATTR_* were not implemented, see http://opengrok.libreoffice.org/xref/core/basic/source/runtime/methods.cxx#4689 Change-Id: I51b50c13709b668c935b9a68981c20545648691d Reviewed-on: https://gerrit.libreoffice.org/37576 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-05-16tdf#84675 (part) document hidden BASIC func/constOlivier Hallot2-42/+419
Help page for MsgBox function and MsgBox statement Constants MB_* ID* Fix: remove MB_DEFBUTTON1 fix bug# Change-Id: Id8cbadc92a8e9c5902c3ff23b4e04bff3de3c03d Reviewed-on: https://gerrit.libreoffice.org/37558 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-05-16Add <bascode> in BASIC snipets.Olivier Hallot2-17/+25
Change-Id: I484036b9c9694a58f7f113b2cf1c04a1f0e2c4dc Reviewed-on: https://gerrit.libreoffice.org/37552 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-05-12adjust image paths after moving helpimg into more appropriate folderKatarina Behrens1-1/+1
Change-Id: Idcfa3700bfd53d38ddeda484828f00bf36cf3b57 Reviewed-on: https://gerrit.libreoffice.org/32104 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2017-05-09remove obsolete oldref attribute (removes one context line in pot)Christian Lohmaier135-1669/+1664
also remove obsolete l10n attribute (doesn't affect translations/pot) Change-Id: I809866ea7b16cb1cacad9efacb6fdeebae38ea9f
2017-05-08Typo: “common area” → “common era”Adolfo Jayme Barrientos2-2/+2
Change-Id: Ie9c3dfce3b5981defffad11eea3df4bd63d34148
2017-05-04Remove erroneous commit of source/text/sbasic/shared/03030108.xhp.rejEike Rathke1-14/+0
Change-Id: I2d5cb2f514d1a1564868d0abf442cd01ff28e7c7
2017-05-04CDateFromIso: also with separators; date range and year representationEike Rathke1-4/+9
Change-Id: Ifd83a84b300074be10fe039ba2e30b94f6bf1327
2017-05-04CDateFromIso: also with separators; date range and year representationEike Rathke1-0/+14
Change-Id: Ib946c3654805f8ae4bff1c7e3a0a26083bfb8df6
2017-05-03Fix typo in year rangeEike Rathke1-1/+1
Change-Id: If739f647f463795c3264a557bf83a8f6dbfb49fb
2017-05-03CDateToIso: details about format, date range and year representationEike Rathke1-2/+4
Change-Id: Id50e465356bde9f99afc2225d82d01f0225bd957
2017-01-30update helpids for .ui conversionCaolán McNamara1-1/+1
Change-Id: I88db8390a188e3d6b60dead17428826eb36a0232
2017-01-30update helpids for .ui conversionCaolán McNamara1-2/+2
Change-Id: I685964b0b111eaa548bba3b880bcbac9cd84a217
2017-01-25Basic: remove ^MLaurent Balland-Poirier27-110/+109
Remove ^M characters at end of line remove tabulation characters Change-Id: I96345f88c732ad5c40a6143437cccf064aca0738 Reviewed-on: https://gerrit.libreoffice.org/33387 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2016-12-27Fix syntax of example in 03104300.xhpOlivier1-1/+1
A function result is allways assigned to a variable Change-Id: Id422f9018cacca1eb2022c03568d8aad9edfe8fd Reviewed-on: https://gerrit.libreoffice.org/32461 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2016-09-15Change file extensions in examples: sxw -> odt, sxc -> odsGabor Kelemen2-3/+3
Some examples still used the old StarOffice extensions. Change-Id: Id6f7a28f0ff8511181f3641d8ad9f6f5896cef68 Reviewed-on: https://gerrit.libreoffice.org/28925 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2016-06-21remove "-" between FileAttr-Function and FileLen-FunctionChristian Lohmaier2-4/+4
to be consistent with the rest of the functions reported via pootle-feedback Change-Id: I6e95109a8cf4145dc84ab0f3ad699d74ee05d932
2016-06-16Recover lost basic in help indentationCaolán McNamara161-897/+897
regression from... commit 6614bedceadcc07ec082c5e926107f27903bda5c Date: Mon Jan 25 20:07:10 2016 +0100 fix validation errors by round-trip through helpauthoring extension with git show 6614bedceadcc07ec082c5e926107f27903bda5c | ~/recoverindent.py import fileinput import re import sys added = [] removed = [] filename = "" def processlastfile(filename, added, removed): if len(added) != len(removed): print "BROKEN" sys.exit(-2) if len(removed): f = open(filename, "rw") linestring = open(filename, "r").read() start = 0 for x in range(0, len(added)): if added[x] == removed[x]: continue if added[x].strip() != removed[x].strip(): print "BROKEN" sys.exit(-2) if filename == "source/text/sbasic/shared/03080301.xhp" and x == 6: print "skipping special hunk", removed[x], "in source/text/sbasic/shared/03080301.xhp" else: start = linestring.find(added[x], start) if start == -1: print "BROKEN" sys.exit(-2) linestring = linestring[0:start] + removed[x] + linestring[start + len(added[x]):] start = start + len(removed[x]) open(filename, "w").write(linestring) for line in fileinput.input(): if line.startswith("--- a/"): if filename is not "": processlastfile(filename, added, removed) added = [] removed = [] filename = line[6:-1] elif "role=\"bascode\"" in line: m = re.search('>(.+?)<', line) code = m.group(1) if line.startswith("-"): removed.append(code) else: added.append(code) processlastfile(filename, added, removed) which puts the code back the way it was, except for one string which had changed and was fixed manually afterwards Change-Id: Ic67abf36bb5d27be58a51ebbf5022830f56dcb37
2016-05-22Do not translate numbers ... (2)Olivier Hallot1-7/+7
Change-Id: Iff0930493bed0a839869a02518aa879cc6d11068 Reviewed-on: https://gerrit.libreoffice.org/25276 Reviewed-by: Olivier Hallot <ohallot@collabora.co.uk> Tested-by: Olivier Hallot <ohallot@collabora.co.uk>
2016-05-22Do not translate numbers...Olivier Hallot2-12/+12
Change-Id: I87d272719a0a666744951d82f7c522b6cd554bc7 Reviewed-on: https://gerrit.libreoffice.org/25275 Reviewed-by: Olivier Hallot <ohallot@collabora.co.uk> Tested-by: Olivier Hallot <ohallot@collabora.co.uk>
2016-05-14tdf#99809 Add back some syntax highlighting tags…Adolfo Jayme Barrientos2-6/+10
… accidentally removed in 8799ced9da7b7aeb37fadf700e062cc3255ebfe0 Change-Id: I799b62bb169dbc0505ed03deef6e460d75a66e9d
2016-05-13tdf#99809: BASIC: Update Rnd function and Randomize statementJohnny_M2-17/+18
BASIC's Rnd function and Randomize statement were updated on tdf#70474 and tdf#90110. (See https://gerrit.libreoffice.org/#/c/15818/ for the latter change.) Their documentation needs to be updated accordingly. Change-Id: I17f6a04858a20a969dc427be43dd903aedc04ecb Reviewed-on: https://gerrit.libreoffice.org/24943 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2016-03-31Fixed a dead link to api.libreoffice.org.Jan Holesovsky1-2/+2
Thanks to Juergen Klatt.
2016-01-25fix validation errors by round-trip through helpauthoring extensionChristian Lohmaier164-7076/+7712
lots of missing attributes "id" and "xml-lang" (extension patched to keep bascode tag) Change-Id: I9c5600b6fa133a6b1062803eadb976e043db7a4a
2016-01-25switchinline is none of emph's allowed childrenChristian Lohmaier2-2/+2
fixed with following sed expression: 's#<emph>\(<switchinline[^>]*><caseinline[^>]*>\)\([^>]*\)\(</caseinline><defaultinline>\)\([^<]*\)\(</defaultinline></switchinline>\)\([^<]*</emph>\)#\1<emph>\2</emph>\3<emph>\4</emph>\5<emph>\6#g' Change-Id: I03d36f4c52e78ca48fc2f94b275ffad7329071e3
2015-11-12Killed the last remnants of the 'lastedited' element.Jan Holesovsky7-14/+0
2015-11-12The 'lastedited' element is useless, we have git.Jan Holesovsky263-263/+0
2015-09-17Fix embed file reference in Basic IDE help pageOlivier Hallot1-1/+1
Change-Id: If04c7c562983bd81afc8f168677c8be4c308f566 Reviewed-on: https://gerrit.libreoffice.org/18667 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>