summaryrefslogtreecommitdiff
path: root/desktop/source
AgeCommit message (Collapse)AuthorFilesLines
2015-02-23Extract LibreOfficeKitEnums.h from LibreOfficeKit.hMiklos Vajna2-6/+7
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-23Use SdrModel::isTiledRendering()Miklos Vajna1-1/+0
It turns out that in case the is-tiled-rendering flag is part of the sdr model, then that's enough for all the places where so far used a flag on the output device for this purpose, so change the two users of that method to use SdrModel::isTiledRendering(), and clean up the now unused one. Change-Id: Ife6d3d7e093c04b707497d9588942b38bcd8742d
2015-02-23Add OutputDevice::isTiledRendering()Miklos Vajna1-0/+1
This is similar to SwViewShell::isTiledRendering, but while SwViewShell describes a state of the application, this one describes a state of the output device. The output device may be created by LOK client code, while the view shell may not be accessible from lower layers of the stack, so we need both. Change-Id: I82f7755eb73603bd79283272fba4970dccae8784
2015-02-23lok::Office::postKeyEvent: allow different char and key codeMiklos Vajna2-5/+5
editeng is not happy with non-zero char code for css::awt::Key::ESCAPE. Change-Id: If26923df7defb8a47766e9109835a8569067e578
2015-02-17SkipImages option for PDF importMihai1-2/+15
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-16android: add support for text selection to JNITomaž Vajngerl1-0/+7
Change-Id: Ifa307eb6a8cb031bdd88b9fadae42c8a0811772b
2015-02-16LOK: add lok::Document::setTextSelection()Miklos Vajna1-0/+16
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: Return NULL when we failed to load the document.Jan Holesovsky1-1/+1
Change-Id: I7740549f35cdbe21556e1e066bbc6c0355463b79
2015-02-16add GetSelectEntryData to ListBox and ComboBoxNoel Grandin1-1/+1
to reduce code clutter like pLbSelect->GetEntryData(pLbSelect->GetSelectEntryPos()) since this is a fairly frequent operation. Change-Id: I41daf30fdeda2442ad1ac829e12f553233bae184 Reviewed-on: https://gerrit.libreoffice.org/14472 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-02-14Related: tdf#63690 - remove rtl_logfileThorsten Behrens1-1/+0
This was unused since the earlier cleanup. Change-Id: Ia56641c4242037a0ce501e43939b8dc862499f0e
2015-02-12Remove dead implementation specificationStephan Bergmann1-3/+0
...left over from 287bc0aab7a848b991266586737b53630332b987 "Kill the migration wizard for good." Change-Id: I3f4ba5147f3bf840c47078d20152988a0e40e45d
2015-02-11We can put a few more lines inside the #ifndef IOSTor Lillqvist1-1/+2
Change-Id: I607b2c06cad569a0e7495c3009a0883be1f22856
2015-02-09vcl/settings.hxx "drag full options API" uses sal_uLongStephan Bergmann1-2/+2
...for better or worse Change-Id: I8069da4a544cb6a69cbcd7243469bc6ea7b112a4
2015-02-09lok::Document::postMouseEvent(): allow double-clickMiklos Vajna2-5/+6
Change-Id: Idaddd28d906e7508d4d2c5aab916b06fbe021beb
2015-02-07loplugin:deletedspecialStephan Bergmann10-25/+20
Change-Id: I1553902c1f7c30f2c64d2210dc301c5ae50c6c4b
2015-02-07Fixup --without-x buildRiccardo Magliocchetti1-1/+1
Accept gl linkage in hope of future offscreen mesa support. Avoid linking with GLX though. Change-Id: I4e666f60e74fe34075a8da9eeba95807cf8fe38c Signed-off-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/13452 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-02-06shared_ptr<T>(new T(args)) -> make_shared<T>(args)Caolán McNamara3-6/+6
and boost:make_shared->std::make_shared Change-Id: Ic1e187c52c856a7b27817967b2caa8920f23a98d
2015-02-04Use LibreOfficeKit in the TiledLibreOffice iOS demo app, tooTor Lillqvist3-19/+33
For iOS, the pBuffer argument to LibreOfficeKitDocument::paintTile() is not a pixel buffer, but a CGContextRef. Thus we can keep the existing CGContext-oriented vcl code for iOS as is. I commented out the <touch/touch.h> -using code in sw, and it probably would be OK to just kill <touch/touch.h> and remove use and implementations of its API. I don't think they are used by our current Android or iOS code. This concludes the commits of the work I did at the post-FOSDEM hackfest and on the flight home. TiledLibreOffice now works as before, but uses LibreOfficeKit. Change-Id: Ibbde6e11d660561840eab6335f7fc0db6758173e
2015-02-04For iOS we already hardocde the inifile as rc in the .app directoryTor Lillqvist1-0/+5
Change-Id: I5971aa4db91adc89f8aeeb7384a1893dab329411
2015-02-03Clean up some weird loggingTor Lillqvist3-9/+2
Change-Id: I8da0a89b7d6e044af8188a87220c654cb7bf9d4d
2015-02-03Make the handling of the pAppPath==NULL case actually workTor Lillqvist1-1/+4
Change-Id: I8b185ad37e1db3262c2533c0146e4fe7fb3ef3ea
2015-02-03We (try to) handle the pAppPath==NULL case below anywayTor Lillqvist1-3/+0
Change-Id: I37b616b3b509c82551d9690c0313e09063a758bc
2015-02-03libreofficekit_hook must be exported on iOS for dlsym() to find itTor Lillqvist1-1/+14
Change-Id: I824e977e99e8889e5cb69403feb0f1d5e1d0cc31
2015-01-28remove unused typedefsNoel Grandin1-1/+0
found with some minor modifications to find/find-unused-defines.sh Change-Id: I18cc479adedc7a0dada68a4aeef08300e62631dd Reviewed-on: https://gerrit.libreoffice.org/14194 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-26android: add postMouseEvent to LOKit JNI interfaceTomaž Vajngerl1-0/+7
Change-Id: I652a0c365c4a1413226cdd4dc7910e65ac2a5285
2015-01-26LOK: move postMouseEvent to DocumentMiklos Vajna1-24/+18
Change-Id: I5d2d2d05fc0f55d98a1e7a1591b4d66fd93ad353
2015-01-26android: release local ref to string after callback exec. in JNITomaž Vajngerl1-1/+5
Change-Id: I2a92a2beff214894ba63b3881a686337639a0b07
2015-01-26Add initial lok::Office::postMouseEvent()Miklos Vajna1-0/+24
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-26new loplugin: change virtual methods to non-virtualNoel Grandin2-3/+3
Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
2015-01-22Re-indent to make precedence clearStephan Bergmann1-4/+5
Change-Id: Ibbc35d1a9264817f3fa8e3229ec1de5f51800e97
2015-01-22areBothOpenFrom can be a free functionStephan Bergmann1-6/+8
Change-Id: I20697955457b1dadc334cb0f29c600687ae2d181
2015-01-22fdo#88158 Display two "Open..." entries in the file-menuJuergen Funk1-4/+12
Migration from Version 3 to 4 make this fail Entry .uno:Open and .uno:OpenFromWriter are the same, skip the entry .uno:OpenFrom Change the operator, and a lot of comments change the match in startWith for better reading change test when old-cmd ".uno:Open" change to the stephan solution Change-Id: I0861c1e7d30b861acc753e3258707f3b6a338768 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2015-01-20Remove unused codeJuergen Funk2-35/+1
- a inline function not use - a variable will be set but not use Change-Id: I67674a6cd05ddb058d11d46188d5c9d039ed40fb Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2015-01-20Drop unused comphelper::service_decl::component_getFactoryHelper paramsStephan Bergmann2-9/+3
Change-Id: Ia47c0bc3539ddf8f925cd053a2431c742c46d337
2015-01-20Some more loplugin:cstylecast: desktopStephan Bergmann4-8/+9
Change-Id: I1aeba8e1a8452d0329244d85c7c8cbd55353582f
2015-01-19operator ?: has lower precedence than <<; << will be evaluated firstTor Lillqvist1-2/+1
Change-Id: I84037cf90c8de534c215200fe19793126ae07b11
2015-01-19executeDispatchRequests : cleaning outputsLaurent Godard1-15/+22
- replace RTL_TEXTENCODING_UTF8 with osl_getThreadTextEncoding() - replace printf statements with std::cerr and std::cout Change-Id: Id374efac90f86bbfdc817f2266a5c995d72902e4
2015-01-19convert-to : display error messages in console fdo#88326Laurent Godard1-3/+3
- source file does not exist - requested export filter does not exist and we use default filter (still process though) Change-Id: I92031ea305e81927357acfc352dbe5a5da205b0d
2015-01-16jni: if documentLoad returns NULL don't call NewDirectByteBufferTomaž Vajngerl1-0/+4
Change-Id: I847a7b90c0f85bb59869ecaca037145221e16e7f
2015-01-16LOK: add LibreOfficeKitKeyEventType enumerationMiklos Vajna1-2/+7
Change-Id: I3d422670323cd982251569c4226dc46803d4f6a1
2015-01-12jni: add postKeyEvent to Office and redirect the call to LOKTomaž Vajngerl1-3/+13
Change-Id: I922ce1f735df236d2bdad33820ed98f18fc85963
2015-01-12Add lok::Office::postKeyEvent()Miklos Vajna1-0/+18
Change-Id: Ib80a8dd433b22a5e88aaab8e11d5c42ced8097ae
2015-01-12android: Add support for callbacks from LO to JNI and Java LOKTomaž Vajngerl1-0/+69
This adds support to retrieve callbacks from LibreOffice (like for example that a part of document has been invalidated) to LibreOfficeKit JNI and Java wrappers. Change-Id: Ib70187194d002c72b64d58032aab216adc591565
2015-01-09fdo#84938: replace SYSTEMWINDOW_MODE constants with 'enum class'Noel Grandin1-3/+3
Change-Id: I1c761482cb78efc26d3beda75381557268e1bc0d
2015-01-08brute-force find-and-remove of unused #define constants.Noel Grandin1-1/+0
Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
2015-01-07fdo#84938: convert VCL_INPUT_ #defines to 'enum class'Noel Grandin1-2/+2
Change-Id: I155e45f58974a2b946c4a7703b350bcbfbad342e
2015-01-07fix spelling: garded -> guardedNoel Grandin1-6/+6
Change-Id: I3e9f8781957a8b96afeb609501dff1f8bc9d718e
2015-01-07fdo#39440 reduce scope of local variablesŁukasz Hryniuk2-3/+2
Beside scope changes, it fixes lack of initialization in a few places. Change-Id: Ia09fdb9845d8ac17256330a5ec5168401c84f0f2 Reviewed-on: https://gerrit.libreoffice.org/13755 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-06lok::Document: add registerCallback()Miklos Vajna1-0/+18
So that LOK clients can invoke the new vcl::ITiledRenderable::registerCallback(). Change-Id: I6d9974acbd7fb5eea217c88f963e6ebb10343078
2015-01-07android: Add initializeForRendering to LOKTomaž Vajngerl2-0/+19
Change-Id: Ibf4721bf4358ef215efde09ef688b2551604bfa2