summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit/LibreOfficeKit.h
AgeCommit message (Collapse)Author
2015-11-23LOK: add Document::getTileMode()Miklos Vajna
So that clients can know if they get old-style RGBA or new-style ARGB output in paintTile(). Change-Id: Icfde4b3259444b3524e64478ccd976664a3fe0ed
2015-11-18lok::Document::initializeForRendering: support init. argumentsMiklos Vajna
Change-Id: I8aaf19a50f25f495cb87fba7ff6a4b0f56ed7d80
2015-11-13LOK: setClientZoom() - sets the client zoom levelMihai Varga
We need to know the client's view level to correctly handle the mouse events in calc. PaintTile() set a zoom level that corresponds to the requested tiles and previously postMouseEvent would call SetZoom(1,1). Now we can make use of knowing the client's view level and call SetZoom() with the correct parameters Change-Id: I34b5afcdcc06a671a8ac92c03e87404e42adf4cd Conflicts: sc/source/ui/unoobj/docuno.cxx
2015-11-03lok: Introduce LOK_CALLBACK_UNO_COMMAND_RESULT callback.Jan Holesovsky
Posting of the .uno:Something commands is asynchronous. To be able to find out when eg. .uno:Save finished, this commit introduces a callback that fires when that happens. To be able to receive such a notification, the appropriate postUnoCommand() must be called with 'true' as the parameter for bNotifyWhenFinished (defaults to 'false'). Change-Id: I254939ebc8ea5f309ae39686dcaaeddd5148b0c9
2015-10-22LOK: add Document::paste()Miklos Vajna
Change-Id: I34998229e7f5cac4c62c859861783be3c161f9bf
2015-10-05LOK: added the button type and key modifier to postMouseEvent()Mihai Varga
To get a better functionality we need to know the button type (left, right, middle). We also need the key modifier (ctrl, alt, shift) for actions such as ctrl+click (to open a link) or shift+click to select Change-Id: Iaccb93b276f8a6870dd41cc5132dbb85d2bbf71b
2015-09-29lok: add Document::getPartPageRectangles()Miklos Vajna
Change-Id: I20acd44f7a81471982ba96ad3894a9124e035c5f
2015-09-25lok: add Office::getFilterTypes()Miklos Vajna
Change-Id: I3b1f4e11f2495e5ccb41f85802f243c0190695ee
2015-09-21lokdocview: set view before calling lok::Document member functionsMiklos Vajna
getTextSelection() is still to be done, but has to be moved to the widget first. Change-Id: I780a31f1dbce38b2b7398bfdacbbc1c40881229d
2015-09-21Add missing lok::Document::setPartMode() wrapperMiklos Vajna
Change-Id: I5dd5f0cfb8b34621b18a35be682249e042d9b173
2015-09-21LOK: make getViews() be a member function of DocumentMiklos Vajna
Just to be consistent, as all other view-related member functions are there, too. No real impact, as only the unit test uses this so far, and it always works with a single document. Change-Id: I46f1ed8265ab95017986ab45c1b510e961192241
2015-09-21lok::Document: add get/setView()Miklos Vajna
Change-Id: Ic3bce8f01d7e048e853c063c4bce1255845c60d0
2015-09-21lok::Document: add destroyView()Miklos Vajna
Change-Id: Id9e92593217541b4123e95279019cec3c958056c
2015-09-21lok::Office: add getViews()Miklos Vajna
Change-Id: Iabfb0f2a19106dc4a6bdae45f9e85d76c68a973e
2015-09-21lok::Document: add createView()Miklos Vajna
Change-Id: Ic871ec41992b611b10958799b2dc12375a91efe4
2015-09-10LOK: added a general getCommandValues methodMihai Varga
This method returns a JSON mapping of the posible values for the given command (e.g. .uno:StyleApply, etc). returns: {commandName: "cmdName", commandValues: {json_of_cmd_values}} I've fixed the unit test this time Change-Id: I30b0fba8ba1db33dd79f4b46026d293b9ea72402
2015-09-04Revert "LOK: added a general getCommandValues method"Mihai Varga
This reverts commit 9640dcea46dd3201aa4c27f6a3918f7419288a2a.
2015-09-04LOK: added a general getCommandValues methodMihai Varga
This method returns a JSON mapping of the posible values for the given command (e.g. .uno:StyleApply, etc). returns: {commandName: "cmdName", commandValues: {json_of_cmd_values}} Change-Id: Ic8f970d077af6be9bc226f72f725b6cdf2d4c160
2015-08-18lok::Document getStyles methodMihai Varga
This method returns a JSON mapping of style families to a list of styles from the corresponding family. Will be used to know and apply styles in tiledrendering. Change-Id: I0aa395c40b9573920ade44255f97c077475ae5f1
2015-06-19LOK: return used format in Document::getTextSelection()Miklos Vajna
This allows requesting text/html, with falling back to plain text if necessary. Change-Id: Ie6d4e0e173311ba018553043b6a869abf193bf6f Reviewed-on: https://gerrit.libreoffice.org/16377 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-06-17LOK: add lok::Document::getTextSelection()Miklos Vajna
I.e. the copy part of copy&paste. Only the Writer bits for now. Change-Id: Ia003e76e3b234735f472cdef125514f9771d8640
2015-05-06Add support for progress bar callbacks to LibreOfficeKitTor Lillqvist
The libsofficeapp and LibreOfficeKit API bits. Change-Id: I4efe9880dfa4e0387f05b50e64b5eaee448e0925
2015-04-22lok::Document::postUnoCommand: allow passing argumentsMiklos Vajna
Change-Id: I6c24a8e392473f3985d3bde9b76a3148fd03bc9a
2015-04-16The mode lines says we use 4-column indentation steps, so do that thenTor Lillqvist
Also, be consistent in spacing, indentation and alignment. Inconsistency is infuritating. In this case, I decided to drop the attempts to align the names of "methods", and their parameter lists. They were not all aligned anyway, and some of those that tried to be in fact were off by one column. Also, consistently use a blank line between the method pointers, If you feel strongly about this and *want* such inter-line alignment, by all means re-introduce it, but at least try to be consistent then, and do it for all methods. Change-Id: I382ca0eaf8533ebc3f829ebd978a9676ebcefaf0
2015-04-07LOK: document remaining Document member functionsMiklos Vajna
Change-Id: Idc5836317c01780bb5078d39d8c31775886027d0
2015-03-20Drop paintTile's row stride output parameter that nobody is interested inTor Lillqvist
Change-Id: I166b4b713c2ea52c62c52045bb2073b6d84c1547
2015-03-19Indent parameter lists consistently.Tor Lillqvist
Other inconsistencies in spacing and alignment remain, though. Change-Id: I2b4f9e34781288c5146518be853d3831ec32e968
2015-03-16LOK: extract the callback typedef to a separate LibreOfficeKitTypes.h headerMiklos Vajna
With this, most LO code can avoid rebuilding when touching LibreOfficeKit.h, something that caused a mass-rebuild earlier. Change-Id: I4880fc7ad82cc535377b2b602897e3172ffa480b
2015-03-16LOK: Implement posting of .uno: commands.Jan Holesovsky
Implements also Bold button as an example in the gtktiledviewer. Change-Id: I3b07d51165f28534aadbb4673f964ec10d5fc6ef
2015-03-16lok::Document: add resetSelection()Miklos Vajna
Change-Id: Ib24003178bb576ff1450d674d74ef8978b350b92
2015-03-16LOK: add lok::Document::setGraphicSelection() API and implement it for WriterMiklos Vajna
Change-Id: I115cf7e7978622d5108c4c792f7de861beb6efb6
2015-03-10Avoid undef use of null ptr, use offsetof insteadStephan Bergmann
Change-Id: I47b1d8e7b119e50406b50f580ee06f9f1b5f8401
2015-03-02LOK: move Office::postKeyEvent to DocumentMiklos Vajna
The implementation still sends them to the currently active VCL frame, not to the given document, though. Change-Id: I6fa2decdea3f949c55287e802cb3373c85664207
2015-02-23Extract LibreOfficeKitEnums.h from LibreOfficeKit.hMiklos Vajna
This massively reduces the rebuild time in case only a new enumeration value is added to one of the enums. Change-Id: I4e58adf36fcd29da1672a5e5091bd3f6744f148d
2015-02-23lok::Office::postKeyEvent: allow different char and key codeMiklos Vajna
editeng is not happy with non-zero char code for css::awt::Key::ESCAPE. Change-Id: If26923df7defb8a47766e9109835a8569067e578
2015-02-17LOK: Add support for documentLoadWithOptions also to LibreOfficeKit.hxx.Jan Holesovsky
Change-Id: I89f018f524aad84f59372f1be76a8522010345f8
2015-02-17SkipImages option for PDF importMihai
This option allows images and drawings to be skipped while importing a PDF, the main reason was performance improvement where images were not needed. Change-Id: Ibca342ff6e7005bedf7b16869473832ce2576fb2 Reviewed-on: https://gerrit.libreoffice.org/14470 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-02-16LOK: add LOK_SETTEXTSELECTION_RESETMiklos Vajna
So clients can perform a single method call to adjust the cursor position (when it's not a range), instead of sending two mouse clicks. This is mostly to be consistent, so that adjusting the cursor's middle and start/end handles all result in a setTextSelection() LOK call. Change-Id: I09eb0811887d173ea9ad7d125a2afb2c9e5c918c
2015-02-16LOK: add lok::Document::setTextSelection()Miklos Vajna
What's interesting about this is that it allows adjusting the position of both the point and mark of the selection, while the normal UI only allows adjusting the point. Change-Id: If61f57c68c28c67fec252f2b666a706f52dd8d26
2015-02-16LOK: add LOK_CALLBACK_TEXT_SELECTION_START/ENDMiklos Vajna
Without this, it's really hard to figure out where to put selection handles based on the selection polygon. Change-Id: I7fde038a33633796a43f0b454a5a7cff701c5dc3
2015-02-09LOK: add LOK_CALLBACK_TEXT_SELECTION and implement it in swMiklos Vajna
Change-Id: I31662cb06add0d1a1c517b5f5416703aeaae1e77
2015-02-09lok::Document::postMouseEvent(): allow double-clickMiklos Vajna
Change-Id: Idaddd28d906e7508d4d2c5aab916b06fbe021beb
2015-02-09Add LOK_CALLBACK_INVALIDATE_VISIBLE_CURSORMiklos Vajna
So that clients can draw a blinking cursor at the cursor position if they want so. Change-Id: I662b8d28d7054f89c381c14333a51e1dc222f93d
2015-02-02Use our standard include guard naming conventionTor Lillqvist
Change-Id: Ida8aed52b57ca27cd7af7c3dd117345127efeb3c
2015-01-26LOK: move postMouseEvent to DocumentMiklos Vajna
Change-Id: I5d2d2d05fc0f55d98a1e7a1591b4d66fd93ad353
2015-01-26Add initial lok::Office::postMouseEvent()Miklos Vajna
There is no unit conversion yet, most probably we want to work with doc model coordinates at an API level, while VCL works with pixel coordinates. Change-Id: I98848851fbec5253e76c997844f6339402dfac46
2015-01-16LOK: add LibreOfficeKitKeyEventType enumerationMiklos Vajna
Change-Id: I3d422670323cd982251569c4226dc46803d4f6a1
2015-01-12Add lok::Office::postKeyEvent()Miklos Vajna
Change-Id: Ib80a8dd433b22a5e88aaab8e11d5c42ced8097ae
2015-01-12lok: Add comments to some methods, put the star where it belongsTomaž Vajngerl
Change-Id: I751eb175f29489637f465c9d97ebe920372f38bf
2015-01-06LOK: add LibreOfficeKitCallbackType enumerationMiklos Vajna
Change-Id: I0147b1985f87f25e70f4d8672beba18fdd9ba6c2