summaryrefslogtreecommitdiff
path: root/chart2
AgeCommit message (Collapse)AuthorFilesLines
2014-10-09fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca2-3/+3
* Added rational util functions used by Fraction class not available in the boost::rational class. * Replaced usage of Fraction by boost::rational<long> * Removed code that relies on: 1. fraction.IsValid() -- rational only allow valid values, ie denominator() != 0 2. rational.denominator() == 0 -- always false 3. rational.denominator() < 0 -- always false but implementation detail: http://www.boost.org/doc/libs/release/libs/rational/rational.html#Internal%20representation * Simplified code that relies on: 1. rational.denominator() != 0 -- always true * BUGS EXIST because Fraction allows the creation of invalid values but boost::rational throws the exception boost::bad_rational Change-Id: I84970a4956afb3f91ac0c8f726547466319420f9 Reviewed-on: https://gerrit.libreoffice.org/11551 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-10-09typo: Lable -> LabelAndras Timar1-3/+3
Change-Id: I8b9e9f75dd22ee5bff678c5bc0e1fa9381a103de
2014-10-08coverity#1237352 Dereference after null checkCaolán McNamara1-6/+2
Change-Id: Ia9cb84bb0924915d4611c5f18d2a0d19b4198d94
2014-10-08spelling: instanciated -> instantiatedNoel Grandin2-2/+2
Change-Id: I99f3010e30f81786b938dc11736ea1597cd5530d
2014-10-07Annotate code.Kohei Yoshida4-1/+15
Change-Id: If26d21593f36a39de3bc5b81717e5000795c97ae
2014-10-05coverity#1223085 Unchecked return valueNorbert Thiebaud1-1/+1
Change-Id: I4149684a6f704893e130bd1776850634fdb67ceb
2014-10-04coverity#703928 Unchecked return valueNorbert Thiebaud1-1/+1
Change-Id: I26ba62448796f1d80d2b4bbaf2499d08058c3add
2014-10-04coverity#1242729 Result is not floating-pointNorbert Thiebaud1-1/+1
Change-Id: I7a1c8c964dc05d90ac6f15affe75ed14c79c0eb0
2014-10-04fix chart2 build with system-glm againRene Engelhard1-1/+1
Change-Id: Iaf40444cef56362e84c72c27328d5ad228c648ac
2014-10-03GLSL files should go into $(LIBO_ETC_FOLDER)/openglTor Lillqvist1-1/+1
(And not $(LIBO_BIN_FOLDER)/opengl. Note that on Linux and Windows, LIBO_ETC_FOLDER and LIBO_BIN_FOLDER are the same, "program".) That's where getShaderFolder() in vcl/source/opengl/OpenGLHelper.cxx looks for them. Also, as they are data and not executable code, to conform to strict OS X code signing and sandboxing requirements, they definitely should not be in $(LIBO_BIN_FOLDER) Change-Id: I902e08f7a1f142697df827d50e0bda74be918eb4
2014-10-02coverity#1169811 'Constant' variable guards dead codeCaolán McNamara1-1/+1
Change-Id: I1c795134469c0ab8cf6591982e2a44a6506e4fc5
2014-10-02coverity#1242832 Result is not floating-pointCaolán McNamara1-1/+1
Change-Id: Ic244ebaf7e19f82a086318a91024767a2044ab03
2014-10-01coverity#707673 uninitialized memberCaolán McNamara1-0/+2
Change-Id: Iab55c2545790bdee7104abf91d7a3df2deb21ec5
2014-10-01chart2: fix the testDataLabelBordersDOCX on MacMichael Stahl1-7/+9
This test failed on Mac because it depends on the layout being finished, since for SwXTextEmbeddedObjects the corresponding SwVirtFlyDrawObj are inserted in the draw page not on import, but in layout. Change-Id: I731b9b92838252ff50135f97343357992bc1933f
2014-09-30chart2: add a SolarMutexGuard in ChartView::createInstance()Michael Stahl1-1/+3
SvxUnoNameItemTable::SvxUnoNameItemTable() registers a listener at SdrModel, surely that needs a lock of some kind. Change-Id: I80d5a31be66e75f07e8abd26504bdcc93ffd22a3
2014-09-30fdo#82577: Handle PolyPolygonNoel Grandin1-1/+1
Put the TOOLS PolyPolygon class in the tools namespace. Avoids clash with the Windows PolyPolygon typedef. Change-Id: I811ecbb3d55ba4ce66e4555a8586f60fcd57fb66
2014-09-30chart2: std::auto_ptr -> std::unique_ptrStephan Bergmann8-17/+13
Change-Id: Ia92c18858c8ed7cfc2765cc2310f3bf7bfd7e8df
2014-09-30fdo#82577: Handle RegionNoel Grandin6-6/+6
Put the VCL Region class in the vcl namespace. Avoids clash with the X11 Region typedef. Change-Id: I6e008111df7cf37121fbc3eaabd44a8306338291
2014-09-29chart2: take the mutex to update the chart structures.Michael Meeks1-0/+3
Change-Id: I8ee6ec81913c008eeb67cd70a2490b523b0d8177
2014-09-25Resolves: fdo#83010 remove svx::WrapFieldCaolán McNamara8-106/+107
in favour of a wrap property on NumericField Change-Id: I62c6bdb69a16f37ae6018a2fe41070fb18dbe4a0
2014-09-25Changing the font properties makes it look betterxukai2-3/+3
Change-Id: I1be1833ef416e5eed1e7edbb1254302e28bacba7 Reviewed-on: https://gerrit.libreoffice.org/11620 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-09-24Don't update chart view when the controllers are locked.Kohei Yoshida1-0/+3
Change-Id: I8468925e63db3a5cc5ef3e0f942d22478fd0863e
2014-09-24Replace some std::auto_ptr function parameters with std::unique_ptrStephan Bergmann1-2/+7
Change-Id: Ic66d325fd9559c6dde9556c26e5b2a7e60376c49
2014-09-24Add missing include to avoid compile error on windowsPeter Foley2-0/+2
Change-Id: If338b41e416362fc36da25b16f119187a358206c Reviewed-on: https://gerrit.libreoffice.org/11617 Reviewed-by: Matúš Kukan <matus.kukan@collabora.com> Tested-by: Matúš Kukan <matus.kukan@collabora.com>
2014-09-23Some cleanup on Timer.Kohei Yoshida2-5/+3
Use a different name for handler as 'updateTimer' is also used as a method name within the same class. Also no need to set the interval repeatedly & no need to stop the timer when it times out. Change-Id: I430bc26b945d179c87310eaefd9d94986192841c
2014-09-23This guard blocks main loop.Kohei Yoshida1-1/+0
And I've been told that by design the main thread doesn't need to be aware of the rendering threads, so no need to take mutex here. Change-Id: I78ec348ccc28dd67284ecdfccebb915cc1942fa8
2014-09-23update camera when bar is clickedxukai2-16/+57
Change-Id: Icf397070d1b17a282a07e166d1387881b854b337 Reviewed-on: https://gerrit.libreoffice.org/11541 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23fdo#84001: update environment name BENCHMARK_MODE to UNLOCK_FPS_MODExukai1-1/+1
Change-Id: I7837b2b2639cd003931227f3eb957ef90b905fd0
2014-09-23use environment AUTO_FLY to control if autoflyxukai2-2/+10
Change-Id: Ie47dfdc5f3b07f6e1a6336fc235ac6ccd5d53cab Reviewed-on: https://gerrit.libreoffice.org/11540 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23update effect of bar clickxukai1-0/+13
Change-Id: Ibb09537d418e78c7fc9b6760988abd56505268b3 Reviewed-on: https://gerrit.libreoffice.org/11539 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23make Camera flythrough looks more smoothxukai1-22/+39
Change-Id: I46f79bb6ede2da133fe8971319fc4b7257848382 Reviewed-on: https://gerrit.libreoffice.org/11590 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23overloaded function GetDiffOfTwoCamerasxukai2-3/+11
Change-Id: Ic195c846364ddf9c798d019eed23c27200713017 Reviewed-on: https://gerrit.libreoffice.org/11589 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23Add function:GetDiffOfTwoCamerasxukai2-0/+27
Change-Id: I3b3f4e8e18d5970d408adcf0457bfdd4e064e37c Reviewed-on: https://gerrit.libreoffice.org/11588 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23instead of a top view a 45 degree viewxukai1-2/+4
Change-Id: Iaf922b998552778c527440c4b3a83cb8c05d2a6e Reviewed-on: https://gerrit.libreoffice.org/11536 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23Using 3D fontsxukai1-4/+4
Change-Id: If6cdece9f100f51b7a69ac4be4e316fb9c9928d5 Reviewed-on: https://gerrit.libreoffice.org/11535 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-233D fonts suportxukai2-7/+11
Change-Id: Id8142586e8ace4ba91a30b2f78d1216f89f22148 Reviewed-on: https://gerrit.libreoffice.org/11585 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23Update the color of FPS textxukai1-5/+9
Change-Id: Ic6f5889e24f98101426fc215c0313122797400b7 Reviewed-on: https://gerrit.libreoffice.org/11507 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23Show values of bars in selected rowxukai2-19/+50
Change-Id: I18fbdcb05e3c95c20c96b426bf93e85657209f34 Reviewed-on: https://gerrit.libreoffice.org/11584 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23fix the fly back bugxukai1-0/+2
Change-Id: Ie866d02ab2ca3a5372dbeec6805eee42c8e10312 Reviewed-on: https://gerrit.libreoffice.org/11505 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23add translucent balck background for history renderingxukai4-24/+41
Change-Id: I9da69bdb29bb780776355e79fab61d5d9bb844a4 Reviewed-on: https://gerrit.libreoffice.org/11583 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23add 50 histories for histroy renderingxukai2-16/+31
Change-Id: I26ff4655d682960ef397be27d5a9fc894502cf8a Reviewed-on: https://gerrit.libreoffice.org/11579 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23fdo#84001: Renamed the env. variable to fit better.Jan Holesovsky1-1/+1
Change-Id: Ie3e3a1871bfd0db22726206cf634debebcf4ef63
2014-09-23fdo#82577: Handle WindowNoel Grandin88-163/+163
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-21OPENGL_SCALE_VALUE is not needed any moreZolnai Tamás3-44/+32
It seems to me that this value was a workaround to make chart fit to the OpenGL window (working in calc, in default view). Now it's uselss since projection matrix do this job better. Change-Id: I968d6d96cb45c2444b8ebed59830b87f0cb87b61
2014-09-21fdo#81237: 2D OpenGL charts have wrong sizeZolnai Tamás8-15/+20
So far the size unit was 100th mm \ OPENGL_SCALE_VALUE which is an absolute value, independent from the actual size of the OpenGL window. To solve that I added the SetSizePixel() method with which we can specify the size in pixels and which method resize the whole scene accordingly. Change-Id: Ibd19a1bd9484c7bc8f8ce0d8113f60b95619db39
2014-09-19These are no longer used.Kohei Yoshida1-3/+0
Change-Id: I55a19ab06108825ece00844bb20c3fd5f65dfe37
2014-09-19Finally, move the group shape object for the diagram with axes to the param.Kohei Yoshida2-14/+14
Change-Id: I134275076256bb1b5441ae7804eacaaaa689d171
2014-09-19Move the "PlotAreaIncludingAxes" shape object to CreateShapeParam2D.Kohei Yoshida1-6/+7
Change-Id: I6c88611e837f651af92406952df273693d651121
2014-09-19Move the "MarkHandles" shape object to CreateShapeParam2D.Kohei Yoshida2-12/+11
Change-Id: I66843ca4ded3b69cb7f5256c94566c8f5d2de31c
2014-09-19Remove double-conversion between awt::Rectangle and basegfx::B2IRectangle.Kohei Yoshida1-4/+2
Change-Id: I51b1a366ca49f680f964814b0fd0fa69a6a7f5bd