summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ui
Commit message (Collapse)AuthorAgeFilesLines
* fix handling of subqueries in query designLionel Elie Mamane2013-01-253-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 Reviewed-on: https://gerrit.libreoffice.org/1827 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
* mark *all* tables of a nested join as addedLionel Elie Mamane2013-01-211-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 Reviewed-on: https://gerrit.libreoffice.org/1756 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
* fdo#32958 join editor: remove empty linesLionel Elie Mamane2012-12-123-16/+57
| | | | Change-Id: If150261bae55cf91c8a344f34c79194ad29db903
* typo in commentLionel Elie Mamane2012-12-121-1/+1
| | | | Change-Id: I0e6dd24e2cd65a35886f75cde9197c5b957c6d57
* query design / edit join: valid only iif column names everywhereLionel Elie Mamane2012-12-121-1/+11
| | | | Change-Id: Idfb0e16c4cc2581a46e26fe97948897dc4b11dc0
* be more cautious in debug modeLionel Elie Mamane2012-12-121-1/+7
| | | | Change-Id: I46b89b10287ac755e2b727b46d6fdd19f44bcdd3
* argument has no effect anymore -> removeLionel Elie Mamane2012-12-122-6/+5
| | | | Change-Id: I91f8f552b1324b57ce75e96b858b7a3379decb20
* Move comment to its rightful placeLionel Elie Mamane2012-12-121-4/+4
| | | | Change-Id: I72803b26a79804cdc1b590a7fb4bc99ff831963e
* WaE: BaseReference::_pInterface may be used uninitialized in this functionTor Lillqvist2012-12-031-1/+2
| | | | Change-Id: Ic9424fd0cac9f2ff91866549b370080a9a88aeea
* WaE: explicitly do nothing when nothing needs to be doneLionel Elie Mamane2012-12-021-6/+9
| | | | | | Removes compiler warning Change-Id: Ied96ef294f25cca54887ca6a86ec07ecb2b1fae0
* fdo#42165 make nested joins as per strict ANSI SQLLionel Elie Mamane2012-12-022-14/+31
| | | | Change-Id: I605d3811b27c33e35670306bb03b5a796ab72bc0
* Expand commentLionel Elie Mamane2012-12-021-0/+4
| | | | Change-Id: I7d699222940a6ee99595d84dd8b2068e9b86ee67
* janitorial: prefix increment when don't care about current valueLionel Elie Mamane2012-12-021-2/+2
| | | | Change-Id: Id19369bb9d9cb2a0bab0dacb200cf5bf488c3b20
* janitorial: simplify code, no behaviour changeLionel Elie Mamane2012-12-021-8/+2
| | | | | | operator[] on a map implicitly adds an entry and default-initializes value part Change-Id: Iab7817fb7fef5e9a6afdeb74be0d523fde59b5c1
* fdo##38838 UniString Removal in dbaccessRicardo Montania2012-12-014-14/+14
| | | | | | | Change-Id: I6c4f8e9834fdd78851f5274ce2b141cfb49e6458 Reviewed-on: https://gerrit.libreoffice.org/1208 Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br> Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
* c++ API: use css alias in generated headers, adds global css declThorsten Behrens2012-11-301-1/+0
| | | | | | | | | | | | This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
* Remove unused method & remove header include by using forward declaration.Kohei Yoshida2012-11-292-0/+3
| | | | | | Also, SvViewDataEntry has lost one friend. Change-Id: Icf6d4127de38fed485cd260edae97748b1f78ede
* Pass pointer to view data entry to Paint() instead of its raw flag value.Kohei Yoshida2012-11-293-5/+8
| | | | | | We need to hide these flags away. Change-Id: I112003a88a92174f5012b3356ba261a039eeccc1
* OUString::replaceAt() does not modify in-placeTor Lillqvist2012-11-281-2/+2
| | | | Change-Id: I59ebf6dc5bc75f8ded82b19dbc736a6aae48e74b
* We only support MSVC 2008 (_MSC_VER 1500) or laterTor Lillqvist2012-11-281-2/+2
| | | | | | We can drop or simplify many conditionals. Change-Id: I37e820e515cc09845c30b62c89ddb3b6ff370f97
* Fix various build breaks.Kohei Yoshida2012-11-282-2/+2
| | | | Change-Id: Ie33a4a02f9820e0d52ca3f17c6b410ebe1e6e8f0
* fdo#46808, use service constructor for sdbc::ConnectionPoolNoel Grandin2012-11-282-2/+6
| | | | Change-Id: Id12226af5e537b1eeacbb062ad937a3551e245c0
* fdo#46808, use service constructor for i18n::CollatorNoel Grandin2012-11-281-1/+2
| | | | Change-Id: If6ad17fa9e274beff7ba872a095ced65438962af
* fdo#46808: Missing adaptions to XFolderPicker2Stephan Bergmann2012-11-274-4/+0
| | | | | | | | c988da288ec473a28f61ebb53aa3ff82bab11ef4 "fdo#46808, Adapt ui::dialogs::FolderPicker UNO service to new style" had left some FolderPicker implementations at XFolderPicker, so creating them caused DeploymentExceptions. Change-Id: I3463161f9bb87a69a2777c331eb5b93d487790b0
* API CHANGE: com.sun.star.lang.IllegalArgumentExceptionMichael Stahl2012-11-261-1/+0
| | | | | | | | | | | | | | | | | | | | | ... derives from com.sun.star.uno.RuntimeException instead of com.sun.star.uno.Exception. Only test that breaks with this change is jurt_uno/AnyConverter_Test, which for mysterious reasons effectively tests that IllegalArgumentException is a subclass of Exception and not RuntimeException. Presumably this is just a generic exception test that happens to use IllegalArgumentException. Some further testing indicates there are no problems expected at runtime: Running "make subsequentcheck" with all Java test code compiled against a ridl.jar that does not contain the change, running against a soffice that uses ridl.jar and rdbs with the change + ridl.jar with the change on the test side yields exactly the same AnyConverter_Test failure, with no other failures. Change-Id: Iad183de76ec7e0d56648084e97cdcc160b5b033d
* fixup trailing token error.Michael Meeks2012-11-251-1/+1
| | | | Change-Id: Idf7d0f4490dc419171e3e60252e31e07b6ce4e97
* German comment translationsMarkus Maier2012-11-2524-204/+197
| | | | Change-Id: I0d169b7cd0f47b6986063d0cc0b6697b1d575e6a
* some i18n wrappers with LanguageTagEike Rathke2012-11-236-8/+8
| | | | Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d
* AllSettings with LanguageTagEike Rathke2012-11-226-6/+6
| | | | Change-Id: I710ae66e51139662eb442b681fdf9cc9d158551d
* Fix the Windows build breakage by reorganizing svtools headers.Kohei Yoshida2012-11-1615-2/+16
| | | | | | | Also removed a fair amount of implicit inline methods to promote use of more forward declaration. Change-Id: I5ad21f0d7abc85281708b7e87f1036b02a053627
* Store tree list entry items in ptr_vector & const correct-ness.Kohei Yoshida2012-11-151-2/+2
| | | | Change-Id: I0e02b9ceb98f26a2b130ec978a992fcf889e718a
* Rename SvLBoxItem::IsA() to GetType(), and mark that const.Kohei Yoshida2012-11-154-6/+4
| | | | Change-Id: I542835154e40b25d68fc3995d911810e26e30501
* fdo#46808, use service constructor for ucb::SimpleFileAccessNoel Grandin2012-11-151-4/+3
| | | | | | | | I upgraded the service to return XSimpleFileAccess3, since it already implemented that interface, and it's backwards compatible. Change-Id: I40001a46048bd21a23b6a2f58a95376f06fc634b
* fdo#46808, use service constructor for i18n::CharacterClassificationNoel Grandin2012-11-058-25/+23
| | | | Change-Id: I0499ad7de27b1539e97f01ab8aa0ef2d6713ae76
* Columns should know their tableLionel Elie Mamane2012-11-021-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | For example dbaccess::OSingleSelectQueryComposer::appendOrderByColumn expects it (via impl_getColumnName_throw via getTableAlias) There is some vagueness: Should the TableName property contain just the table name, or the *composed* table name (that is with catalog and/or schema if used by this DB)? In the case of a query, should it contain the table name (alias) *in* *the* *query* or of the original table? In the former case, what meaning do SchemaName and CatalogName have? They should be empty? For now, commit as such and deal with the fallout, if any, when it hits the fan. If we really need to store these *different* values, (that is, some code validly needs them) it would be easier / cleaner / ... to define *different* properties for these *different* notions. Change-Id: I032e619a60e7563cd51478db16cb5e0e5452bfde
* Use SvTreeListEntries to store child entries.Kohei Yoshida2012-10-295-18/+18
| | | | | | | | This replaces SvTreeEntryList. The only thing to be wary of is that now we use ptr_vector to store child entries, which changes the scheme on the life cycle management of tree entries. Change-Id: I92b6e41ea500bc9b9227259c010887b798194909
* XubString->OUStringCaolán McNamara2012-10-256-7/+7
| | | | Change-Id: I5835696a3246b4d8f401a1617d2b53ec8c7c5626
* fdo#46808, use service constructor for frame::ModuleManagerNoel Grandin2012-10-231-1/+1
| | | | Change-Id: Iae2bd22a22213274d4a7697345b879f6573a30f0
* fdo#46808, Adapt ui::dialogs::FolderPicker UNO service to new styleNoel Grandin2012-10-231-8/+2
| | | | | | | Create a merged XFolderPicker2 interface for this service to implement. Which is backwards-compatible, but does not require creating a new service. Change-Id: I4a2c2a8d491a8d5633c19ddcea547f0efe75b91d
* Make SvTreeEntryList private to svtools.Kohei Yoshida2012-10-232-22/+24
| | | | Change-Id: I283d897cd5a7c15b5b60e99c90c04b696d20c2a3
* Merge SvLBoxTreeList and SvTreeList.Kohei Yoshida2012-10-198-12/+12
| | | | Change-Id: I318ff6f1009b1aaa7d0bd3abb250f92fb51a21cd
* Merge SvListEntry and SvLBoxEntry into SvTreeListEntry.Kohei Yoshida2012-10-1940-393/+393
| | | | Change-Id: I89cfc8c1288c00674fe64e791c149743d377d5ee
* Remove direct reference to SvListEntry outside svtools.Kohei Yoshida2012-10-192-6/+8
| | | | | | | Not all instances are removed, however... Some are used in virtual method signatures, which will take a little more effort to fix. Change-Id: Ib30e6bbef5f27f970e6e19291501f7a09d94e0ab
* Remove direct reference to SvTreeList outside svtools.Kohei Yoshida2012-10-191-3/+3
| | | | Change-Id: Ia8055a1bf21531aeb808d797b2a73a08a897e79c
* Prevent infinite recursion during make check.Kohei Yoshida2012-10-111-1/+1
| | | | Change-Id: Ib807c54195c867d5f54e48ae2a1fe7694dfa4882
* Merged SvTreeListBox and SvLBox.Kohei Yoshida2012-10-1115-18/+17
| | | | | | There is no reason to keep SvLBox separate. Change-Id: I0b34aa8f8ca539d4f4f0f9cea9fa9b8faec241e8
* Handle lack of module loading/unloading API when DISABLE_DYNLOADINGTor Lillqvist2012-10-072-1/+5
| | | | | | | | | | | | | | | | There are basicically two classes of cases: 1) Where the code is for obscure historical reasons or what I see as misguided "optimization" split into a more libraries than necessary, and these then are loaded at run-time. Instead, just use direct linking. 2) Where dynamic loading is part of the functionality offered to some upper (scripting etc) layer, or where some system-specific non-LO library is loaded dynamically, as it is not necessarily present on end-user machines. Can't have such in the DISABLE_DYNLOADING case. Change-Id: I9eceac5fb635245def2f4f3320821447bb7cd8c0
* Fixes/improvements on previous commitStephan Bergmann2012-10-0411-39/+27
| | | | | | | | | | | | | | | * UUIInteractionHandler still needs to implement XInitialization. * Moved ambiguating InteractionHandler typedef out of the way. * Removed InteractionHandler.createDefault, as it was originally stated that "it is strongly recommended that [the "Parent"] property is supplied." * Added back documentation about Parent and Context. * Simplified some call-sites to directly use XInteractionHandler2. Change-Id: I1029b8f3cf079171c75920cafaaa44b5bbada883
* fdo#46808, Adapt task::InteractionHandler UNO service to new styleNoel Grandin2012-10-0415-66/+61
| | | | | | | Since we don't need to expose XInitialisation, we can make the new-style service implement XInteractionHandler2. Change-Id: Ib27beed1c12df17592c6472d6f58c233d2c41558
* probable attempts to find the parent dialogCaolán McNamara2012-10-032-2/+2
| | | | Change-Id: I033f3cd9b42df21c9b63dc03e8e0136971d5dc24