summaryrefslogtreecommitdiffstats
path: root/sal
Commit message (Collapse)AuthorAgeFilesLines
* Remove include guardsThomas Arnhold2012-06-298-125/+20
| | | | Change-Id: Ib4ba76d0083e5bd75cc589a55318089c004f591f
* Remove some unused defines and controlsThomas Arnhold2012-06-294-8/+0
| | | | Change-Id: I96f76ed6b33f5c786d1e3ab3981a535037a9c1b5
* rename unittest from ZeroMemory causing issues on windows.Michael Meeks2012-06-291-4/+4
|
* Remove some more include guardsThomas Arnhold2012-06-292-27/+1
| | | | Change-Id: I7c62d086cb593744785abecae7a107686a4d65ce
* remove malingering legacy RCS tags.Michael Meeks2012-06-284-4/+4
|
* targetted re-work of cppunit pieces.Michael Meeks2012-06-2761-592/+389
|
* re-base on ALv2 code.Michael Meeks2012-06-261-23/+14
|
* Remove unused definesThomas Arnhold2012-06-251-3/+0
| | | | | | Second is already commented out, first is unused, too. Change-Id: I1429cab3186189a96d0a07fa7097d87d372b372a
* Remove various commented out definesThomas Arnhold2012-06-251-43/+0
| | | | | | Most of them in hrc files. Change-Id: I3944f6ed9befd2b498385f61b851790362221a4f
* re-base on ALv2 code.Michael Meeks2012-06-2211-237/+164
| | | | Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
* re-base on ALv2 code.Michael Meeks2012-06-2144-893/+686
| | | | Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
* re-base on ALv2 code.Michael Meeks2012-06-2115-221/+208
| | | | Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
* Clarify SIGHUP behaviorStephan Bergmann2012-06-201-2/+1
| | | | | | | | | | | | | | | | | | | The combination of marking it as ACT_IGNORE and osl_Signal_Terminate was strange, as osl_Signal_Terminate caused SalMainPipeExchangeSignal_impl (desktop/source/app/officeipcthread.cxx) to call DisableOfficeIPCThread, but ACT_IGNORE (instead of ACT_EXIT, like other signals marked osl_Signal_Terminate) caused the process to continue running. The net effect was that calling an additional soffice instance after a SIGHUP would no longer connect to the first instance, but instead would lead to two soffice instances running simultaneously on the same UserInstallation. Marking SIGHUP as ACT_HIDE most closely resembles the old behavior (of having ~no effect). Other options would be to mark it as ACT_IGNORE and osl_Signal_System or as ACT_EXIT and osl_Signal_Terminate, which would both result in instant termination. I do not know if that wouldn't actually be better. Change-Id: Id1ee7c1108765301e6010e0e05d6c1ff5894a414
* ByteBufferWrapper tweaksTor Lillqvist2012-06-181-17/+6
| | | | | | | | | | | operator() gets called in a Java GC thread. A JNIEnv* saved in the constructor (which is called from the UI thread) is not valid in other threads (although for now, Dalvik notices, warns, and works around it). So don't bother keeping the JNIEnv*. Instead fetch one when needed. Move the method implementations from inline in the header to libotouch's android.cxx. Change-Id: I7de6fc54bb8d9a59146576d6e8c325fe917393ee
* fdo#50603: Close fds across a restart of soffice on Mac OS XStephan Bergmann2012-06-181-0/+32
| | | | | | | | ...where the restart is directly from the old soffice instance, via exec, so the restarted soffice would inherit all open fds from the old one. The easiest approach appears to close fds upon startup. Change-Id: I89bb1c78f3adf2da1cd3cbd58c22df276133a883
* rtl: (i119939) memory leakNorbert Thiebaud2012-06-171-0/+1
| | | | Change-Id: I1ab34337785967d6cbac9ab47c5a2bb517001840
* Revert MSVC ABI incompatible URE change (public -> protected)Stephan Bergmann2012-06-141-0/+2
| | | | | | | | | | ...the mangled names of the corresponding symbols change with MSVC if you change a member from public to protected. This had been changed with 6e67c03dc0225fc66343546b14e902b9d238b1a3 "Enable -Wnon-virtual-dtor for GCC 4.6" but should only be necessary for GCC, not for MSVC, so can simply be reverted under _MSC_VER. Change-Id: Id22aadaff3d7f30ed824f39fe22eab7ca39bd408
* trying to fix mingw buildFridrich Štrba2012-06-131-0/+7
| | | | Change-Id: I86c06fc3f7dcd0a24898a602a60c10abdc588b81
* Bring back the Duden hackFridrich Štrba2012-06-133-0/+61
| | | | Change-Id: I062179fca29034602ffc18ad7e2b7de2988dac2f
* Use XToolkit2::createScreenCompatibleDeviceUsingBufferTor Lillqvist2012-06-121-6/+34
| | | | | | Render directly to a direct ByteBuffer allocated on the Java side. Change-Id: I2d66e4146df77e92260918a78ef22cd9b8c95384
* Add Android-specific sal/ByteBufferWrapper.hxx headerTor Lillqvist2012-06-122-0/+52
| | | | | | | | | Used for impedance matching between Java's direct ByteBuffer and the boost::shared_array used by basebmp. Not sure yet how well this will actually work. I'm afraid leaks might be possible in exception throwing cases. Change-Id: I74fc57aaf46b2dd9f227043bd9045d4815a5ed40
* rename Class Name, Window Name and Message of the QuickStarter to avoid ↵Jesús Corrius2012-06-121-3/+3
| | | | conflicts with other StarOffice derivatives
* Remove superfluous empty lines on topThomas Arnhold2012-06-098-16/+0
| | | | | | More than two lines are removed for readability. Change-Id: Ibff6cf68d7c512e240a54065b54a225bb23a782b
* targetted reversion of minor cppcheck fixMichael Meeks2012-06-081-22/+2
| | | | Change-Id: If67666bccbde6d2104295c5480c3eceb95b6ce35
* SwLineLayout: OSL_ENSURE -> SAL_WARN_IFMiklos Vajna2012-06-081-0/+2
| | | | Change-Id: I948344caeb9d48906732683ff9ba424f525c05d8
* nuke dead codeTakeshi Abe2012-06-071-9/+0
| | | | Change-Id: Id9920ea7b82ea178e904f78bbd41ffc434813e0b
* The correct comment for the assembly file is "#", not "*".Lionel Dricot2012-06-071-26/+26
| | | | This assembly file is only compiled on x86 Solaris.
* std::isfinite seems to not be available under Solaris. Bypassing it.Lionel Dricot2012-06-061-1/+2
| | | | Change-Id: I8f6f844338cb188a63676f2db5dec89fccfdca4c
* Use 32bpp bitmaps on Android (and iOS)Tor Lillqvist2012-06-051-0/+23
| | | | | | | | | | | | | | Modify DocumentLoader correspondingly. Take Android bug 32588 into account. Ideal would be to extend the XDevice stuff, or something, so that one could hand it a pre-allocated RGBA buffer into which the drawing/rendering would go. Then one could get rid of the silly convert-to-BMP phase, which prefixes the bitmap data with BMP and DIB headers (and thus, I guess, has to copy and allocate another copy). Will see. Change-Id: I4597cd933db8faa8105dc8f19638d712d5d2238a
* targeted string re-workNorbert Thiebaud2012-06-0224-409/+409
| | | | Change-Id: I145731d9f28faf0065f5960f2c5a32f27d8c8620
* targeted string re-workNorbert Thiebaud2012-06-011-3/+3
| | | | Change-Id: I2c166c63e9d2ab7d60bb404f643045678ef239a2
* targeted string re-workNorbert Thiebaud2012-06-013-46/+46
| | | | Change-Id: I368b9538e3c2e6242fcdcabb4f8c716e17b02d88
* targetted cppcheck variable scope revertMichael Meeks2012-06-011-2/+2
| | | | Change-Id: I757615e134eddc1f212533e3e950827e7180c278
* targeted string re-workNorbert Thiebaud2012-06-015-115/+109
| | | | Change-Id: I6b23bd671c3c090a7c3b60d5301c59da5f9354d5
* Add a BGR to RGBA twiddling JNI functionTor Lillqvist2012-05-311-0/+44
| | | | Change-Id: Iafa2c1805eea2f521479dc97d5668d82b1c91bef
* Some cppcheck cleaningJulien Nabet2012-05-302-4/+0
| | | | | | | More information on this thread: http://nabble.documentfoundation.org/Advice-needed-about-some-cppcheck-reports-td3986408.html Change-Id: Ib70532ad72e8418e1036bd52c07dc6452508cd12
* Add temporary test JNI method createWindowFoo()...Tor Lillqvist2012-05-301-0/+19
| | | | Change-Id: I8f99399faa3b0762bdea2aac09f1b849639cd191
* Some cppcheck cleaningJulien Nabet2012-05-291-1/+1
| | | | | | see http://nabble.documentfoundation.org/Advice-needed-about-some-cppcheck-reports-td3986408.html Change-Id: I4b3b2c87031ab48641e78fce56bd7f86c606b48b
* fdo#50162 merge rtlbootstrap.mk into configure.inDavid Ostrovsky2012-05-245-141/+5
| | | | Change-Id: I241be2704a069ec1f6be5861084039569673cc12
* removed unused temporary rtl::OUStringTakeshi Abe2012-05-231-5/+0
| | | | Change-Id: I9d118a5fbe2306465d8bcdb9ddd0596588137e5e
* android: use existing SAL_DLLPUBLIC macros instead of attributesMichael Meeks2012-05-221-3/+3
|
* fdo#42865: privatized unique empty string symbol:Michael Stahl2012-05-182-0/+2
| | | | | | Unfortunately this --enable-dbg-util only problem (caused by _GLIBCXX_DEUBG) resurfaced, perhaps because of new std::string based logging in sal; adapt all map files to export the unique symbol.
* drop debug_oustring now that gdb pretty-printers existCaolán McNamara2012-05-171-40/+0
| | | | Change-Id: Ie7d17f0ceb2e549b84c0cc16768604511e0e51a5
* Create the redirection thread in detached stateTor Lillqvist2012-05-161-1/+4
| | | | Change-Id: I293fa84452f00a41f4a33d4a45eee6d1a32ff761
* Add stdout and stderr redirection to the Android logTor Lillqvist2012-05-161-0/+208
| | | | | | | | | | | | | On a (non-rooted) device it is not possible to set the log.redirect-stdio property so that it would be effective (i.e. read by the Zygote process when it starts). Such redirection has to be done in-process. Add a (JNI-callable) method to set it up: Point file descriptors 1 and 2 at pipes that are read by a thread that logs each line through the Android logging API. Code based on Android's own logwrapper.c. Change-Id: Id5308293595096a44a2ffed2dbc0c252be109de7
* Generate a proper (?) rtlbootstrap.mk for a MSC build, tooTor Lillqvist2012-05-141-2/+6
| | | | Change-Id: I35a1a270f5eab2250ed0ef50c6bf6c9dbec4f42e
* normalize variable names in gbuild user makefilesMichael Stahl2012-05-102-17/+19
| | | | Variables should have module name as prefix to prevent collisions.
* EasyHack fdo#42783: get rid of CPU define/build system variableThomas Collerton2012-05-091-2/+2
| | | | Change-Id: I6a178f7ff9c8306e15bcfa847ad1e5e4f8476504
* gbuild: remove gb_Helper_abbreviate_dirs_nativeMatúš Kukan2012-05-091-1/+1
| | | | Change-Id: I0a3ad6553692fc21eaf96cf35e9c343b4d716c21
* sal: work around spurious signed overflow warningsMichael Stahl2012-05-081-2/+3
| | | | | | gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC): /rtl/string.hxx:1037:67: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]