Miklos Vajna
d30f5bc3e6
lok::Document::paintTile: fix non-rectangular tiles wrt. transparency
...
When copying the alpha channel, the offset was incorrect when canvas
width/height did not equal.
Change-Id: If0ab3ec7a4ad4dd958419b566fd473732965cfda
2015-10-15 09:42:26 +02:00
Miklos Vajna
de1f156c6a
lok::Document::initializeForRendering(): handle lack of lok_init()
...
Normally lok_init() sets the component context, but not e.g. during unit
testing.
Change-Id: If3760f31af2e4b870f65e5aa7557607e8b6a1114
2015-10-08 10:56:40 +02:00
Tor Lillqvist
3c9da1fbfa
Make this compile for iOS again
...
Change-Id: I36f88d7e1114096d1e7a7a1d29077c387c21a10a
2015-10-07 21:34:06 +03:00
Andrea Gelmini
7154aece1f
Fix typos
...
Change-Id: Ia6246bb6d37a0ec1ac53a4cb095bfd6fd15f873d
Reviewed-on: https://gerrit.libreoffice.org/18945
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de >
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de >
2015-10-06 19:12:42 +00:00
Mihai Varga
c90c08a65c
LOK: added the button type and key modifier to postMouseEvent()
...
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-10-05 15:02:36 +03:00
Miklos Vajna
44838c669b
desktop: handle sal_uInt16 in jsonToPropertyValues()
...
Change-Id: Ic0059404b7ccbc922703705e7818404d4904f324
2015-10-05 12:04:59 +02:00
Miklos Vajna
1d3b613318
desktop, vcl: support transparency in VirtualDevices with user-provided memory
...
Change-Id: I65c31995c02a644aa436aecd065255fab38045e4
2015-10-01 16:45:23 +02:00
Miklos Vajna
d355207b45
lok: add Document::getPartPageRectangles()
...
Change-Id: I20acd44f7a81471982ba96ad3894a9124e035c5f
2015-09-29 11:08:03 +02:00
Miklos Vajna
14a9a7d520
desktop: make LibLibreOffice_Impl visible to testcases
...
Change-Id: I345a6cab57cc594614e348700bb3c1c9a0673989
2015-09-25 01:06:31 +02:00
Miklos Vajna
9b9f2ad9c8
lok: add Office::getFilterTypes()
...
Change-Id: I3b1f4e11f2495e5ccb41f85802f243c0190695ee
2015-09-25 01:02:23 +02:00
Michaël Lefèvre
92c8d74c54
CppCheck : reduce variables scope
...
Change-Id: Ief402017b693a4337f330fb07bb7a6dc6e749f72
Reviewed-on: https://gerrit.libreoffice.org/18753
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2015-09-23 07:29:33 +00:00
Miklos Vajna
b8a54763f4
lok::Document: register callback in the view, if requested
...
With this, a postKeyEvent() in one view properly results in one
LOK_CALLBACK_INVALIDATE_TILES per view, at least in Writer.
Change-Id: Ia0a9a00ea5a98c38f3d399208b9ef028f3036f79
2015-09-21 07:30:24 +02:00
Miklos Vajna
1704221067
comphelper: add LibreOfficeKit::set/isViewCallback()
...
Change-Id: Iad0b2ee419327daf478f3ddda2378effe0184067
2015-09-21 07:30:23 +02:00
Miklos Vajna
a04b31c9fa
LOK: make getViews() be a member function of Document
...
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-21 07:30:21 +02:00
Miklos Vajna
8cb6094447
Use SfxViewFrame::Current()
...
Allows getting rid of vcl::ITiledRenderable::getCurrentViewShell(),
which would do the same, just not implemented outside Writer.
Change-Id: Id26ceca560fb9002dc2d5c740c411b9c4a149523
2015-09-21 07:30:20 +02:00
Miklos Vajna
46588c42a5
lok::Document: add get/setView()
...
Change-Id: Ic3bce8f01d7e048e853c063c4bce1255845c60d0
2015-09-21 07:30:20 +02:00
Miklos Vajna
10a0cad9d6
lok::Document: add destroyView()
...
Change-Id: Id9e92593217541b4123e95279019cec3c958056c
2015-09-21 07:30:14 +02:00
Miklos Vajna
2e523afe61
lok::Office: add getViews()
...
Change-Id: Iabfb0f2a19106dc4a6bdae45f9e85d76c68a973e
2015-09-21 07:30:13 +02:00
Miklos Vajna
655c7877a0
lok::Document: add createView()
...
Change-Id: Ic871ec41992b611b10958799b2dc12375a91efe4
2015-09-21 07:30:12 +02:00
Caolán McNamara
eaf2c27888
boost->std
...
Change-Id: Ifde84627578283bd057d7393eb7e5578ef5c029a
2015-09-17 11:00:51 +01:00
Jan Holesovsky
a191076e3b
LOK: Avoid crash when the command is not available in the given component.
...
In that case we get a NULL pSlot.
Change-Id: I38783ed198b1ab9860398f59ef872a295cbae6f8
2015-09-15 17:07:52 +02:00
Jan Holesovsky
93cdcfac48
LOK: Sync the list of commands we initialize with those we handle.
...
A better solution is needed, outlined in tdf#94233.
Change-Id: Ie2a58c9c5f5c46566da105ef84d736d7290f4634
2015-09-15 12:14:48 +02:00
Henry Castro
d3a2c0f603
lok: initialize UNO url command dispatch
...
In the tiled rendering case, the desktop is headless, so the toolbar
is not created. The toolbar usually initializes all UNO url commands
for each tool item attached.
This causes that SfxControllerItem that monitor a state, it is not
intercepted by InterceptLOKStateChangeEvent so no callback status changes.
Change-Id: I5937cda66ef24d31dd92a1edd8c1440081c4b1a4
2015-09-15 09:28:57 +02:00
Jan Holesovsky
f1f179ba0f
LOK: Implement an own trivial InteractionHandler.
...
So far it just selects 'Approve' for any interaction that is done through
that, later we want to route the information via callbacks to the caller.
Change-Id: I7ae3e2dcc04877b8b0197b0396299126e1217a2a
2015-09-11 18:50:00 +02:00
Mihai Varga
1806882317
LOK: getFonts method
...
Returns a json mapping of the available fonts to their possible font
sizes
Change-Id: I80c0bdd79e3ef2d814f64b8d38143d6c2b9ca720
2015-09-10 11:34:32 +03:00
Mihai Varga
39975c477a
LOK: added a general getCommandValues method
...
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-10 11:34:20 +03:00
Mihai Varga
2290efa4a2
LOK: moved the decalaration of LibLODocument_Impl to make it visible
...
We needed a better way to test LOK methods that are not app specific,
but are defined in /desktop/source/lib/init.cxx. So the decalaration
needs to be visible.
I also moved the `getStyles` test in the new test file
Change-Id: I98d97dc17a66e72732ca7bd848c131610790f48e
2015-09-09 18:02:10 +03:00
Mihai Varga
262e7be014
Revert "LOK: added a general getCommandValues method"
...
This reverts commit 9640dcea46
.
2015-09-04 15:46:48 +03:00
Mihai Varga
d3c9327966
LOK: allow float numbers in json -> property value conversion
...
Change-Id: I866a44fcb71044d27a9bf06e2f55ca2e4135c23b
2015-09-04 12:22:29 +03:00
Mihai Varga
9640dcea46
LOK: added a general getCommandValues method
...
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-09-04 12:22:28 +03:00
Mihai Varga
c5a516bd1b
lok::Document getStyles method
...
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-08-18 13:04:35 +03:00
Henry Castro
21531da576
LOKit: set thread name lo_startmain
...
It is necessary the thread name for debugging LOKit threads.
Change-Id: I713595eb1319234ff90a6eddebcac5ebad912b04
2015-08-06 11:40:28 -04:00
Jan Holesovsky
c4e74d5090
LOK: Corner case with working dir as '/'.
...
Change-Id: I3965966f0d3fe65389e8834d67452ac56f9df2d6
2015-07-07 08:41:16 +02:00
Jan Holesovsky
b183507ee2
LOK: Cleanup absolutizing of URLs.
...
Thanks to Stephan Bergmann.
Change-Id: I22aa3bb827db28bce3eabebb9b8c514663fad860
2015-07-06 15:53:26 +02:00
Jan Holesovsky
e83cb37cf7
LOK: Don't try to absolutize URL's.
...
Based on a patch by Henry Castro.
Change-Id: Ia7aca20feb8f6095adf7dfe510ed78b1e9882740
2015-07-03 18:17:46 +02:00
Caolán McNamara
df5ec49bca
cppcheck: noExplicitConstructor
...
Change-Id: I80cd2975f17bb7fa57fa669873ef1dd8f3595a11
2015-06-24 20:03:22 +01:00
Miklos Vajna
af7cbebd8e
LOK: return used format in Document::getTextSelection()
...
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-19 18:00:53 +00:00
Miklos Vajna
cfc4375158
LOK: add lok::Document::getTextSelection()
...
I.e. the copy part of copy&paste. Only the Writer bits for now.
Change-Id: Ia003e76e3b234735f472cdef125514f9771d8640
2015-06-17 18:21:09 +02:00
Stephan Bergmann
a9ae0c394b
loplugin:cstylecast: deal with those that are (technically) const_cast
...
Change-Id: Id57c9599a454e1156a6a248ebb143a88f6d78425
2015-06-02 11:26:10 +02:00
Miklos Vajna
1dc60bc9e9
SvxSearchItem: add m_nStartPoint{X,Y}
...
The idea is that if you have your cursor at the begining of a Writer
document, and you scroll down a lot, then search, then it's annoying
that search jumps back to the start of the document for the first hit.
Add an optional way to provide what is the starting point of such a
search, so we can have "when nothing is selected, then search from the
top left corner of the visible area".
No UI yet to enable this, but available via the UNO API.
Change-Id: Ibcf3a5f2eeba1372b1dfe8474081e6591a6e0134
2015-05-28 17:37:18 +02:00
Tor Lillqvist
a1aa2cdaa7
Look for libsofficeapp.dylib in the right place on OS X
...
Change-Id: Icef6b70081b15d4b8d99eb4ba7103f059e8d00e4
2015-05-23 10:11:09 +01:00
Caolán McNamara
a2447aa82b
coverity#1257113 Uninitialized pointer field
...
Change-Id: If1454e643bba38a0bffd0e14a28045dc5e544d11
2015-05-09 17:18:36 +01:00
Tor Lillqvist
713a8f3f53
Nah, the Android NDK we use doesn't have std::to_string()
...
So do the verbose OUString::number().toUtf8().getStr() dance.
Change-Id: Ied5f6c3ec936544f0f36eeafd07f9496e9061373
2015-05-06 21:19:08 +03:00
Tor Lillqvist
824854997e
Include <string>
...
Hoping to fix the Android compilation.
Change-Id: Ibb476edebc6b2da040af8c8db04efa39882c5bf0
2015-05-06 20:20:50 +03:00
Tor Lillqvist
e449308e5d
Add support for progress bar callbacks to LibreOfficeKit
...
The libsofficeapp and LibreOfficeKit API bits.
Change-Id: I4efe9880dfa4e0387f05b50e64b5eaee448e0925
2015-05-06 17:55:59 +03:00
Miklos Vajna
d4a12421f2
desktop: pJSON may be 0 in jsonToPropertyValues()
...
Change-Id: I1ed9a4e1f1ecabf48ed3edb7cf6623261e2f4570
2015-04-29 20:42:04 +02:00
Michael Meeks
e8b97a52c9
Merge remote-tracking branch 'origin/feature/vclptr'
...
Resolve several thousand lines of conflicts.
Conflicts:
accessibility/source/extended/accessiblelistbox.cxx
accessibility/source/standard/vclxaccessiblecombobox.cxx
accessibility/source/standard/vclxaccessibledropdowncombobox.cxx
accessibility/source/standard/vclxaccessibledropdownlistbox.cxx
accessibility/source/standard/vclxaccessiblelistbox.cxx
accessibility/source/standard/vclxaccessibletextfield.cxx
basctl/source/basicide/basidesh.cxx
cui/source/inc/chardlg.hxx
cui/source/tabpages/tpbitmap.cxx
dbaccess/source/ui/dlg/UserAdmin.cxx
dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx
extensions/source/propctrlr/propertyeditor.hxx
extensions/source/scanner/sanedlg.cxx
filter/source/pdf/impdialog.cxx
include/sfx2/mgetempl.hxx
include/sfx2/sidebar/SidebarToolBox.hxx
include/sfx2/viewsh.hxx
include/svtools/brwbox.hxx
include/svtools/filectrl.hxx
include/svtools/scrwin.hxx
include/svx/dlgctrl.hxx
include/svx/sidebar/Popup.hxx
include/svx/sidebar/PopupContainer.hxx
include/svx/sidebar/PopupControl.hxx
include/svx/sidebar/SidebarDialControl.hxx
include/svx/sidebar/ValueSetWithTextControl.hxx
sc/source/ui/condformat/condformatdlgentry.cxx
sc/source/ui/navipi/navipi.cxx
sc/source/ui/sidebar/CellBorderStyleControl.hxx
sd/source/ui/animations/CustomAnimationDialog.cxx
sd/source/ui/inc/DrawViewShell.hxx
sd/source/ui/inc/Ruler.hxx
sd/source/ui/inc/SlideSorter.hxx
sd/source/ui/inc/ViewTabBar.hxx
sd/source/ui/inc/Window.hxx
sd/source/ui/inc/morphdlg.hxx
sd/source/ui/inc/sdpreslt.hxx
sd/source/ui/sidebar/CurrentMasterPagesSelector.hxx
sd/source/ui/sidebar/LayoutMenu.hxx
sd/source/ui/sidebar/MasterPagesSelector.hxx
sd/source/ui/sidebar/NavigatorWrapper.hxx
sd/source/ui/sidebar/PanelBase.hxx
sd/source/ui/sidebar/RecentMasterPagesSelector.cxx
sd/source/ui/sidebar/RecentMasterPagesSelector.hxx
sd/source/ui/slideshow/showwindow.hxx
sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx
sd/source/ui/view/ViewShellBase.cxx
sd/source/ui/view/drviewsa.cxx
sfx2/source/appl/fileobj.hxx
sfx2/source/appl/opengrf.cxx
sfx2/source/control/thumbnailviewacc.hxx
sfx2/source/dialog/securitypage.cxx
sfx2/source/dialog/templdlg.cxx
sfx2/source/doc/docinsert.cxx
sfx2/source/doc/guisaveas.cxx
sfx2/source/inc/alienwarn.hxx
sfx2/source/sidebar/Deck.cxx
sfx2/source/sidebar/Deck.hxx
sfx2/source/sidebar/DeckTitleBar.cxx
sfx2/source/sidebar/DeckTitleBar.hxx
sfx2/source/sidebar/MenuButton.cxx
sfx2/source/sidebar/MenuButton.hxx
sfx2/source/sidebar/Panel.cxx
sfx2/source/sidebar/Panel.hxx
sfx2/source/sidebar/PanelTitleBar.hxx
sfx2/source/sidebar/SidebarDockingWindow.hxx
sfx2/source/sidebar/SidebarToolBox.cxx
sfx2/source/sidebar/TabBar.hxx
sfx2/source/sidebar/TabItem.cxx
sfx2/source/sidebar/TabItem.hxx
sfx2/source/sidebar/TitleBar.hxx
sfx2/source/toolbox/imgmgr.cxx
starmath/inc/edit.hxx
starmath/inc/smmod.hxx
starmath/qa/cppunit/test_starmath.cxx
starmath/source/edit.cxx
starmath/source/smmod.cxx
svtools/source/brwbox/brwbox1.cxx
svtools/source/brwbox/datwin.hxx
svtools/source/contnr/fileview.cxx
svtools/source/contnr/simptabl.cxx
svtools/source/control/filectrl.cxx
svtools/source/control/valueimp.hxx
svx/inc/GalleryControl.hxx
svx/source/dialog/dlgctrl.cxx
svx/source/dialog/swframeexample.cxx
svx/source/fmcomp/fmgridif.cxx
svx/source/gallery2/GalleryControl.cxx
svx/source/sidebar/EmptyPanel.hxx
svx/source/sidebar/area/AreaPropertyPanel.hxx
svx/source/sidebar/area/AreaTransparencyGradientControl.hxx
svx/source/sidebar/graphic/GraphicPropertyPanel.hxx
svx/source/sidebar/insert/InsertPropertyPanel.cxx
svx/source/sidebar/insert/InsertPropertyPanel.hxx
svx/source/sidebar/line/LinePropertyPanel.hxx
svx/source/sidebar/line/LineWidthControl.cxx
svx/source/sidebar/line/LineWidthControl.hxx
svx/source/sidebar/line/LineWidthValueSet.hxx
svx/source/sidebar/paragraph/ParaPropertyPanel.hxx
svx/source/sidebar/possize/SidebarDialControl.cxx
svx/source/sidebar/text/TextCharacterSpacingPopup.hxx
svx/source/sidebar/text/TextPropertyPanel.hxx
svx/source/sidebar/tools/PopupContainer.cxx
svx/source/sidebar/tools/PopupControl.cxx
svx/source/sidebar/tools/ValueSetWithTextControl.cxx
svx/source/svdraw/svdfmtf.hxx
svx/source/svdraw/svdibrow.cxx
svx/source/tbxctrls/colrctrl.cxx
svx/source/tbxctrls/tbcontrl.cxx
sw/source/ui/dbui/mmaddressblockpage.cxx
sw/source/ui/dialog/uiregionsw.cxx
sw/source/ui/index/cnttab.cxx
sw/source/uibase/inc/drpcps.hxx
sw/source/uibase/sidebar/PageColumnControl.hxx
sw/source/uibase/sidebar/PageMarginControl.hxx
sw/source/uibase/sidebar/PageOrientationControl.hxx
sw/source/uibase/sidebar/PagePropertyPanel.hxx
sw/source/uibase/sidebar/PageSizeControl.hxx
sw/source/uibase/uiview/view2.cxx
sw/source/uibase/utlui/navipi.cxx
vcl/inc/svdata.hxx
vcl/source/control/combobox.cxx
vcl/source/control/lstbox.cxx
vcl/source/window/dockwin.cxx
vcl/source/window/winproc.cxx
Change-Id: I056cf3026ff17d65cca0b6e6588bda4a88fa8d95
2015-04-28 15:08:48 +01:00
Miklos Vajna
6a8719b12e
lok::Document::postUnoCommand: allow passing arguments
...
Change-Id: I6c24a8e392473f3985d3bde9b76a3148fd03bc9a
2015-04-22 15:42:36 +02:00
Miklos Vajna
eaf4104582
comphelper::dispatchCommand: allow passing command arguments
...
Change-Id: I6464c5d1a46fadac2510700101f3c8cc29dd7995
2015-04-22 14:11:47 +02:00
Stephan Bergmann
6ff2d84ade
Various #include <sal/log.hxx> fixups
...
rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx>
(and don't make use of it themselves), but many other files happen to depend on
it. Cleaned up some, but something like
grep -FwL sal/log.hxx $(git grep -Elw \
'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx)
shows lots more files that potentially need fixing before the include can be
removed from rtl/string.hxx and rtl/ustring.hxx.
Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
2015-04-22 09:57:47 +02:00