Commit graph

867 commits

Author SHA1 Message Date
David Tardon
064990eb88 add sc.ui log area 2012-02-03 10:01:35 +01:00
David Tardon
767098b0ca add vcl.gdi log area 2012-02-01 06:07:20 +01:00
David Tardon
bfd9753b92 add vcl log area 2012-01-31 07:18:49 +01:00
Miklos Vajna
f7aac5d4a5 sal: add sw.rtf log area 2012-01-30 14:21:10 +01:00
Luboš Luňák
74ded8e619 add log areas 2012-01-30 14:10:49 +01:00
Luboš Luňák
e1cbc6fee6 add a file to list of known SAL_INFO areas 2012-01-27 17:48:35 +01:00
Alexander Bergmann
0439af27e1 Code cleanup: ( () ) replaced by (()) 2012-01-26 17:41:07 +00:00
Tor Lillqvist
f9c0e55235 Bin global_android_app and instead use lo-bootstrap API
Instead of introducing a global variable, use the already existing
saved android_app pointer in lo-bootstrap.c, and just add a function
to rettrieve that.

Reanme osl/detail/android.h back to android_native_app_glue.h, which
is the file from NDK/sources that it is. "android.h" sounded to me too
grand, as if it was some universal Android header. But if we do start
to modify the android_native_app_glue stuff heavily, then it indeed
makes sense to call it something else. Until then, revert also some
whitespace changes to android_native_app_glue.c for it to be as close
as possible to the "upstream" one in the NDK, for clarity.
2012-01-25 19:05:31 +02:00
Michael Meeks
c2112c7ce1 android: rename native_app_glue.h and install as osl/detail/android.h 2012-01-24 22:37:08 +00:00
Tor Lillqvist
52681e4405 Use own own <osl/file.h> API to read the source in osl_copyFile()
It seems that we call osl_copyFile() to copy from /assets on Android
in some cases.
2012-01-24 21:35:03 +02:00
Olivier Hallot
5581125423 Fix for fdo43460 Part XLIV getLength() to isEmpty()
Part XLIV
many modules(inc's)
2012-01-23 19:17:18 -02:00
Michael Meeks
96c2f2bc80 android: remove nonsensical write to file buffer during readLine
also expose in-memory file method for unit testing.
2012-01-21 17:09:32 +00:00
Stephan Bergmann
7c704c78d3 Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC)
is used to annotate legitimately unused parameters, so that static
analysis tools can tell legitimately unused parameters from truly
unnecessary ones.  To that end, some patches for external modules
are also added, that are only applied when compiling with GCC and
add necessary __attribute__ ((unused)) in headers.
2012-01-21 15:21:16 +01:00
Norbert Thiebaud
53358305d8 kill some doxygen warnings 2012-01-20 17:16:56 -06:00
Norbert Thiebaud
6ac30d8be9 clean-up Doxygen warnings 2012-01-19 20:19:21 -06:00
Michael Meeks
c5d4f4967e implement inode compare for identical directory item checking 2012-01-19 17:04:03 +00:00
Michael Meeks
13a752cdbb sal: expose a public API for comparing directory items
Windows impl. still pending.
2012-01-19 14:01:33 +00:00
Michael Meeks
4a086fca7b fix SvStream to not require a custom open or lstat method. 2012-01-19 12:25:02 +00:00
Michael Meeks
0c17acbb32 fix SvStream to not disagree with sal on sizeof struct stat
A temporary tweak to restore build-ability; the oslDirectory
change needs a little more thought & public exposure, but rsc
no longer crashes during compile ...
2012-01-19 11:07:20 +00:00
Tor Lillqvist
a64db11b6c Add some non-public API to be used by SvFileStream
Having SvFileStream call the file opening etc functions here, instead
of calling open() directly itself, means we won't have to duplicate
the Android .apk hooks there, too.
2012-01-18 23:15:42 +02:00
Norbert Thiebaud
1b8b6ecf5f suppress doxygen warning in osl 2012-01-13 02:30:34 -06:00
Stephan Bergmann
ddc3458259 Make it clear that sal/log.hxx functionality may change again. 2012-01-12 10:57:41 +01:00
Stephan Bergmann
58ab12acf5 Switch from autodoc to doxygen for SDK C++ documentation.
* New build prerequisite doxygen (controllable via --with-doxygen).
* Adapted various headers to slightly different doxygen documentation
  syntax, but much clean up still remains to be done (i.e., warnings
  emitted by doxygen fixed).
2012-01-05 19:43:14 +01:00
Tor Lillqvist
e3ab0fd901 osl_unmapFile can't work for files bundled inside the .apk on Android
On Android, when an app is installed, arbitrary files bundled in the
app won't be unpacked into actual separate files in the file
system. They will exist only as archive entries in the .apk file
(which is a zip archive).

The SDK tooling puts such files under the /assets folder in the
.apk. The LibreOffice bootstrapping code for Android maps the .apk
file into memory.

osl_openFile() knows about the /assets special case, and uses a
separate abstraction for such memory-mapped files.

Obviously, when producing an .apk, one needs to make sure these
bundled files are not compressed, if one wants to be able to use them
directly from the memory-mapped .apk file. We do that in our test and
sample Android projects.

When mapping such files under /assets , just return a pointer to the
file's location inside the mapped .apk archive.

We can't use the old osl_unmapFile() on such mapped files, as that
would unexpectedly unmap fairly arbitrary pages of the .apk mapping,
wreaking havoc on later use of the same pages.

So, introduce a new osl_unmapMappedFile() function that takes also the
oslFileHandle originally passed to osl_mapFile(). Use this instead in
the few places where the code actually called osl_unmapFile(). Make
sure osl_mapFile() is nonexistent on Android.
2011-12-21 14:08:48 +02:00
Tor Lillqvist
73b54eb92e Need visibility markup for lo_main() too 2011-12-21 00:46:00 +02:00
Matúš Kukan
cf77e8a0b9 sal: add visibility symbols 2011-12-19 10:14:53 +01:00
Matúš Kukan
a9e130ab82 sal: convert to gbuild 2011-12-19 10:14:53 +01:00
Stephan Bergmann
0670d4652d rtl::OUStringBuffer::insert overloaded for char (similar to ::append). 2011-12-09 12:32:59 +01:00
Caolán McNamara
c8ef924060 normalize Red Hat, Inc. spellings, and bump to latest template 2011-12-06 21:24:37 +00:00
Stephan Bergmann
0b14a86f8a Mark rtl::O[U]StringBuffer::{charAt,setCharAt} as SAL_DEPRECATED. 2011-12-02 11:08:16 +01:00
Stephan Bergmann
05fddab006 Revert "Remove charAt/setCharAt once and for all"
For backwards compatibility, they should not be removed before LO 4.
They should be marked as SAL_DEPRECATED, however.
This reverts commit 1820e7f575.
2011-12-02 11:08:15 +01:00
August Sodora
1820e7f575 Remove charAt/setCharAt once and for all 2011-12-01 18:58:46 -05:00
August Sodora
56aec836a0 Add back setCharAt/charAt for now 2011-12-01 17:54:08 -05:00
August Sodora
9ee19c8fad fdo#41474: remove setCharAt and charAt from O[U]StringBuffer 2011-12-01 16:23:08 -05:00
Stephan Bergmann
cbcf00ad04 Removed unused sal/inc/internal/once.h. 2011-11-30 09:10:17 +01:00
Norbert Thiebaud
c0bed9c72e remove precompiled_xxx.hxx/cxx 2011-11-27 18:07:55 -06:00
Norbert Thiebaud
8fc6fc97d5 remove include of pch header from sal 2011-11-27 13:18:15 -06:00
Norbert Thiebaud
e4610ffd2d remove PCH support in dmake-module 2011-11-27 12:26:12 -06:00
Tor Lillqvist
474dcc8fc9 The lo_main() thing on Android works fine, remove superfluous logging 2011-11-26 00:23:44 +02:00
François Tigeot
3a1441c0d3 PDP_ENDIAN and variants are unused.
Remove their use from the code.
2011-11-25 14:38:11 +01:00
Stephan Bergmann
0a1f03544a Call getResult with fully qualified name. 2011-11-23 21:56:22 +01:00
Stephan Bergmann
364a3d2864 Silence bogus MSC "must return a value" errors. 2011-11-23 20:26:52 +01:00
Stephan Bergmann
0c7bff0271 Changed sal/log.h -> sal/log.hxx, drop _S from C++ streaming log macros.
A compile time check ensures the common case of streaming just a plain
C-style string literal still produces reasonably compact call-site code.
The format-string variants are still available in sal/detail/log.h, but
only to be used in obsolete osl/diagnose.h etc., and going to be removed
again eventually.
2011-11-23 15:50:58 +01:00
Jan Holesovsky
832e6d2293 Some trivial fixes for MinGW with -std=c++0x enabled; not finished. 2011-11-23 11:59:30 +01:00
Stephan Bergmann
981470b240 Base SAL_INFO/WARN inclusion on if instead of #if.
So that variables only used within SAL_INFO/WARN do not lead to
unused variable warnings in product builds.  Also for OSL_TRACE
(which used to work that way before already); allowing to revert
a recent warning fix.
2011-11-22 13:24:27 +01:00
Stephan Bergmann
70a6b9ffbd New sal/log.h obsoletes osl/diagnose.h and tools/debug.hxx.
* New SAL_INFO..., SAL_WARN... macros.
* New SAL_STREAM supersedes OSL_FORMAT.
* oustringostreaminserter.hxx moved from unotest to rtl (and always UTF-8 now).
* TODO to enable GCC __attribute__((format)) in sal/log.h (requires call-site
  cleanup).
* Further functionality in tools/debug.hxx (DBG_MEMTEST, DBG_CTOR, etc.) not yet
  addressed.
* Some replacements tools String -> rtl::OUString.
2011-11-22 09:41:47 +01:00
Lionel Elie Mamane
acc65ffb2c SAL_N_ELEMENTS: use "check argument is array" version in all C++0x compilers 2011-11-21 11:31:20 +01:00
Tor Lillqvist
3c445370a9 Further Android work, now most sal cppunit tests seem to run
Do the LD_LIBRARY_PATH splitting in Java, much easier, and pass the
split up path to the native setup() method.

Use lo_dlopen() in the osl_loadModuleAscii.

Harcode en-US.UTF-8 as the locale for now.

Cut down on verbose logging of stuff that already works.
2011-11-16 09:26:40 +02:00
Tor Lillqvist
2bf110d691 Rework the bootstrap mechanism of a LO program on Android
Do use NativeActivity and android_native_app_glue after all.

I hope this enables us to have a "message pump" (a loop that typically
would call ALooper_pollAll()) inside the LO "program" being run, as
expected by LO code.

(On Android, a "program", even one mostly implemented in native code,
is actually a shared library loaded by the main Java code of an app.)

The android_native_app_glue code and the android_main() it calls
belongs in the bootstrap library, though. Not in SAL_MAIN_IMPL.

The earlier idea, having a "normal" Java Activity subclass, would mean
events come in as method calls to that class. To then turn those into
something the LO code can "get", we would have effectively had to
re-implement what android_native_app_glue does anyway.
2011-11-15 01:54:49 +02:00
Tor Lillqvist
d14416463a Intermediate Android commit, before having NativeActivity load lo-bootstrap 2011-11-15 01:54:48 +02:00