Stephan Bergmann
cf42ba089f
Replace remaining getCppuType et al with cppu::UnoType
...
Change-Id: Ifd082fb63b791441a9af595e02f6ce1732d36ab0
2015-04-01 08:39:17 +02:00
Stephan Bergmann
73e2c6ae27
Clean up C-style casts from pointers to void
...
Change-Id: I9564d76c9b6fb808ca92b53f1bca07ec0850c6f8
2015-03-28 19:09:20 +01:00
Stephan Bergmann
3099c70b11
Fix various XServiceInfo implementations
...
...to match what is recorded in the .component files
Change-Id: Ie548cd37872d3b8540222201afaac73040e65c8f
2015-03-17 12:25:11 +01:00
Tobias Madl
8f9b0c8692
Idle: Changed to new enum name
...
Change-Id: Id3852abe9bc7bbe774331a7d691abd2a79ff59b4
2015-03-06 12:27:10 +00:00
Tobias Madl
2d95bc0510
Idle: Removed VCL_IDLE_PRIORITY_ prefix of enum
...
Change-Id: I12290bed7e4f298ab90393b8de6e2b6e7061e53f
2015-03-06 12:27:09 +00:00
Tobias Madl
826143684d
Timer: Adapted all idle includes and enum uses
...
Change-Id: Id4ef36d6c80ad62306bdbaa7094c2cb0b8ff77da
2015-03-06 12:27:05 +00:00
Chris Sherlock
5d05f7ed85
forms: use constructor feature for form modules
...
Change-Id: I8f1588cbd338e2f8b5bc6047d84b17c697a7d2d3
2015-02-17 11:34:20 +01:00
Stephan Bergmann
4efa9604cf
Revert "ListBox: refuse to give values before we are loaded"
...
This reverts commit 1cc29a04ad
, as it caused
JunitTest_forms_unoapi trigger the
assert( m_nConvertedBoundValuesType == getValueType())
at forms/source/component/ListBox.cxx:1189.
2015-01-14 08:35:33 +01:00
Lionel Elie Mamane
0331fa6a90
ListBox with value list: consider first empty value as NULL
...
Change-Id: I15c040b481b7f03720d0227ba5d2fcd2ccc78386
2015-01-13 14:59:04 +01:00
Lionel Elie Mamane
1cc29a04ad
ListBox: refuse to give values before we are loaded
...
If we are not loaded,
we don't know our field type,
so cannot give values with the right type
Change-Id: I372b77647ec8ff7428b67cca72fdd89e5e147a32
2015-01-13 14:59:03 +01:00
Tobias Madl
ea6399b837
changed timers to idles
...
Change-Id: Ic0d7730f7880dfe2e83c84e773b8cc420249b269
2014-12-09 12:34:57 +00:00
Andrea Gelmini
da40cac540
Fix common typos. No automatic tools. Handmade…
...
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959
Reviewed-on: https://gerrit.libreoffice.org/12164
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2014-11-12 11:04:11 +00:00
David Tardon
cd6e6712a1
coverity#706543 uncaught exception
...
Change-Id: I65932932712dad87f8e21dcd09f477744cc33763
2014-11-04 19:52:51 +01:00
Julien Nabet
c288b17cc5
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part12
...
Change-Id: I7c514b7a1d86f52d77672b826b1f08b825fd7aa7
2014-05-14 23:18:57 +02:00
Julien Nabet
fa51b55680
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part9
...
Change-Id: I82ed4a4868cb22566706ca0f4b1321e0d45016cf
2014-05-10 23:54:07 +02:00
Noel Grandin
c0d037a6ec
forms: sal_Bool->bool
...
Change-Id: Ifa15f4ed3107b1075b504f09d2cae69ee38d347a
2014-05-06 12:38:16 +02:00
Tor Lillqvist
f12237c4c6
More hacking on --disable-database-connectivity
...
Change-Id: Iefa6b104c60464e5a0d793bd676d8ea7ff2727c1
2014-04-22 13:04:19 +03:00
Stephan Bergmann
1d057cca8c
Clean up function declarations and some unused functions
...
Change-Id: I47bdc668ecf703d85f4d50c71f1347fb9e8e89d8
2014-04-14 12:46:57 +02:00
Noel Grandin
5babf1b903
remove unnecessary scope qualifier from sal_Bool uses
...
i.e. convert "::sal_Bool" to "sal_Bool"
Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-03 13:54:02 +02:00
Noel Grandin
86a32589e9
Find places where OUString and OString are passed by value.
...
It's not very efficient, because we generally end up copying it twice -
once into the parameter and again into the destination OUString.
So I create a clang plugin that finds such places and generates a
warning so that we can convert them to pass-by-reference.
Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-03-18 08:32:26 +02:00
Alexander Wilms
bed18b128f
Remove visual noise from forms
...
Conflicts:
forms/source/component/DatabaseForm.cxx
Change-Id: I4005fe65e89794bd92191c37221c252a3e964917
Reviewed-on: https://gerrit.libreoffice.org/8262
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2014-02-26 14:54:56 -06:00
Stephan Bergmann
5e21a413c7
cppuhelper: retrofit std::exception into overriding exception specs
...
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Stephan Bergmann
b7259532d8
Remove unnecessary bool2any
...
Change-Id: Ie2caee1d5a7912011d76172539c2f8f37eaee5cf
2014-02-24 08:08:00 +01:00
Alexander Wilms
0ce0c369aa
Remove unneccessary comments
...
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2014-02-23 03:38:49 +00:00
Caolán McNamara
466e8bd416
coverity#738654 Uninitialized scalar field
...
Change-Id: I92909b606e06f3d86fc3b66aef1ac52e5d706967
2014-02-21 12:40:27 +00:00
Stephan Bergmann
05f742d28b
comphelper: sal_Bool -> bool
...
Change-Id: I6fc331ae0706f4bb193543011c8d4ae0a385fcc0
2014-02-17 17:55:19 +01:00
Arnaud Versini
5a73cceee5
FORMS : Remove usage of DBG_CTOR and DBG_DTOR.
...
Valgrind is capable of detecting such bugs. No need for extra macros.
Change-Id: Ida618d6ac383c65f1c09212a7b6aa5ee228677db
Reviewed-on: https://gerrit.libreoffice.org/7534
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2014-01-21 16:26:50 +00:00
Stephan Bergmann
83e191e25d
Do not use C++-UNO internal static_type functions in client code
...
...use cppu::UnoType instead.
Change-Id: I507914b30ef8acda910ee4ecc0589fd328eb6f31
2013-12-12 11:10:10 +01:00
Noel Grandin
aeb41c9b9b
remove redundant calls to OUString constructor
...
Change code like this:
aStr = OUString("xxxx");
into this:
aStr = "xxxx";
Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
2013-11-04 10:11:07 +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
Lionel Elie Mamane
f237f1a616
fdo#66171 ListBox correctly save empty or zero BoundColumn
...
Change-Id: I05fa923f962191081ea3318837d3e181c183b466
2013-06-27 18:53:00 +02:00
Lionel Elie Mamane
e2d9138ce0
make "gcc -Werror" happy
...
Change-Id: I6dd1bf6b4535bb956cb7e85908312d52749a6f2b
2013-06-23 20:52:48 +02:00
Lionel Elie Mamane
f76cedf1d6
Data-aware ListBox: fix case ListSourceType==TableFields
...
Change-Id: I9a89374fd1cc56c8185753f5959275a0a2d841ff
2013-06-23 20:05:55 +02:00
Lionel Elie Mamane
8e824b11b6
Don't second-guess the database
...
If it gives us a NULL as bound value,
use it, even if the underlying column
has constraint NOT NULL.
This can happen e.g. in OUTER JOIN,
with UNION, ...
Change-Id: I1fc0d9366764b90e0cdb443cd34c32b52f059e0b
2013-06-23 18:02:05 +02:00
Lionel Elie Mamane
d8eafdafe0
Data-aware ListBox: use entry for NULL if the *bound* value is NULL
...
as opposed to when the display string is empty.
Change-Id: I802955404d2d8d5c91b3fd1633e34be7ef4f0b82
2013-06-23 17:40:39 +02:00
Lionel Elie Mamane
157a9da934
Use unsigned values in m_a(Converted)BoundValues
...
Values that come from the database are always signed
(we inherit that from sdbc that inherits that from jdbc
that inherits that from Java's type system that does not have unsigned values)
So when using unsigned values, they always operator==-compare false!
Change-Id: I604b04afa23ede835c1f3db1f8c1bdeafbfba7ea
2013-06-23 17:40:14 +02:00
Lionel Elie Mamane
2d432035a8
enhance comment
...
Change-Id: I897a59d10a903bfe303b1ac059f19b6dcc686616
2013-06-23 17:39:48 +02:00
Lionel Elie Mamane
2a2b900544
avoid initialise-then-reset
...
Directly construct as unitialised
Change-Id: I66aa4f5a5f5ed2c1d5bf0cb8083e1968ef776bf7
2013-06-23 17:39:22 +02:00
Noel Grandin
d209e13319
fdo#46808, Convert comphelper::ComponentContext in forms module
...
Change-Id: I8a9913d964633381f00c0a4885cc655805fa1974
2013-06-03 10:00:03 +02:00
Noel Grandin
2838b8eb5e
fdo#46808, Convert ComponentContext in connectivity,extension..
...
...modules.
Change-Id: Ie61976dc12b514bb85ca42496c0d9173a1c56264
2013-06-03 10:00:02 +02:00
Radu Ioan
660b67a413
fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFO
...
- replaced RTL_CONTEXT_ with SAL_INFO
- replace OSL_* with SAL_*
Change-Id: Id4e90b83a7275bfd30914f7514a609cebbfbf4ac
Reviewed-on: https://gerrit.libreoffice.org/4044
Reviewed-by: Luboš Luňák <l.lunak@suse.cz >
Tested-by: Luboš Luňák <l.lunak@suse.cz >
2013-05-31 18:08:02 +00:00
Lionel Elie Mamane
3e5b9865fa
fdo#64456 impl_getValues always set m_nConvertedBoundValuesType
...
That is, also when returning an ephemeral value constructed from StringItemList
Change-Id: I3f0edcb6cc31926c6b82acbcb88282829314b859
2013-05-12 05:07:55 +02:00
Miklos Vajna
8ed6f1c2bf
forms: FORMS_CONSTASCII_STRING is no longer needed
...
Change-Id: I2b666f0e48db4c97cc4c641480a82681f5057ac2
2013-04-23 11:58:32 +02:00
Lionel Elie Mamane
dfcbc1e1af
Data-aware ListBox: declare the newly supported External Binding Types
...
Change-Id: I5ab021f99373f24b6be2ca6db00fe8b6e69bc9cb
2013-04-22 21:54:21 +02:00
Lionel Elie Mamane
567a4fcf02
Data-aware bindable ListBox new feature: bind *value*
...
As opposed to index in list or *display* string
Change-Id: I5fa74c80b28db843d45ee68523a4349ba44d229b
2013-04-22 17:56:00 +02:00
Lionel Elie Mamane
a2c54dc208
ListBox: take care of validation (use binding value when appropriate)
...
Change-Id: I7c2ab0e42a82baa39e1b48124cc8cf58bfa126d5
2013-04-22 17:55:55 +02:00
Lionel Elie Mamane
1e698bb7f1
Use (get|set)ControlValue instead of manipulating the property directly
...
Change-Id: Ice58cf4f67fae6a26548bae6569ae0c0993a7e84
2013-04-22 17:55:49 +02:00
Lionel Elie Mamane
a16bb08013
Data-aware ListBox: add SelectedValue and SelectedValues properties
...
Change-Id: Id081e4f6bb765056f17babcfec52a1aedcd7b5d5
2013-04-22 17:55:34 +02:00
Lionel Elie Mamane
f7be9c71d4
janitorial: typo in variable name
...
Change-Id: I0bc68e7a1f589e11f16bc539f49a323e64bd834f
2013-04-22 17:55:24 +02:00
Lionel Elie Mamane
bfc0bf6a16
Data-aware ListBox: BoundValue==-1 to store index in list
...
Change-Id: I248cd5ec62574f47a27f8b37e1e90333b8748af2
2013-04-22 17:55:14 +02:00