loleaflet/reference.html | 354 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 250 insertions(+), 104 deletions(-)
New commits: commit 70d6d0b0767775f0f47bb3eafee00711c616fff0 Author: Jan Holesovsky <ke...@collabora.com> Date: Wed Jan 13 08:53:02 2016 +0100 loleaflet: Add more commands to the documentation. diff --git a/loleaflet/reference.html b/loleaflet/reference.html index a73b8ae..d098fea 100644 --- a/loleaflet/reference.html +++ b/loleaflet/reference.html @@ -8156,9 +8156,34 @@ for (var i = 0, len = tables.length; i < len; i++) { </script> <script> -// I've tried to order them alphabetically, feel free to modify if some are not in the correct order var unoCommands = [ { + header: 'Global operations', +}, + +{ + uno: '.uno:Redo', + parameter: null, + description: 'Redo.' +}, + +{ + uno: '.uno:Save', + parameter: null, + description: 'Save the document.' +}, + +{ + uno: '.uno:Undo', + parameter: null, + description: 'Undo.' +}, + +{ + header: 'Text formatting', +}, + +{ uno: '.uno:BackColor', parameter: { 'BackColor': { @@ -8187,12 +8212,6 @@ var unoCommands = [ }, { - uno: '.uno:CenterPara', - parameter: null, - description: 'Center horizontally.' -}, - -{ uno: '.uno:CharBackColor', parameter: { 'CharBackColor': { @@ -8226,6 +8245,80 @@ var unoCommands = [ }, { + uno: '.uno:FontColor', + parameter: { + 'FontColor': { + type: 'long', + value: 16750848 + } + }, + description: 'Apply a font color for a text document (the value can be obtained by converting the base 16 color to base 10).' +}, + +{ + uno: '.uno:FontHeight', + parameter: { + 'FontHeight.Height': { + type: 'float', + value: '11.5' + } + }, + description: 'Apply font size.' +}, + +{ + uno: '.uno:Italic', + parameter: null, + description: 'Italic.' +}, + +{ + uno: '.uno:OutlineFont', + parameter: null, + description: 'Outline.' +}, + +{ + uno: '.uno:Shadowed', + parameter: null, + description: 'Shadowed.' +}, + +{ + uno: '.uno:SubScript', + parameter: null, + description: 'Subscript.' +}, + +{ + uno: '.uno:SuperScript', + parameter: null, + description: 'Superscript.' +}, + +{ + uno: '.uno:Strikeout', + parameter: null, + description: 'Strikeout / strike-through.' +}, + +{ + uno: '.uno:Underline', + parameter: null, + description: 'Underline.' +}, + +{ + header: 'Paragraph formatting', +}, + +{ + uno: '.uno:CenterPara', + parameter: null, + description: 'Center horizontally.' +}, + +{ uno: '.uno:DecrementIndent', parameter: null, description: 'Decrement paragraph indentation.' @@ -8244,66 +8337,53 @@ var unoCommands = [ }, { - uno: '.uno:DeleteComment', + uno: '.uno:IncrementIndent', parameter: null, - description: 'Delete comment.' + description: 'Increment paragraph indentation.' }, { - uno: '.uno:EnterString', - parameter: { - 'StringName': { - type: 'string', - value: '=SUM()' - } - }, - description: 'Enters the string in the selected cell.' + uno: '.uno:JustifyPara', + parameter: null, + description: 'Justified.' }, { - uno: '.uno:FontColor', - parameter: { - 'FontColor': { - type: 'long', - value: 16750848 - } - }, - description: 'Apply a font color for a text document (the value can be obtained by converting the base 16 color to base 10).' + uno: '.uno:LeftPara', + parameter: null, + description: 'Align left.' }, { - uno: '.uno:FontHeight', - parameter: { - 'FontHeight.Height': { - type: 'float', - value: '11.5' - } - }, - description: 'Apply font size.' + uno: '.uno:RightPara', + parameter: null, + description: 'Align right.' }, { - uno: '.uno:HideWhitespace', + uno: '.uno:SetHyperlink', parameter: { - 'type': 'boolean', - 'value': 'false' + 'Hyperlink.Text': { + type: 'string', + value: 'some text' + }, + 'Hyperlink.URL': { + type: 'string', + value: 'url' + } }, - description: 'Continous web view of the document' + description: 'Creates a hyperlink. If Hyperlink.Text is not specified, the hyperlink will be set for the current ' + + 'selection. Hyperlink.URL can be a web URL or a bookmark from the document.' }, { - uno: '.uno:ShowBorderShadow', - parameter: { - 'type': 'boolean', - 'value': 'true' - }, - description: 'Paint a shadow around Write page / Impress slide border.' + header: 'Comments', }, { - uno: '.uno:IncrementIndent', + uno: '.uno:DeleteComment', parameter: null, - description: 'Increment paragraph indentation.' + description: 'Delete comment.' }, { @@ -8318,60 +8398,71 @@ var unoCommands = [ }, { - uno: '.uno:InsertTable', - parameter: { - 'Columns': { - 'type': 'long', - 'value': 6 - }, - 'Rows': { - 'type': "long", - 'value': 10 - } - }, - description: 'Insert table with the given dimensions.' + header: 'Fields', }, { - uno: '.uno:Italic', + uno: '.uno:InsertPageNumberField', parameter: null, - description: 'Italic.' + description: 'Insert Page Number field.' }, { - uno: '.uno:JustifyPara', + uno: '.uno:InsertPageCountField', parameter: null, - description: 'Justified.' + description: 'Insert Page Count field.' }, { - uno: '.uno:LeftPara', + uno: ' DateField', parameter: null, - description: 'Align left.' + description: 'Insert Date field.' }, { - uno: '.uno:OutlineFont', + uno: ' TimeField', parameter: null, - description: 'Outline.' + description: 'Insert Time field.' }, { - uno: '.uno:Redo', + uno: ' TitleField', parameter: null, - description: 'Redo.' + description: 'Insert Title field.' }, { - uno: '.uno:ResetAttributes', + uno: ' AuthorField', parameter: null, - description: 'Clear direct formating.' + description: 'Insert Author field.' }, { - uno: '.uno:RightPara', + uno: ' TopicField', parameter: null, - description: 'Align right.' + description: 'Insert Topic field.' +}, + +{ + header: 'Styles', +}, + +{ + uno: '.uno:DeleteStyle', + parameter: null, + description: 'Delete the current style.' +}, + +{ + uno: '.uno:FormatPaintbrush', + parameter: null, + description: 'Copy format of the selected text to another text.' +}, + +{ + uno: '.uno:ResetAttributes', + parameter: null, + description: 'Clear direct formating.' }, { @@ -8390,73 +8481,128 @@ var unoCommands = [ }, { - uno: '.uno:Save', + uno: '.uno:StyleUpdateByExample', parameter: null, - description: 'Save the document.' + description: 'Update the current style to match the selected text.' }, { - uno: '.uno:SetHyperlink', - parameter: { - 'Hyperlink.Text': { - type: 'string', - value: 'some text' - }, - 'Hyperlink.URL': { - type: 'string', - value: 'url' - } - }, - description: 'Creates a hyperlink. If Hyperlink.Text is not specified, the hyperlink will be set for the current ' + - 'selection. Hyperlink.URL can be a web URL or a bookmark from the document.' + header: 'Tables', }, { - uno: '.uno:Shadowed', + uno: '.uno:InsertColumnsAfter', parameter: null, - description: 'Shadowed.' + description: 'Insert column after the current cursor position.', }, { - uno: '.uno:SubScript', + uno: '.uno:InsertColumnsBefore', parameter: null, - description: 'Subscript.' + description: 'Insert column before the current cursor position.', }, { - uno: '.uno:SuperScript', + uno: '.uno:InsertRowsAfter', parameter: null, - description: 'Superscript.' + description: 'Insert row after the current cursor position.', }, { - uno: '.uno:Strikeout', + uno: '.uno:InsertRowsBefore', parameter: null, - description: 'Strikeout / strike-through.' + description: 'Insert row before the current cursor position.', }, { - uno: '.uno:Underline', + uno: '.uno:InsertTable', + parameter: { + 'Columns': { + 'type': 'long', + 'value': 6 + }, + 'Rows': { + 'type': "long", + 'value': 10 + } + }, + description: 'Insert table with the given dimensions.' +}, + +{ + uno: '.uno:DeleteTable', parameter: null, - description: 'Underline.' + description: 'Delete table at the current cursor position.' }, { - uno: '.uno:Undo', + uno: '.uno:DeleteColumns', parameter: null, - description: 'Undo.' + description: 'Delete the current column.' +}, + +{ + uno: '.uno:DeleteRows', + parameter: null, + description: 'Delete the current row.' +}, + +{ + header: 'Spreadsheet-related', +}, + +{ + uno: '.uno:EnterString', + parameter: { + 'StringName': { + type: 'string', + value: '=SUM()' + } + }, + description: 'Enters the string in the selected cell.' +}, + +{ + header: 'Appearance options', +}, + +{ + uno: '.uno:HideWhitespace', + parameter: { + 'type': 'boolean', + 'value': 'false' + }, + description: 'Continous web view of the document.' +}, + +{ + uno: '.uno:ShowBorderShadow', + parameter: { + 'type': 'boolean', + 'value': 'true' + }, + description: 'Paint a shadow around Write page / Impress slide border.' }, ]; $(document).ready(function() { var table = $('#uno-commands-table'); unoCommands.forEach(function (unoCommand) { - table.append( - '<tr>' + - ' <td><code><b>' + unoCommand.uno + '</b></code></td>' + - ' <td><code><pre>' + JSON.stringify(unoCommand.parameter, null, 2) + '</pre></code></td>' + - ' <td>' + unoCommand.description + '</td>' + - '</tr>'); + if ('header' in unoCommand) { + + table.append( + '<tr>' + + ' <td colspan="3"><b>' + unoCommand.header + '</b></td>' + + '</tr>'); + } + else { + table.append( + '<tr>' + + ' <td><code><b>' + unoCommand.uno + '</b></code></td>' + + ' <td><code><pre>' + JSON.stringify(unoCommand.parameter, null, 2) + '</pre></code></td>' + + ' <td>' + unoCommand.description + '</td>' + + '</tr>'); + } }); }); </script> _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits