summaryrefslogtreecommitdiffstats
path: root/dbaccess
Commit message (Collapse)AuthorAgeFilesLines
* fix limit bug: selecting "All" has no effect to sqlZolnai Tamás2013-06-142-3/+3
| | | | | | | | | | | | | LimitBox set its value to -1 if the current text is "All" but just when it loses its focus so dispatching its value to the controller must be after this setting. (see limitboxcontroller.cxx) Plus some clean up in LimitBox.cxx Change-Id: Ic1d314a5a67c2b261b2e9c50973f51de2bfb8db8 (cherry picked from commit 00eafaa9493e99dfc81ec102b1ae936b84e44d0d)
* fdo#64447 when changing setup mode, trigger changed DatasourceType eventLionel Elie Mamane2013-06-051-0/+1
| | | | | | | Change-Id: I961118331f534de103b83766a2c21a6bec479241 Reviewed-on: https://gerrit.libreoffice.org/4161 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* fdo#64984 - EDITING: Creating table with GUI - table could not be savedNoel Grandin2013-05-301-3/+8
| | | | | | | | | | This bug was introduced by my commit 002aab309055b7feeeeeb25c1835b6abe6646729 "fdo#46808, convert sdb::tools::ConnectionTools to new style" (cherry picked from commit 73a809cba87eefbb495c5ba53f89b48d671f8230) Change-Id: Ib10f97bbe46d20db663047d2f35ec4850df839fa
* translatable="yes" for some elements in .ui filesAndras Timar2013-05-252-3/+3
| | | | | | | | Conflicts: starmath/uiconfig/smath/ui/alignmentdialog.ui starmath/uiconfig/smath/ui/spacingdialog.ui Change-Id: I915cd6e73f907850f17b102c7860a827b91eef37
* Revert "fdo#46808, Convert awt::UnoControlDialogModel to new style"Stephan Bergmann2013-05-251-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6c61b20a8d4a6dcac28801cde82a211fb7e30654. As discussed at <http://lists.freedesktop.org/archives/libreoffice/2013-May/052449.html> "Re: fdo#46808, Convert awt::UnoControlDialogModel to new style problem" why the odd change in 2e2a4827ce6708f0e8677dba9cc92e1479a44086 "scripting: get CreateUnoDialog() work again" appears to fix things again: The problem is that the implementation of the css.awt.UnoControlDialogModel involves UNO aggregation (IMPL_CREATE_INSTANCE_WITH_GEOMETRY(UnoControlDialogModel) in toolkit/soruce/helper/registerservices.cxx creating a OGeometryControlModel<UnoControlDialogModel> instance that aggregates a UnoControlDialogModel instance). That means that queryInterface can return a reference to something that is technically a different object, and that's what's happening here, and explains why calling setPropertyValue in two different ways on what logically appears to be a single object can end up calling two different implementations (of two different physical objects). (UNO aggregation is known to be broken and should not be used. Nevertheless, there's still code that does---code that is a horrible mess and hard to clean up.) That all this worked as intended in the past is just sheer luck, but any way of substantially touching it is asking for trouble. I'm going to revert 6c61b20a8d4a6dcac28801cde82a211fb7e30654 again. I wasn't able to revert without also reverting be50ad28f5bbdaeff527f646481ce263843c2401 "fdo#46808, Convert awt::XUnoControlDialog to new style," as the two were tightly dependant. Also reverts all the follow-up fixes cb4b6dde8fda2a5848e11063028bf44d72f85431 "-Werror,-Wuninitialized" (sans the const-ness fix in UpdateHandler::insertControlModel), 697a007c61b9cabceb9767fad87cd5822b300452 "Fix exception specifications," 2ce6828bbbf6ba181bb2276adeec279e74151ef6 "fix awt::UnoControlModelDialog crash," and 2e2a4827ce6708f0e8677dba9cc92e1479a44086 "scripting: get CreateUnoDialog() work again." Conflicts: basctl/source/dlged/dlged.cxx filter/source/t602/t602filter.cxx xmlscript/test/imexp.cxx Change-Id: I5d133468062f3ca36300db52fbd699be1ac72998 (cherry picked from commit e36f83d81c462e1a5959b160886e481a8d449494)
* allow to create new database using the wizard again (fdo#62937)Petr Mladek2013-05-211-7/+3
| | | | | | | | | | | To be honest, I do not userstand the code much. Julien pointed out that the setParentTitle and onTypeSelected were newer called. The condition looked like an optimisation and it helped to remove it. It would be great to put it back. It might be enough to hand the intial values. Change-Id: Id06cc9c63a9e578cb3c698c8526851fec71ef9da
* fdo#46808, Convert awt::UnoControlDialogModel to new styleNoel Grandin2013-05-211-1/+2
| | | | Change-Id: I4b912034ef3f4855b87d6d6f18ff13bd1ecc8f72
* make OSingleSelectQueryComposer use *system* parse contextLionel Elie Mamane2013-05-193-3/+6
| | | | | | | and pass it to the parser and PredicateInput constructors. This makes the whole story consistent; before system locale settings were already manually passed to parseNodeToPredicateStr, which led to some things being parsed as en_US and others as system locale. Change-Id: Ib9571b10d79183571e8ab3f79660b41594dc2d1c
* Spelling "separate" (etc) correctly is hardTor Lillqvist2013-05-151-1/+1
|
* SolarMutex does not belong into the URE interfaceStephan Bergmann2013-05-142-12/+11
| | | | | | | | | | | | | | | | ...so move it from osl/mutex.hxx to its own comphelper/solarmutex.hxx. It looks like a newbie mistake that 59e7685d8d812ee8773f57475cbe3aa2a0bdfc81 "Create an abstract interface to be used to implement a SolarMutex" put it here in the first place. I do not consider this an incompatible change really, as no external URE client code should have used SolarMutex anyway. (Also included some clean up, like removing unused {Clearable,Resettable}SolarGuard, and spelling out SolarGuard in the few places it is used.) Change-Id: I121ffb5b7cefbc19e88b5405e5a85ffc895be852
* fdo#46808, fix call to sdb::tools::ConnectionToolsNoel Grandin2013-05-141-6/+1
| | | | | | | In my previous conversion to new style I forgot to pass arguments into the service constructor. Change-Id: Ibbf750315b3e62869b1eb4c520808327002f2dcc
* Initialise the default-constructed ConnectionToolsLionel Elie Mamane2013-05-141-0/+3
| | | | | | Regression from the "convert to new style", which led to ignoring aArguments Change-Id: I09477578f77b253b8c6435d52e1e636d2e212023
* Fix namingStephan Bergmann2013-05-132-9/+9
| | | | Change-Id: Id167385e832b1cd78d0612fc2a7611aa76bf0601
* Fix possible inefficient checking for variables emptinessJulien Nabet2013-05-121-1/+1
| | | | Change-Id: I95a6784d5448b63b0cdde436484915692f8633be
* Potty mouthChris Sherlock2013-05-101-2/+2
| | | | | | | Change-Id: I276fa2fa24b5553a748e6e628129d54419e69c9a Reviewed-on: https://gerrit.libreoffice.org/3843 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* connectivity: remove Package_generatedMichael Stahl2013-05-072-4/+2
| | | | | | | | | This one is ugly, the Yacc generated header is used in lots of places; the dependencies are already right because using the header requires using the dbtools library which builds the YaccTarget, so just yet another include path has to be added. Change-Id: I031fde80ac326551d4719533305b1ae35351ca43
* officecfg: remove Package_cppheaderMichael Stahl2013-05-071-0/+4
| | | | | | Instead include generated headers directly from workdir. Change-Id: I9d2bcc07175d2bbc16d3cc548c2245e7a4fb0c65
* dbaccess: remove Package_incMichael Stahl2013-05-0745-1412/+33
| | | | Change-Id: I8e6748eef04f25603851a33d049cb9585fa04cc6
* fix typos (wich instead of which)Philipp Riemer2013-05-061-1/+1
|
* remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák2013-05-062-3/+3
| | | | | | | Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
* Java cleanup, remove unnecessary @SuppressWarnings annotationsNoel Grandin2013-05-064-4/+0
| | | | Change-Id: Ib5df091fc4a6233b526c44ae42dbdbacb0bef7c6
* convert message box return types to an enumCaolán McNamara2013-05-012-13/+13
| | | | Change-Id: I20889dc94aac1119c1ee9da873ce911887c1c335
* fdo#63391 deadlock on opening .odb file that auto-connects to the databaseLionel Elie Mamane2013-04-294-22/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let foo.odb be a database file that has a macro that connects to the Database on "Open Document" event (and needs to prompt user for user/password). There was a race condition between two actions: 1) the asynchronous treatment of "OnFirstControllerConnected" in dbaui::OApplicationController, which tries to get dbaui::OApplicationController's mutex 2) the StarBasic macro calling dbaui::OApplicationController::connect which needs to display a dialog (to get username and password), and thus puts that dialog in the main thread's event queue and waits for it ... with dbaui::OApplicationController's mutex held Now, if "1)" is before "2)" in the event queue of the the main thread, *but* "1)" is executed *after* "2)" has taken the lock, there is a deadlock. Fix: 1) Make OnFirstControllerConnected synchronous. Make sure (by taking mutex in dbaui::OApplicationController::attachFrame, its ancestor in the call graph) that nothing else will happen with the OApplicationController as long as it is not finished. ---> it does not need to take mutex itself anymore This avoids the "order in the asynchronous events" dependency. 2) Change dbaui::OApplicationController::ensureConnection to do the user prompting WITHOUT HOLDING the mutex, and use the mutex "only" to protect actually assigning the connection to m_xDataSourceConnection. Theoretically, in some race condition, we could connect twice and then discard one connection <shrug>. ensureConnection will never return the discarded connection, though. (I think I got that right with respect to http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html) This keeps it from locking on another condition while holding the mutex. Change-Id: Iab1bbec5d5df12bb89d027d43e498c78c92ffc32 Reviewed-on: https://gerrit.libreoffice.org/3310 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* remove never-generated "predicate_check" entryLionel Elie Mamane2013-04-261-1/+0
| | | | Change-Id: Ib3957fbadf6bfebfaabd5bef09aaf7ab21862cd6
* QueryDesign: in criteria, remove column_ref when table *and* column name matchLionel Elie Mamane2013-04-261-0/+2
| | | | | | As opposed to only the column name Change-Id: I261d13f23214f950daa55a5b63cd486e59a0e127
* String -> OUStringLionel Elie Mamane2013-04-262-3/+3
| | | | Change-Id: Ibf566a11a383b77a930d46967e496752c88b39e4
* Java cleanup, remove unused importsNoel Grandin2013-04-261-1/+0
| | | | Change-Id: I697017f196a7f7e5684011ae23941e54051c45dd
* Fix compilation error when OSL_DEBUG_LEVEL > 0Tor Lillqvist2013-04-251-9/+6
| | | | | | | | | | Just use SAL_WARN, building up the message using chained << operators instead of constructing it into a OStringBuffer (or OUStringBuffer) and then passing that to OSL_FAIL. Or should we have a real assert() here? Change-Id: I2c3f64ff2b29a3d81ba444d98c2a38ef49e6d7af
* update pchThomas Arnhold2013-04-251-0/+1
| | | | Change-Id: I67e73438312f2a672e71762ee6707ec5d425bb47
* dbaccess: {DECLARE,IMPLEMENT}_CONSTASCII_USTRING are no longer neededMiklos Vajna2013-04-2540-732/+327
| | | | Change-Id: Id404f8f3a5bdbf32c207ee81c6f6be9c9d328679
* add missing deps on sqlbison.hxxDavid Tardon2013-04-251-1/+2
| | | | Change-Id: I098a4514b9b32b1ecf96b1f2275f77bac540d557
* fdo#46808, Convert form::ControlFontDialog to new styleNoel Grandin2013-04-251-17/+3
| | | | Change-Id: I83487cddbd6b3fce1fdcdfa48623b63a0e026d90
* gbuild: drop empty use_packages callsDavid Tardon2013-04-243-9/+0
| | | | | | | Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f Reviewed-on: https://gerrit.libreoffice.org/3503 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* gbuild: drop uses of removed packagesDavid Tardon2013-04-245-8/+0
| | | | | | | Change-Id: I400fad08c0ae7b6b34bad63693f54856867e4dac Reviewed-on: https://gerrit.libreoffice.org/3502 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* Access Query Properties Dialog from toolbar tooZolnai Tamás2013-04-231-0/+1
| | | | Change-Id: Ide4697e6903c9550d31ea22ff0a5881878fddacf
* fdo#46808, convert svx::DbGridControl to XComponentContextNoel Grandin2013-04-233-18/+16
|
* Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks2013-04-2215-335/+60
|
* fdo#63154: Change Min/Max/Abs for std::min/max/absMarcos Paulo de Souza2013-04-201-1/+1
| | | | | | | | | Now all these usages were removed from LO. Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6 Reviewed-on: https://gerrit.libreoffice.org/3326 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* Remove any remaining remnants of unused component_canUnload featureStephan Bergmann2013-04-191-1/+1
| | | | Change-Id: I635fd006b5ba9f5fb0091748ee2ff9bc3c1a2d2a
* Java cleanup, remove unnecessary castsNoel Grandin2013-04-192-4/+4
| | | | | | | Change-Id: Id12089bc7df16631737e6acaee0973fb91dd953f Reviewed-on: https://gerrit.libreoffice.org/3431 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* Update pchAurimas Fišeras2013-04-171-1/+1
| | | | | | | Change-Id: Ice80350184f7a514d5beab0a5e1da5b98d5733e4 Reviewed-on: https://gerrit.libreoffice.org/3427 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* merge duplicated CreateFontDescriptor methodsCaolán McNamara2013-04-164-86/+4
| | | | Change-Id: I33f9df7f17158eedc4a4c0dedfd0fc4cddc6180f
* FontWeigth->FontWeightCaolán McNamara2013-04-151-1/+1
| | | | Change-Id: I6250c3e3de81c33e8f4d73e2f80570521fdb6ea6
* fdo#60724 successfull -> successfulThomas Arnhold2013-04-154-5/+5
| | | | Change-Id: I287bef5b7f2baf5aaaab47141267ae2cadfe2451
* fdo#60724 correct spellingThomas Arnhold2013-04-152-2/+2
| | | | Change-Id: Ieb653adbd0cb4371ec5db57e70bcc551872f647f
* fdo#60724 informations -> informationThomas Arnhold2013-04-152-2/+2
| | | | Change-Id: Ifd34ebfc7fe01b4a470eb072597dd3ec97c97863
* deliver all uiconfig files by UIConfigDavid Tardon2013-04-118-51/+136
| | | | | | | Change-Id: Ie78b7ce399ba34485146ca7622c59d31f8105d02 Reviewed-on: https://gerrit.libreoffice.org/3229 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* rename UI to UIConfigDavid Tardon2013-04-112-3/+3
| | | | | | | | | | I plan to use it to deliver all */uiconfig files, not just .ui, as a preliminary step to get rid of postprocess/packconfig. Change-Id: Ie7b4434b2f247165e3ab69a4d0c193418720a149 Reviewed-on: https://gerrit.libreoffice.org/3225 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* WaE: unused variable 'insert_result'Tor Lillqvist2013-04-091-0/+1
| | | | Change-Id: I5b0b7eeaa44e3e9e215b8d0bba7e7189c63c766c
* The library we want is called dbulo, not dbauiTor Lillqvist2013-04-081-2/+2
| | | | Change-Id: Iaf57030a228d9c03c132976293d5e01e2fb287f4