Commit Graph

11942 Commits

Author SHA1 Message Date
3e9d9b073f oox: Preserve table style.
Table style is a property that defines a set of background and line
attributes for cells. These attributes depend on theme settings (e.g.
theme colors).

We added a grabbag to the table object to save the table style name.
We detect that name on export and write it back to the document.

Finally, modified an existing unit test to check this attribute too.

TODO: To get the table style working properly after a roundtrip, we
must preserve it and also check that its values are not being
overwritten by different cell or table properties.

Change-Id: Id0e022a389561960c21ab874db33649499735024
2014-04-03 09:59:18 +02:00
a3efbb5d33 oox: Preserve cell theme color.
When some background color is set to a table cell, it is stored in the
cell properties tag <tcPr> like this:

  <w:shd w:fill="ECD2B6" w:color="auto"
         w:themeFill="accent6" w:themeFillTint="66" w:val="clear"/>

The theme-related attributes in w:shd were not being preserved. To
fix this I added an InteropGrabBag to the cell properties object,
which is filled with the attributes of w:shd to be checked on export.

The exporter checks if the cell color is still the original color that
was imported from the file, if it is not it means the user has
manually changed it during the edition and the new color is written
instead.

Finally, added a unit test for theme attributes on tables.

Change-Id: Ica8091b5eb4075e51912a255650a1d9d64f5767a
2014-04-03 09:59:17 +02:00
37aeda6be1 Eliminate some doxygen warnings in offapi doc
Change-Id: I9fc1053db98dd0aa90f6c9fb863dc3fdfa3cffe6
2014-03-20 22:12:58 -05:00
41eabf7b50 Eliminate some doxygen warnings in offapi doc
Change-Id: Ibe9be186f49554deb3774e0c70de0e55c19b2f34
2014-03-20 21:54:43 -05:00
402fffa1b4 Add dash-dot and dash-dot-dot line styles.
We need these for Excel interop.

Change-Id: I91450c1d205f28636edfb4392aa6ae5091b1d7b7
2014-03-19 00:28:16 -04:00
66db6dd2be typo: mappong -> mapping
Change-Id: I9c1644afa687ecde47271bbe9bfc8a51fe541cb5
2014-03-13 16:36:22 +01:00
e94d87d326 Related: #i124397# - [API] Add since tag to Wizard API IDL files
(cherry picked from commit f72b30998429ded67cdea0d002b9d0227f4438f6)

Conflicts:
	offapi/com/sun/star/ui/dialogs/WizardButton.idl
	offapi/com/sun/star/ui/dialogs/WizardTravelType.idl
	offapi/com/sun/star/ui/dialogs/XWizardController.idl
	offapi/com/sun/star/ui/dialogs/XWizardPage.idl

Change-Id: If651451b86829c7f066272e9362e3943f56cbf34
2014-03-11 09:35:19 +00:00
b8183958e6 fdo#60698: Split out slideshow code from animations
Also remove the TargetPropertiesCreator service since just slideshow uses this.

Change-Id: I80816f6225b7bd9fb18f48e69eb5dfd6709b6e56
2014-03-10 09:15:54 +01:00
1e9993be10 don't hardcode property mapping, read them from chart2::XChartType
Change-Id: I7889dbddab603d7650d58a04f53e7c5fe38fcce2
2014-03-09 19:27:49 +01:00
df4db631c5 Do not display heading in the IDL short description
(cherry picked from commit 8242e5eed90db471b5dbe37a6bf03e96988ec26d)
2014-03-09 17:08:16 +00:00
a842c6e7b3 Related: #i124384# Add since tag to Undo API IDL files
(cherry picked from commit e2fb6101543888977e882596ae64d854f1b09cb5)

Change-Id: I6ab35082503b506bd5d61af0b1ed67c662100716
2014-03-09 16:58:07 +00:00
66882c88a2 Fix UNO API of vertical content alignment.
This property can applied just for text frames, not others
which can have base frame properties.

Change-Id: I551a2e17bb42855d3e948c7fc672ec5e3a451c55
2014-03-06 20:03:41 +01:00
2c62596cf2 fdo#75260: Correctly draw double lines for both Writer and Calc.
Fix all sorts of incorrect double line handling in drawinglayer in order to
draw thick-thin double line types correctly.  Also change handling of border
lines in writer tables. There are still some outstanding issues but it's
much better than how it was before.

Also realized that Word and Excel handle simple thin double lines differently;
Word varies widths of all of the lines and the gap whereas Excel only has one
fixed size for its double line.  For this reason I decided to add a separate
double line type (DOUBLE_THIN) to handle Excel's double line.

Change-Id: Iaaa353b6e4f998b524262bea59260b4333e0cdb4
2014-03-04 22:02:37 -05:00
50b1dce863 Typo: (S/s)caleable -> (S/s)calable
Change-Id: Ia10f8f36395c7f69dca297efc01c1061ef61ed6e
2014-02-26 20:13:14 +01:00
91ff31b6f7 Remove visual noise from offapi
Change-Id: I3a1064805b686cff932a766aab11ff3b563b5e2e
Reviewed-on: https://gerrit.libreoffice.org/8286
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26 09:55:18 -06:00
43d7f4e364 offapi: document the 4 new properties which are no longer read-only
Change-Id: Ia2844af91159bf4a512fcb70883fc6a1eddfce35
2014-02-24 12:16:14 +01:00
09f9a79b11 [API CHANGE] fix endCDATA to allow throwing css::xml::sax::SAXException
coverity#1158397 Uncaught exception

Change-Id: Iabf0b1f0500cb4218d8cb3aff372777471e8f287
2014-02-21 15:30:26 +00:00
c05140897e Update documentation of createSystemChild().
Change-Id: I96e9b5c65dd9c3506dd804773652023e2cd995ab
2014-02-13 15:24:58 +01:00
ce02519c5c Introduce com.sun.star.frame.theDesktop singleton.
Change-Id: I3d269609119149e289652f6bc106e6bd9061672d
2014-02-13 11:26:33 +01:00
682ab83252 drawingML export\import: cropping of shape's fill texture
In Writer shapes had no cropping property so far. With this
commit this is introduced as a FillProperty and has the same
type as the cropping used for pictures
(Picture context menu > Picture > Crop).

Layout and UI will be an other step. On the UI it would be placed
on the Shape context menu -> Area, when Bitmap is selected as fill type.

Note: In case of picture/graphic, cropping property is imported from
and exported to a:srcRect instead of a:fillRect.

Change-Id: Idc1ed2d40cb20b6992e94f14e7e4d853e1f55d02
2014-02-12 13:20:31 +01:00
1a12777f46 Export MailMerge cancel functionality via UNO.
If you start a mail merge jobs via UNO, there is no way to cancel
it. But the functionality is already implemented and used by the
LO internal mail merge dialogs.

This patch adds an optional XCancellable interface to the MailMerge
service and implements it in the SwXMailMerge class.

As the XJob::execute function already uses the SolarMutex to
prevent parallel runs, XCancellable::cancel can be implemented by
storing the SwNewDBMgr in the private variable m_pMgr, protected by
a mutex.

The bCancel member has to be converted from a bitfield value to a
real boolean, because otherwise all bitfield values would have to
be protected by a mutex. Bitfield assignments aren't atomic as you
always have to replace at least a byte.

Change-Id: I007cc23fdf04ccfca7d3cd6180b0e17e99f53061
Reviewed-on: https://gerrit.libreoffice.org/7190
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-02-12 10:23:05 +00: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
ce5f24a6ec Improve documentation
Change-Id: I63b30b6d962820f31821787c1c220734265e1a4a
2014-02-10 15:58:39 +01:00
65f620c99a Typo: execption -> exception
Change-Id: Ib57e0cc39c27595490e29dec46cc6d33067c34b5
2014-02-10 15:58:05 +01:00
cf9d819493 New frame attribute: TextVerticalAdjust <-> RES_TEXT_VERT_ADJUST
By now this property is added for MS Word interoperability.
With it we can make DOCX import/export working.
I use this solution instead of InteropGrabBag because vertical
adjustment would be a good thing to have for text frames too.
So later it can be the first step of an enhanchement.

Change-Id: I9dcfdc8ae56ce443f0c286c51136e1d006951938
2014-02-08 02:59:50 +01:00
9bbb7ca9f7 Typo: formating -> formatting
Change-Id: If4aba89909a3ef049a756182c37d8a5d6812ae70
2014-02-06 22:41:48 +01:00
6f0e7c36e4 Typo: seam(s) -> seem(s)
Change-Id: I840d120644760b61a39ad88b4095056f0f753bb7
2014-02-06 21:22:42 +01:00
4ff873bda2 Introduce com.sun.star.ui.theWindowStateConfiguration singleton.
Change-Id: I50861ac8952d54cb1a45846ea72a2ecac4f83409
2014-02-06 12:03:28 +01:00
094f92bb78 Introduce com.sun.star.util.thePathSettings singleton.
To replace single-instance com.sun.star.util.PathSettings service,
incorrectly converted in 89b0017b22889af6a8afe28b94c06e7095dc8c6f

Keeping util::PathSettings::create in
sc/source/ui/vba/vbaapplication.cxx because for some reason
util::thePathSettings::get does not work in sc_macros_test
while testing sc/qa/extras/testdocuments/Ranges.xls.

Change-Id: I75b68ae56ac5b58f72416070dba100ab3ab70fe8
2014-02-06 12:03:25 +01:00
c1d69c0e9e fdo#35105: notify role change through a new UNO a11y event
A new UNO accessibility event called ROLE_CHANGED has been created.
It should be triggered when an accessible object changes its role and
every accessibility toolkit should use its own methods to make that
change effective.

Code to support the event in ATK has been added.

Change-Id: I132e303bdb148967231334458c3cfa369c36ec8f
Reviewed-on: https://gerrit.libreoffice.org/7853
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-05 16:50:30 +00:00
d3a19d8eb7 remove lang path substitution
it's unused internally as far as I can see and has very incomplete (and surely
some wrong values) from some sort of mid 90s Euro-centric worldview

Change-Id: Ibce9e8b76545791ab59b9e11c6ff6e1f33afcb3c
2014-02-04 19:54:31 +00:00
2bb87dd659 fdo#39944: Add DOCUMENT_* accessibility UNO roles
Added a set of UNO accessibility roles for specific kinds of
documents:
 * DOCUMENT_PRESENTATION for Impress
 * DOCUMENT_SPREADSHEET for Calc
 * DOCUMENT_TEXT for Writer

The other applications still use the existing DOCUMENT role.

These roles translates directly to ATK but in the other toolkits we
keep using the same association that DOCUMENT role had.

Change-Id: Ibac47527e5effdecb28d2314cde8558cf4fb010a
Reviewed-on: https://gerrit.libreoffice.org/7847
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2014-02-04 13:08:57 +00:00
923a3ba49a swpagerelsize: add offapi documentation
Change-Id: Ibdc495d604fb6a1c864441b8f7573b90600679c4
2014-01-30 12:16:25 +01:00
19e16083c6 Introduce com.sun.star.ui.theModuleUIConfigurationManagerSupplier singleton.
Change-Id: I7b503e5d49865c9ff287bf72eaff1995ce871790
2014-01-30 10:48:25 +01:00
b3856b0e09 Introduce com.sun.star.ui.theWindowContentFactoryManager singleton.
Change-Id: If979db945b2f5e50e146fdadafd1559530c50122
2014-01-30 10:48:24 +01:00
e9a23fd78c Introduce com.sun.star.ui.theUIElementFactoryManager singleton.
To replace single-instance com.sun.star.ui.UIElementFactoryManager
service.

Change-Id: I4262909c4396e3907d271a56696a06903168a58d
2014-01-29 11:46:10 +01:00
af1c0ef8d3 Introduce com.sun.star.frame.ControllerFactory singletons:
com.sun.star.frame.thePopupMenuControllerFactory
com.sun.star.frame.theStatusbarControllerFactory
com.sun.star.frame.theToolbarControllerFactory

To replace their single-instance service variants.

Change-Id: I00586d0d61e63f9482cb659071e88aa9cf02d5b5
2014-01-29 11:46:10 +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
ba8413d262 Introduce com.sun.star.frame.theUICommandDescription singleton.
Change-Id: Ic88cca3722d555ba48d7da8c176556fa1ff90650
2014-01-28 18:52:22 +01:00
54f606c666 Introduce com.sun.star.ui.theUICategoryDescription singleton.
Change-Id: I79a78f208b2aa5eaacbd2e349b2b5066afa1ad23
2014-01-28 18:52:22 +01:00
dd1c991bd9 Introduce com.sun.star.frame.theAutoRecovery singleton.
To replace com.sun.star.frame.AutoRecovery single-instance service,
incorrectly converted in 279859fdbc40f68d8f1649fa5b928d9de49e8d9e

Unfortunately needs a lot of changes in autorecovery.cxx.

Change-Id: Iba5188dffea3e03803236f23e0b3f343746ace90
2014-01-28 18:52:21 +01:00
ef597d80dc Introduce com.sun.star.task.theJobExecutor singleton.
To replace com.sun.star.task.JobExecutor single-instance service,
incorrectly converted in 748aa84e9808ad31c6ff6b71459525c82de10e58

[including changes by Stephan Bergmann <sbergman@redhat.com>]

Change-Id: I4cea2c63a20b5b22f6e1f822fb35fcc4d0397687
Reviewed-on: https://gerrit.libreoffice.org/7609
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-01-24 14:24:34 +00:00
62951cdd17 Introduce com.sun.star.frame.theGlobalEventBroadcaster singleton
...to supersede com.sun.star.frame.GlobalEventBroadcaster single-instance
service.

Change-Id: I74ecaadadb4c600d39979aa7c13b6389bed38fd7
2014-01-16 18:40:05 +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
77e7702250 Resolves: #i72591# fix from mouse button to mouse pointer...
in documentation of mouseMoved method

Patch By: christianjunker@gmail.com
(cherry picked from commit a66c0e11c326a072f0cb609af35d5e9d77fd3b63)

Change-Id: Ia39fc56d4459f303cd48e5654d8ff35155cceb4a
2014-01-13 11:29:47 +00:00
d1846cd8d4 fdo#72005: Add @since tag to the API documentation.
Change-Id: Ib59648f1427e3d6f662f7c4eddea66ad03817dbb
2014-01-10 12:03:42 -05:00
10840ad753 fdo#72005: Insert the border rectangle to the bottom of the stack.
This will make the border and fill shape to be drawn first, then everything
else drawn on top.

This commit may look large, but it's actually a very trivial change. The
important part is in SvxShapeGroup where new methods have been added to allow
different insertion positions for the new shapes being inserted, and have
the chart2 code make use of it to insert the fill rectangle to the bottom
rather than to the top.

Change-Id: I999160daf6fc9ce3d7e641f57b1998543df1cc4e
2014-01-10 11:42:11 -05:00