Commit graph

216 commits

Author SHA1 Message Date
Michael Meeks
fdda178d88 targetted improvement of UNO API includes / usage 2012-07-02 14:43:34 +01:00
Michael Meeks
328e2263fb targetted re-work of cppunit pieces. 2012-06-27 19:13:11 +01:00
Michael Meeks
bdc909b07d re-base on ALv2 code. 2012-06-19 18:00:37 +01:00
Norbert Thiebaud
eccac35fff basebmp gbuildification
Change-Id: I9b24ff3503b1dc1198aab622e36224e75cb31255
2012-06-16 04:36:43 -05:00
Norbert Thiebaud
a96262179e revert gmk4 commit
Change-Id: I386d735645de648b08fa10baec4884d253f5a681
2012-06-15 19:36:12 -05:00
Tor Lillqvist
65d17f83f7 Avoid misleading term "factory method", just say "function"
Change-Id: I35de0d7eedae5454001fad7e43c6697d9042a829
2012-06-11 09:26:51 +03:00
Tor Lillqvist
62d4eb0c80 Avoid too long lines
Change-Id: I69d7eac07e384d574ecddbfe63cda0815d27b13b
2012-06-11 09:26:50 +03:00
Tor Lillqvist
fd3c83d5f2 Add two new 32bpp formats and add helpful comments
For Android (and perhaps iOS) we need a 32bpp format with channels in
RGBA order.

Rename the (basebmp-internal) 32bpp PixelFormatTreats_* typedefs so
that the channel order in their names matches the memory order of the
channels.

Change-Id: Ia8a74f6d44e0a2cffdf66a05ddf8fc7d6ae2a263
2012-06-07 21:54:19 +03:00
Norbert Thiebaud
a6be4aff9f targeted string re-work
Change-Id: I2e05baeb2c7f42e6f37613fe648fc19a8d0ac730
2012-06-02 16:48:35 -05:00
Matúš Kukan
7327195602 put debugDump behind #if OSL_DEBUG_LEVEL > 2
basebmp/source/debug.cxx is only for vcl/headless/svpgdi.cxx

Change-Id: I I Ib0624d919d7c0c5ce54dbef62fa0b49fd6eb0ab1
2012-05-11 22:48:49 +02:00
Bjoern Michaelsen
b1c3e8ae28 make gbuild the default assumption of build.pl
this removes dmake completely out of the build for migrated modules
build.pl now assumes modules to be gbuild, unless there is a
prj/dmake file

Change-Id: I674a036b182ee13c5ec093e83cb3d38133112d3b
2012-04-29 03:50:46 +02:00
Caolán McNamara
9ff94ae0fa png parsing regression test 2012-04-17 16:46:14 +01:00
Michael Stahl
4c50f23f87 LinkTarget.mk: remove gb_LinkTarget_add_package_headers 2012-04-08 01:05:53 +02:00
Michael Stahl
c923f7d2c2 gbuild: "use" vs. "add":
Naming convention for gbuild methods:
- "add" is used for stuff that is logically a part of the target
  (i.e. not registered at the Module, but defined in the target's makefile)
- "use" is used for stuff that is logically a different target
  (i.e. it is registered at the Module, has it's own makefile, may be
  in a different module than the target)
2012-04-08 01:05:52 +02:00
Stephan Bergmann
6e67c03dc0 Enable -Wnon-virtual-dtor for GCC 4.6
...which has the necessary features to support it.

Change a lot of classes to either contain a protected non-virtual dtor
(which is backwards compatible, so even works for cppumaker-generated
UNO headers) or a public virtual one.

cppuhelper/propertysetmixin.hxx still needs to disable the warning, as
the relevant class has a non-virtual dtor but friends, which would still
cause GCC to warn.

Includes a patch for libcmis, intended to be upstreamed.
2012-03-14 13:32:02 +01:00
Matúš Kukan
84b3f7b345 gbuild: get rid of realpath in gb_Foo_set_include 2012-03-10 21:23:20 +01:00
Tor Lillqvist
a1fe0a772f Use the same simple lo_main() on iOS as on Android
Let's do the iOS specific stuff in separate main() source
file(s). Don't attempt to build complete iOS programs using normal
LibreOffice mechanisms, it will work for only the very lowest level
unit tests anyway, because of static linking and the circularish
UNO/URE/bootstrap/whatnot (run-time) dependencies between different
parts of the code.

We thus can't build the various iOS-specific *_cppunittester_all unit
test executables any more. Corresponding unit tests (and more complex
ones) for iOS will have to be done in a different way.
2012-02-16 15:25:37 +02:00
Tor Lillqvist
02f30e56e7 WaE: type name first seen using 'class' now seen using 'struct' 2012-02-13 11:14:32 +02:00
Josh Heidenreich
8b9615be88 Added (and improved) READMEs for modules which used to be in libs-gui 2012-02-08 07:46:57 +01:00
Norbert Thiebaud
c857dff7fc switch to include-based build rather than sourced-based build 2012-02-05 19:34:05 -06: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
Matúš Kukan
b769901d5a unusedcode: remove various unused classes 2011-12-22 15:33:50 +01:00
Caolán McNamara
59bf1b583f regpathhelper: unused, so we've got to have two of them 2011-12-14 09:52:49 +00:00
Stephan Bergmann
38747916d6 Make LineTest::testCornerCases succeed again after last basebmp fix.
Though it looks wrong that rtl_allocateMemory(0) == 0.
2011-12-13 17:08:33 +01:00
Michael Meeks
cefb414b37 handle failed bitmap storage allocation gracefully 2011-12-13 15:54:28 +00:00
Bjoern Michaelsen
2acd8fbac9 in modules, when we have a env we are in stage gbuild 2011-12-07 15:53:06 +01:00
Bjoern Michaelsen
d73e574d8a move reconfigure into gbuild 2011-11-29 17:25:14 +01:00
Bjoern Michaelsen
f2f0dbd273 make gbuild makefiles run independant of pwd again 2011-11-25 12:04:40 +01:00
Norbert Thiebaud
0ea8c014ef tweak gbuild standart Makefile to allow partial build in unsourced env
This allow to run make in a module wihtout the need to source
Env.Host.sh.
2011-11-16 06:18:54 -06:00
Thorsten Behrens
b53d2bc9dd Fix clipped line renderer.
Fix for a nasty corner case where supposedly clipped pixel were
still rasterized (see polytest.cxx:implTestPolyDrawClip for what
failed previously).

Added much more unit tests while at it, clippedlinerenderer.hxx
should now have 100% coverage.
2011-11-15 12:38:50 +01:00
Thorsten Behrens
be35cbe0d8 This looks wrong for sure, too. 2011-11-04 16:28:33 +00:00
Thorsten Behrens
a6a391da8d Put BitmapDevice::getPixelData() back.
Slight tweak of d0d62edf3f - getPixel()
and getPixelData() are complementary functions, similar in spirit
to const and non-const getters. Added unit test for it to avoid
flagging it for removal again.
2011-11-04 10:40:08 +01:00
Joseph Powers
d0d62edf3f Cleanup basebmp a little
I removed 2 unused headers.

I also stopped delivering a lot of headers that no one outside of basebmp
cared about.

I also removed the unused methods:
  basebmp::BitmapDevice::getPaletteEntryCount() const
  basebmp::BitmapDevice::getPixelData(basegfx::B2IPoint const&)
2011-11-03 20:46:00 -07:00
Thorsten Behrens
f7975d2335 Fix one more subtlety around B2IBox / B2IRange changes.
The Cohen/Sutherland clip flag routine was not aware of B2IBox,
thusly yielding incorrect line clipping for BitmapDevice software
rendering. Cleaned that up, added some more unit tests around the
problem, and removed the now-extraneous maLineClip member from the
bitmap device.
2011-11-03 15:02:00 +01:00
Thorsten Behrens
1e297aef53 Move BitmapDevice to use B2IBox instead of B2IRange.
Semantically, B2IBox represents a pixel rect much better than
B2IRange - replaced all occurences in and around the software
renderer, and client code.
2011-11-02 23:58:28 +01:00
Thorsten Behrens
3c1b4b6ef7 Keep basebmp free of naked ptrs.
Moved the implementation detail that SalFrames lifetime is handled
manually in vcl out of basebmp & into vcl. Added lightweight wrapper
class to decouple damagetracker lifetime from GtkFrame lifetime.
2011-11-02 23:58:27 +01:00
Thorsten Behrens
207bcfc5b9 Revert "basebmp: B2IRange::isEmpty is surprisingly, unhelpfully lame - workaround"
This reverts commit 69e4dd1206.
2011-11-02 23:58:27 +01:00
Michael Meeks
69e4dd1206 basebmp: B2IRange::isEmpty is surprisingly, unhelpfully lame - workaround 2011-10-25 13:41:54 +01:00
Bjoern Michaelsen
e94a19f3e0 simplfy dmake to gbuild bridgefile 2011-10-05 00:31:50 +02:00
Thomas Arnhold
be6a8677a6 OSL_TRACE: Remove trailing newlines
Done with perl regex:
s/(\n\s*OSL_TRACE\(\s*\"[^\n]+?)\s*(\\n)+(\"[^\n]*\)\;\n)/$1$3/gs;

- removed trailing whitespaces and (multiple) newlines
2011-09-21 09:28:39 +02:00
Stephan Bergmann
d996328cd5 sb140: #i113503# mixing system CppUnit and OOo STLport does not work, backed out a6913c9677c2
For LibO, that just means replacing sal/cppunit.h with sal/precppunit.hxx.
2011-09-12 22:47:50 +02:00
Stephan Bergmann
30ad5e9d87 sb140: #i117694# some CppUnit related cleanup 2011-09-12 22:47:48 +02:00
Bjoern Michaelsen
9dbc6c88b0 its gb_Library_add_api not gb_Library_use_api 2011-09-09 14:37:52 +02:00
Tor Lillqvist
141ba95cfc Add basebmpdllapi.h 2011-09-02 12:03:19 +03:00
Tor Lillqvist
6eb586506d Add a foodllapi.h file here too and use it
Factor out the DLLPUBLIC dance from bitmapdevice.hxx to a separate
headers as is the normal convention.

Decorate the new debugDump() with BASEBMP_DLLPUBLIC in the header.
Otherwise the definition (which uses SAL_DLLPUBLIC_EXPORT) doesn't
match the declaration.
2011-09-02 11:57:10 +03:00
Matúš Kukan
e21822008d export debugDump used for debugging 2011-09-01 15:46:11 +02:00
Takeshi Abe
e1a1091d0a catch ignored exceptions by const reference 2011-08-24 11:30:17 +09:00
Norbert Thiebaud
d64bbd6bf8 detect gmake 3.81 and limit to -j1 unless num-cpu is explicitly set 2011-08-19 18:29:07 -05:00
Takeshi Abe
b2bd33ea25 prefer makefile-gmake-mode to plain makefile-mode 2011-08-10 02:12:48 +09:00
Takeshi Abe
10e14793d5 Emacs modeline compatible with vim's one 2011-08-05 11:04:32 +09:00