summaryrefslogtreecommitdiff
path: root/dbaccess/source
AgeCommit message (Collapse)Author
2015-12-23New saving behaviorMaxim Monastirsky
Changes in this commit: - AlwaysAllowSave config is gone. Saving is always permitted, unless in a read only document. Also changed the behavior in dbaccess to match sfx2. - The toolbar save button is always enabled, to always give access to the dropdown. That's the case even in a read only document, except that it changes to DROPDOWNONLY, and the save as command icon+tooltip. In table/query designers we still disable the button in read only state. - When the document is modified, the toolbar button gets a special icon to indicate that. TODO: - Icons for the document modified state are still missing. I added some fake links to Tango's links.txt in order to test the new behavior. These links shouldn't stay as-is in a production version! Change-Id: I56c169bf48b78faaf53c2989ce8624f8297ffb6e Reviewed-on: https://gerrit.libreoffice.org/20839 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-12-23loplugin:unusedfields in dbaccessNoel Grandin
Change-Id: I5f38bf33deaec17203e1bdcd3a61085266e42501
2015-12-18dbaccess: module_dba not used anymoreMatúš Kukan
Change-Id: I6f9222dd40c553e1d0ad63e00e5874be939a97c1
2015-12-18XComponentContext not needed for DataAccessDescriptorMatúš Kukan
Change-Id: If5ede0c308930d37bff9e97afc8a76cc5b709034
2015-12-16assert that no ODF import happens without a BaseURLMichael Stahl
Change-Id: I4520a9d0350349cb083ed627a19264a3a97e090f
2015-12-12OOneInstanceAutoRegistration is not usedMatúš Kukan
Change-Id: I6928dec92655e4655af6c519405712892bf7d870
2015-12-12tdf#74608 dbaccess: Constructor for singleton DataAccessDescriptorFactoryMatúš Kukan
Change-Id: Id1453e3cf1c8aef22536b4e0797cca7e654316c0
2015-12-11Return std::unique_ptr from svt::AcceleratorExecute::createAcceleratorHelperStephan Bergmann
...to prevent errors like 5ac6e00274e732435b55c2908db9cea658fe549b "Memory leak" Change-Id: I3e20393af628849d8a387b491b75e1aacdea982a
2015-12-10loplugin:nullptr: More NULL -> nullptr automatic rewriteStephan Bergmann
Change-Id: Ie83819e2bcdc5fa160b39296b005ca9a5ff74b1d
2015-12-05loplugin:defaultparamsMatúš Kukan
Change-Id: I9015579a93e58d382866cbebe7af462735b08700
2015-12-05tdf#74608 dbaccess: Constructor feature for ODatabaseDocumentMatúš Kukan
Change-Id: Id524a1a717c350cb0558ef5ff11da3e6c941c203
2015-12-05tdf#74608 dbaccess: Constructor feature for OComponentDefinitionMatúš Kukan
Change-Id: I150cdaa46a0d86e1a4b6598ac580a10b2e8f071f
2015-12-05Fix Treelist shouldn't use VCLEVENT_LISTBOX_SELECTJulien Nabet
warn:legacy.osl:21997:1:accessibility/source/extended/accessiblelistbox.cxx:103: Debug: Treelist shouldn't use VCLEVENT_LISTBOX_SELECT To reproduce: - Launch Base and create a brand new HsqlDb file or open an existing one - Select Tables pane - Click Table Design => the message appears in console Change-Id: If7fa99890bbec8795a62b83dbe193247adffb733 Reviewed-on: https://gerrit.libreoffice.org/20411 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-12-05tdf#96234: Type Formatting, Primary key checkbox may be checkedJulien Nabet
Right click on a field in Type Formatting (Base, paste a table from Calc for eg) makes a popup which takes into account now if the field is a primary key or not. Handles multi-fields primary key, too: the selected fields must be exactly those in the primary key, no more, no less. Change-Id: I545b946bccd3fc02f4f6c3bdb99f914d181a3d40
2015-12-05tdf#74608 dbaccess: Constructor feature for OCommandDefinitionMatúš Kukan
Change-Id: Ibaa1fd8310fdba073190a7721891ebb835eb0e6e
2015-12-04UBSan: Bad static_cast from dbaccess::ODatabaseSourceStephan Bergmann
...which doesn't inherit from cppu::OWeakObject in the first multiple- inheritance slot Change-Id: I1624e5c696d5a592f86e7c48849ecf3a39e1e6fb
2015-12-03tdf#74608 dbaccess: Constructor feature for ODatabaseSourceMatúš Kukan
Change-Id: I9ab9c0eaf463c93caf116c98e47564562af0af5d
2015-12-03Use comphelper::containerToSequence()Noel Grandin
Change-Id: I18d6ef04ff00f971a4c54ba259733c07501c6c1a
2015-12-03Revert "tdf#96012: Type formatting in Base shouldn't be multiselect"Lionel Elie Mamane
This reverts commit 103cd686de34b668a838c459f3d827c02e704656. Better fix for tdf#96012 in b2d479854a9182234a378166900240aee7e1c79b ("simple mode" for the multiselection) Change-Id: Ia6d7e5132e3f1997906a03f67ea4d7d0cf54ce7a
2015-12-03tdf#96012 enable simple mode for the multilistboxLionel Elie Mamane
Change-Id: Ia4d4c56318bc7d32d317abbda27eda9d3413ba75
2015-12-02tdf#96012: Type formatting in Base shouldn't be multiselectJulien Nabet
Disable multiselect and don't manually select the entry Change-Id: Id04e757e4d2031718f95af1d0f512b4ca2df205c Reviewed-on: https://gerrit.libreoffice.org/20360 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-11-30loplugin:unusedfieldsNoel Grandin
Change-Id: Ife94d488ead512abc6d137a0df74298bac67185d
2015-11-30tdf#96135 - Crash : When Field Format Window CloseNoel Grandin
regression from commit db17d3c17c40d6b0e92392cf3c6e343d1d17b771 "new loplugin: memoryvar" Change-Id: Id37226646a561579a375110bf684140d1fa8cb92
2015-11-28dbaccess: small cleanupMatúš Kukan
Change-Id: Id0a0aa66ffd5788873fa5dc99fcc1b912c0e90fa
2015-11-25tdf#96059 Replace imageproducer with CommandInfoProviderSamuel Mehrbrodt
Change-Id: I9508a947e5ae6720516d9f926a59d4287cb15317 Reviewed-on: https://gerrit.libreoffice.org/20166 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-11-25loplugin:unusedfields variousNoel Grandin
Change-Id: I59d9f7f73677358b4ae57efda965d43718bdf0d5
2015-11-24-Werror,-Wunused-private-fieldStephan Bergmann
Change-Id: I595f0c2b05b96fbf2055a37e335f8c700044a699
2015-11-20loplugin:unusedfields in dbaccessNoel Grandin
Change-Id: I563c3727c1719fe21acced269e5469c2de7112e8
2015-11-20add mapKeysToSequence/mapValuesToSequence methods to comphelperNoel Grandin
and use them Change-Id: If4dc9df63db37185228aeaaab2979498d61304ec Reviewed-on: https://gerrit.libreoffice.org/20055 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-19loplugin:sallogareasStephan Bergmann
Change-Id: I2220ab194384fb397716bf3227d38716ba54f537
2015-11-19use comphelper::containerToSequenceNoel Grandin
in chart2, we remove a local equivalent of the method Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
2015-11-16use initialiser list for Sequence<OUString>Noel Grandin
Change-Id: Ia5e47261d1fc6fac2d046656c05a1c5eedb07e02 Reviewed-on: https://gerrit.libreoffice.org/19978 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin
using variations of: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\)\; \s*OUString\* pArray.*; .*\[0\]\s*=\s*(\S+)\;/Sequence<OUString> \1 { \2 };/g" Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3 Reviewed-on: https://gerrit.libreoffice.org/19971 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin
replaced using: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9 Reviewed-on: https://gerrit.libreoffice.org/19969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin
performed using: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I4da56c80fa09bfc1e8f868794001e9921431e09f Reviewed-on: https://gerrit.libreoffice.org/19968 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser syntax for Sequence<OUString>Noel Grandin
replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-115th step to remove tools/rtti.hxxOliver Specht
tools/rtti.hxx removed completed the interface of some Sdr.* Items and removed pseudo items Change-Id: I0cdcd01494be35b97a27d5985aa908affa96048a Reviewed-on: https://gerrit.libreoffice.org/19837 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-11new loplugin: memoryvarNoel Grandin
detect when we can convert a new/delete sequence on a local variable to use std::unique_ptr Change-Id: Iecae4e4197eccdfacfce2eed39aa4a69e4a660bc Reviewed-on: https://gerrit.libreoffice.org/19884 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: I2bba104b1bff30910864e45b5b032533099742ff
2015-11-09Prevent += called on temporary O[U]String instancesStephan Bergmann
...found regression e31205f3ec1f941ab5a188bfde6329edf2acc55b "EditUndoRemoveChars::GetStr must return a reference" and dubious code 0e23f7b0839df68d277186b4df54ba391ac3406a "Lets assume this doesn't want to update m_pForcedPrefix->GetText() anyway" in addition to the apparent sillies directly fixed in this commit. Introduces HAVE_CXX11_REF_QUALIFIER. Change-Id: I564e98254fd53c1dd9b34193d7057c59721ee24c
2015-11-09Lets assume this doesn't want to update m_pForcedPrefix->GetText() anywayStephan Bergmann
The line was like that ever since the code was introduced with 13d20309158340fca42c44e7a9a460ddbeee5126 "edit control for connection urls," and Window::GetText() likely never in the past returned a reference to a string. Change-Id: Ideb5c6a279ac25c2439187a9182f988696818012
2015-11-09new loplugin: oncevarNoel Grandin
Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann
Change-Id: I14bdbad2469d05eb25514d7ab995acb8c6ef7bd1
2015-11-04loplugin:stringconstantNoel Grandin
Change-Id: Id5a07591a1d3a7264a0a979f25e8c2c859ec0492 Reviewed-on: https://gerrit.libreoffice.org/19767 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-02tdf#94269: Replace "n" prefix for bool variables with "b"Benjamin Ni
Change-Id: I178545792c7354a362658ac7ef8b1d4cf0865797 Signed-off-by: Michael Stahl <mstahl@redhat.com>
2015-10-30use uno::Reference::set method instead of assignmentNoel Grandin
Change-Id: I3d45914e349a4268204af84b95b53ccce7b9d544
2015-10-30UNO: no need to use OUString constructor when calling createInstanceNoel Grandin
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-30loplugin:unusedmethodsNoel Grandin
Change-Id: Id3b5cd75d4357336ed592ef11a3f34d209f8e95f Reviewed-on: https://gerrit.libreoffice.org/19636 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-28dbaccess KeySet: on insert, set NULL only when there is no default valueLionel Elie Mamane
Change-Id: I4f9ea6760a7e47d28fe378c8429fb286d6e7f33e
2015-10-27Reduce scope of #include <tools/stream.hxx>Matteo Casalin
Change-Id: I0752cbb0cb2e0f89607d81d9eda7ce7091449fd6