summaryrefslogtreecommitdiff
path: root/dbaccess
AgeCommit message (Collapse)Author
2013-02-22fix strings more in 1da3af5f1eb6a32fd0ab10da7cf2f8ddb298a3a1Michael Stahl
Change-Id: I7d4cf698721fcf972bf35babb6d53369719eed18
2013-02-22fix string conversion 1da3af5f1eb6a32fd0ab10da7cf2f8ddb298a3a1Michael Stahl
Change-Id: I18f80b5fd6aa11ed78fe2b1bee3cb9f843cf203e
2013-02-22[Uu]sefull -> [Uu]sefulJulien Nabet
Change-Id: I5dad83789ff9b6815561208679a5e19821041e1f
2013-02-22unused local variableAndras Timar
Change-Id: I8d8019b6947c1f989d897389379f2b6bb396cfbb
2013-02-22fdo#38838, ::rtl::OUString, String to OUStringGergő Mocsi
I have cleared out String and ::rtl::OUString calls in module dbaccess/source/core/misc. It was mainly file dbaccess/source/core/misc/dnstypes.cxx , and it's usages. There are still some calls in dbaccess for this class(ODnsTypeCollection), that needs refactoring (eg. in file DbAdminImpl.cxx, method "String ODbDataSourceAdministrationHelper::getConnectionURL() const"). Remaining calls will be my next task (in module dbaccess). I also clear out deprecated macro RTL_CONSTASCII_USTRINGPARAM every time I find one. The class I've mentioned above (ODnsTypeCollector) is OK. Change-Id: Ia0f3bb8cc649d1ecf8decc093f8a1a20ee23c33c Reviewed-on: https://gerrit.libreoffice.org/2289 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-02-22s/the the/the/Tor Lillqvist
Change-Id: Iadacffaad832c6ff06757e8567e24f929f24a4c3
2013-02-22s/whith/with/Tor Lillqvist
Change-Id: I23da81c182ad30faf871d98e55820295418207d0
2013-02-21Fix type unkown -> unknownJulien Nabet
Change-Id: I8d55d5ae5ae38ae2b252859b5400e36301f19ef0
2013-02-21generic integers to enumsLuboš Luňák
Change-Id: Ic43283b9e1666c0f2162e277dc79fc6f992ef616
2013-02-19fdo#38838, ::rtl::OUString to OUString, String to OUStringGergő Mocsi
::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>
2013-02-13update pch headers, broken by 1aaf9a9Luboš Luňák
2013-02-12fdo#46808, convert xmloff module code to use XComponentContextNoel Grandin
with lots of repurcussions in other modules Change-Id: I6982671eecc701b06cf85d93533e1fe618044fea
2013-02-11fdo#46808, convert io::TextOutputStream service to new-styleNoel Grandin
Change-Id: I12af47afc21c2b646197893a77698f4e0818f94f
2013-02-11fdo#46808, convert io::TextInputStream service to new styleNoel Grandin
Change-Id: Ida4abdd6587399aa8ade88af672bcb23ab7ea0f1
2013-02-11fdo#46808, Use service constructor for awt::DialogProviderNoel Grandin
Change-Id: I5d0a3e66afeadafa6d53ff0a255d036b7e3d528d
2013-02-11fdo#46808, Adapt document::XML*BasicExporter UNO services to new styleNoel Grandin
The services are document::XMLBasicExporter document::XMLOasisBasicExporter Change-Id: Ifd93e5735cae94d34904d79769cdb3edf587fe43
2013-02-11fdo#46808, Adapt java::JavaVirtualMachine UNO service to new styleNoel Grandin
Change-Id: Ib0329b9cdc4290ce98c4182e8466c1b44b408341
2013-02-07Fix busted multi-repeated column in evolution database viewCaolán McNamara
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
2013-02-06remove obsolete hidother.src filesAndras Timar
Change-Id: Ieb30afd81d16d184e0276ce7699b848f26a00013
2013-02-05ORowSetValue: clean up sign/unsigned union memberDavid Ostrovsky
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
2013-02-04use OUString(Buffer) in class EditChr. Rossmanith
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>
2013-01-28fdo#46808, fix calling conventionNoel Grandin
Change-Id: I72b7945a6a8838e97184a27661520de55ac45e73
2013-01-28fdo#46808, Adapt document::*PropertyValues UNO service to new styleNoel Grandin
The services are: document::NamedPropertyValues document::IndexedPropertyValues The services already existed, they just did not have IDL files Change-Id: Ibafe9b5afb9b30785df4f66aa923f4b96ceabeed
2013-01-28fdo#46808, convert code to use new-style service constructorNoel Grandin
Change-Id: I1b50f7ef6c01d13abd15ba3a76bd683a0151a914
2013-01-28fdo#46808, Adapt sdb::TableDefinition UNO service to new styleNoel Grandin
The service already existed, it just did not have an IDL file Change-Id: Iaac84da8baa3a060eef339d8e477f86ca49fae08
2013-01-28fdo#46808, Adapt document::GraphicObjectResolver UNO service to new styleNoel Grandin
The services already existed, it just did not have an IDL file Change-Id: I245f78c165dbfde11a981efd7033c5c282f4e8ad
2013-01-27Remove more STRINGPARAM macros form dbaccessMarcos Paulo de Souza
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>
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl
- 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
2013-01-24Change GetSavedValue() to return OUStringChr. Rossmanith
removed temporarily added OUString(...GetSavedValue()...) constructs again Change-Id: I11477654d217a5ae127c1ef1b19cbff56ed052a6
2013-01-24rename SfxSingleTabDialog to SfxNoLayoutSingleTabDialogCaolán McNamara
Change-Id: I4922b719bf819879909e9949bf7946f20914d1e5
2013-01-23show errors as errors, not warningLionel Elie Mamane
Change-Id: I32e514fbfbd323b688b25b9e2165d0c76e3c4db5
2013-01-23fix handling of subqueries in query designLionel Elie Mamane
- 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
2013-01-23SQL parser: no "as" rule anymore; now as_clause and opt_asLionel Elie Mamane
Change-Id: Ib0c7151b311029318c213abb86e6541e3b27d040
2013-01-23ISO8859-1 -> UTF8 in commentLionel Elie Mamane
Change-Id: I8a67235e5110618f45fe9d9467bbb7ff90c7c712
2013-01-21Remove more STRINGPARAM macros from dbaccessMarcos Paulo de Souza
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>
2013-01-21Changed SetText() / GetText() to take/return OUStringChr. Rossmanith
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>
2013-01-18mark *all* tables of a nested join as addedLionel Elie Mamane
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
2013-01-16OXMLDataSourceSetting::convertString: try to make Clang tb happyMichael Stahl
Change-Id: I8b2509f28206fd5b6c20c88d9186a9a18f76f7a5
2013-01-16fix buildLuboš Luňák
Change-Id: I1697e761061c21826f57d4b2f4694ee03cdfb05d
2013-01-16Sanitize/simplify some parameters of functions in dbaccessMarcos Paulo de Souza
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>
2013-01-16fdo#57950: dbaccess: STRINGPARAM and more chained appendsMarcos Paulo de Souza
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>
2013-01-15fdo#46808, Convert comphelper::MimeConfigurationHelper to XComponentContextNoel Grandin
Change-Id: I74b4f0c4a84f02b218102405eaba24cf47f654ce
2013-01-15fdo#46808, Adapt embed::*EmbeddedObjectCreator UNO services to new styleNoel Grandin
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
2013-01-15fdo#46808, Adapt frame::TaskCreator UNO service to new styleNoel Grandin
The service already existed, it just did not have an IDL file. Change-Id: I157c53d09b612da0178432100b8928013f811706
2013-01-14we only ever want the preferred window size from GetOptimalSizeCaolán McNamara
so remove the MAX and MIN options and simplify the whole lot Change-Id: Iaaf350c37e01f7fce434af760bcddb9b7d7135ea
2013-01-12fix compile with higher debug levelsCaolán McNamara
Change-Id: I95c932f94c4124ef40c67f7f270be05dfafd8f65
2013-01-10Removed some RTL_* macros and rtl:: prefixes in dbaccessMarcos Paulo de Souza
Change-Id: I467ad9307536e6cdd32ebcdd40539bd5f8614c85 Conflicts: dbaccess/source/core/dataaccess/documentcontainer.cxx
2013-01-09Remove some RTL_* macros, rtl:: prefixes and simplification in dbaccessMarcos Paulo de Souza
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>
2013-01-09fdo#46808, convert UnoControl and sub-classes to XComponentContextNoel Grandin
Change-Id: I4ade267a44620f5a3af8009ac57a2456c62b83bc
2013-01-09fdo#46808, use service constructor for i18n::CollatorNoel Grandin
Change-Id: I95d2a458ad05c9a248ceb3ca11cb41339cd5d395