Commit Graph

410 Commits

Author SHA1 Message Date
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Alexander Wilms
6a38eace8c Remove visual noise from basic
Change-Id: I10865b94f67de39e9dbcbe71ede42aa94d81db61
Reviewed-on: https://gerrit.libreoffice.org/8234
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-25 21:09:17 +00:00
Alexandre Vicenzi
25d089e09d fdo#63154 Removed unused solar.h ref. in basic, cui, forms and writerfilter.
Change-Id: I09cca73d8d77af259965e74e1b29a88aa5c315ab
Reviewed-on: https://gerrit.libreoffice.org/7731
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-30 10:48:40 +00:00
Caolán McNamara
81926e66d1 coverity#707650 Uninitialized pointer field
Change-Id: I6843ce28f3e1395a2ab3c5515f393cce5096674b
2014-01-27 14:38:38 +00:00
Herbert Dürr
9e77ddcd19 Resolves: #i123817# prepare codebase for updating to boost 1.55
(cherry picked from commit c31988351c10e9f3fd783730d95da34efd52c153)

Conflicts:
	basic/source/comp/parser.cxx
	basic/source/comp/token.cxx
	dbaccess/source/ui/dlg/generalpage.cxx
	sc/source/ui/unoobj/chart2uno.cxx
	vcl/quartz/salbmp.cxx

Change-Id: Ic9580f2d4a44959cb3e38906eb4153b2c2a54899
2014-01-06 16:32:20 +00:00
Norbert Thiebaud
8b308d510e basic: include <> for external includes
Change-Id: I4715bbe853d60ef15f20a4d2441c688003ca568e
2013-11-11 22:37:24 -06:00
Thomas Arnhold
4adf622925 fixincludeguards.sh: basic
Change-Id: Id797a8969e42876092da347d8e1bba6195b697dc
2013-10-28 15:16:20 +01:00
Thomas Arnhold
8fc6905674 fdo#68849 add some header guards
Change-Id: I9d25a58f22095689eccc0ac444c163d1e9bee69f
Reviewed-on: https://gerrit.libreoffice.org/6364
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-10-21 09:15:59 +00:00
Stephan Bergmann
458c5a0f47 Defer OUString -> OString conversion
...to avoid converting back OString -> OUString in SbiIoSystem::WriteCon.

Change-Id: I17024891d0babaa589f2c65f1123f1905c4338bb
2013-10-15 10:33:26 +02:00
Caolán McNamara
dbff5bd4cd CID#736166 unlikely out of bounds
Change-Id: I8a0f97be1723766df9f8fe287417365febf54966
2013-09-12 13:09:05 +01:00
Lionel Elie Mamane
b31f33bcc1 Easier conversion between Basic Date and UNO Date/Time
Utility functions to convert between Basic Date type
and the representations of Date and Time in UNO, namely:
 - com.sun.star.util.Date
 - com.sun.star.util.Time
 - com.sun.star.util.DateTime

Name of new functions:
 - CDateToUnoDate
 - CDateFromUnoDate
 - CDateToUnoTime
 - CDateFromUnoTime
 - CDateToUnoDateTime
 - CDateFromUnoDateTime

Change-Id: I2b971df20df1c0351d071023e042169b548894f1
Reviewed-on: https://gerrit.libreoffice.org/5897
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-09-11 20:40:19 +00:00
Gergo Mocsi
9b534193a3 GSOC work, behavior fixes
Code completition: left/right arrow keys handled. Left arrow dismisses the dialog when reaches the dot. Right arrow dismissed the dialog when reaches the next line.
ListBox appearance fixed.
TAB key can insert the first matching entry.
Autocorrect:
"Autocorrect Keywords" has been renamed to "Autcorrect" (in the UI, and the config file, after this patch a make dev-install is needed). Keyword case correction is not just capitalizing the first letter ( eg. Elseif -> ElseIf ).
Autoclose procedures:
cursor is being placed inside the preocedure.

Change-Id: Ie7e9ae96b49bd94562db83f96e1c4ad63ab3f3d6
2013-09-02 18:16:58 +02:00
Gergo Mocsi
61ee2598b1 GSOC work, code complete option, menu entry fixes
Menu entry is added under View->Enable Code Completition when in Experimental mode.
Fixed the call of funtion SbModule::GetCodeCompleteDataFromParse() to be called only when code completition is enabled.
Replaced the occurences of SvtMiscOptions to CodeCompleteOptions.

Change-Id: If0520123ab5f612d7d24fb98f8e9bf6881af76cb
2013-09-02 18:16:47 +02:00
Gergo Mocsi
728bc0518b GSOC work Window appearance fix 2 + code fixes
Added a function to select the first entry in the ListBox by default.
Selected entry can be inserted with the ENTER key.
Fixed some code in basic code generation class (SbiCodeGen).

Change-Id: Ia6eb43ee5661a0a3ae0b738b619f19972f019eac
2013-09-02 18:16:45 +02:00
Gergo Mocsi
5beb4be54c GSOC work week 5, some recent fixes
This week I've managed to fix the ListBox appearance. Also, I've modified the code: it gets the data on insert/remove/change, and gets updated only when the dot is pressed. This makes the data to be up-to-date. Next, I wrote a Split(OUString , char) function to do the nested reflection (It works, but it will need some tweaks later). Also, code generation is disabled for code completition (just a boolean value, maybe it could be done in a more "elegant" way, like the error supression).

Change-Id: I43d250c0a065351950ac6424dcd88266d70bcef3
2013-09-02 18:16:44 +02:00
Gergo Mocsi
f97d794654 GSOC work week 0-1, allowing BASIC to recognize UNO interfaces
Introduced a new function calles IsUnoInterface in SbiParser to determine, if
a variable is a type of an UNO interface. It uses reflection.CoreReflection to
do that, on success it returs true otherwise false.

Change-Id: I18895127bcbd92dc7a25feb5d82a7d1343bde851
2013-09-02 18:16:42 +02:00
Noel Grandin
4460f213df fdo#46808, use XComponentContext in SfxLibraryContainer
Change-Id: I6f66fc69a40e2cd2ef2372e0413ff95b6202c5c5
2013-05-14 08:08:27 +02:00
Noel Grandin
67042f1f03 fdo#46808, replace XMultiServiceFactory with XComponentContext is SfxLibrary
Change-Id: I150d86b4ae4004e7c39ec6a3ed7fba31029f8ab1
2013-05-14 08:08:26 +02:00
Thomas Arnhold
1e83da9aed some more namespace cleanup
Change-Id: Ib1e80d717f199db8f8ac4181d4377a86d88e3244
2013-04-26 18:01:51 +02:00
Tor Lillqvist
d12a3e8b76 Combine fairly pointlessly split source code for SbiRuntime into one file
Insert basic/source/runtime/step[012].cxx into
basic/source/runtime/runtime.cxx.

Follow-up to https://gerrit.libreoffice.org/#/c/3373/ .

In many cases the sources for some class have been split up into several
source files, typically suffixed with a number 0, 1, 2 etc. Presumably this
has been done because some compiler years ago was not capable of compiling all
the source for that class at one time, or some other no longer relevant
reason.

It would be nice to get rid of this convention, so that clever compilers have
a better chance of noticing unused private fields in a class, for
instance. Just combining the source files in question into one source file and
removing the old source files from git leads to a discontinuity in version
control history. But the consensus seems to be that this is not such a big
deal.

I picked these sources just because they happened to be the first ones I came
across when looking for files called *0.cxx.

Change-Id: Ia7e8ece9a4374721bbcce6b0e2aba5721436faae
2013-04-24 11:07:15 +03:00
Tor Lillqvist
c3d8b06f00 Get rid of SHL_SBC
GetAppData(SHL_SBC) was used only locally in the sb library so no need for
it. Just use a static pointer field.

Change-Id: I37c8429b6c9e521a00c52bb622f78bdc4afe345c
2013-04-12 23:04:11 +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
Eike Rathke
876c619b94 new module i18nlangtag
Moved portions from module i18npool, all of former i18nisolang1 library
that now is i18nlangtag. Included are languagetag, isolang and mslangid.

This i18nlangtag code is now even used by module comphelper, so
disentangling i18npool and making this an own module was needed to not
create circular module dependencies.

Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05 19:10:48 +02:00
Andras Timar
438efb38ec fdo#39445 writing out tools/fsys.hxx (basic)
Change-Id: I2ec7546572fa72359615f371715b4aa82b1182ca
2013-03-19 22:42:02 +01:00
Marcos Paulo de Souza
c40cd8a4f2 Remove all occurences of RTL_* and ::rtl prefix from basic
This is a big commit, so thanks for your time reviewing this :)

Conflicts:
	basic/source/sbx/sbxscan.cxx

Change-Id: Ib9bc710b87475b5695764557321e5dcef25e5933
Signed-off-by: Miklos Vajna <vmiklos@suse.cz>
2013-01-03 10:07:39 +01:00
Noel Grandin
5837402fb1 fdo#46808, use service constructor for ucb::SimpleFileAccess
I upgraded the service to return XSimpleFileAccess3, since it
already implemented that interface, and it's backwards
compatible.

Change-Id: I40001a46048bd21a23b6a2f58a95376f06fc634b
2012-11-15 08:28:44 +01:00
Norbert Thiebaud
27239ad230 basic: String -> OUString
Change-Id: I42479b4bade5111e38d69f04c889c166f340d5ba
2012-11-07 02:14:53 -06:00
Norbert Thiebaud
c5b7d8f9d9 basic migration to OUString
Change-Id: I1f9403174b3779801d91ba20d846191ed9a09eed
2012-11-03 20:24:27 -05:00
Norbert Thiebaud
bbf1bcd9ad basic: String -> OUString in basicmanager
Change-Id: I6607bfe8b6bf4d29ffd01cd88a19af5e53d616b5
2012-11-03 20:24:26 -05:00
Norbert Thiebaud
6f978fa977 basic: use OUString internaly for error messages
Change-Id: I9ea243f93b7477814037deca2f332c3359ce527d
2012-11-03 20:24:25 -05:00
Jack Leigh
af4df7ac08 fdo#48257 collect function prototypes from basic/ into single header file
Change-Id: I1666e64b2b611054e1a713a76575e2f06781f80a
2012-10-04 10:35:48 +01:00
Tor Lillqvist
eebc9748d2 Fix MSVC build: #undef EXPLICIT (which gets defined as 'explicit' somewhere)
Change-Id: I83f6dff2a01d6d7806b2d2f4e6415aee10933e14
2012-09-25 11:50:56 +03:00
Takeshi Abe
407509c058 sal_Bool to bool
Change-Id: I75dd089b34c94831bfdfd0e02585af7609013a08
2012-08-22 19:25:08 +09:00
Takeshi Abe
1fd7816b71 Remove unused function
Change-Id: I1888bb21ad55f919a25a96b5c8090d1194be51de
2012-08-22 19:25:08 +09:00
Takeshi Abe
2efc59c9b6 sal_Bool to bool
Change-Id: I38141187c4f0809343a93c5765c0773d2321968a
2012-08-21 22:59:16 +09:00
Takeshi Abe
c2ead1e76e Remove unused function
Change-Id: Ifd6ba71e0ab13f9ad0e86f3e770ae1a6ace336e1
2012-08-21 22:59:16 +09:00
Takeshi Abe
a8647dd030 sal_Bool to bool
Change-Id: I427e9bb30cab4698a2495de7445a4a4982abd7b4
2012-08-20 09:47:25 +09:00
Takeshi Abe
38f3fe0432 sal_Bool to bool
Change-Id: I6206ee7e17e12388ea644123e180842df3e3a7ee
2012-08-19 17:55:27 +09:00
Stephan Bergmann
27f4f9ae8f -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: Ia6f5bf7c3372515c2796d239aeb610fbe6f29f8d
2012-08-16 09:46:59 +02:00
Takeshi Abe
dfe544c87b sal_Bool to bool
Change-Id: I784fb31bad1ff02987c24abbac04b38207a1f5cf
2012-08-15 09:45:49 +09:00
Takeshi Abe
65095170ff Remove declared but not defined function
Change-Id: I74836b55375a6e2e57a989234bacf7186325b33e
2012-08-14 07:37:19 +09:00
Takeshi Abe
1f224b02c8 sal_Bool to bool
Change-Id: Idb5ef3cebdd45bd91f7c0ae34e422fd651d395c9
2012-08-14 07:37:19 +09:00
Takeshi Abe
533194a6b3 bErrors was always true
Change-Id: I193029e1fb2434161679498fa0ba7e1c7c0ab3ba
2012-08-12 09:16:59 +09:00
Takeshi Abe
1817cf60d1 sal_Bool to bool
Change-Id: I61a6675df622232923a827fc20bf121dd03cd7da
2012-08-12 09:16:58 +09:00
Takeshi Abe
414ecabbd5 Remove useless #ifndef guard
Change-Id: Iddb666611ff11db0912832a73bd8b95438985383
2012-08-09 22:33:03 +09:00
Takeshi Abe
2eb40e3cec Remove a member variable no one reads
Change-Id: Iacb037bebaf1c3d77ab61be6342b42319b8a2e7b
2012-08-09 22:33:03 +09:00
Thomas Arnhold
69a70bf028 Remove forwards of non-existing structs
Change-Id: Ie1d7ed56c69539587df5310c0a1ea0476abd5542
2012-08-07 13:45:27 +02:00
Takeshi Abe
7b75535e28 Remove declared but not defined functions
Change-Id: I583dc4043b471f741711693b32b16348bb1c8360
2012-08-03 23:45:06 +09:00
Takeshi Abe
621145a777 sal_Bool -> bool
Change-Id: I49749f327d6a9c3661ef9bd684647e0a45b9203a
2012-08-03 10:29:31 +09:00
Thomas Arnhold
7910718259 Remove unused code: those classes are unused
Change-Id: Ibf41655d40c9534629bbb0dd5ae600791b42922d
2012-08-01 18:34:46 +02:00