summaryrefslogtreecommitdiff
path: root/desktop
AgeCommit message (Collapse)Author
2015-01-19executeDispatchRequests : cleaning outputsLaurent Godard
- 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 Godard
- 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ž Vajngerl
Change-Id: I847a7b90c0f85bb59869ecaca037145221e16e7f
2015-01-16LOK: add LibreOfficeKitKeyEventType enumerationMiklos Vajna
Change-Id: I3d422670323cd982251569c4226dc46803d4f6a1
2015-01-13svx, canvas, desktop: gb_OBJCXXFLAGS are not needed at allDouglas Mencken
Change-Id: Iea164e00262822d571f2c49665165795706a57a4 Reviewed-on: https://gerrit.libreoffice.org/13645 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-01-12jni: add postKeyEvent to Office and redirect the call to LOKTomaž Vajngerl
Change-Id: I922ce1f735df236d2bdad33820ed98f18fc85963
2015-01-12Add lok::Office::postKeyEvent()Miklos Vajna
Change-Id: Ib80a8dd433b22a5e88aaab8e11d5c42ced8097ae
2015-01-12android: Add support for callbacks from LO to JNI and Java LOKTomaž Vajngerl
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 Grandin
Change-Id: I1c761482cb78efc26d3beda75381557268e1bc0d
2015-01-08brute-force find-and-remove of unused #define constants.Noel Grandin
Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
2015-01-07drop crashrep unused since start of LibreOfficeCaolán McNamara
Change-Id: I3df1216054c133314b2317849744a0a37e9fbc8f Reviewed-on: https://gerrit.libreoffice.org/13733 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-07fdo#84938: convert VCL_INPUT_ #defines to 'enum class'Noel Grandin
Change-Id: I155e45f58974a2b946c4a7703b350bcbfbad342e
2015-01-07fix spelling: garded -> guardedNoel Grandin
Change-Id: I3e9f8781957a8b96afeb609501dff1f8bc9d718e
2015-01-07fdo#39440 reduce scope of local variablesŁukasz Hryniuk
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 Vajna
So that LOK clients can invoke the new vcl::ITiledRenderable::registerCallback(). Change-Id: I6d9974acbd7fb5eea217c88f963e6ebb10343078
2015-01-07android: Add initializeForRendering to LOKTomaž Vajngerl
Change-Id: Ibf4721bf4358ef215efde09ef688b2551604bfa2
2015-01-06fdo#84938: convert CTRL_STATE_ #defines to 'enum class'Noel Grandin
Change-Id: I1451180d258315a310a048b27510b4b58fa9145c
2015-01-05desktop: fix copypasta in officeloader.cxxMichael Stahl
Change-Id: I66736e0b1e72e27c02ea718c3f07547b83fd949f
2015-01-05Some loplugin:revisibility clean-upStephan Bergmann
Stumbled across such redundant visibility re-specifications when looking at the odd case of cppu_unsatisfied_iquery_msg declared CPPU_DLLPUBLIC in cppu/source/cppu/cppu_opt.cxx and used in inline code in include/com/sun/star/uno/Reference.hxx with only a declaration lacking CPPU_DLLPUBLIC visible, and wondering how that actually works on Windows. However, this plugin is probably not worth it being run all the time, so committing it to compilerplugins/clang/store/. Change-Id: Ibc3c4e7499213de1b419ce7eb85455cb832e1510
2015-01-05fdo#67343 Arrange Help button in a secondary groupAdolfo Jayme Barrientos
This helps de-clutter action button groups and eases visual scanning. This patch also contains little layout tweaks where needed to separate the Help button from its neighbors when the dialog is too small. Change-Id: I56aafdaf2a5351bd7bcb4db693e520fd5c5166ce Reviewed-on: https://gerrit.libreoffice.org/13427 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2015-01-02Remove unnecessary comphelper::string::getTokenStephan Bergmann
Change-Id: I49192637121441b9a1980350b9bb32cd995d4386
2015-01-02Fix --help outputStephan Bergmann
...cf. fe5527f1c6dc259af464a0593e86a2da2983b7ed "desktop, sysui: let --convert-to imply --headless" Change-Id: If4b22e17904acb5c5584c011c7ac00163aba5fed
2015-01-01desktop: adapt pArgDescr to CommandLineArgs::ParseCommandLine_Impl()Miklos Vajna
Commit fe5527f1c6dc259af464a0593e86a2da2983b7ed (desktop, sysui: let --convert-to imply --headless, 2014-12-22) changed CommandLineArgs::ParseCommandLine_Impl(), so that --convert-to implies --headless. However, that worked only when ./soffice.bin was launched; when the ./soffice wrapper started oosplash, then a logo was still shown, as oosplash has its own list of switches that disable the splash screen. Fix the inconsistency by adding "convert-to" to oosplash's list as well. Change-Id: I47e30db3b658f179f10e8a447b5d7cea083fcc60
2014-12-22desktop, sysui: let --convert-to imply --headlessMiklos Vajna
It's easy to forget --headless before --convert-to, and it's hard to image that would be intentional ever. Change-Id: I18b85837239d9450743f05d94bb2673c7d13246d
2014-12-22Drop unused member variablesTakeshi Abe
They were gone with 4ce2602befd59e69264d8e4ced8730b40c2b947c / b6ff19fba3a1a6d65134539a71d7a8df0e35d4ff. Change-Id: Ida5790f77d619fdc91dfce11b186ed5e15587ddf
2014-12-19desktop: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I8a7d6609466f450e0bb998457d8bf16525152091
2014-12-18Introduce gb_*_set_external_codeStephan Bergmann
...to harmonize the mechanisms to not define LIBO_INTERNAL_ONLY for extension code and CppunitTest_odk_checkapi. (It also needs to revert any -Wundef, as the config_host/config_*.h files will not be included, so the HAVE_* macros will be undefined.) This obsoletes the need for RTL_DISABLE_FAST_STRING. Change-Id: If5eacba80c349efb90762aade8f2ea6d2db7e314
2014-12-18desktop: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: Ie35b3ab2695d9bbfc221b63b6913e21386344a33
2014-12-16LOK: let doc_getDocumentType() use supportsService()Miklos Vajna
css::frame::XModel::getArgs() may or may not return a Sequence that contains a DocumentService key, while css::lang::XServiceInfo::supportsService() can always determine the document type. This fixes the problem that doc_getDocumentType() returned LOK_DOCTYPE_OTHER for Writer documents on Android. Change-Id: I380d59a963553fb30a3eb20fbe84dcfc6a1bbd61
2014-12-12desktop: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I5791c212a103fe9c2a5376545944a70454b28bdd
2014-12-12java: fix non-public UNO implementation classesNoel Grandin
which I messed up in commit 70f56bc22fe952c "java: reduce scope, make member classes private" Change-Id: I817b2a571e2124f551ccd5c0d8e1099d89f0ec46
2014-12-12osl_getCommandArg always returns osl_Process_E_NoneStephan Bergmann
Change-Id: I0ff1e44f17976fd3a3060d8ee7fe15d77c918b79
2014-12-12fdo#39440 reduce scope of local variablesMichael Weghorn
This addresses some cppcheck warnings. Change-Id: Ifbc5a7a562e714f48dcfd51a75e9a4e0bfcde81c Reviewed-on: https://gerrit.libreoffice.org/13443 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-11Related: fdo#87242 init VirtualDevice with size of surfaceCaolán McNamara
otherwise vcl's clipping doesn't work quite right when the render text with vcl apis fallback is used. Manually forced in my case, but it should happen in practice with vertical text, so if there is a bug about vertical text not appearing in slideshows then this is part of the fix for that. Windows and Mac remain unchanged as initialized with 1, 1. If the same problem affects those platforms then they'll need to be adjusted to remember their height/widths from the ctor and those values plugged in here instead Change-Id: I2f82f0db0cf446d7db21f0a7ee4f8c15c7ebdb42
2014-12-11desktop: avoid loading to-be-recovered documents when recovery is disabledMiklos Vajna
Change-Id: I5c8a117df53e0c7efd1e82ec6e56080c8fd42345 Reviewed-on: https://gerrit.libreoffice.org/13438 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-12-11coverity#703948 Unchecked return valueCaolán McNamara
Change-Id: Id72cb51ae61d663ab58585ba4b83086080462bab
2014-12-11java: reduce visibility of fields and methodsNoel Grandin
found by PMD Change-Id: Id6737916b68ccbdbdeec5d314747a38410923ac6 Reviewed-on: https://gerrit.libreoffice.org/13409 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-10Make IsHeadlessModeRequested hack work for LOKStephan Bergmann
Change-Id: I30bf474fc44b122c8b7218e187c822a8784783fd
2014-12-10Headless implies invisibleStephan Bergmann
Change-Id: I97c1becd4a3f31ebb5d984d5efbfef7b9339f6bf
2014-12-10java: improve use of WrappedTargetException to set cause properlyNoel Grandin
since we introduced the new constructors that pass the cause all the way up to java.lang.Throwable. Also simplify some exeception printing sites, because Throwable will correctly print out child exceptions for us. Change-Id: Ibbecce3c6f971fbc80d6de2052ab4f33a4503c0a
2014-12-10Fake --headless more cleanlyStephan Bergmann
Change-Id: I3c119182c093b625b57ebc1c23986cab7faf09b0
2014-12-10LOK: if loadComponentFromURL() returns an empty reference, say itMiklos Vajna
Change-Id: I47adee37ce1c4235f8c44650289c09a073da45b4
2014-12-09changed some timer to idleJennifer Liebel
Change-Id: If137dbd80f7260d9507e48709d3f0f14b60a25f6
2014-12-08coverity#1257113 Uninitialized scalar fieldCaolán McNamara
Change-Id: Ie813165995df47d466eaef09720901a33362fd23
2014-12-05desktop: avoid starting with new writer doc if OOO_DISABLE_RECOVERY setMichael Stahl
Better to show the start center, same as when --norestore is given. Change-Id: I726a8b7d227b646180fe16ee9c302a329a7fa36c
2014-12-04desktop: do not link sofficeapp against sw libraryMichael Stahl
Change-Id: I747d3e9d86f1a50b8e951c0feb351072d432cda0
2014-12-04android: use ByteBuffer to send or store pointers in JNI bindingsTomaž Vajngerl
Using direct ByteBuffer is much nicer option to store or send pointers between C(++) code and Java via JNI as it handles endiness and pointer size for us. Using "long" type can have unexpected results in 32-bit architectures (mostly Android). This was causing grief especially when Android introduced support for 64-bit architectures starting with SDK 19. Change-Id: Ie92d0f913b668e1724e846d70d1820445d9cb086
2014-12-04lok: improve error reporting in lok implementationTomaž Vajngerl
Change-Id: Ifc7b18e173b0c91c24a53fad9c35ac3a34a4b33e
2014-12-04android: add destroy and exit as a separate JNI callTomaž Vajngerl
Change-Id: Ia8516da556b3736f34b366e2eb89ad8bbd7bafc1