Commit graph

202 commits

Author SHA1 Message Date
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
Caolán McNamara
40b9443a65 help windows build along 2011-08-04 12:13:06 +01:00
Tor Lillqvist
c2b202910e Add statically linked basebmp cppunittester for iOS 2011-08-03 17:46:15 +03:00
Tor Lillqvist
704bc46ae4 Add consistent Emacs and vim mode lines 2011-07-30 23:12:12 +03:00
David Tardon
5a4780daec cppunit is linked in automatically 2011-07-25 10:46:23 +02:00
Bjoern Michaelsen
182488ef14 remove superfluous include paths 2011-07-23 15:53:09 +02:00
Bjoern Michaelsen
a233dac065 resyncing to master 2011-07-21 18:56:16 +02:00
Michael Meeks
a206e2afb0 initial cut at damage tracking support 2011-07-12 20:34:22 +01:00
Bjoern Michaelsen
75068ecaa1 gnumake4: fix buildbreakers from merge 2011-06-20 13:24:14 +02:00
Bjoern Michaelsen
941020379b Merge branch 'master' into feature/gnumake4
Conflicts:
	basebmp/prj/d.lst
	basebmp/test/basictest.cxx
	basebmp/test/makefile.mk
	basegfx/inc/basegfx/basegfxdllapi.h
	basegfx/inc/basegfx/tools/debugplotter.hxx
	basegfx/inc/basegfx/tuple/b2ituple.hxx
	basegfx/prj/d.lst
	basegfx/source/numeric/makefile.mk
	basegfx/source/polygon/makefile.mk
	basegfx/source/range/makefile.mk
	basegfx/source/raster/makefile.mk
	basegfx/source/tuple/makefile.mk
	basegfx/source/vector/makefile.mk
	basegfx/test/basegfx1d.cxx
	basegfx/test/makefile.mk
	basegfx/util/makefile.mk
	canvas/Library_canvasfactory.mk
	canvas/Module_canvas.mk
	canvas/prj/build.lst
	canvas/prj/d.lst
	canvas/source/cairo/cairo_canvashelper_texturefill.cxx
	canvas/source/cairo/makefile.mk
	canvas/source/tools/makefile.mk
	comphelper/qa/string/makefile.mk
	cppcanvas/Module_cppcanvas.mk
	cppcanvas/inc/cppcanvas/cppcanvasdllapi.h
	cppcanvas/prj/build.lst
	cppcanvas/prj/d.lst
	cppcanvas/source/mtfrenderer/makefile.mk
	cppcanvas/util/makefile.mk
	i18npool/source/search/makefile.mk
	regexp/Library_regexp.mk
	regexp/prj/d.lst
	sax/CppunitTest_sax.mk
	sax/Library_sax.mk
	sax/prj/d.lst
	sax/qa/cppunit/test_converter.cxx
	sax/source/expatwrap/attrlistimpl.hxx
	sax/util/makefile.mk
	svtools/Library_svt.mk
	tools/Executable_sspretty.mk
	ucbhelper/prj/d.lst
	ucbhelper/source/provider/configureucb.cxx
	ucbhelper/source/provider/provconf.cxx
	ucbhelper/util/makefile.mk
	unotools/Library_utl.mk
	unotools/Module_unotools.mk
	unotools/Package_inc.mk
	unotools/prj/build.lst
	vcl/Library_desktop_detector.mk
	vcl/Library_vcl.mk
	vcl/Library_vclplug_gtk.mk
	vcl/aqua/source/gdi/salprn.cxx
	vcl/inc/aqua/saldata.hxx
	vcl/unx/generic/gdi/salgdi3.cxx
2011-06-19 12:47:44 +02:00
Michael Stahl
bd162cb75a gnumake4: #i116959#: kill gb_LinkTarget_set_{defs,cflags,cxxflags,objcxxflags} [hg:389f5e8ec8cd] 2011-06-17 14:24:10 +02:00
Michael Stahl
e56b1bf7a5 gnumake4: basebmp: add necessary workarounds for SunCC [hg:3754657d8ff7] 2011-06-17 01:27:48 +02:00
Mathias Bauer
e7c5808817 CWS gnumake4: some more changes for basebmp and basegfx [hg:412eb2845cc4] 2011-06-16 13:14:11 +02:00
Mathias Bauer
a7807daef9 CWS gnumake4: add cppunittests for basebmp and basegfx [hg:f8f8d6414c70] 2011-06-16 13:08:54 +02:00
Mathias Bauer
602edcf197 CWS gnumake4: convert basegfx to new build system [hg:e8f9d107b59a] 2011-06-16 13:04:50 +02:00