Commit Graph

177 Commits

Author SHA1 Message Date
Thomas Arnhold
aaae18cc5f correct indentation 2014-04-14 12:31:48 +02:00
Thomas Arnhold
63dc7b1ce8 SCROLLABLEFRAME never defined 2014-04-14 12:31:47 +02:00
Stephan Bergmann
362d4f0cd4 Explicitly mark overriding destructors as "virtual"
It appears that the C++ standard allows overriding destructors to be marked
"override," but at least some MSVC versions complain about it, so at least make
sure such destructors are explicitly marked "virtual."

Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01 19:22:54 +02:00
Stephan Bergmann
70cc2b191b First batch of adding SAL_OVERRRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-26 16:39:26 +01:00
Stephan Bergmann
a463234e88 Remove unused VCLXTabPageModel
Unused since 265043a935 "tabcontrol: #i113362#
impl tabcontrol in awt" and not even built since
0a966b904b "tabcontrol: fix some compile errors."

Change-Id: Ida6fde85207288a0b4e09cee767bd004f9384d99
2014-02-27 10:24:53 +01:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Matúš Kukan
c47496fdf9 Add config_libraries.h definitions to get library names easily.
Works for libmerged too, so we can get rid of LIBO_MERGELIBS.
And remove few more #defines in vcl.

It's generated by gbuild, so probably abusing config_host directory.
Open to improvements.

Change-Id: I87ab109bf109e42751766011daf076e9cdf8f5ee
2014-02-25 09:05:09 +01:00
Stephan Bergmann
146c7c5c89 toolkit: sal_Bool -> bool
Change-Id: I5153c4413004d1b50cc503b3e70657bc831a5793
2014-02-24 11:13:42 +01:00
Stephan Bergmann
e8f8f24c84 vcl: sal_Bool -> bool
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-21 12:53:51 +01:00
Matúš Kukan
e24605a72f Include boost/ptr_container/ptr_vector.hpp at the beginning again.
This might fix
"workdir/UnpackedTarball/boost/boost/ptr_container/detail/static_move_ptr.hpp:154:46:
error: macro "check" passed 2 arguments, but takes just 1" ?

Change-Id: Ie8504149f7d2853a631b47186f5ca46cdf96b79e
2014-01-24 16:41:22 +01:00
Matúš Kukan
b667caafd7 Remove unneeded include to hopefully fix the tinderboxes.
Change-Id: I991bb1049556d3d19726ecd36b8e1aad7207814c
2014-01-24 12:33:36 +01:00
Matúš Kukan
3961bcb5f4 tk: Constructor feature for VCLXToolkit.
Change-Id: I1575ea1b14342a5a64f13d39e409ed33151bcdf9
2014-01-24 12:21:21 +01:00
Marcos Paulo de Souza
ee5661ecd3 fdo#54938: Adapt supportsService implementations..
to cppu::supportsService

Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14
Reviewed-on: https://gerrit.libreoffice.org/6370
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-22 10:28:10 +00:00
David Ostrovsky
74403b790a VCLXToolkit::reschedule(): lock SolarMutex
... otherwise Yield() will return with the SolarMutex not locked,
triggering the assertion in ImplYield().

Change-Id: I6e44ce95517702ff5f316f7ea1df3aefc31588f6
2013-10-04 14:46:25 +02:00
Noel Grandin
5eab9486c3 convert TOOLKIT module from String to OUString
Change-Id: Ibc5ffbffa0ddc6a80c3a95406b324cda09f7c9e1
2013-09-17 09:05:34 +02:00
Thomas Arnhold
3e55e00662 String to OUString
This removes nearly all ToLowerAscii() calls.

Conflicts:
	linguistic/source/convdic.cxx
	linguistic/source/convdiclist.cxx
	linguistic/source/dlistimp.cxx
	sc/source/filter/html/htmlexp.cxx

Change-Id: Iddcaacfb7383e1df3d2f13751a3c788eba953fdd
Reviewed-on: https://gerrit.libreoffice.org/5895
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2013-09-13 11:30:48 +00:00
Takeshi Abe
7673a08e72 sal_Bool to bool
Change-Id: I63a05b7ba0954dbc18932de9cbdea4f0c1a18422
2013-08-28 04:55:33 +09:00
Caolán McNamara
f00cd93a66 callcatcher: update unused code, esp unused Resource based ctor
e.g. no ImageRadioButton is now loaded from any res/rsc file, so
that ctor and associated code paths can be stripped out

Change-Id: Ic4cf19d45adb7c734f150e0b89eef193157a74a7
2013-08-27 09:58:35 +01:00
Noel Grandin
99d8ce56ec fdo#66762 - Other: com.sun.star.awt.DisplayAccess removed
API_CHANGE:

I removed the undocumented internal API
  "com.sun.star.awt.DisplayAccess"
in commit dde234b695
  "fdo#46808, remove awt::DisplayAccess service."

However, it appears someone was actually using this.

Now, at the same time, we have a method in XToolkit, getWorkArea(),
which looks like it was designed to return this exact information,
but which has been returning zero for as far back as our commit
history goes.

So, to kill two birds with one stone, this commit changes
getWorkArea() to return the information the customer needs, to wit,
the size and position of the primary display.

Change-Id: I76300bac604e9e4b7be95b0872a7f95cb6781903
Reviewed-on: https://gerrit.libreoffice.org/4919
Reviewed-by: Michael Meeks <michael.meeks@suse.com>
Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-07-18 09:00:11 +00:00
Takeshi Abe
029c630a66 Mark as const
Change-Id: I59ac01eacf31061093b83ab3057963de7ea4a2e7
2013-07-17 16:44:10 +09:00
Ariel Constenla-Haile
805c6101b3 Resolves: #i121544# - Clean-up MessageBox API
(cherry picked from commit 27cfcb1e9d103b3e49c1263b1fa59fee8b187b21)

Conflicts:
	desktop/test/deployment/active/active_native.cxx
	desktop/test/deployment/passive/Dispatch.java
	desktop/test/deployment/passive/passive_native.cxx
	odk/examples/DevelopersGuide/Charts/SelectionChangeListener.java
	odk/examples/DevelopersGuide/GUI/MessageBox.java
	odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx
	odk/examples/java/Inspector/Inspector.java
	offapi/com/sun/star/awt/MessageBoxButtons.idl
	offapi/com/sun/star/awt/MessageBoxResults.idl
	offapi/com/sun/star/awt/XMessageBox.idl
	offapi/com/sun/star/awt/XMessageBoxFactory.idl
	offapi/com/sun/star/awt/makefile.mk
	offapi/type_reference/types.rdb
	sdext/source/minimizer/unodialog.cxx
	toolkit/inc/toolkit/awt/vclxtoolkit.hxx
	toolkit/source/awt/vclxtoolkit.cxx
	toolkit/source/layout/core/root.cxx

Change-Id: I170b494fb96362bb25ba8d0f2518d4e46934dd67

Related: #i121544# - Clean-up MessageBox API (post fix)

(cherry picked from commit c9f7a06e7798bcd5253844c49d210ea9345bd4b8)

Conflicts:
	sw/inc/pch/precompiled_sw.hxx

Change-Id: Ib8b1e7aaac769feff5206fcdd238c487a6130dd1

Related: #i121544# - Fix header guards

Found by: Tsutomu Uchino

(cherry picked from commit 82194a19ff4f29c8451c8e6ab6fe4f1b9d08df27)

Conflicts:
	offapi/com/sun/star/awt/MessageBoxType.idl

Change-Id: Ide8ba697fbc80395d2f30a068a0820a6afa3332f
2013-07-11 13:16:58 +01:00
Stephan Bergmann
73cdc655fb fdo#66718: Demote SystemClipboard.createUnix to an internal hack
...see <https://bugs.freedesktop.org/show_bug.cgi?id=66718#c8> for details.

Change-Id: I6e786ce21f41e51b480d0113ac0bd6a0013f4fb1
2013-07-11 10:24:13 +02:00
Ariel Constenla-Haile
303096c50c Related: #i121514# Remove deprecated UnoControlSimpleAnimation
(cherry picked from commit 514bb6777e001d02dbd9be63fc7a6187560aad63)

Conflicts:
	offapi/com/sun/star/awt/UnoControlSimpleAnimation.idl
	offapi/com/sun/star/awt/UnoControlSimpleAnimationModel.idl
	offapi/com/sun/star/awt/XSimpleAnimation.idl
	offapi/com/sun/star/awt/makefile.mk
	offapi/type_reference/typelibrary_history.txt
	offapi/type_reference/types.rdb
	toolkit/inc/toolkit/helper/servicenames.hxx
	toolkit/source/awt/vclxtoolkit.cxx
	toolkit/source/awt/xsimpleanimation.cxx
	toolkit/source/controls/tksimpleanimation.cxx
	toolkit/source/helper/registerservices.cxx
	toolkit/source/helper/servicenames.cxx
	toolkit/util/toolkit.xml

Change-Id: If7f8de62713e28434e28975026cf8e5c66c831aa
2013-07-05 10:12:26 +01:00
Ariel Constenla-Haile
680608b15d Related: #i121513# Remove deprecated UnoControlThrobberModel
(cherry picked from commit 5569d97f06a0299e41b91ca248bf7eaa038b1f21)

Conflicts:
	icon-themes/human/toolkit/source/awt/spinner03-grey_01.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_02.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_03.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_04.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_05.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_06.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_07.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_08.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_09.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_10.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_11.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_12.png
	offapi/com/sun/star/awt/UnoControlThrobber.idl
	offapi/com/sun/star/awt/UnoControlThrobberModel.idl
	offapi/com/sun/star/awt/XThrobber.idl
	offapi/com/sun/star/awt/makefile.mk
	offapi/type_reference/typelibrary_history.txt
	offapi/type_reference/types.rdb
	rat-excludes
	swext/mediawiki/help/component.txt
	swext/mediawiki/src/com/sun/star/wiki/WikiDialog.java
	swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
	swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java
	swext/mediawiki/src/description.xml
	toolkit/AllLangResTarget_tk.mk
	toolkit/inc/toolkit/helper/servicenames.hxx
	toolkit/source/awt/vclxtoolkit.cxx
	toolkit/source/awt/xthrobber.cxx
	toolkit/source/awt/xthrobber.hrc
	toolkit/source/awt/xthrobber.src
	toolkit/source/controls/tkthrobber.cxx
	toolkit/source/helper/registerservices.cxx
	toolkit/source/helper/servicenames.cxx
	toolkit/src2xml/src.lst
	toolkit/util/toolkit.xml

Change-Id: Ic415a96fe6ba7040a3b03fd562f997d2df1516d6
2013-07-05 10:03:52 +01:00
Ariel Constenla-Haile
949f97ba48 Resolves: #i121162# ImageScaleMode constants should be in UPPERCASE
(cherry picked from commit 734b532fb77d2d5be7eb7becb6720dbd7b3d8978)

Conflicts:
	offapi/com/sun/star/awt/ImageScaleMode.idl
	oox/source/ole/axcontrol.cxx
	reportdesign/source/filter/xml/xmlHelper.cxx
	wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java

Change-Id: Ib5fa7b82edddb809129a4e5619a20ca7a7b2e38a
2013-06-27 16:58:09 +01:00
Michael Meeks
662d96bc62 vcl: all EnableAutoSize methods take a bool.
Change-Id: I6f974d6b82f6bb77996d20219b5c0ceb78596c5c
2013-05-20 12:18:03 +01:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Thomas Arnhold
a808497dbb drop prefix from ::css
as css is already ::com::sun::star

Change-Id: I86b43843e4b74f990b6e05dee37184a002072d12
2013-04-02 09:01:37 +02:00
Chr. Rossmanith
563a9b7ab3 Remove RTL_CONSTASCII_USTRINGPARAM in smoketest/sot/svl/toolkit/vbahelper
Change-Id: I0816631a1d0c68dcef9c640c91d00ac9942ded28
2013-04-01 22:12:22 +02:00
Tor Lillqvist
2b520e7d8a Bypass X11-specific fields for Android
Change-Id: Ic8bfd4467b2fbcdcfa2caeb04d4ebe95f13863a2
2013-03-27 02:12:30 +02:00
Tor Lillqvist
baeccb02da Bypass fields that are meaningless for iOS
Change-Id: I66acafc1f7302242a2a43271b909bba331062bce
2013-03-27 01:48:59 +02:00
Tor Lillqvist
63dcca42ce Re-work the vcl aspects of the iOS port
Don't try to use similar code as for OS X to manage windows, events
etc. I.e. don't use UIKit in vcl to do that. Instead, just do as in
the Android port, use the "headless" vcl backend. Do keep using
CoreText, though, not FreeType & fontconfig.

Start changing the iOS "Viewer" app to correspond to the Android
"desktop" app (so it should be renamed).

Work in progress since a long time, several crucial details still
missing, but committing for now.

Change-Id: Iac5fbf8def415e4d0d21e5200450a373420ad7ee
2013-03-21 13:28:32 +02:00
Stephan Bergmann
4c0c23af21 Simplify equalsIgnoreAsciiCaseAscii[L] calls
Change-Id: If5201bd772aed245e8f7f8b900d76ffe4ca57b49
2013-03-19 11:32:20 +01:00
Luboš Luňák
9be25f14bd avoid Wundef for various FIXME, FEATURE_NOT_DONE_YET and what not
Change-Id: I8e409ba63d32dca9a1c7f09d143165d1d702d642
2013-03-18 17:15:56 +01:00
Thomas Arnhold
f5ca04caca Related to fdo#60724: correct spelling
Using the autocorrect list of LibreOffice
extras/source/autotext/lang/en-US/acor/DocumentList.xml

Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657
Script: http://pastebin.ca/2327716
2013-03-03 17:14:16 +01:00
Markus Mohrhard
b55d15e3af coverity#735368: operation has no effect
Change-Id: Ibdb36f3b1df04dca7c4129ef4837317c991d7ae9
2013-03-03 04:35:10 +01:00
Norbert Thiebaud
41b9d58fb9 coverity#982817 Out-of-bounds access
Not sure if it just is coverity's parser that get confused or if the
compiler can also be confused in that case.. but it does not
hurt to be explicit, just in case.

Change-Id: Iba9df7122584272645e7fb241c3f5fd2ed4481d1
Reviewed-on: https://gerrit.libreoffice.org/2250
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-02-22 07:52:44 +00:00
Noel Grandin
2fe852386c fdo#46808, Adapt SystemClipboard UNO service to new style
this is the datatransfer:📋:SystemClipboard service

Change-Id: I00227a2d84e2f1eaf9ca1ebb4fbe1f1548a6621d
2013-01-15 09:56:01 +02:00
Tor Lillqvist
e103887c8c QUARTZ is equivalent to MACOSX
So just check MACOSX in the sources, and don't pass any -DQUARTZ to
compilations.

Change-Id: Ia1de6024810f81f1eea01b8eb0b885d9d1ee8e20
2013-01-11 11:16:59 +02:00
Tor Lillqvist
d938857947 Call SetOutputSizePixelScaleOffsetAndBuffer for non-Android
Change-Id: I59febb87f3da3098e1644087b498d9821b5d7047
2013-01-07 00:50:05 +02:00
Thorsten Behrens
66a175834c c++ API: use css alias in generated headers, adds global css decl
This changes all generated API headers (.hpp and .hdl) to use a
namespace alias 'css' instead of the pointlessly long com::sun::star

Makes the change in cppumaker & associated tools, adds a global
namespace alias definition in sal/types.h, and removes a kiloton
of local, now pointless-to-harmful versions of that alias from all
over the code.

Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30 14:36:36 +01:00
Stephan Bergmann
ced1151a1a Get rid of vcl::unohelper::GetMultiServiceFactory
...which effectively is just a glorious wrapper around
comphelper::getProcessServiceFactory.

In turn gets also rid of ImplSVAppData's mxMSF and mpMSFTempFileName and the
rSMgr parameter to InitVCL.

All the VCL users "soffice", "spadmin", and "unopkg gui" appear to still work
fine.

Change-Id: I797d48f7d0d8c35bb82124c9ab0ee63850c4d863
2012-10-31 09:22:53 +01:00
Noel Grandin
33a0f8ce65 fdo#46808, Adapt awt::Toolkit UNO service to new style
Create a merged XToolkit2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Also mark sub-interfaces as non-optional.

Change-Id: I278d0288e92be277033013302267cf93f7d70480
2012-10-24 16:49:49 +02:00
Noel Grandin
f252b332dd fdo#46808, renamet awt::XToolkit2 to XToolkitExperimental..
..because we want to use the name for the new merged interface
for the Toolkit service.

Change-Id: Ib1e193c7d04729f6420ee6984231fd50181e59d3
2012-10-24 16:49:49 +02:00
Tor Lillqvist
bd24ac7cb5 Link directly to CreateWindow (in svtools) when DISABLE_DYNLOADING
Change-Id: Iaf1f6c0fc76b97b1cfca63edfb91d5a39988c8c0
2012-10-04 07:23:25 +03:00
Michael Meeks
c4008ef546 re-base on ALv2 code. Includes:
tkr41: #117828# office crash fixed . (null pointer) + add unit test
    Patch contributed by Tobias Krause
    http://svn.apache.org/viewvc?view=revision&revision=1172105

    Do not add targets for junit tests when junit is disabled.
    Patch contributed by Andre Fischer
    http://svn.apache.org/viewvc?view=revision&revision=1241508

    remove the OutDev::GetKernPair* stubs completely
    Patch contributed by Herbert Duerr
    http://svn.apache.org/viewvc?view=revision&revision=1179221

    reverting un-necessary OS/2 conditionals.
2012-10-03 16:56:06 +01:00
Arnaud Versini
36a2db3722 Replace usage of rtl_*Memory with equivalent from string.h
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159
Reviewed-on: https://gerrit.libreoffice.org/734
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-01 18:48:05 +00:00
Noel Power
e27fc9b6c2 disable scrollable Frame ( not working well )
Change-Id: I09dc7b656c7ff19b937936e0b8436022d287cc87
2012-09-11 16:04:12 +01:00
Noel Power
7c7267e886 get scrollbar details actually read for groupbox
<sigh> the display with groupbox is disappointing, there are many artifacts and the size of the area you actually need to scroll wrong, perhaps we actuall really need a proper groupbox

Change-Id: Iba6ff62718728324a461806cef61ee6a6a438ddf
2012-09-11 16:04:12 +01:00
Noel Power
67adc64276 fixed the unable to close dialog when vert scrollbars set
Change-Id: If15a2b7312577a8285dc1ab1dea1ccb7c4824ed6
2012-09-11 16:04:11 +01:00