summaryrefslogtreecommitdiffstats
path: root/dbaccess
Commit message (Collapse)AuthorAgeFilesLines
* fdo#38838, ::rtl::OUString to OUString, String to OUStringGergő Mocsi2013-02-193-110/+105
| | | | | | | | | ::rtl::OUString was replaced to OUString and all occurences of String was replaced to OUString in dbaccess/source/core/api Change-Id: I9771708408e04dcebe18f49a75c83036740f0ca2 Reviewed-on: https://gerrit.libreoffice.org/2239 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* update pch headers, broken by 1aaf9a9Luboš Luňák2013-02-131-0/+2
|
* fdo#46808, convert xmloff module code to use XComponentContextNoel Grandin2013-02-124-10/+21
| | | | | | with lots of repurcussions in other modules Change-Id: I6982671eecc701b06cf85d93533e1fe618044fea
* fdo#46808, convert io::TextOutputStream service to new-styleNoel Grandin2013-02-111-12/+6
| | | | Change-Id: I12af47afc21c2b646197893a77698f4e0818f94f
* fdo#46808, convert io::TextInputStream service to new styleNoel Grandin2013-02-111-8/+8
| | | | Change-Id: Ida4abdd6587399aa8ade88af672bcb23ab7ea0f1
* fdo#46808, Use service constructor for awt::DialogProviderNoel Grandin2013-02-111-8/+5
| | | | Change-Id: I5d0a3e66afeadafa6d53ff0a255d036b7e3d528d
* fdo#46808, Adapt document::XML*BasicExporter UNO services to new styleNoel Grandin2013-02-112-8/+17
| | | | | | | | The services are document::XMLBasicExporter document::XMLOasisBasicExporter Change-Id: Ifd93e5735cae94d34904d79769cdb3edf587fe43
* fdo#46808, Adapt java::JavaVirtualMachine UNO service to new styleNoel Grandin2013-02-117-18/+17
| | | | Change-Id: Ib0329b9cdc4290ce98c4182e8466c1b44b408341
* Fix busted multi-repeated column in evolution database viewCaolán McNamara2013-02-071-0/+12
| | | | | | | | | | | | | | | | | | In the evolution address book where we have real column names of e.g. first_name, second_name and city. On parsing via OSQLParseTreeIterator::appendColumns that creates some labels using those real names but the evo XResultSet gives them proper labels of First Name, Second Name and City the munge means that here we have e.g. just "City" as a label because it matches, while the others don't The symptoms are to load the evolocal.odb and of the 128 columns column 5 is repeated until 128 This is all a horrible confusing mess. It seems safest to catch the mismatch of column counts and throw away the partial list and force a generate of a full list. Change-Id: I1d6e2a282bdd43acac63c366eb2a9d029aa17878
* remove obsolete hidother.src filesAndras Timar2013-02-061-387/+0
| | | | Change-Id: Ieb30afd81d16d184e0276ce7699b848f26a00013
* ORowSetValue: clean up sign/unsigned union memberDavid Ostrovsky2013-02-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also switch BOOLEAN constructor from sal_Bool to bool. old/new signed/unsigned storage situation: ------------------------------------------------------- SQL type | signed | unsigned old | unsigned new ------------------------------------------------------- TINYINT | sal_Int8 | sal_Int16 | sal_uInt8 SMALLINT | sal_Int16 | sal_Int32 | sal_uInt16 INTEGER | sal_Int32 | sal_Int64 | sal_uInt32 BIGINT | sal_Int64 | pValue (String*) | sal_uInt64 ------------------------------------------------------- When sticking an UNSIGNED TINYINT into an Any, silently promote it to UNSIGNED SMALLINT (that is sal_uInt16), else Any would take it as a sal_Bool and normalise to sal_True (1) or sal_False (0). When constructing an ORowSetValue from a sal_Bool, silently keep it as an unsigned 8 bit integer (that is understand it as a sal_uInt8). This will work in most cases, since when asked back for a bool or sal_Bool, we'll give back the right value. Only code looking at the type tag could possibly make a "wrong" decision. The main (hopefully only?) path through which this would happen is through an implementation of XParameters::setBoolean XRowUpdate::updateBoolean that would use its sal_Bool argument to construct an ORowSetValue. So make sure each implementation constructs a proper BOOLEAN so as not to get confused. For authorship/copyright purposes, this patch is a cooperation between Lionel Elie Mamane <lionel@mamane.lu> and David Ostrovsky <david@ostrovsky.org> Change-Id: I3f1f08716127147f077bff4edb6ec558b1b09e09
* use OUString(Buffer) in class EditChr. Rossmanith2013-02-045-15/+15
| | | | | | | | | replaced Len() with isEmpty() where appropriate Change-Id: I5a5847d6055f376fd5f86079aa1736541d790fff Reviewed-on: https://gerrit.libreoffice.org/1892 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
* fdo#46808, fix calling conventionNoel Grandin2013-01-281-3/+3
| | | | Change-Id: I72b7945a6a8838e97184a27661520de55ac45e73
* fdo#46808, Adapt document::*PropertyValues UNO service to new styleNoel Grandin2013-01-281-4/+4
| | | | | | | | | The services are: document::NamedPropertyValues document::IndexedPropertyValues The services already existed, they just did not have IDL files Change-Id: Ibafe9b5afb9b30785df4f66aa923f4b96ceabeed
* fdo#46808, convert code to use new-style service constructorNoel Grandin2013-01-281-28/+21
| | | | Change-Id: I1b50f7ef6c01d13abd15ba3a76bd683a0151a914
* fdo#46808, Adapt sdb::TableDefinition UNO service to new styleNoel Grandin2013-01-287-11/+28
| | | | | | The service already existed, it just did not have an IDL file Change-Id: Iaac84da8baa3a060eef339d8e477f86ca49fae08
* fdo#46808, Adapt document::GraphicObjectResolver UNO service to new styleNoel Grandin2013-01-281-4/+2
| | | | | | The services already existed, it just did not have an IDL file Change-Id: I245f78c165dbfde11a981efd7033c5c282f4e8ad
* Remove more STRINGPARAM macros form dbaccessMarcos Paulo de Souza2013-01-2714-126/+95
| | | | | | | Change-Id: I283ccd03dc811dda2f10963f400cd517f42ea7b3 Reviewed-on: https://gerrit.libreoffice.org/1878 Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br> Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
* gbuild: do not copy boost headers aroundMichael Stahl2013-01-265-1/+12
| | | | | | | | | - do not use gb_UnpackedTarball_copy_header_files for boost - adapt the optimization in concat-deps.c for new path - use boost_headers in all LinkTargets that require it - add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
* Change GetSavedValue() to return OUStringChr. Rossmanith2013-01-247-14/+14
| | | | | | removed temporarily added OUString(...GetSavedValue()...) constructs again Change-Id: I11477654d217a5ae127c1ef1b19cbff56ed052a6
* rename SfxSingleTabDialog to SfxNoLayoutSingleTabDialogCaolán McNamara2013-01-242-3/+3
| | | | Change-Id: I4922b719bf819879909e9949bf7946f20914d1e5
* show errors as errors, not warningLionel Elie Mamane2013-01-233-4/+26
| | | | Change-Id: I32e514fbfbd323b688b25b9e2165d0c76e3c4db5
* fix handling of subqueries in query designLionel Elie Mamane2013-01-233-36/+51
| | | | | | | | | | | | | | | | | | | - don't remove parentheses around subqueries (without the parentheses, it is not valid SQL) * when saving a Field (name value) typed by the user interactively * when parsing SQL and constructing the initial Query Design view - automatically add the necessary parentheses when a SELECT statement is entered as column name Also: In code saving a Field (name value) typed by the user interactively, factorise some common code Assorted minor fixes (typos in comments, etc) Change-Id: I3843258323c903cba23238b0730ec4eb5875f792
* SQL parser: no "as" rule anymore; now as_clause and opt_asLionel Elie Mamane2013-01-231-1/+2
| | | | Change-Id: Ib0c7151b311029318c213abb86e6541e3b27d040
* ISO8859-1 -> UTF8 in commentLionel Elie Mamane2013-01-231-1/+1
| | | | Change-Id: I8a67235e5110618f45fe9d9467bbb7ff90c7c712
* Remove more STRINGPARAM macros from dbaccessMarcos Paulo de Souza2013-01-218-77/+48
| | | | | | | Change-Id: I5a5af27d7c980f6b71011c33531a49a82d79fbc8 Reviewed-on: https://gerrit.libreoffice.org/1771 Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br> Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
* Changed SetText() / GetText() to take/return OUStringChr. Rossmanith2013-01-2118-59/+59
| | | | | | | | | replaced lots of Len() with isEmpty() Change-Id: I6b82d48245ee2a0782e05a326f7934e9357227d0 Reviewed-on: https://gerrit.libreoffice.org/1795 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* mark *all* tables of a nested join as addedLionel Elie Mamane2013-01-181-18/+33
| | | | | | Else, if the n^{th} (with n>2) table also appears in a (non-NATURAL) INNER JOIN, it is repeated later, leading to an error from the database engine Change-Id: I03e0f0ef51f45be9d7ddfa63a9dbe09dc500f8dd
* OXMLDataSourceSetting::convertString: try to make Clang tb happyMichael Stahl2013-01-161-21/+14
| | | | Change-Id: I8b2509f28206fd5b6c20c88d9186a9a18f76f7a5
* fix buildLuboš Luňák2013-01-161-2/+2
| | | | Change-Id: I1697e761061c21826f57d4b2f4694ee03cdfb05d
* Sanitize/simplify some parameters of functions in dbaccessMarcos Paulo de Souza2013-01-161-27/+25
| | | | | | | | | | | | | | | | | Some functions have parameters of OUString, so, we don't need this type of junk: ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" ) and we can use directly: "LayoutManager" I believe this brings some simplification to the code, at first glance! Also in this patch, changed some equalsAsciiL to ==, this simplifies more code yet. Change-Id: I38b8076afb84d77ed51c7be407c7f899d80829ff Reviewed-on: https://gerrit.libreoffice.org/1707 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* fdo#57950: dbaccess: STRINGPARAM and more chained appendsMarcos Paulo de Souza2013-01-1611-123/+72
| | | | | | | Change-Id: Iab1ba5eb6702d386e2775d7426c3398b606d2d97 Reviewed-on: https://gerrit.libreoffice.org/1706 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* fdo#46808, Convert comphelper::MimeConfigurationHelper to XComponentContextNoel Grandin2013-01-153-3/+3
| | | | Change-Id: I74b4f0c4a84f02b218102405eaba24cf47f654ce
* fdo#46808, Adapt embed::*EmbeddedObjectCreator UNO services to new styleNoel Grandin2013-01-151-91/+86
| | | | | | | | | | The services already existed, it just did not have an IDL file. Adapts com.sun.star.embed.OOoEmbeddedObjectFactory com.sun.star.embed.OLEEmbeddedObjectFactory com.sun.star.embed.EmbeddedObjectCreator Change-Id: I8ba01c7fd956a46c87d02dc7d61bdd5fcdf21ab8
* fdo#46808, Adapt frame::TaskCreator UNO service to new styleNoel Grandin2013-01-1537-137/+141
| | | | | | The service already existed, it just did not have an IDL file. Change-Id: I157c53d09b612da0178432100b8928013f811706
* we only ever want the preferred window size from GetOptimalSizeCaolán McNamara2013-01-143-3/+3
| | | | | | so remove the MAX and MIN options and simplify the whole lot Change-Id: Iaaf350c37e01f7fce434af760bcddb9b7d7135ea
* fix compile with higher debug levelsCaolán McNamara2013-01-121-1/+1
| | | | Change-Id: I95c932f94c4124ef40c67f7f270be05dfafd8f65
* Removed some RTL_* macros and rtl:: prefixes in dbaccessMarcos Paulo de Souza2013-01-104-231/+226
| | | | | | | Change-Id: I467ad9307536e6cdd32ebcdd40539bd5f8614c85 Conflicts: dbaccess/source/core/dataaccess/documentcontainer.cxx
* Remove some RTL_* macros, rtl:: prefixes and simplification in dbaccessMarcos Paulo de Souza2013-01-093-174/+143
| | | | | | | | Change-Id: I2a4381cbe1e716cd2de1fb596053646d1a74d4b0 Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmai.com> Reviewed-on: https://gerrit.libreoffice.org/1572 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* fdo#46808, convert UnoControl and sub-classes to XComponentContextNoel Grandin2013-01-092-5/+15
| | | | Change-Id: I4ade267a44620f5a3af8009ac57a2456c62b83bc
* fdo#46808, use service constructor for i18n::CollatorNoel Grandin2013-01-093-5/+3
| | | | Change-Id: I95d2a458ad05c9a248ceb3ca11cb41339cd5d395
* fdo#468080, remove unnecessary XMultiServiceFactory from frameworkNoel Grandin2013-01-0913-41/+19
| | | | | | | | | The ActionTrigger classes in framework were not using their XMultiServiceFactory parameters, so remove them. And follow that through by cleaning up places that no longer need to store XMultiServiceFactory references. Change-Id: I433c4fdb02a56eeef75728893e0c9b749d8313be
* fdo#46808, convert OGenericAdministrationPage::setServiceFactoryNoel Grandin2013-01-0913-26/+21
| | | | | | ... to XComponentContext. Change-Id: I8f9a811dafc831db59d6a462f8b405d7568e34cf
* fdo#46808, convert DataSourceInfoConverter to XComponentContextNoel Grandin2013-01-093-14/+10
| | | | | | | and change it from a class to a simple method, there is no need for it to be a class. Change-Id: Ia8c263682d81371767f43acf1028c815923b4845
* fdo#46808, new method OConfigurationTreeRoot::createWithComponentContextNoel Grandin2013-01-0937-95/+99
| | | | | | | and use it to replace usage of createWithServiceFactory, and thus replace usage of XMultiServiceFactory. Change-Id: Id2f44066683ce17cf7a22f80916031556ef0e82a
* fdo#46808, Adapt sdb::OrderDialog UNO service to new styleNoel Grandin2013-01-092-0/+19
| | | | | | The service already existed, it just did not have an IDL file. Change-Id: If24e9d6069bf7454bb0add3be8c4bc5916cc4d1f
* allow menu items to be referred to by a nameCaolán McNamara2013-01-072-10/+10
| | | | Change-Id: I8bb1c082e3948f919232b81e0f1f869b88fcd852
* fdo#57950: Remove some chained appends in dbaccessMarcos Paulo de Souza2013-01-071-12/+4
| | | | | | | | | | Also simplify logic a little bit. Change-Id: I342f8d1d22e70023d23c6c8ca3976d501e18fb90 Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/1559 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* fdo#57950: More fixes for chained appends in dbaccessMarcos Paulo de Souza2013-01-071-165/+144
| | | | | | | | | | | | And also: Remove some RTL_* macros Remove ::rtl prefix Change-Id: I9c3902672518559e8a139c37bc1933843bebfe5d Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/1561 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* Cleanup: #include <tools/gen.hxx>Matteo Casalin2013-01-071-1/+0
| | | | | | | Change-Id: Ic547b4a59102afc8bdbc85ec95ac312e32ef2530 Reviewed-on: https://gerrit.libreoffice.org/1484 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>