summaryrefslogtreecommitdiffstats
path: root/dbaccess/inc
Commit message (Collapse)AuthorAgeFilesLines
* tdf#117021: fix datasource exampleJulien Nabet2018-04-181-1/+1
| | | | | | | Change-Id: I1e4112ab18e76eec4cb11fb4bc3a7cea67e7ae1d Reviewed-on: https://gerrit.libreoffice.org/53065 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
* move MessBoxStyle to last consumerCaolán McNamara2018-03-221-1/+0
| | | | | | | | Change-Id: I1edbf247999cd59cee4d268ed686e8ed9b61d99f Reviewed-on: https://gerrit.libreoffice.org/51712 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* weld OExceptionChainDialogCaolán McNamara2018-03-211-3/+0
| | | | | | | | Change-Id: I0092d2741055ab89ed4a97db9b8fad56144024c2 Reviewed-on: https://gerrit.libreoffice.org/51678 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Remove unused HIDsGabor Kelemen2018-03-091-1/+0
| | | | | | | | | | | | | | | | | | | | | These were no longer used in the code. This should help me in identifying obsolete and missing HIDs in helpcontent. Found by this somewhat sophisticated method: for mod in $(find -name helpids.h) ; do echo $mod; for i in $(grep ^#define "$mod" | cut -d " " -f2 ) ; do if [ $(git grep -c "$i" $(echo "$mod" | cut -d "/" -f 2 ) | wc -l) -eq 1 ] ; then echo "$i"; fi ; done done Change-Id: Iaf8179322419ce51175bc5a42fedec0add8c5241 Reviewed-on: https://gerrit.libreoffice.org/50680 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
* delete colordata.hxxNoel Grandin2018-03-023-3/+0
| | | | | | | | | move what we still need into color.hxx Change-Id: Ied7e31eb16468aa334c666b1499a6262f16a6350 Reviewed-on: https://gerrit.libreoffice.org/50561 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Add HSQLDB schema importTamas Bunth2018-01-272-0/+50
| | | | | | | | | | | | | | | | | | | | | | It can be enabled by initializing the DBACCESS_HSQL_MIGRATION variable. Create new library "dbahsql" which is responsible for migrating the embedded hsql database to any database covered by sdbc. The hsqldb schema is stored in a file named "script" in form of SQL statements. The SQL statements used by DBMS's differ mostly by the defined types. Because of that, only the create statements need to be parsed, alter statements will work (with a little luck) without actually modifying it. User / security settings which can occur in the script file (e.g. GRANT statements) are dropped. Statements starting with SET are also dropped (they are hsql specific stuff) Change-Id: I6a22942e8a9a76765f80e50f0ad68f4d72e1ff9d Reviewed-on: https://gerrit.libreoffice.org/48260 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Bunth <btomi96@gmail.com>
* Remove traces of Report Builder's former status as extensionLionel Elie Mamane2017-12-131-1/+1
| | | | | | | Change-Id: I63730632933cbb1d6e655f70d222ffaaabd3fa08 Reviewed-on: https://gerrit.libreoffice.org/46361 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* loplugin:includeform: dbaccessStephan Bergmann2017-10-231-2/+2
| | | | Change-Id: I15aee966012612033ab7e2ee03ac1a553802f540
* Fresh run of bin/update_pch.shMike Kaganski2017-09-225-73/+107
| | | | | | | Change-Id: I69d4157aaf6570cecd51ea59df20556914942e06 Reviewed-on: https://gerrit.libreoffice.org/42565 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
* normalize resource locale ctor construction mechanismsCaolán McNamara2017-08-021-21/+0
| | | | | | | | | | | | make them all the same and share std::locales more various OModuleClient, etc, classes go away Change-Id: I7e3ff01a69332eeacd22e3078f66a60318de62d5 Reviewed-on: https://gerrit.libreoffice.org/40634 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* move resmgr to unotoolsCaolán McNamara2017-08-012-2/+2
| | | | | | | | | and the vast majority of translations is to the ui language so default ctor with that arg and now drop OModuleResourceClient Change-Id: I3b85a560ffdfe5f019c2271ac56a5fe4a361522b
* de-hrc various thingsCaolán McNamara2017-07-211-2/+2
| | | | | | | | | | | | e.g. helpid[s].hrc -> helpids.h and insert include guards where missing move "ordinary" defines into .hxx files remove .hrc entries that are used as arguments to dialog factory when a dedicated method can be added instead Change-Id: I792fb8eb0adfaa63cf354e6e57401fc943e9196e
* migrate to boost::gettextCaolán McNamara2017-07-219-8/+952
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl * all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string") * ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching MODULE .mo files * UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui goes from l10n target to normal one, so the res/lang.zips of UI files go away * translation via Translation::get(hrc-define-key, imbued-std::locale) * python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there to keep finding the .hrc file uniform) so magic numbers can go away there * java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation mechanism * en-US res files go away, their strings are now the .hrc keys in the source code * remaining .res files are replaced by .mo files * in .res/.ui-lang-zip files, the old scheme missing translations of strings results in inserting the english original so something can be found, now the standard fallback of using the english original from the source key is used, so partial translations shrink dramatically in size * extract .hrc strings with hrcex which backs onto xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap * extract .ui strings with uiex which backs onto xgettext --add-comments --no-wrap * qtz for gettext translations is generated at runtime as ascii-ified crc32 of content + "|" + msgid * [API CHANGE] remove deprecated binary .res resouce loader related uno apis com::sun::star::resource::OfficeResourceLoader com::sun::star::resource::XResourceBundleLoader com::sun::star::resource::XResourceBundle when translating strings via uno apis com.sun.star.resource.StringResourceWithLocation can continue to be used Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
* dbaccess: introduce DATASOURCE_TYPE::DST_WRITERMiklos Vajna2017-07-181-0/+1
| | | | | | | | | | | By mostly reusing the spreadsheet code. This way the UI allows creating a data source where the backend is a Writer document (containing at least one Writer table). Change-Id: I42186d46aaa86fa96ebae0807c97306d6d00d6d4 Reviewed-on: https://gerrit.libreoffice.org/40146 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* emfplus: create a wmf/emf/emf+ primitive based importerArmin Le Grand2017-07-152-2/+2
| | | | | | | | | | | | | | First steps to organize an importer that can read/interpret wmf/emf/emf+ and deliver a primitive representation for the content by parsing it. Use the same mechanisms as already applied for Svg, so to reuse abilities to keep original binary data to allow save again and embedding in files and have an implemented replacement bitmap based representation. For this, unify the used helper classes to handle more than just Svg. For 1st try, add test code and static bool switches Change-Id: I6e0a82943541d811a8f8d65a84115569fcd8cee7
* remove dbaccess bitmaps from .src filesCaolán McNamara2017-04-251-0/+39
| | | | Change-Id: I85e0d4bce7c2d1da2cc78c00e15e485152039c3e
* errinf.hxx moved out of tools and into vcl moduleChris Sherlock2017-04-252-2/+2
| | | | | | | | | | ErrorInfo has a hard depency on VCL, yet is in the tools package. It is more appropriate to have it reside in the VCL module. Change-Id: Ica54a46c3a7f86cf0331ed7245234bea69c05650 Reviewed-on: https://gerrit.libreoffice.org/36839 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
* loplugin:unusedmethodsNoel Grandin2017-04-203-3/+0
| | | | | | | Change-Id: Ib7a9b1b0802ca751da258065e89b412b090bb672 Reviewed-on: https://gerrit.libreoffice.org/36718 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* convert query functions menu to .uiCaolán McNamara2017-04-181-5/+0
| | | | Change-Id: Iba4fc93d6042d873c45c58f11b7b54638ed54d82
* convert join menu to .uiCaolán McNamara2017-04-181-2/+0
| | | | Change-Id: I4e38e431df00a8a97772c5eb0056f824beaf8912
* convert primary key menu to .uiCaolán McNamara2017-04-182-4/+1
| | | | Change-Id: I78b4f6edc33ddc908402d8ab952bfebc11e4f929
* convert table design row menu to .uiCaolán McNamara2017-04-182-2/+1
| | | | Change-Id: I8a6be28ccd7cbd2b8f18255e3da01df2dfe13fb8
* tdf#95386 More Help Agent cleanupGabor Kelemen2017-04-071-1/+0
| | | | | | | | | | These methods were creating and passing URLs for the long dead Help Agent Change-Id: I5e3eafc2ca3bf5c1ca0032b9cb19ed30c8f06e66 Reviewed-on: https://gerrit.libreoffice.org/36172 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* Convert MENU_BROWSER_DEFAULTCONTEXT to xmlMaxim Monastirsky2017-02-011-20/+0
| | | | Change-Id: If59ecb4ea92d9daf423aef870e79248f5bc93e6d
* Convert RID_MENU_APP_NEW to xmlMaxim Monastirsky2016-10-271-7/+0
| | | | | | | Achieved by using GenericPopupToolbarController for the associated toolbar button. Change-Id: I406ff40e0c80d6db903de5629088d35487ab6416
* (nearly) nothing uses GetUniqueId anymore, so remove it.Caolán McNamara2016-05-251-19/+0
| | | | | | | | | The odd one out is the usage in Formula, which attempts to restore focus to a particular window identified by an unique id. In this case restore focus by keeping a VclPtr to the desired window. Change-Id: I1dc335325c109d75745c6bba2e12662e6ae50638
* dbaccess: replace boost::bind with C++11 lambdasMichael Stahl2016-05-122-2/+0
| | | | Change-Id: I468f9c7af9c8c8189c51790e0301dd8c60a9f83c
* tdf#94306 remove unused boost dependenciesJochen Nitschke2016-04-134-4/+0
| | | | | | | | | | remove <boost/noncopyable.hpp> in pch and remove boost from makefile if it was the only boost entry. Change-Id: Icb945ae59c137571f4f63807601738eea5c3e831 Reviewed-on: https://gerrit.libreoffice.org/24061 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* Avoid reserved identifiersStephan Bergmann2016-04-122-6/+6
| | | | Change-Id: I15609fb6b11606d865d8817f4a63ba8816f7384e
* tdf#97525 vcl: make DeletionListener internalJochen Nitschke2016-03-311-1/+0
| | | | | | | | | | | | move include/vcl/impdel.hxx to vcl/inc/ include impdel.hxx in salframe.hxx remove vcl/impdel.hxx includes in pch add missing <list> includes Change-Id: Id146363b2e20ce0238542929c26a83efb1e8c4bd Reviewed-on: https://gerrit.libreoffice.org/23664 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* vcl: cmdevt.[hc]xx -> commandevent.[hc]xxChris Sherlock2016-02-081-1/+1
| | | | | | | Change-Id: I77b30f28ae5a6fad360d7cada9acfaa9c324408b Reviewed-on: https://gerrit.libreoffice.org/22216 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
* vcl: split exception types from input typesChris Sherlock2016-02-062-8/+6
| | | | | | | Having them in the file apptypes.hxx isn't necessary helpful, IMO so I've split the types into inputtypes.hxx and exceptiontypes.hxx Change-Id: I89a1ff168c3ae276b2f5486669d4ec2dda062d57
* boost::hash->std::hashNoel Grandin2016-02-022-2/+0
| | | | | | | Change-Id: If4d1e4071995f07212fad958b0226d5824d168f8 Reviewed-on: https://gerrit.libreoffice.org/21989 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* boost::mem_fn->std::mem_fn in dbaccessNoel Grandin2016-02-011-1/+0
| | | | Change-Id: I9156e106d12b670e94bab899a4f67a35701ae5ac
* OSL_THIS_FUNC is a rip-off of BOOST_CURRENT_FUNCTION so we can use thatCaolán McNamara2016-01-311-1/+0
| | | | | | | | | | as a direct drop in I guess Change-Id: I3add63f1459f4e659019bd6db54da2f5431958ce Reviewed-on: https://gerrit.libreoffice.org/21941 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* No need for a separate <vcl/graph.h>Tor Lillqvist2015-12-112-2/+0
| | | | Change-Id: I962544005b5d408f7c044a02eefe09b87d8a81fe
* Fast PCH generator and optimized PCH filesAshod Nakashian2015-11-155-858/+605
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Some follow-up #include clean-upStephan Bergmann2015-09-181-1/+0
| | | | Change-Id: I4e91748701becfc92a379a490c08e9c7950007e3
* boost->stdCaolán McNamara2015-09-174-5/+0
| | | | Change-Id: Idfbcfa1e5ba7bff92e98693c33c4b33a6beda08f
* tdf92459 replace select1st/2nd in dbaccessDaniel Robertson2015-08-032-2/+0
| | | | | | | | | | Replace all uses of deprecated features in the o3tl with lambda expressions in dbaccess. Change-Id: I865bb5db5257e985a0eed0110874d6b29892fcfb Reviewed-on: https://gerrit.libreoffice.org/17483 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe2015-06-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | This may reduce some degree of dependency on boost. Done by running a script like: git grep -l '#include *.boost/scoped_array.hpp.' \ | xargs sed -i -e 's@#include *.boost/scoped_array.hpp.@#include <memory>@' git grep -l '\(boost::\)\?scoped_array<\([^<>]*\)>' \ | xargs sed -i -e 's/\(boost::\)\?scoped_array<\([^<>]*\)>/std::unique_ptr<\2[]>/' ... and then killing duplicate or unnecessary includes, while changing manually m_xOutlineStylesCandidates in xmloff/source/text/txtimp.cxx, extensions/source/ole/unoconversionutilities.hxx, and extensions/source/ole/oleobjw.cxx. Change-Id: I3955ed3ad99b94499a7bd0e6e3a09078771f9bfd Reviewed-on: https://gerrit.libreoffice.org/16289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Updated all precompiled headers.Ashod Nakashian2015-02-053-4/+15
| | | | | | | | Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* brute-force find-and-remove of unused #define constants.Noel Grandin2015-01-081-76/+0
| | | | Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
* boost::unordered_map->std::unordered_mapCaolán McNamara2015-01-021-1/+1
| | | | | | you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
* convert user details page to .uiCaolán McNamara2014-08-151-1/+0
| | | | Change-Id: Id8ad4a013fb5049452bbad502da828db94ce7d47
* update_pchThomas Arnhold2014-08-132-0/+3
| | | | Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
* convert backup page to .uiCaolán McNamara2014-07-211-2/+0
| | | | Change-Id: Id9a90001153fdaad51a00b68f38b1298195c5646
* drop unused helpidCaolán McNamara2014-07-021-1/+0
| | | | Change-Id: I609d1de30ad6e99f664d0a0fb853ea06a581e85e
* tweak things to allow switching between small and large toolbar iconsCaolán McNamara2014-06-101-7/+0
| | | | Change-Id: Ife4da4c6f4acc3b3f9fde18cdfc09635cf9b6776
* update_pch: add a bunch of pch filesThomas Arnhold2014-06-046-0/+291
| | | | | | | | | | | connectivity: 3m52s -> 2m47s cppcanvas: 28s -> 13s cppuhelper: 20s -> 14s dbaccess: 2m38s -> 2m01s hwpfilter: 16s -> 13s sot: 21s -> 16s Change-Id: I49286bfe6be73dd1b861be632b95e17a99e82f8a