Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dev:client_coding:libreoffice_plugin_wire_protocol [2012/07/24 02:19] – [Basics] simon | dev:client_coding:libreoffice_plugin_wire_protocol [2017/11/12 19:53] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
+ | in the process of updating the documentation for | ||
+ | <a href=" | ||
+ | may be outdated in the meantime. Thanks for your understanding.</ | ||
+ | |||
+ | |||
====== LibreOffice Plugin Wire Protocol ====== | ====== LibreOffice Plugin Wire Protocol ====== | ||
Line 61: | Line 67: | ||
</ | </ | ||
- | If the request is successful, the client must send a response with a JSON-encoded payload. This response is often code>null</ | + | If the request is successful, the client must send a response with a JSON-encoded payload. This response is often null if the command returns no output, but may also be an array, an integer, a string, or a boolean value depending on the command. |
If the request is unsuccessful, | If the request is unsuccessful, | ||
Line 319: | Line 325: | ||
| fieldID | %%Integer|String%% | The fieldID, as originally returned by [[# | | fieldID | %%Integer|String%% | The fieldID, as originally returned by [[# | ||
| code | %%String%% | The field code| | | code | %%String%% | The field code| | ||
+ | |||
+ | === Returns === | ||
+ | |||
+ | null | ||
+ | |||
+ | ==== Field_convert ==== | ||
+ | |||
+ | Converts a field from one type to another. | ||
+ | |||
+ | === Parameters === | ||
+ | |||
+ | | documentID | %%Integer|String%% | The documentID, as originally returned by [[# | ||
+ | | fieldID | %%Integer|String%% | The fieldID, as originally returned by [[# | ||
+ | | fieldType | %%String%% | The type of field used by the document, either ReferenceMark or Bookmark | | ||
+ | | noteType | %%Integer%% | The type of note specified by the style:< | ||
+ | NOTE_IN_TEXT = 0 | ||
+ | NOTE_FOOTNOTE = 1 | ||
+ | NOTE_ENDNOTE = 2 | ||
+ | </ | ||
=== Returns === | === Returns === | ||
null | null |