Commit Graph

293 Commits

Author SHA1 Message Date
f61e453f84 the DUMMY_CHART_FACTORY variable is not the only indicator for OpenGl charts
Change-Id: Idab33c8611526dc4749b4dbe4fe84e68138b4f73
2014-08-29 17:40:35 +02:00
6c4e21a234 bnc#812796: Correctly handle static value array for OOXML charts.
We need to pass the role of the data sequence in order to avoid unreliable
guess work when importing static value array.

Also, not all Excel's scatter plots have real numeric X values; some have
textural X values in which case Excel switch to generating 1, 2, 3, ... as
X values.  When importing to our chart implementation, using "categories" role
in such cases instead of "values-x" results in a more faithful chart rendering.

Change-Id: If4bc1f650bb024dcd1b1b36537f457fb38404a78
2014-07-02 20:56:31 -04:00
c5539bb585 fdo#79676: Initialize with a default chart only from the UI.
When creating an embedded chart object during import, we don't want to
create a default chart which would only mess up the chart data.

With this change, ChartModel::initNew() is a no-op.

Change-Id: Id29659c3885ec1e06bed26d2c851123fb63072cc
2014-06-10 10:02:25 -04:00
e41c33b376 make sure that OpenGL charts are rendered after import
Change-Id: I3701a7593d7394abc39532a87b9aa50a3c92d457
2014-05-24 12:36:48 +02:00
fcfa1b7e1f idl: fix some include guards
Change-Id: I6f306ba26d888a617aae89d29fc80acd00bd71d8
2014-05-16 14:37:28 +02:00
a28bcb6e57 provide the OpenGL window
This approach looks much better. We get size and position correct
without much work and can easily plug the window into the sc window
hierarchy.

We still have a crash on exit as the ScGridWindow goes out of scope and
the SystemChildWindow is still alive. We need to fix it and bind the
lifecycle of the SystemChildWindow to ScGridWindow.

Another open item is the OpenGL context work. Right now it looks like
the best way forward is to create a subclass of SystemChildWindow that
contains the OpenGLContext.

Change-Id: Ie0a74531e1b818cea92912345464c8fa219bbae2
2014-05-07 21:22:28 +02:00
da1425650b add missing modelines to idl files
Change-Id: If52651c70ee659c83ef127da4fe5e266cfe7eec2
2014-04-24 11:58:14 +02:00
6835d9f307 It's "its", not "it's"
Change-Id: Ieaa787afd7cc622b4750a2ee8f17f6dad934ba63
2014-04-10 20:22:50 +03:00
66db6dd2be typo: mappong -> mapping
Change-Id: I9c1644afa687ecde47271bbe9bfc8a51fe541cb5
2014-03-13 16:36:22 +01:00
1e9993be10 don't hardcode property mapping, read them from chart2::XChartType
Change-Id: I7889dbddab603d7650d58a04f53e7c5fe38fcce2
2014-03-09 19:27:49 +01:00
83055835b1 fdo#74112 Preserve Chart displayunits properties during ODF import/export.
Change-Id: I38508b71ee5b3b966e1d36b0d253304fe17c0ec0
Reviewed-on: https://gerrit.libreoffice.org/7721
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-02-11 23:23:40 +00:00
128700cdb7 Try to fix a warning during building
by disambiguating comment ending for the parser

Change-Id: I3432d4d034f10e81ce493acf8a952b200bde95a1
2014-02-10 16:20:54 +01:00
750b46025c give up with the nice solutions and enjoy the ugly hack
I was always hitting a corner case so it seems that this need some
drastic measures.

Change-Id: I3fdd278b9c3fed178513d653ef24ad8adf20cbd2
2014-01-29 08:09:30 +01:00
55656ee2e8 some improvements for the time based charting
The updating seems to work. It just does not update the references yet.

Change-Id: I0a971dbe2beb113c1c3e9ef103d77d5d8c7174a0
2014-01-29 08:09:30 +01:00
7a6d726563 time based charting calc side
Change-Id: I0d5963a691e4495ee14e4d1228ea0ba2b1dd66d7
2014-01-29 08:09:29 +01:00
2054af83fe fdo#72520 : Added property to store external data path in chart.
-  added new property entry to store xlsx external data for chart.

Change-Id: I3695865ad7e888359d1048e9bc380cba26108636
Reviewed-on: https://gerrit.libreoffice.org/7212
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-01-16 01:46:40 +00:00
20bb1e6854 fdo#72304 Preserve Chart data table properties during ODF import/export.
Change-Id: I767bb32fdaddcaf742923055cc86bb19138b42be
2013-12-19 03:55:05 +01:00
e76b2053b4 Fix UNOIDL interface method parameter identifiers
UNOIDL identifiers starting with a lowercase letter and containing underscores
are reserved for the implementation.  It would be good to be able to enforce
that in code parsing UNOIDL files, but some existing identifiers violate that.
So at least change any violating method parameter identifiers here.  While that
is theoretically an incompatible change for published interfaces, it practically
does not matter at all.

Change-Id: I5eff17b5dd5e2e92984184127c4fe1712d62c9dd
2013-09-04 16:54:23 +02:00
f193e73136 Fix idl: no ResultSet attribute so remove "#"
Change-Id: I8b0025a1dcba5819edbb35395324efaee936eec5
2013-08-20 22:28:17 +02:00
27a4d5597c Fixes to compiler errors, setRegressionProperties description.
Change-Id: I40ef93746e5f2a43ce58f0080db0b643e22404a1
2013-07-03 22:44:22 +02:00
6085bd1574 Force intercept for polynomial regression & dialog improvements
Change-Id: I2f712d8b95b5fdeb05b93b5247aab9772a00cc70
2013-07-03 21:46:43 +02:00
9c5e2c65ae Import/export of polynomial and moving average for old MS XP/2003 format
Also make new services work, so they can be used in filters.

Change-Id: If4ebd86b2b7bc4fc43d36109f05d06d42c531dab
2013-07-03 21:46:40 +02:00
e6a0cc2d6c fdo#35712 polynomial and moving average regression lines
- added polynomial and moving average to the dialog
- implemented moving average and polynomal RegressionCurveCalculator
- added icon for polynomial regression curve
- prepare icon for moving average regression curve
- degree parameter for polynomial regression curve
- period parameter for moving average regression curve
- limit the curve to max and min x value
- added extrapolation

Change-Id: I4ebb8dc23a3aff285b999e115fdda20ab11910a5
2013-07-03 21:46:39 +02:00
ed0646e52f Fixes for new-style com.sun.star.chart2.FormattedString service
...changed from old-style with 5d1ad167294878789e644452f23ef883af93fe87
"fdo#46808 Convert chart2::FormattedString service to new style."  The
CharacterProperties* services dropped there are property-only old-style
services, so only serve documentation purposes anyway.  Ideally, the new-style
service would offer interface attributes for the relevant properties (and likely
not implement XPropertySet at all), but so be it for now...

Change-Id: I0dd0373cfd372f2320204eb953acce9a2b9e86d2
2013-06-05 14:39:45 +02:00
392706b5f7 *api: fix loads of badly documented parameters
Change-Id: Ifcfdcc1aee5f45745ab17d83f69c2cf293b58196
2013-06-04 12:01:08 +02:00
f8b6558e8e *api: convert unsupported HTML entities
Most of these are just cosmetic, and middot can be replaced by cdot.

Change-Id: I39a45a2d5d0f10b5b0e793b6fa5e0c041c4669d5
2013-06-04 12:01:07 +02:00
ddba7d155d *api: convert all unsupported html tags
Only useful ones appear to be <tbody> and <thead> which doxygen doesn't
support but we only use those in 3 places so who cares.

Change-Id: I374f7d208873a8436fe76e0f800ce18df5b188b3
2013-06-04 12:01:06 +02:00
b7ba598ced *api: clean up multi-line and mal-formed XML tags
It is amazing what some people believe autodoc supports.

Also, com::sun::uno::Any does not exist in IDL, that is part of
the C++ language binding.

Change-Id: I1f1f5cf5d27663ace6ff618ecbecb41fd2dfa1fc
2013-06-04 12:01:05 +02:00
56d158c38c *api: convert more <method>
sed -i "s,<method>\([^<]\+[^)]\)</method>,\1(),g"

Change-Id: Ie443efb5b283067bc5475810f6848061900d8401
2013-06-04 12:01:05 +02:00
928b8640c0 *api: convert <TRUE/> <FALSE/> <VOID/> <NULL/>
sed -i 's,<\(TRUE\|FALSE\|VOID\|NULL\)/>,`\1`,g'

Change-Id: Ia4df97ca809b00993530d67203bbe4ba7a072201
2013-06-04 12:01:05 +02:00
6e1d239ae0 *api: convert <true/> <false/> <void/>
sed -i 's,<\(true\|false\|void\)/>,`\U\1`,g'

Change-Id: I87a6e81ff22b47ea979322d01c49350892d3945f
2013-06-04 12:01:04 +02:00
be7f280ea7 *api: convert <atom>
sed -i 's,<atom>\([^<]\+\)</atom>,`\1`,g'

Change-Id: I530fe998b0c422e83c4324807d42700126bc9883
2013-06-04 12:01:04 +02:00
d11a7b5eb1 *api: convert <const>
This one is apparently often abused to link to a constant group, while
it can only link to constants within a group.

sed -i "s,<const>\([^<]\+\)</const>,\1,g"

Change-Id: Ic3d8099751340e4b046298c861bb659beb351eaf
2013-06-04 12:01:02 +02:00
24b331efed *api: convert rest of <member scope="foo">
sed -i 's,<member scope="\([^"]*\)">\([^<]\+\)</member>,\1::\2,g'

Change-Id: Idbe0adc5a88e430c99257d4d61e540bf0eeaea8f
2013-06-04 12:01:02 +02:00
bb6503dd08 *api: convert remaining <member>
sed -i "s,<member>\([^<]\+\)</member>,\1,g"

Change-Id: I74c80f5aa610477fab28faec52e55c3137984aec
2013-06-04 12:01:01 +02:00
4bb43e1612 *api: replace <member>Foo</member>
These member variables need a # prefix.

sed -i "s,<member>\([^<:]\+[^)]\)</member>,#\1,g"

Change-Id: I721b90f4edae32b5a362479bdbd60423f6427364
2013-06-04 12:01:01 +02:00
ea71a05840 *api: convert <member scope="foo">bar</member>
sed -i 's,<member scope="\([^"]*\)">\([^<]*::[a-z][^<:]\+[^)]\)</member>,\1::\2(),g'

Change-Id: I265ff28fee73a271f205294e59955b3a1c81d95a
2013-06-04 12:01:01 +02:00
3122600a5e *api: convert <member>Foo::bar</member>
Doxygen would probably recognize these without () too but add them for
consistency.

sed -i "s,<member>\([^<]*::[a-z][^<:]\+[^)]\)</member>,\1(),g"

Change-Id: I2615b99265b75633459e35164e54d9da7fe76b85
2013-06-04 12:01:00 +02:00
b352a8bf03 *api: convert <member>method</member> to method()
Doxygen will only recognize a un-qualified method name as such if it is
followed by "()".

sed -i "s,<member>\([a-z][^<]\+[^)]\)</member>,\1(),g"

Change-Id: I69bc17849e76f3a3d91c6daf0f1be8168a83cfc5
2013-06-04 12:01:00 +02:00
9f12a9da8d *api: convert <type scope="bar">Foo</type>
This looks much better now.

sed -i 's,<type scope="\([^"]*\)">\([^<]\+\)</type>,\1::\2,g'

Change-Id: I94cd0f93afa89855b62dadeb229d2b2e1775cd80
2013-06-04 12:01:00 +02:00
944eb99027 *api: convert <type>Foo</type>
Doxygen does not know type element and will recognize strings that
contain capital letter (all API types do) automatically as type.
This patch removes 15k doxygen warnings.

git ls-files | grep \\.idl | xargs sed -i "s,<type>\([^<]\+\)</type>,\1,"

Change-Id: I45c07cf0b115d5fb5353f4aa9719839615ea1150
2013-06-04 12:00:59 +02:00
f30399c540 Revert "fdo#46808, Convert chart2::Title service to new style"
This reverts commit d256dbede60533369d1aac64cca34721183f6a8a:

For one, the new css.chart2.XTitle2 looked unfinished, in that it transfered the
direct properties of the old-style css.chart2.Title service into attributes, but
left out all the properties inherited by the old-style service from
css.style.ParagraphProperties, css.drawing.FillProperties,
css.drawing.LineProperties (and that missing FIXME css.layout.LayoutElement,
whatever that is supposed to be).  This needs more thought, to either make
available all propertiers as attributes, or none.

For another, this broke JunitTest_chart2_unoapi (sch.ChXChartDocument,
sch.ChartTitle), for hard-to-debug reasons.

Conflicts:
	chart2/source/model/main/Title.cxx
	chart2/source/model/main/Title.hxx
	offapi/com/sun/star/chart2/XTitle2.idl
	sc/source/filter/inc/xlchart.hxx

Change-Id: I4747208a13984904d0e409ea49a73b0f667c86c7
2013-05-23 10:39:21 +02:00
03c3cd9093 fix maybevoid attributes
..from commit d256dbede60533369d1aac64cca34721183f6a8a
"Convert chart2::Title service to new style"

Change-Id: Ib4b8a9126f1042c7d0b8cc07505444f25fe9c55a
2013-05-22 14:35:44 +02:00
823377b707 fdo#46808, Convert chart2::*RegressionCurve services to new style
The service already existed, they just needed IDL files.

Change-Id: I547b3b40912e2fefdb173c010826f86aa8347b11
2013-05-21 13:53:20 +02:00
d256dbede6 fdo#46808, Convert chart2::Title service to new style
API CHANGE: The chart2::XTitled interface now takes and returns
   a XTitle2 instead of an XTitle.

Change-Id: I96c35909d3a13f1abb544296a782a0b6a7a58ec6
2013-05-21 08:24:01 +02:00
f2bc5c6229 fdo#46808, Convert various chart2:*Scaling services to new style
Change-Id: I93294be4c822160e609ae6aab552edd64478e34b
2013-05-21 08:24:00 +02:00
bae42fd6da fdo#46808, Convert chart2::RegressionEquation service to new style
The service already existed, it just needed an IDL file

Change-Id: I56b7079b098a7615dfb24598d15fe7d57691f317
2013-05-15 08:25:37 +02:00
088e86b865 fdo#46808, Convert some chart2 services to new style
The services already existed, they just needed IDL files

Change-Id: Ia7bdae932c5fb4b47d23afd2bb0756ecc9cbf6f7
2013-05-13 09:38:03 +02:00
5d1ad16729 fdo#46808 Convert chart2::FormattedString service to new style
API CHANGE: dropped the following services from the new unified
interface because the current service does not implement them.
    service ::com::sun::style::CharacterProperties;
    [optional] service ::com::sun::style::CharacterPropertiesAsian;
    [optional] service ::com::sun::style::CharacterPropertiesComplex;

Change-Id: I7cb6a5d4e998975b1272f4f4da03feea30cd30b6
2013-05-13 09:38:03 +02:00
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00