Commit Graph

1166 Commits

Author SHA1 Message Date
e0a2be865f sw: add RowInteropGrabBag UNO property for table rows
Change-Id: I59e0d24e04ebabdaa2fdb23fbc47c649d4872853
2014-08-05 15:09:31 +02:00
da1425650b add missing modelines to idl files
Change-Id: If52651c70ee659c83ef127da4fe5e266cfe7eec2
2014-04-24 11:58:14 +02:00
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
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
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
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
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
dae9b7060d Drop duplicate #include
Change-Id: Ib8969d5cd4898b81a5dcd90dc313abd28adfe052
2013-12-10 15:52:49 +09:00
8738ded7bb fdo#69636 VML import: handle mso-layout-flow-alt shape prop for sw frames
Writer core doesn't support this, and this has been a problem for table
cells as well. There the workaround we're using for quite a while is to
do the rotation at a text portion level instead, which results in
reasonable layout for simple cases. Do the same here.

One additional complexity is that the API between oox and writerfilter
is a single UNO shape, we get this property in oox, and we have to
handle it in writerfilter, when the text frame is already attached to
some text. Kill this problem by adding a FrameInteropGrabBag for sw text
frames: it's useful anyway, and then we can pass around this property
inside the grab bag.

Change-Id: Idb5ec83b5cbdde8f29d15b2cebfad24226bb6507
2013-09-26 12:43:32 +02:00
7f436c1fd3 typo fixes in comments
Change-Id: Iaadec33715f8e0e0c6595c5e684606905274fdab
2013-09-26 11:47:45 +02:00
2a01c49f76 sw: add ShadowTransparence UNO property for frames
drawinglayer has a separate property for the shadow transparency, too.
One more step towards Writer frames have the same UNO API as
drawinglayer shapes.

Change-Id: I84617502e9beb9e077c783ee8eb771d79c6ee666
2013-08-24 12:45:15 +02:00
0cdac15aa7 offapi: fix doxygen warning in text::ViewSettings
Change-Id: I3850cc7a69aad90c26d3b39bfdf68a134cd67a83
2013-08-05 11:22:10 +02:00
03993b47c5 targetted clean of redundant header piece from 62badf3828
Change-Id: Ic1240114d667fb7797afae4847427cc889f3cb48
2013-07-26 14:18:52 +01:00
9a556a1f35 Fix some idl descriptions
Change-Id: I983ba19bebceb4f38ca51f8c60204c91b78bc965
2013-07-05 07:26:45 +02:00
704292996a Fix some idl descriptions
Change-Id: Icd8aedbe66943bb06720af3fb572f7acce96c05e
2013-06-29 07:58:10 +02:00
6005dd5366 Resolves: #i25945# Allow disabling scrollbar tips by API and configuration
(cherry picked from commit a2bbabbe141de1303ebf052e5c22b6e77387785e)

Conflicts:
	offapi/com/sun/star/text/ViewSettings.idl
	officecfg/registry/schema/org/openoffice/Office/Writer.xcs
	sw/source/ui/config/usrpref.cxx
	sw/source/ui/uiview/viewport.cxx

Change-Id: I939ec22527a0b654de5f379e781c24c0a3088739
2013-06-07 12:04:44 +01:00
e98c03ed65 Resolves: #i87780# Document css::text::AutoTextGroup properties
(cherry picked from commit cdc1af8302d0998f98776ec103f1402ee9a3d6f4)

Conflicts:
	offapi/com/sun/star/text/AutoTextGroup.idl

Change-Id: I543e5c34973e39c4f5fe95388411db2967f7ced2
2013-06-07 11:01:47 +01:00
bcfcd0eb56 *api: fix up merge conflict damage
Change-Id: I3a1281c756305f16d193210839ca6b826662698e
2013-06-04 12:01:09 +02:00
392706b5f7 *api: fix loads of badly documented parameters
Change-Id: Ifcfdcc1aee5f45745ab17d83f69c2cf293b58196
2013-06-04 12:01:08 +02:00
ed993aafc9 *api: doxygen complains about lonely "." being list marker
Change-Id: Icaed7afe8f2463ffc16421642ff2e073fb4b7cc1
2013-06-04 12:01:08 +02:00
44404b7a6c *api: fix all unknown commands
Change-Id: Ied26925485b2be649cabafff338e6d78c7bd17b3
2013-06-04 12:01:07 +02:00
73d568408a *api: convert <listing> and @example
<listing> is called @code / @endcode in doxygen.
@example requires a file name in doxygen.
Also adapt various silly examples that use tools String in C++ or manual
syntax highlighting in Java etc.

Change-Id: I23cff1b688001f438526a6a1364cc5f754b504f7
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
ae7595a755 *api: convert more <method>
sed -i "s,<method>\([^<]\+\)</method>,\1,g"

Change-Id: Ic3eef0c03e512f7d607a87c58f9f01626f5a57a1
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
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
4e70bdec96 *api: convert <const scope="foo">
sed -i 's,<const scope="\([^"]*\)">\([^<]\+\)</const>,\1::\2,g'

Change-Id: I964acc2725e8a6680f5bd8412014e5660510749e
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
c43ffd3d44 Resolves: #i121734# extend XTextMarkup to support ranges
Patch by: Kai Labusch
Review by: arielch, jsc
(cherry picked from commit de75173372c022c3004643d8978f76662261130b)

Conflicts:
	offapi/com/sun/star/text/XTextMarkup.idl
	sw/inc/unoflatpara.hxx
	sw/inc/unotextmarkup.hxx
	sw/source/core/unocore/unoflatpara.cxx

Change-Id: I2cfa15f08a893feb8880dc729b76cff3d29ce4eb
2013-05-23 11:55:27 +01:00
c5b604b952 Resolves: #i121732# add new interface XMarkingAccess
Patch by: Kai Labusch
Review by: arielch, jsc
(cherry picked from commit c1fb6ce135ad39299164aeecebfa746db210d0e3)

Conflicts:
	offapi/com/sun/star/text/makefile.mk
	sw/inc/unotextcursor.hxx
	sw/source/core/unocore/unoobj.cxx

Change-Id: I68029b28908a57c4ed39d798269b5a8786972be0
2013-05-23 11:55:26 +01:00
25c30d0a27 Resolves: #i85426# - Document css::text::XAutoTextContainer paths handling
(cherry picked from commit 9314f61d6111280f2a02b09f9c2c0a7506cdbc79)

Conflicts:
	offapi/com/sun/star/text/XAutoTextContainer.idl

Change-Id: If775043efb6dae9832cbfd347f206278f3abb44c
2013-05-22 20:39:24 +01:00
74970948bb Resolves: #i120300# Add new property "ShowContentTips"...
in com.sun.star.text.ViewSettings

(cherry picked from commit 8c5cd0cbad918949f898d7fccb4f1a00a8a9f5f5)

Conflicts:
	offapi/com/sun/star/text/ViewSettings.idl
	officecfg/registry/schema/org/openoffice/Office/Writer.xcs
	sfx2/source/appl/newhelp.cxx
	sw/source/ui/docvw/edtwin2.cxx
	sw/source/ui/uno/unomod.cxx

Change-Id: Ia03bea5c7a81efbf1f3f40e8299168887140fe40
2013-05-18 14:26:15 +01:00
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
ff3d85dbd7 API CHANGE: GetExpression Value is read-only, NumberingType an illusion
The implementation in Writer has Value property read-only since initial
CVS import, and NumberingType property never existed, so adapt
com.sun.star.text.textfield.GetExpression to implementation.

Thanks to the really cool David Ostrovsky for finding these.

Change-Id: I3b12a8103d0d6de7dbf644f30db3f192b0331f0a
SERVICE: /UCR/com/sun/star/text/textfield/GetExpression
  SERVICE1 contains 1 more properties as SERVICE2
  incompatible change: Field 3 ('NumberingType') of r1 is not longer a property of this SERVICE in r2
  incompatible change: Field 6 ('Value') of r1 is not longer a property of this SERVICE in r2
  incompatible change: Field 5 ('Value') of r2 is a new property compared to this SERVICE in r1 and is not 'optional'
2013-04-03 23:34:34 +02:00
70e7bd63ad fdo#46808, Convert text::AutoTextContainer to new style
Change-Id: Ia33419c4d8cf633b572627edf57c926099d698e5
2013-03-20 07:32:48 +02:00
cd360473ae offapi: reformat SetExpression.idl
Change-Id: I6119582d0809c12a273b15ea021758f8d3a6e196
2013-03-19 13:29:33 +01:00
3b2cbfaa56 API CHANGE: SetExpression VariableName is read-only
The implementation in Writer has been read-only since initial CVS
import, so adapt com.sun.star.text.textfield.SetExpression to
implementation.

Change-Id: I70cdd5d0a44cb86426f533c00f86874e8dde8b87
SERVICE: /UCR/com/sun/star/text/textfield/SetExpression
 incompatible change: Field 11 ('VariableName') of r1 is not longer a
 property of this SERVICE in r2
 incompatible change: Field 11 ('VariableName') of r2 is a new
 property compared to this SERVICE in r1 and is not 'optional'
2013-03-19 13:29:32 +01:00
b6b49c0f6b cleanup autodoc output
Change-Id: I5c25084c8a6e13416cea67c907de276b73c2e955
2013-03-18 21:57:01 -04:00
d1449a9b99 Bin pointless "DocMerge" comment lines
Change-Id: I8eb2116b39929770f00e30d5ab9ca2c28c988e35
2013-03-13 10:36:21 +02:00
e70c068ba4 fdo#46808, Convert text:: and drawing:: ModuleDispatcher service to new style
The services already existing, just needed to create the IDL files

Change-Id: Ifedd46722ba0bae2985e82d18827c61c1d12cd62
2013-03-07 08:23:42 +02:00