Commit Graph

11563 Commits

Author SHA1 Message Date
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
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
b84bffc86a *api: convert remaining elements with "scope" attribute
Apparently <module> is yet another imaginary thing autodoc doesn't know.

Change-Id: I25382f8c2ae024d29ae20ab3b85740e9d6a9e9da
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
be7f280ea7 *api: convert <atom>
sed -i 's,<atom>\([^<]\+\)</atom>,`\1`,g'

Change-Id: I530fe998b0c422e83c4324807d42700126bc9883
2013-06-04 12:01:04 +02:00
ce36de949d *api: convert more <method scope="foo">
sed -i 's,<method scope="\([^"]*\)">\([^<]\+\)</method>,\1::\2,g'

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

Change-Id: I7ceb805d67a79c297fb5f044a8fb226ec2fb366c
2013-06-04 12:01:03 +02:00
4718949d41 *api: convert <method>
sed -i "s,<method>\([a-z][^<]\+\)</method>,\1,g"

Change-Id: I9483d63cce4afd168d47a465b367aed3da45d64b
2013-06-04 12:01:03 +02:00
b235412d8f *api: convert <method>foo()</method>
What is sad about this is that autodoc doesn't even support <method>.

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

Change-Id: I702ef71423ced1d5195f2e0535e73b1bb4d3f6f2
2013-06-04 12:01:03 +02:00
a93783c42d *api: convert <arg>
... which does not seem to do anything anyway.

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

Change-Id: I90bcf81ea046bc88297ed8eadc560ad31d19830b
2013-06-04 12:01:02 +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
dbb4a2511c XUnoControlDialog only made it into 4.2
Change-Id: I121f0d3d646ce434ea1451a94a5c911005dc21f9
2013-06-04 10:32:44 +02:00
3505f0e46c Revert "fdo#46808, Convert oox::PowerPointExport service to new style"
This reverts commit 02021163dbbcc8904da0b2138c8b53684dcc8ab4.  The filter
appears to be split in two (com.sun.star.comp.oox.ppt.PowerPointImport
implementation oox::ppt::PowerPointImport from include/oox/ppt/pptimport.hxx for
im-/export, for export calling com.sun.star.comp.Impress.oox.PowerPointExport
implementation PowerPointExport from sd/source/filter/eppt/epptooxml.hxx) for no
good reason, so the com.sun.star.oox.PowerPointExport new-style service is
supporting a hack that should rather be cleaned up.

Conflicts:
	offapi/UnoApi_offapi.mk

Change-Id: I875192a68a8e3458dbfd74b4981a6a2e86ce44d7
2013-06-03 15:33:39 +02:00
1f79707438 fdo#46808, Convert office::Quickstart service to new style
Service already existed, just needed an IDL file.

Change-Id: Ief5563e53c7331b65dd429079180c4eed2f2c071
2013-06-03 10:00:01 +02:00
d7fa9ca787 fdo#46808, Convert FrameLoaderFactory and ContentHandlerFactory to new style
by creating a common service interface for them to implement

Change-Id: Icec85c55ed0ac13a6c785fdad6b0cd9c11878ba5
2013-06-03 10:00:00 +02:00
0f627e06c9 fdo#46808, Convert form::TabOrderDialog service to new style
The service already existed, it just needed an IDL file.

Change-Id: I10219da7292db5e746a89028ddc4fabb069ac388
2013-06-03 10:00:00 +02:00
30dd9b2ff5 fdo#46808, Convert SfxFrameLoader service to new style
Change-Id: I6cdef298d69fef388e79b241abbe3a9a03d61492
2013-06-03 09:59:59 +02:00
a8a35e54f5 fdo#46808, Convert frame::AppDispatchProvider to new style
The service already existed, it just needed an IDL file.

Change-Id: I9553c8e7c4922f2106bc13034e0cc35669b28b7e
2013-06-03 09:59:59 +02:00
8cc9383fe7 Replace invalid doxygen commands: thrown -> throws
Change-Id: I9e9f513afe37ccf34f2d5762a27b4a728fd24f36
Reviewed-on: https://gerrit.libreoffice.org/4136
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-03 06:58:36 +00:00
e66be44b69 sidebar: Restrict the minimal width of the sidebar.
Change-Id: I99051830c4393b420125332e787c3abdc5a6aa61
2013-06-02 04:54:55 +02:00
5658600001 No need for two Excel filter services
The reason to have both export-only XclExpXmlStream
("com.sun.star.comp.oox.ExcelFilterExport") and im-/export oox::xls::ExcelFilter
("com.sun.star.comp.oox.xls.ExcelFilter"), where the latter uses the former to
implement export, appears to be historic.

Get rid of the former service, but keep it as an independent C++ class for now
(still also deriving from XmlFilterBase)---this can likely be cleaned up by
somebdoy versed in those XmlFilterBase details.

With the last use (in oox::xls::ExcelFilter, to instantiate XclExpXmlStream) of
the recently introduced com.sun.star.oox.ExcelFilterExport new-style service
gone now, remove that service again.

Change-Id: Id3adacd293cbe4390242827615f074d4bbe9d85a
2013-05-31 18:11:30 +02:00
d0508f79c1 css::frame::XStatusbarController: add missing interface
Added ::com::sun::lang::XComponent. IDL documentation taken from
http://wiki.openoffice.org/wiki/Framework/Tutorial/Statusbar_Controller#Status_bar_controller_service
(cherry picked from commit f3dc398e002926792a0c6160691d46eb75cad236)

Conflicts:
	framework/inc/uielement/statusbarmanager.hxx
	framework/source/uielement/statusbarmanager.cxx

Change-Id: Id2d768250632b12b834602a33a4e9923cec9bd3f
2013-05-31 12:40:08 +02:00
69e697deef Improve DialogProvider service ctor
...recently introduced with c75a46fbd0ba4daf857fcd7d70badeed5aae8e28 "fdo#46808,
use DialogProvider service constructor."  The general theme of this additional
ctor appears to be more about "Scripting" than "Listener," and the DialogLib
argument is actually expected to be of XNameContainer type.

Change-Id: Iea7d906d9b2ffc3b3ee5b2cbfaf7c58191037c9b
2013-05-29 17:35:06 +02:00
8c3657658a Tweak comments
(Preventing documentation of macros via @cond ... @endcond is apparently at
least broken in Doxygen 1.8.3 and working in Doxygen 1.8.4.)

Change-Id: I2ee582119dba2c3d27db5298786d3076921af46d
2013-05-29 15:03:01 +02:00
8f3cec9d7a fdo#46808, Convert ui:*AcceleratorConfiguration to new style
The services already existed, they just needed IDL files.

API CHANGE:
   The return type of XUIConfigurationManager#getShortcutManager()
   is now XAcceleratorConfiguration instead of XInterface.
   This should not be a problem because XUIConfigurationManager is
   unpublished and the client code was relying on the service
   returning that type.

Change-Id: I399fe35de3394b02a4166b75eb7ff93b28be8bef
2013-05-28 08:10:23 +02:00
95ec16b513 fdo#46808, Convert frame::LayoutManager service to new sty;e
Change-Id: I46c3950aee336548d6e0acc6a7d1da655c158175
2013-05-28 08:10:23 +02:00
1d1825db86 fdo#46808, Convert awt::UnoControlDialog to new style
Change-Id: I9a5256c8dbacda60167403b4e26900588943a9b2
2013-05-28 08:10:22 +02:00
e36f83d81c Revert "fdo#46808, Convert awt::UnoControlDialogModel to new style"
This reverts commit 6c61b20a8d4a6dcac28801cde82a211fb7e30654.  As discussed at
<http://lists.freedesktop.org/archives/libreoffice/2013-May/052449.html> "Re:
fdo#46808, Convert awt::UnoControlDialogModel to new style problem" why the odd
change in 2e2a4827ce6708f0e8677dba9cc92e1479a44086 "scripting: get
CreateUnoDialog() work again" appears to fix things again:

  The problem is that the implementation of the css.awt.UnoControlDialogModel
  involves UNO aggregation
  (IMPL_CREATE_INSTANCE_WITH_GEOMETRY(UnoControlDialogModel) in
  toolkit/soruce/helper/registerservices.cxx creating a
  OGeometryControlModel<UnoControlDialogModel> instance that aggregates a
  UnoControlDialogModel instance).  That means that queryInterface can return a
  reference to something that is technically a different object, and that's
  what's happening here, and explains why calling setPropertyValue in two
  different ways on what logically appears to be a single object can end up
  calling two different implementations (of two different physical objects).
  (UNO aggregation is known to be broken and should not be used.  Nevertheless,
  there's still code that does---code that is a horrible mess and hard to clean
  up.)

  That all this worked as intended in the past is just sheer luck, but any
  way of substantially touching it is asking for trouble.  I'm going to
  revert 6c61b20a8d4a6dcac28801cde82a211fb7e30654 again.

I wasn't able to revert without also reverting
be50ad28f5bbdaeff527f646481ce263843c2401 "fdo#46808, Convert
awt::XUnoControlDialog to new style," as the two were tightly dependant.  Also
reverts all the follow-up fixes cb4b6dde8fda2a5848e11063028bf44d72f85431
"-Werror,-Wuninitialized" (sans the const-ness fix in
UpdateHandler::insertControlModel), 697a007c61b9cabceb9767fad87cd5822b300452
"Fix exception specifications," 2ce6828bbbf6ba181bb2276adeec279e74151ef6 "fix
awt::UnoControlModelDialog crash," and 2e2a4827ce6708f0e8677dba9cc92e1479a44086
"scripting: get CreateUnoDialog() work again."

Conflicts:
	basctl/source/dlged/dlged.cxx
	filter/source/t602/t602filter.cxx
	xmlscript/test/imexp.cxx

Change-Id: I5d133468062f3ca36300db52fbd699be1ac72998
2013-05-25 11:45:47 +02:00
2ce6828bbb fix awt::UnoControlModelDialog crash
...in commit 6c61b20a8d4a6dcac28801cde82a211fb7e30654,
    "Convert awt::UnoControlDialogModel to new style"
I added an attribute "ResourceResolver" because some of the client
code was setting it using the property interface.

It turns out that this was a bad idea because the "ResourceResolver"
property is doing some very interesting stuff, so revert that part
of the change.

Change-Id: I62b890e60164e005867ced49c3e407a49ed09441
Reviewed-on: https://gerrit.libreoffice.org/4013
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-05-23 15:10:56 +00:00
59cc160f34 Resolves: #i120858# Change "Farsi" with "Persian"
Changes done on UI code and IDL, not in comments

(cherry picked from commit fa88b1f1e227ad7530f6595d802a6ed1f5d54cb4)

Conflicts:
	scp2/source/ooo/module_langpack.ulf
	wizards/com/sun/star/wizards/letter/LocaleCodes.java

Change-Id: I9f66f697789965af79c1ea6db08c8e43f099ddf8
2013-05-23 15:19:11 +01: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
5e059c1ee5 Resolves: #i121731# extend XSmartTagAction->getActionCount...
with additional parameter to increase flexibility of context menus

Patch by: Kai Labusch
Review by: arielch, jsc
(cherry picked from commit 5898e201ae8bbc1203bf24629a389f8f3b3e02ee)

Conflicts:
	svx/source/mnuctrls/SmartTagCtl.cxx

Change-Id: I91d50b94657c29db289864863ee752d4ce45db6c
2013-05-23 11:55:26 +01:00
1959113eac Resolves: #i121730# add optional interface XRangeBasedSmartTagRecognizer
for SmartTags

Patch by: Kai Labusch
Review by: arielch, jsc
(cherry picked from commit a64c066b02924371f486688df01b6881bcd0da8b)

Conflicts:
	offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl
	offapi/com/sun/star/smarttags/makefile.mk
	svx/inc/svx/SmartTagMgr.hxx
	svx/source/smarttags/SmartTagMgr.cxx
	sw/source/core/txtnode/txtedt.cxx

Change-Id: I11f528b2c1a068d0b1db1e76c2f889c0632ab972
2013-05-23 11:55:26 +01: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
a02388b900 Fix css.ucb.Content documentation
Make it more readable by adding a table

(cherry picked from commit e7b7b284aca5f3936ab1a5902652af41ea849093)

Conflicts:
	offapi/com/sun/star/ucb/Content.idl

Change-Id: I31d3fc46993cad81d57ba15f77b8fbc797e4c541
2013-05-23 09:33:43 +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