summaryrefslogtreecommitdiff
path: root/dbaccess
AgeCommit message (Collapse)Author
2014-07-10Resolves fdo#43277 Send Legacy Report "E-Mail as ..."=>error messageJulien Nabet
Cherry-picked from 501ebd0f7c867c4df5ba84fd8b6b1a197aeeea92 Change-Id: Iaaadd4fd3015214c007a86d1a83f837aa0d2bdb6 Reviewed-on: https://gerrit.libreoffice.org/9998 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2014-07-02bnc#812796: Correctly handle static value array for OOXML charts.Kohei Yoshida
We need to pass the role of the data sequence in order to avoid unreliable guess work when importing static value array. Also, not all Excel's scatter plots have real numeric X values; some have textural X values in which case Excel switch to generating 1, 2, 3, ... as X values. When importing to our chart implementation, using "categories" role in such cases instead of "values-x" results in a more faithful chart rendering. (cherry picked from commit 6c4e21a234f12e1310ba06f9859e08b424acf8bf) Conflicts: chart2/source/inc/InternalDataProvider.hxx chart2/source/tools/InternalDataProvider.cxx Conflicts: chart2/source/inc/InternalDataProvider.hxx dbaccess/source/core/inc/DatabaseDataProvider.hxx dbaccess/source/core/misc/DatabaseDataProvider.cxx sc/source/filter/inc/excelchartconverter.hxx Change-Id: If4bc1f650bb024dcd1b1b36537f457fb38404a78
2014-06-29fixes for up-casting to Reference<XInterface>Noel Grandin
Fix regressions introduced with 6a043e9c0acff20e1618ca8ec15c21d5d0fd0d37 "Use the new type-checking Reference constructor to reduce code noise" Signed-off-by: Stephan Bergmann <sbergman@redhat.com> (cherry picked from commit 533c6cb6bad6ef0432e8eebbfd4daf90ef71f3b4) Conflicts: framework/source/uifactory/menubarfactory.cxx Change-Id: I85662856f21c810a7db497fe3b0e116f075b1687 Reviewed-on: https://gerrit.libreoffice.org/9921 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-06-19fdo#71076, fdo#71767: Preserve number formats when charts are copied.Kohei Yoshida
(cherry picked from commit 1d38cb365543924f9c50014e6b2227e77de1d0c9) Conflicts: xmloff/source/chart/SchXMLExport.cxx sd/source/ui/view/sdview3.cxx chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx chart2/source/controller/main/ChartTransferable.cxx chart2/source/controller/main/ChartTransferable.hxx chart2/source/model/main/Axis.cxx chart2/source/model/template/ChartTypeTemplate.cxx chart2/source/tools/AxisHelper.cxx chart2/source/view/main/ChartView.cxx comphelper/source/container/embeddedobjectcontainer.cxx dbaccess/source/ui/browser/dbexchange.cxx dbaccess/source/ui/inc/JoinExchange.hxx dbaccess/source/ui/inc/TableRowExchange.hxx dbaccess/source/ui/inc/dbexchange.hxx dbaccess/source/ui/querydesign/JoinExchange.cxx dbaccess/source/ui/tabledesign/TableRowExchange.cxx embeddedobj/source/commonembedding/persistence.cxx embeddedobj/source/inc/commonembobj.hxx include/comphelper/embeddedobjectcontainer.hxx include/svtools/embedtransfer.hxx include/svtools/stringtransfer.hxx include/svtools/transfer.hxx include/svx/dbaexchange.hxx include/svx/dbaobjectex.hxx include/svx/fmview.hxx include/svx/galmisc.hxx include/svx/svdobj.hxx include/svx/svdoole2.hxx include/svx/svdxcgv.hxx include/svx/view3d.hxx include/svx/xmlexchg.hxx include/xmloff/xmlexp.hxx reportdesign/source/ui/dlg/GroupExchange.cxx reportdesign/source/ui/dlg/GroupExchange.hxx reportdesign/source/ui/inc/dlgedclip.hxx reportdesign/source/ui/report/dlgedclip.cxx sc/inc/column.hxx sc/source/ui/app/drwtrans.cxx sc/source/ui/app/lnktrans.cxx sc/source/ui/app/seltrans.cxx sc/source/ui/app/transobj.cxx sc/source/ui/inc/drwtrans.hxx sc/source/ui/inc/lnktrans.hxx sc/source/ui/inc/seltrans.hxx sc/source/ui/inc/transobj.hxx sc/source/ui/inc/viewfunc.hxx sc/source/ui/view/viewfun5.cxx sc/source/ui/view/viewfun7.cxx sd/source/ui/app/sdxfer.cxx sd/source/ui/dlg/sdtreelb.cxx sd/source/ui/inc/TabControl.hxx sd/source/ui/inc/View.hxx sd/source/ui/inc/sdtreelb.hxx sd/source/ui/inc/sdxfer.hxx sd/source/ui/view/sdview2.cxx sd/source/ui/view/tabcontr.cxx sfx2/source/doc/objxtor.cxx svtools/source/misc/embedtransfer.cxx svtools/source/misc/stringtransfer.cxx svtools/source/misc/transfer.cxx svtools/source/misc/transfer2.cxx svx/source/engine3d/view3d.cxx svx/source/fmcomp/dbaexchange.cxx svx/source/fmcomp/dbaobjectex.cxx svx/source/fmcomp/xmlexchg.cxx svx/source/form/fmexch.cxx svx/source/form/fmview.cxx svx/source/gallery2/galmisc.cxx svx/source/inc/fmexch.hxx svx/source/svdraw/svdoole2.cxx svx/source/svdraw/svdxcgv.cxx svx/source/tbxctrls/colrctrl.cxx sw/source/core/uibase/dochdl/swdtflvr.cxx sw/source/core/uibase/inc/swdtflvr.hxx sw/source/core/undo/unins.cxx Change-Id: If5ae8852152012483237e7602e56a0c46ea8748a
2014-06-10fdo#79786 implement getFormOperations for data grid (table view)Lionel Elie Mamane
Change-Id: I704057b25ca11633ba62fbb834bd2e6095f348f3 Reviewed-on: https://gerrit.libreoffice.org/9687 Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: David Tardon <dtardon@redhat.com>
2014-06-10fdo#73352 don't crash if clearWarnings throws an SQLExceptionLionel Elie Mamane
Change-Id: If67bda43589834e4c922056145bc60884728cb8a Reviewed-on: https://gerrit.libreoffice.org/9593 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-05-22fdo#78971 There's even a git hook to prevent commits containing SAL_DEBUGStephan Bergmann
Change-Id: I5a46e1eed129edf3648c68c36951d6fdf9bd370d (cherry picked from commit dc24203e5f20dcbf2818651a8802e67338293b3c)
2014-05-09Application::PostUserEvent returns a pointer dressed as sal_uLongStephan Bergmann
cherry picked from commit ce53796bfaf6df5c4415fda8f641cad8a3e144a6, plus more cases from 93f5d5a9190e0e03bf4822663652a4b068c44f75: "The opaque PostUserEvent IDs are actually pointers so declare them as such. This avoids the recurring mistake of storing such IDs as sal_uInt32, truncating in 64 bit environments, causing RemoveUserEvent to potentially not remove the event, it thus firing 'too late' and probably causing a crash." Change-Id: Ia5ca45e35766a7cebf0b53bcac1bd9dff29ad6ea Reviewed-on: https://gerrit.libreoffice.org/9259 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-10dbaccess: ODF export: set "Version" property on target StorageMichael Stahl
... like SfxObjectShell::SetupStorage() does, and not on the property set that is passed to the XML export filters where it probably does nothing. (cherry picked from commit f60b61b2cf87e89938c760877a56bc4dd5c577a9) Conflicts: dbaccess/source/core/dataaccess/databasedocument.cxx Change-Id: I21da1b92fc921eb47e492169e69ef15ac2f0e19d Reviewed-on: https://gerrit.libreoffice.org/7381 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-12-20added bool bForExport parameter to XMLPropertySetMapper ctorEike Rathke
Set to true for export, false for import. If export true, an XMLPropertyMapEntry with mbImportOnly==true is not added to the mappings. This to be able to have more than one mappings for import (for example a current extension namespace and the future namespace proposed to the ODF-TC, or corrected typos in element or attribute names), but map only to one entry on export, of course. Change-Id: Ia01ea949c88eda2f8a6c10f51c59e35e7abdcaf3 (cherry picked from commit ebc1b2fe50c7ed1002ed8431410b8e2ac6e795b9)
2013-12-20prepared XMLPropertyMapEntry with mbImportOnly flagEike Rathke
Change-Id: Id5a54a591a42c836884af1fd09dc055f2fce6db5 (cherry picked from commit 9dd7ee88bd9835ae2bae36093100fcd651fd3aeb)
2013-12-19Revert "fdo#72163 after updating m_xComposer, command facets are not dirty"Lionel Elie Mamane
This reverts commit 938f0e7fe4216d135815b98fdb918f97e747c6bd. This caused too many bugs to be cleaned up this late in the 4.2 development cycle: - unittest failure; fixed only for the unittested driver. (commit 917f9576349240796dfc0cef0f38c9b861c316e7 Issue of RowSet and Statement each thinking they own the ResultSet, and both calling dispose on it... After this revert, will not happen because RowSet will never generate two ResultSets from the same Statement.) Still needs fixing for all other drivers... Not realistic in timeframe for 4.2.0. - fdo#72696 - fdo#72463 The following commit still keeps fdo#72163 fixed. commit 5bfdb6cd5f80f87c5bc6b0bccdad5aad00a45ba3 fdo#72163 belts and suspenders Change-Id: Ieb8c8cf1ce9b681b644f34b74a2c6929b3bc300b Reviewed-on: https://gerrit.libreoffice.org/7093 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-16initial install-package-foo target for partial installsBjoern Michaelsen
make packageinfo target add uiconfig file translations add missing l10n config files add missing help files in packageinfo Reviewed-on: https://gerrit.libreoffice.org/6754 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Conflicts: helpcontent2 translations a2498a118e729276a78ef3a4eb43b5d0b302d326 9bb39bdd677af4be0da621370c51eb9e22ecc33f a7e654cdeffd832f51016ff51aa180fe3924ff4e 4ee41fdb600cb3a89da387dffe64e6a30192761c 349fb24a388775c58be7a326832b3fc0ec38180f 8a2ca73c02fd6b04ce60e7701c51d2362ef7ec06 Change-Id: Id5f6f5c1f3e46df2d9033ccd5bbf2af6ab38a9e8 Reviewed-on: https://gerrit.libreoffice.org/6982 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-12-09fdo#72267 boolean_test is subsumed by general case "foo IS [NOT] bar"Lionel Elie Mamane
Change-Id: Ie9666b1c8878dd26593629b4b64d74b7448f98c1 Reviewed-on: https://gerrit.libreoffice.org/6974 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-09fix equalsAscii conversion. Noticed in fdo#72391Noel Grandin
In commit 363cc397172f2b0a94d9c4dc44fc8d95072795a3 "convert equalsAsciiL calls to startWith calls where possible" I incorrectly converted equalsAsciiL calls to startsWith calls. This commit fixes those places to use the == OUString operator. Change-Id: If76993baf73e3d8fb3bbcf6e8314e59fdc1207b6 Reviewed-on: https://gerrit.libreoffice.org/7008 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04fdo#70144 Don't reset Document's modified flag when inserting new table.Andrzej J.R. Hunt
It is unclear why the modified flag should ever be blindly overwritten hence we no longer touch the modified flag here. (This change appears to have no undesired side-effects.) Change-Id: I246eb7d84249794fa4d52fcd9b008d8340bbc82d Reviewed-on: https://gerrit.libreoffice.org/6632 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu> (cherry picked from commit 56d4f4b7b97eaf212a3bc6bdb1da767106e7224a)
2013-12-02fdo#72163 belts and suspendersLionel Elie Mamane
1) Do not dispose m_xComposer, might still be used by our m_pCache 2) Do not create a new m_xComposer if the previous one will do, so that we do not gratiously use a different one than our m_pCache. Change-Id: I6540c035c9159017c694b36e676721ec3e42db51
2013-12-02fdo#72163 after updating m_xComposer, command facets are not dirty anymoreLionel Elie Mamane
Else we dispose m_xComposer too eagerly; still used by m_pCacheSet. Change-Id: I205488465c19a356534df17b8a5e9a20ce6766c9
2013-11-25dbaccess: improve exception message when no driver foundMichael Stahl
Change-Id: I1734034e05324eb0d66fd52444b0521d4143bc12 (cherry picked from commit 7ad1c4356bfde3bf37830fa8e4b3267212473f79)
2013-11-20Revert "remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls"Noel Grandin
This reverts commit acebbee971136e6ee0a7bc75bd57d937d6e1c295. I mistakenly converted OUString::equalsL calls to OUString::startsWith calls.
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL callsNoel Grandin
Convert code like: if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) to: if (aByteStr.startsWith("rem")) Change-Id: I09e40b3fdc87d59a8176c2a5f39cc6aa5cf5a576
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OString constructorNoel Grandin
Convert code like: OString aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX")); to: OString aKeyName("NDX"); which compiles down to the same code Change-Id: I1780264cae4484fc78f0586b0750c09f2dce135f
2013-11-19convert equalsAsciiL calls to startWith calls where possibleNoel Grandin
Simplify code like: aStr.equalsAsciiL( "%", 1 ) to aStr.startsWith( "%" ) Change-Id: Iee0e4e60b0ae6d567fa8f72db5d616fffbec3c00
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-17missing translatable="yes" attributesAndras Timar
Change-Id: I138c8f245e4bfb2f23dd4cd8a629d8e5e3aac56b
2013-11-14make l10n buildable separatelyBjoern Michaelsen
- this renames the 'almost' module target to non-l10n - and adds a l10n target which is intended to only build l10n parts of the product - packagers should then be able to build l10n and non-l10n parts of the product independently, thus: - enable quicker rebuilds - distribution of load - updates to l10n without a full rebuild - security fixes to binaries without rebuilding all l10n - the new targets are called build-l10n-only and build-non-l10n-only - note this is not intended to move a concept of split packages upstream -- while this exsists in distros, the number of test scenarios for this would explode upstream Change-Id: Ib8ccc9bc52718d9b0ebbfee76ad93dc29c260863 Conflicts: filter/Module_filter.mk
2013-11-14Move MediaDescriptor from comphelper to unotoolsStephan Bergmann
...so it will be able to use SvtSecurityOptions internally. Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann
Change-Id: I9cfbb66dbfac02faa478a4f38982962b0c6f3c3d
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann
Change-Id: If7618661da2b6c919ec05abace03723cb961c741
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann
Change-Id: I6b4b3f8c272dcd5663920310e40647d7730c54d5
2013-11-14remove unnecessary sal_Unicode casts in DBACCESS moduleNoel Grandin
Change-Id: I4c4ab5d672e994b1e8e3beac027d3f4e8f700714
2013-11-13Pass Document directly to Driver for embedded databases.Andrzej J.R. Hunt
Change-Id: I346a8ef07c5d695b3aa879f5c25cc4af97e25b99 Reviewed-on: https://gerrit.libreoffice.org/6627 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-11-11convert OUString compareToAscii == 0 to equalsAsciiNoel Grandin
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11convert OUString !compareToAscii to equalsAsciiNoel Grandin
Convert code like if( ! aStr.compareToAscii("XXX") ) to if( aStr.equalsAscii("XXX") ) which is both clearer and faster. Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b
2013-11-11convert OUString 0==compareToAscii to equalsAsciiNoel Grandin
Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
2013-11-11remove unnecessary use of OUString constructorNoel Grandin
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-11remove unnecessary use of OUString constructor in DBACCESS moduleNoel Grandin
Change-Id: I831a6506211be30c5b743c20724904c903c5b3c0
2013-11-09factorise code; make DBTestBase a UnoApiTestLionel Elie Mamane
Change-Id: I29c131f60caa36c464d99b9b86a59e2e16ce94e3
2013-11-09indentationLionel Elie Mamane
Change-Id: Idec97e6b9269cb481428bef8b95aa112197fe866
2013-11-09make firebird-sdbc an experimental featureLionel Elie Mamane
Change-Id: I0f2453e23d18597cfe1ad2a4cd4902b15f0a8f7d
2013-11-09fixup the fixup to dbaccess macros_testLionel Elie Mamane
Change-Id: I7cc8b6bd3778158e7c93545bbdcf35cccf986188
2013-11-09fixup dbaccess macros_testLionel Elie Mamane
Change-Id: Iefb12d8b6fe8b5c9795220f8c7ff90f6ecc92576
2013-11-09nitpicksLionel Elie Mamane
Change-Id: I190a629a8c76f98b54295eebcf712b4c5b26ecff
2013-11-09deliver can use hardlinkLionel Elie Mamane
Change-Id: Ia04eedc6375748505c954e2315a0c5af7afae84f
2013-11-09fixup and enable dbaccess macros_testLionel Elie Mamane
Change-Id: Ic5599df7a2ad7f2f3a9f2794b16ef0a4ab698b06
2013-11-09UnoApiTest don't require CalcLionel Elie Mamane
There is no reason for the generic UnoApiTest to require Calc specifically. Calc tests can/should instantiate a Calc instance. We can create a CalcUnoApiTest for that that inherits from UnoApiTest; however this does not seem necessary, "make sc.clean" succeeds. Anyway, the ScGlobals::ensure mentioned in the comment does not seem to exist. This allows us to eliminate some code duplication in tests that were reimplementing UnoApiTest minus the Calc instantiation. Change-Id: I37bea9df41e3960df0458fe689cf6c046a243617
2013-11-09dbaccess DialogSaveTest not a UnoApiTestLionel Elie Mamane
It overrides everything that UnoApiTest does anyway. Change-Id: I531b2245626cbfd8d13a48a710d409e30ba2d20a
2013-11-07Add "New Database" button for Firebird file driver dialog.Andrzej J.R. Hunt
Firebird is able to create new databases from within LO hence we need to add a new property to database configration files. This allows use of a db creation dialog (which is opened by using the "New Database" button) in order to allow creating new dialogs (in addition to being able to open existing databases using the "Browse" button). Conflicts: dbaccess/source/ui/dlg/ConnectionHelper.hxx Change-Id: I6174f3b7d9032c48286b49b5ddf125cd3b428303
2013-11-06Remove #ifdef TIMELOG'ed SAL_INFOsStephan Bergmann
...the code doesn't make much sense that way. Change-Id: I506e37b44924701255431f6d20d4610f7f52287d
2013-11-06convert xub_StrLen to sal_Int32Noel Grandin
convert for loops using xub_StrLen to use sal_Int32 Change-Id: I5f635ca078966fefe938dbc7e8dea7c8d0d0b554