Commit Graph

101 Commits

Author SHA1 Message Date
Luboš Luňák
64b993e046 finish deprecation of O(U)String::valueOf()
Compiler plugin to replace with matching number(), boolean() or OUString ctor,
ran it, few manual tweaks, mark as really deprecated.

Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21 15:10:35 +02:00
Thomas Arnhold
ba0a57702c remove OUString wrap for string literals
For some functions and all kinds of Exceptions.

CannotConvertException
CloseVetoException
DisposedException
EmptyUndoStackException
ErrorCodeIOException
Exception
GridInvalidDataException
GridInvalidModelException
IOException
IllegalAccessException
IllegalArgumentException
IllegalTypeException
IndexOutOfBoundsException
NoMasterException
NoSuchElementException
NoSupportException
PropertyVetoException
RuntimeException
SAXException
ScannerException
StorageWrappedTargetException
UnsupportedFlavorException
VetoException
WrappedTargetException
ZipIOException
throwGenericSQLException
throwIllegallArgumentException

createInstance
createInstanceWithContext
forName
getByName
getPackageManager
getPropertyValue
getUnpackedValueOrDefault
getValueByName
hasPropertyByName
openKey
setName
setPropertyValue
supportsService

bash command:

for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx'
	| cut -d ':' -f1 | sort -u
	| xargs sed -i
		-e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g"
		-e "s/\($i.*\)\"+ /\1\" + /g";
done

Change-Id: Iaf8e641b0abf28c082906014f87a183517630535
Reviewed-on: https://gerrit.libreoffice.org/4624
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-29 21:52:54 +00:00
Noel Power
4d1e0ea98b support UserForm.Visible attribute
Change-Id: I6e5a9d3e7908349a76a73a79b3b1319b44e1e3aa
2013-05-09 14:11:19 +01:00
Noel Power
13ee256265 tweak combox to selectively fire change or click event
we need to fire a click event if just the item in the dropdown changed and
a change event if the item we changed is really part of the list

Change-Id: I19f950fca0857761d8f59a07513803f1f3ef135b
2013-05-09 14:11:18 +01:00
Noel Power
4bad1a8e31 support api initiated change_event for combox & textbox
Change-Id: Iff51a184792e9d12accb902df1772fc07589443b
2013-05-09 14:11:18 +01:00
Noel Power
4002ce1419 Setting TEXT causes exception, don't do it
Change-Id: Idc5614a80e6e45d12f1323ffa9843c7fa7f9576e
2013-05-09 14:11:15 +01:00
Noel Power
2743241bd2 ListBox.MultiSelection takes fmMultiSelect enum not bool
Change-Id: Ic9ea60feadc551b232b393faafea9760cc3b82f0
2013-05-09 14:11:15 +01:00
Noel Power
412ae1bf1c fix TextBox value error, MaxLength is long in vba but short in libreoffice
Change-Id: I550fe6833f240d085fadf55ab8d9421947318eef
2013-05-09 14:11:15 +01:00
Noel Power
b1dc5ed569 tweak vba Control implementation to aritificially fire events from api
Previouslly there were some internal methods to allow event handlers
to be triggered. To test some functionality from the unit tests we
now expose some of that functionality via uno.

Change-Id: I11022226260d3dacd82f42ce89413102ce34cc13
2013-05-09 14:11:14 +01:00
Noel Power
bb1ff23383 create togglebutton class ( for togglebutton on sheet )
Change-Id: If987eb6ed04d80e62b4b418e8f9de3a143ef68a7
2013-05-09 14:11:13 +01:00
Noel Power
89e1382ebf handle bool value for checkbox, radiobutton, togglebutton consistently
Change-Id: I1f9057e58fe3625e0b76a09d79c7c56e1838d98a
2013-05-09 14:11:13 +01:00
Bjoern Michaelsen
f789cdafff Revert "add missing include"
This reverts commit 6b08209ae4.
2013-04-16 21:12:23 +02:00
Bjoern Michaelsen
6b08209ae4 add missing include 2013-04-16 20:55:23 +02:00
Tor Lillqvist
2c4a7fa983 Add missing #include <rtl/tencinfo.h>
Change-Id: Ic00146442a679c39d0af4a287cbcf759826f35cd
2013-04-16 21:26:59 +03: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
Noel Power
5b8377f80c fix selection change event firing
Change-Id: I64e8b684dd5462e1a742ba47b5480951b4e3a4c4
2013-04-05 17:15:01 +01:00
Noel Power
959d1dc0f3 fix 'Visible' property for XControlShape(s) Foreach support for CommandBars
Seems now we need to additionally set 'Visible' property for XControlShapes
to ensure correct visibility
Also we need allow 'For Each' syntax to with with CommandBar collection.
Note: the implementation of the CommandBar enumeration seems wrong, I
would have thought that it should match ( and share ) implementation
details with normal index access ( it doesn't )

Change-Id: Ia5306b4c976f6dc9a5f82e245ca5440f204f5bab
2013-04-05 17:15:01 +01:00
Noel Power
3ffd86188b Added and fixed various vba API
Added OLEObject.LinkedCell
Added ComboBox.LinkedCell
Added Validation.Type

Change-Id: I5ffc2212e689870d58ca99d1fbdfd7d101f8b50f
2013-04-05 17:15:01 +01:00
Radu Ioan
16d1424433 fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERT
- replaced osl_trace with sal_info
 - added new log areas to log-area.dox

Change-Id: I20f539bd9fa62bef2e9a2a82b59e0b15f4efdd48
Reviewed-on: https://gerrit.libreoffice.org/3179
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-03 20:40:07 +00:00
Chr. Rossmanith
ed383ebfba remove RTL_CONSTASCII_(U)STRINGPARAM
Change-Id: Ica4dc859229c2ba0dc052a97ff23178895c25580
Reviewed-on: https://gerrit.libreoffice.org/2368
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2013-02-24 21:16:12 +00:00
Luboš Luňák
83154f9234 mark lcl_ functions static or rename them if they are not local at all
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html

Change-Id: I37b2c7b7acd31437f4be74b0163f4dac2279655b
2012-10-12 13:34:48 +02:00
Tor Lillqvist
9da34c09bf Use prefix
Change-Id: Ic63d4b6403438fee2d6c70e329ee33d2cde7426b
2012-10-02 13:02:38 +03:00
Noel Power
4597483e00 targetted VBA re-work. 2012-09-12 12:49:49 +01:00
Olivier Hallot
0da7c6021f OUString cleanup in vbahelper/msforms
Change-Id: I834c5f1f26f941a5db84b677f34ffa686e0c2544
Reviewed-on: https://gerrit.libreoffice.org/578
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
2012-09-08 20:50:41 +00:00
Stephan Bergmann
b0772418bc -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: I2342c6fa614ffbd805c3606de20e080e677fce28
2012-08-31 09:04:16 +02:00
Noel Power
44dc8746f3 remove VBA_OOBUILD_HACK and friends
Change-Id: I5c21a407bcae1b668976b94a757d564120973b1a
2012-08-26 09:49:24 +01:00
Noel Power
6573690587 mark methods as stub where appropriate
Hopefully this will allow us to track methods we don't or can't implement ( although we let them actually exectute )

Change-Id: I53c74054ffea6cfa8e45aa4583f51c03f33991ee
2012-08-26 09:49:24 +01:00
Michael Meeks
7cb232e6ee re-base on ALv2 code. 2012-06-22 16:31:33 +01:00
Michael Meeks
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
Norbert Thiebaud
02bd365494 targeted string re-work
Change-Id: I7a67dba479e562ae3b08e6acf9bb6139eb155556
2012-05-31 19:37:03 -05:00
Takeshi Abe
9cb75ccaa7 removed unused static data 2012-04-23 23:05:24 +09:00
Noel Power
f39d0b8377 add support for MousePointer attribute in controls
For Useforms it doesn't quite work exactly as MSO, for examply if we set the MousePointer for the Userform it works as expected until we mouse over another control at which point the mouse pointer is changed to that of the control. In MSO it would appear that the Userform mousepointer is king, perhaps all that is necessary is to apply the mouse pointer to each contained control, needs some investigation. Also only a limited number of the possible mouse pointer styles are processed, the conversions of mso -> lo pointer styles ( and vice-versa ) and not really tested to see if they all make sense
2012-04-17 14:30:31 +01:00
Takeshi Abe
643a582793 removed duplicate #includes
in vbahelper / writerfilter / writerperfect / xmlhelp / xmloff / xmlscript / xmlsecurity
2012-04-04 01:39:08 +09:00
Caolán McNamara
d41b5a88bd reduce over use of static OUStrings 2012-03-26 12:18:08 +01:00
Tor Lillqvist
2a1171929e chmod -x 2012-03-21 13:00:45 +02:00
Julien Nabet
7fbdd5ec03 Fix WaE : Add call to ScVbaControl::getForeColor() 2012-03-20 22:12:50 +01:00
Stephan Bergmann
88a7c524f2 More missing SAL_CALL 2012-03-20 21:26:53 +01:00
Stephan Bergmann
e1d52ccec3 Missing SAL_CALL 2012-03-20 21:16:52 +01:00
Noel Power
092d6d9d6f add vba support for BackColor, AutoSize, Locked attributes bnc#749960 2012-03-20 17:29:19 +00:00
Olivier Hallot
7f585002c4 Fix for fdo43460 Part LVI getLength() to isEmpty()
Part LVI
Modules
vbahelper
2012-01-28 11:59:23 -02:00
Tor Lillqvist
8aeeb8eb06 WaE: class has virtual functions, but destructor is not virtual 2011-10-07 15:56:15 +03:00
Caolán McNamara
1f5c696c37 add mode-lines to .m files and last round of merged files, etc. 2011-09-30 09:09:25 +01:00
Caolán McNamara
871426533f just silence the auto_ptr deprecations in isolation 2011-09-22 15:01:05 +01:00
Caolán McNamara
81c5bd4bd2 WaE: unused variable 2011-09-06 16:28:27 +01:00
Caolán McNamara
095c493edd WaE: drop unused ctor argument 2011-08-23 14:38:00 +01:00
Noel Power
4e0691b9b3 merge foobars? fix broken MultiPage api, also fix broken api change events 2011-08-23 13:18:24 +01:00
Kohei Yoshida
c8f40655ea Keep the container and object separate methods.
ScVbaControl doesn't have any container instance to pass to the
old method.
2011-08-16 21:22:44 -04:00
Kohei Yoshida
80b1e66277 Added XPropertySet2 to allow disabling of change event notifications.
Sometimes broadcasting changes to the property set on every new
value insertion makes no sense especially during import.  Turning
that off also improves performance especially when inserting millions
of property values.
2011-08-16 21:22:43 -04:00
Julien Nabet
1f7b66104d Some cppcheck cleaning 2011-07-31 00:02:18 +02:00
Matúš Kukan
a90983bd65 Remove component_getImplementationEnvironment methods 2011-07-12 17:59:13 +02:00