Commit Graph

5400 Commits

Author SHA1 Message Date
Caolán McNamara
ac4d9437b3 coverity#706262 Uncaught exception
Change-Id: I4fb1642153a0abe66ee9290e31813eb11623b527
2014-06-10 10:48:41 +01:00
Markus Mohrhard
009c6835ac avoid access to ChartView after having been deleted
e.g. 49225-3.xlsx

Change-Id: I62f2c39a928619ccfa66f128577de2c71f243a1c
2014-06-10 06:41:18 +02:00
Noel Grandin
184a00b962 loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
Markus Mohrhard
439550c9f1 remove unnecessary and unused chart debug functionality
Change-Id: Ic8100b2afebe469709723b324394e08b7669d911
2014-06-07 04:48:16 +02:00
Thomas Arnhold
c2034f3993 fixincludeguards: fix include guards
Change-Id: Ie6e8d4272b0b1d0d2ce93bcbc2e818a9eac1a56b
Reviewed-on: https://gerrit.libreoffice.org/9629
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-06-06 19:16:40 +00:00
Kohei Yoshida
c4ac853409 fdo#78860: Swap the logic here: Disable -> Enable.
Because the UNO property logic had been swapped earlier.

Change-Id: I35af3e8cee3c4cbc8da43d7bc478f506048887b0
2014-06-06 11:25:31 -04:00
Stephan Bergmann
369d95931f DeInitVCL at end of tests
This required some changes to the framework:

* Init-/DeInitVCL is no longer done per individual test in BootstrapFixture, but
  once per CppunitTest invocation in a new vclbootstrapprotector (similarly to
  the exisiting unobootstrapprotector).  CppunitTests that need VCL now need to
  declare gb_CppunitTest_use_vcl.

* For things to work properly, the UNO component context needs to be disposed
  from within DeInitVCL (cf. Desktop's Application::DeInit called from
  DeInitVCL).  The easiest solution was to introduce an
  Application::setDeInitHook (where the hook is called from DeInitVCL)
  specifically for vclbootstrapprotector to call.

* PythonTests don't (yet) call DeInitVCL; they still hook into
  BootstrapFixture's original test_init functionality (to call InitVCL), and do
  not make use of the vclbootstrapprotector.

Change-Id: I4f3a3c75db30b58c1cd49d81c51db14902ed68b2
2014-06-04 08:55:12 +02:00
Thomas Arnhold
92edd9b39c WaE: warning C4305: 'argument' : truncation from 'double' to 'GLfloat'
Change-Id: I8afe523cfe1be28bc5427c5e5852bea0be2aaea3
2014-06-04 08:30:26 +02:00
Markus Mohrhard
389d8e9f52 fix refresh problem with 2D OpenGL chart and OpenGLWindow
Change-Id: I32f23967a826262051495d57a4dd529ca3694548
2014-06-04 07:49:12 +02:00
Caolán McNamara
cec90913e8 coverity#1219805 Uninitialized scalar field
Change-Id: I1b4343f06118b352df8ceac0404b9ffff39e8b67
2014-06-02 16:59:56 +01:00
Jens Carl
8e115c6008 fdo#68849: Add header guards to all include files
added header guards for directories basebmp/, chart2/, cppuhelper/,
include/test/, io/test/, sax/test, shell/, writerfilter/, and xmlhelp/

Change-Id: I0e29a9b75c26d71f58aa98986b52f6d3b46015a6
Reviewed-on: https://gerrit.libreoffice.org/9615
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-06-02 08:46:30 +00:00
Julien Nabet
acdff9f976 Resolves: fdo#79506 Some numbers are marked as translatable
Exception:
http://opengrok.libreoffice.org/xref/core/sd/source/ui/view/DocumentRenderer.src#55

Change-Id: Iecfe49b51ed68de00f1b5adfb5bca9fa793fb1f9
2014-06-01 22:34:03 +02:00
Markus Mohrhard
d9f93ced82 extract the rendering code in ChartView
We need it for the IOpenGLRenderer interface.

Change-Id: Ic9f425b44c0efdd30956eba13ef03ba7179d35a4
2014-06-01 17:38:39 +02:00
Markus Mohrhard
e7da55b6ed make the OpenglShapeFactory work with the new OpenGLWindow impl
Change-Id: Id97a61c67b55d6ef85b9752f7f4ac2c93aa5bf32
2014-06-01 17:21:14 +02:00
Markus Mohrhard
df48d00ffb remove the framebuffer rendering
Change-Id: I2510a00b24a6a3c045a6ee2ccb21c022d3404000
2014-06-01 03:47:22 +02:00
Markus Mohrhard
8822b255e5 move to OpenGLWindow step one
Change-Id: I9f019a397f8b0daf27f0969b1f23539438eb6422
2014-06-01 03:47:21 +02:00
Markus Mohrhard
adde053786 no need for that include
Change-Id: Ifd3438224a824c190b87ea011e6c02668ad0a3e2
2014-06-01 03:47:21 +02:00
Markus Mohrhard
b179ed7f59 we don't support the simple backgriund anymore
Change-Id: I4a0238f5a2729f8b7ace3988c3fe890fba2a4341
2014-06-01 03:47:21 +02:00
Markus Mohrhard
e7aa417021 pass more parameters by const reference
Change-Id: I46be96d6ba9f3fecb590c4be62775824194c380a
2014-05-30 22:45:35 +02:00
Jens Carl
54b85bf51e fdo#68849: Add header guards to all include files
Added header guards to files in directories avmedia/, basegfx/, chart2/, and
connectivity/

Change-Id: I94ec438ec918ccef1c518edfd9ab4944e9e2961b
Reviewed-on: https://gerrit.libreoffice.org/9555
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-30 01:43:33 -05:00
Thomas Arnhold
fcfdadc2cb update_pch: exclude OpenGLContext.hxx for now
Change-Id: I80ce89351e2a8dbb1d9d928b673a8589fd651584
2014-05-29 09:59:07 +02:00
Markus Mohrhard
6b446f95dd remove tab in shader
Change-Id: I8641b8c0b478dd23d312fb4e8eed8aa98eb7035e
2014-05-28 23:10:18 +02:00
Markus Mohrhard
3d549ff9b4 improve the algorithm for the zoom into a bar
Change-Id: Id045cbeaa057fd264a50f83fb58bbee60df71299
2014-05-28 23:05:37 +02:00
Markus Mohrhard
585f615c2d show the screen text after the performance improvements
Change-Id: I09d0bfe06e3fbb93f65587a847133fb1b3a3f2b2
2014-05-28 23:05:37 +02:00
Markus Mohrhard
939519560c show the whole demo
Change-Id: I8e3adae6ef23c7750de0bcb5934d5743e24fde58
2014-05-28 23:05:36 +02:00
Thomas Arnhold
db3c6265cf chart2: fix namespacing
Change-Id: Ib9ef14b4ce38f93f590473913a308a967343c75d
2014-05-28 21:04:06 +02:00
Michael Meeks
2e2d7d8b6f Add a grey gradient background to the 3D chartm and tweak text color.
Conflicts:
	chart2/source/view/main/GL3DRenderer.cxx

Change-Id: I8b74a1e7f32c30b6a908c0870bbeacc00cdea444
2014-05-28 19:48:37 +02:00
Markus Mohrhard
5695cdfdc0 change the bar direction for the demo
Change-Id: I24e45810cb154310d8e35982e2ef100cf5746e2b
2014-05-28 19:31:46 +02:00
Markus Mohrhard
a8b7fcf349 prevent generating repeated information in rendering
Change-Id: I1cc5453af6cabe7736cc43e13aad280aaf2c62f6
2014-05-28 19:17:54 +02:00
Markus Mohrhard
a45b16602f avoid transferring the textures for each frame
Change-Id: I79466e66dc18dbbf72f192fe44d05fb6d657fa34
2014-05-28 19:17:53 +02:00
Markus Mohrhard
8287ee51e9 fix picking mode for the batch rendering
Change-Id: I9bfe64d56f9217561bb059eacde1fa3ece5f2cc1
2014-05-28 19:17:53 +02:00
Markus Mohrhard
3827c50294 remove unnecessary glFinish
Change-Id: I368e045a7635410a94f2f3a794e1c75a39418520
2014-05-28 19:17:53 +02:00
weigao
6d1598c30e Modify the bar generate function
Conflicts:
	chart2/source/view/main/GL3DRenderer.cxx

Change-Id: Ia323c54b9113be15f01bff2a2f1e66da8ebfc39c
2014-05-28 19:16:18 +02:00
weigao
4cde86a6e4 add batch render function 2014-05-28 19:16:18 +02:00
weigao
3b3f92be9c add get and release batch render info function 2014-05-28 19:16:18 +02:00
weigao
0e332ba4e6 add use and update uno function
Change-Id: I79d7d7ab77fff9a5e60a392e94fe2dd839803b64
2014-05-28 19:16:17 +02:00
weigao
47a417d93a add batch render variables
Change-Id: Idfd6f5ce5f711631d6115fe9227724891ccd95ef
2014-05-28 19:16:17 +02:00
weigao
ddeea3043d add batch render shader
Change-Id: I44cd54b35f872365268db3b4455beeac01ba3197
2014-05-28 19:16:17 +02:00
Thomas Arnhold
5e62d30fa2 update_pch
Change-Id: I5316693452427ed76a7738b090de023b110caa40
2014-05-28 15:53:10 +02:00
Caolán McNamara
57517bbf45 coverity#706267 Uncaught exception
Change-Id: I3a63546d0797c98c1720f0987293404ec760aeac
2014-05-28 13:49:51 +01:00
Caolán McNamara
f730b62e26 coverity#706265 Uncaught exception
Change-Id: I85c77236cd0a3cd791902a3978ea4e13606cea6c
2014-05-28 13:49:51 +01:00
Caolán McNamara
008998decc coverity#706264 Uncaught exception
Change-Id: Ia197a0de24a282bbfcbfc80ee283f530ac12c287
2014-05-28 13:49:51 +01:00
Caolán McNamara
f282994626 coverity#706261 Uncaught exception
Change-Id: Ife4d1e828cc2b52c54e425ec7af533ebdacd0f1e
2014-05-28 13:49:50 +01:00
Caolán McNamara
c4415f16fb coverity#706260 Uncaught exception
Change-Id: Ieef198f6aab05928bf3b77097466eb7ac728481f
2014-05-28 13:49:50 +01:00
Markus Mohrhard
f9f8d930a1 enable picking again
Right now with an ugly work-around. The image is vertically flipped so
we just adapt our access to it.

Change-Id: I0128f54d4a0fbe697dc8726f6e255111ecb8412f
2014-05-28 02:09:18 +02:00
Markus Mohrhard
16642b7feb Revert "loplugin:unreffun"
This reverts commit 7686f93f58.
2014-05-28 02:09:18 +02:00
Markus Mohrhard
05ff915779 use a step width of 10 for the picking color
Change-Id: Icdf7653e9dc5a33d78381b9ea5f3fd4652b1be5a
2014-05-28 02:09:18 +02:00
Markus Mohrhard
5419a2a863 disable MSAA for the picking
MSAA can and will result in mixed colors which is a problem if we use
the color for the selection.

Change-Id: Ifbd6d37902069b26e714d2e3e5576fb767f9fbbf
2014-05-28 02:09:17 +02:00
Markus Mohrhard
f656fdeeea remove one more magic number that is used in several places
Change-Id: I83949b592d75899d28d9792508685e58d103ae16
2014-05-27 22:26:06 +02:00
Markus Mohrhard
35078f372d let us look from the top onto the chart
Change-Id: I700c5f6799ba59eb858d1a12807dc7e37c4a3900
2014-05-27 22:26:05 +02:00