Commit Graph

273 Commits

Author SHA1 Message Date
3549bd4956 fix linking in vcl under OSX
after commit 4789eab "use SimpleReferenceObject in vcl/osx module"

Change-Id: I14a3f1da6267a5bb0aede9e56063db4b21a455bf
2014-07-10 11:57:53 +02:00
9dd152107c fix libmerged: vclplug_svp is in
Change-Id: I6ab00275b36725fbb0a446c7e5eb888e034a8989
2014-07-03 20:48:32 +02:00
97dae845c2 Use proper name also when libmerged is used.
gb_Library__get_name was forgotten in
1817366cb5f61337b34b5284615d3d4e0a8aa68a

Change-Id: I42592d70455b9c695879d7fa20881c77a1ca2066
2014-06-16 10:33:42 +02:00
1817366cb5 gbuild: remove config_libraries.h and gb_Helper_generate_config_libraries
This much ugly complexity, generating a header on every gbuild startup
etc. is really not warranted for 6 callers of the generated macros.
Also, the Win32 make has problems with the quoting.

Change-Id: If945e09c1730e52174a6084677842dc611d66b2f
2014-06-09 17:05:50 +02:00
1b23e46051 vcl: Refactor scale "super" out of bitmap and make it independent
Introduce BitmapFilter as a general bitmap filtering class, and
make scale "super" algorithem independent as BitmapScaleSuper
which uses BitmapFilter as superclass.

This is an ongoing work to make some bitmap algorithms structured
and more independent from the big bitmap class This will make them
easier to work with, test and optimize.

Change-Id: I37d29709b2af95cab2f6da21129302f5be79318b
2014-06-03 12:03:25 +02:00
657481f2ff vcl: moved paint functions from window.cxx to paint.cxx
Change-Id: Ie039c971d9d015e20d814fdda67bd489e6aa7501
2014-05-23 22:42:04 +10:00
1cda4728bf vcl: move mouse functions from window.cxx to mouse.cxx
Change-Id: I4cd0769cd20869e9316c35ff20e4fa477b5aab16
2014-05-23 20:40:12 +10:00
7818974103 vcl: split window.cxx into event and settings functions
Change-Id: Ic038a1c95721d4e578face5deea0b8d8a4ab7304
2014-05-23 08:37:26 +10:00
4ea70f09e9 Initial cut at some infinite monkeys work.
Change-Id: I71c7fe027262305893d8eabee94a726f4aa909d6
2014-05-22 09:48:17 +01:00
87ea3aa1cf vcl: move resource functions from window.cxx to resource.cxx
Change-Id: I050cb975dfa6ba20a6a840f24d30745fbafbfaef
2014-05-20 08:04:58 +10:00
bb2f6e6c51 vcl: move globalization functions from window.cxx to globalization.cxx
Change-Id: I8f617f2c480f8c5c7f5230cc6d6a6e82d8750857
2014-05-20 03:05:23 +10:00
f797e6c467 vcl: move debug function from window.cxx to debug.cxx
Change-Id: I9c3debcdda4b6ee943792e8799d436b097df2982
2014-05-20 00:32:25 +10:00
aa23a83999 vcl: move window order and stack functions into stacking.cxx
Change-Id: I96eabf2507f2d365d589a436a30087adb9738f90
2014-05-13 21:30:46 +10:00
1b7aee193f vcl: move Window clipping functions to clipping.cxx
Change-Id: I19de157b90d52ab19fbd7c4ffc7eedeb9bf9a99a
2014-05-13 09:21:03 +10:00
cb1f8684a6 vcl: move legacy accessibility functions to own file
Change-Id: I32e10555d496ef3c9d5fa895c649e3eceb3fc366
2014-05-13 08:13:55 +10:00
58b1c41d60 VCL: Move accessibility functions to accessibility.cxx
Change-Id: Ieb128c2ea121bacd9cd952a9400a85f2b9da5a7e
2014-05-13 08:13:53 +10:00
f2e4bb4b96 Revert "VCL: move native widget rendering functions out of OutputDevice"
This reverts commit 5b86e33b5fb5f8250b88bf14e579cddd98fec36a.
2014-05-01 20:00:56 +10:00
5b86e33b5f VCL: move native widget rendering functions out of OutputDevice
The following functions should be in the Window class, not in
OutputDevice:

+ IsNativeControlSupported
+ HitTestNativeControl
+ DrawNativeControl
+ GetNativeControlRegion

Additionally, moved nativecontrols.cxx to vcl/source/window/ and whilst
we are about it, it turns out that VirtualDevice isn't used by these
functions. Therefore the 'orrible check to for the type of class can be
removed and in fact as VirtualDevice doesn't use it at all then we can
just remove the function and replace it with a call to
IsNativeWidgetEnabled().

Change-Id: Idd0bfb1cba1c2902f7a6d55d258efb38b67fb827
2014-05-01 19:37:45 +10:00
03e771f268 VCL: Rearrange function locations and accessibility in window.hxx
A whole bunch of functions in include/vcl/window.hxx should be private,
a number should be protected. Change this now and fix some formatting
whilst I'm about it.

Change-Id: I8bae0112dcecffb7c703fe35e8db6676c1b5f584
2014-05-01 09:42:52 +10:00
ce941a33b7 VCL: complete reorganization of text and font functions in outdev.hxx
Change-Id: I7dbd9ec79213d43acf6486a2507c8f0cfb47d943
2014-04-27 22:26:49 +10:00
cf3c6cb40f VCL: ImpObjStack replaced with std::stack
ImpObjStack uses it's own home-grown stack and stack functions. There
is a function that unwinds the stack, but really it would be better if
we used std::set. In fact, this is better, because the name ImpObjStack
is really not terribly descriptive. I've replaced it with a stack of
OutDevState objects.

Change-Id: I87bdd4340ad77b7ffd9ff176fa5a9ffeac8b8666
2014-04-25 23:34:09 +10:00
55f736a2bf Merge tworect.cxx with rect.cxx and rename functions
Change-Id: Iad6109a353181759fa64e48a82a003f785d0e58c
2014-04-22 03:37:35 +10:00
67d4ad765c Move OutputDevice clipping functions into own file
Change-Id: Id1bfa4c6db202597107de3047326fe1bd17f2387
2014-04-22 02:30:40 +10:00
0347aecfc7 Reorganize outdev.hxx - mainly map functions
Mainly moved map functions into their own block, however I have also
done a bit more reorganization. Quite a bit to go, it seems...

Change-Id: I041d91c9b96066f5f1e11bd82968c2712988e5f4
2014-04-22 02:30:40 +10:00
3f52bc19d5 Reorganize native control functions in OutputDevice
Rename lcl_* functions in nativecontrols.cxx, also renamed
outdevnative.cxx to nativecontrols.cxx

Change-Id: Ie9a362f09cb5044e486086e7d890ae433f7dddc6
2014-04-22 02:30:39 +10:00
655443b42d Reorganize OutputDevice bitmap functions
I have moved the blending functions from blend.cxx to bitmap.cxx, I
also renamed the function ImplBlendWithAlpha to BlendBitmapWithAlpha
and ImplBlend to BlendBitmap.

I also grouped the functions in outdev.hxx - BlendBitmap and
BlendBitmapWithAlpha are both private functions, not public.

Change-Id: Idfaf8826341172bb0288473c643afa51a03b0580
2014-04-22 02:30:36 +10:00
ffce13a5e4 Move VCL text line functions from text.cxx to textline.cxx
Change-Id: I3adea9cd08c86f676e6af525e5a7caf430c96d8d
2014-04-20 13:10:09 +10:00
c1bc990aa5 No need for vcl/source/outdev/bezier.cxx any more
Change-Id: Ie3c401b5f40972999f45da7d2c4b8ed732454af0
2014-04-17 02:41:14 +10:00
a99f5e37ec Move alpha.cxx contents into bitmap.cxx
Change-Id: Ia61c3b28012a493ac1099fbc5ffb9f5199b2ae5e
2014-04-16 07:33:59 +10:00
aa5b97fa3d Split outdev5.cxx and outdev6.cxx
outdev5.cxx deals with curved shapes, so renamed to curvedshapes.cxx

Moved polygon functions to polygon.cxx, transparency functions to
transparent.cxx, a few miscellaneous functions to outdev.cxx and as the
rest of the functions are wallpaper functions then renamed outdev6.cxx
to wallpaper.cxx

Change-Id: I62a0b66d4d66740fb5f70ecb558db1ad3bf76eb5
2014-04-16 07:33:58 +10:00
d92ee5d8be Split outdev3.cxx
Split outdev3.cxx into font and text functions

Change-Id: I535dbbce055246865d4d5b62fb1ea5b991fb4663
2014-04-16 07:33:58 +10:00
5a35cb3e7f Split outdev2.cxx
I have split outdev2.cxx into the following files:

+ alpha.cxx
+ bezier.cxx
+ bitmap.cxx
+ blend.cxx
+ gradient.cxx
+ hatch.cxx
+ pixel.cxx
+ polygon.cxx
+ line.cxx
+ polyline.cxx
+ rect.cxx
+ transparent.cxx

I have also moved all the DrawDev functions into outdev.cxx

Change-Id: Ica7057250526cd1ed680e5ec173c73265a586ea3
2014-04-16 07:33:57 +10:00
d4bf419884 Move lines and rectangles to seperate source files
Change-Id: I03ef9d09fed831c6d595924f1c681718a89106b2
2014-04-16 07:33:57 +10:00
3a7ad7ee5d Move line functions into line.cxx and polyline.cxx
Reorganized line functions by moving them into seperate line.cxx and
polyline.cxx source files.

Change-Id: Ifee39cb7f88ed04be2cf7aeb4b46870c404f6eeb
2014-04-16 07:33:56 +10:00
2295d9dcea Move bezier functions into own source file bezier.cxx
Change-Id: I2071b3b1f3bb865075205cb4a90d2e230a8a5ca8
2014-04-16 07:33:54 +10:00
4a31802d8a Don't forget to add polygon as an object in the makefile!
Change-Id: Ib4a51d23d80d20e00968929628bbb4966b78c408
2014-04-16 07:33:54 +10:00
96d5e016e1 Move hatch functions to own source file.
Move outdev4.cxx to hatch.cxx as this now only contains hatch
functions.

Change-Id: I76fb3c6513045881cd04601e80e3f9a31c2f1f9c
2014-04-16 07:33:52 +10:00
674801eb4a Move OutputDevice gradient funcs to vcl/source/gdi/outdev/gradient.cxx
Change-Id: I035e5abd948881313580726c33e66af30778f6a6
2014-04-16 07:33:50 +10:00
13fec19b91 Move OutputDevice source files to vcl/source/gdi/outdev
I will be splitting out these files into OutputDevice functionality

Change-Id: If04c104a49a4a0dfc53a36cb84f8f4178e9f52c8
2014-04-16 07:33:49 +10:00
b8aa1f2364 vcl quartz: cache per-run glyphs information
GetNextGlyphs could only deal with 1 glyph at the time
and was recalculing a lot of thing while iterating on the glyphs

This is not just a performance issue.. the notiong of keeping
per run glyphs information will be useful to re-establish the
proper support of glyphs display positionning by SetDXArray()
which today is completely ignored, in favor or letting
CoreText spread the extra free space itself.

Change-Id: Ib267c3e490619b650d4149f4b15b5758802942ba
Reviewed-on: https://gerrit.libreoffice.org/8879
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-04-09 16:33:06 +00:00
1d81ca98f8 move remaining padmin dialogs into vcl
and so padmin is no more

Change-Id: I554cefa8b38581daad8a78bafa167448b0a0ef61
2014-03-21 11:23:02 +00:00
7260bcd687 cosmetic: split PhysicalFontFamily/Collection out of outdev3.cxx
Change-Id: Iae8eb15413c0c069c14edd92c94ecb0113d9d371
2014-03-20 16:11:58 -05:00
7154b092a7 cosmetic: split PhysicalFontFace class it its own source/header
oudev,2,3,4,5,6 are a dumping ground for a lot of things
chipping at it one class at the time...
organize the #include of the impacted source while at it.

Change-Id: I57bbb1f9e3c6b2ac6b3ca127e5976bf16f3e3cf8
2014-03-20 16:11:57 -05:00
ad28ffaa37 Remove unnecessary vcl::SolarMutexObject
Change-Id: I6dfdd7d5d211b66019dfbe364101140e28a3584d
2014-03-20 18:10:51 +01:00
c47496fdf9 Add config_libraries.h definitions to get library names easily.
Works for libmerged too, so we can get rid of LIBO_MERGELIBS.
And remove few more #defines in vcl.

It's generated by gbuild, so probably abusing config_host directory.
Open to improvements.

Change-Id: I87ab109bf109e42751766011daf076e9cdf8f5ee
2014-02-25 09:05:09 +01:00
076a7eacca Bug #63962 Dynamically scan the config directory for icon themes
The hard-coded icon themes have been replaced by a dynamic list
which is filled by scanning the config directory

Conflicts:
	include/vcl/settings.hxx
	vcl/source/app/settings.cxx
	vcl/source/window/window.cxx

Change-Id: Ie3680ffe27d06e375acf22753e036cb6ddabc4ed
Reviewed-on: https://gerrit.libreoffice.org/7935
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-21 17:23:50 +00:00
11dbbc792f Make vcl/source/filter/jpeg/jpegc.c be C++ code
...simplify the corresponding jpeg.h now that it deals in C++, and fold
SetJpegPreviewSizeHint into ReadJPEG to avoid global static data.

Change-Id: Id3721bdb37be05e3e6bbbaef3b0aa0c0e1a9ff5a
2014-02-06 14:20:00 +01:00
0c7e608051 fdo#69358 Introduction of native Mac OSX Toolbar, based on CoreUI
Change-Id: I7774368a9b59e8087573348f6061b6a220fea130
2014-02-05 21:49:17 +01:00
1615b7f1d0 Do proper script itemization with HarfBuzz
This implements http://www.unicode.org/reports/tr24/ by using ICU’s
implementation of it, but since the code in question is private API, I
simply copied the two self-contained files.

This commit is best viewed with --ignore-space-change.

Change-Id: I38c385d4fb6f8a2edc804d48f0aa14df9f0a8b3b
2014-01-18 01:11:09 +02:00
cbc0ad34d8 If this is Windows specific, it can be inside ifeq ($(OS),WNT)
This also prevents a weird problem I see when cross-compiling in one tree (but
not in other trees for other cross-compilation targets).

Change-Id: I102e652c259a66ea124b344bd229e8988801ac58
2014-01-16 23:38:41 +02:00