summaryrefslogtreecommitdiff
path: root/framework
AgeCommit message (Collapse)Author
2015-11-16Remove the ability to set tooltips in the toolbar xml filesSamuel Mehrbrodt
It was possible to set a tooltip for a certain toolbar entry. However, this hasn't been used since that tooltip needed to be repeated for each occurence of the same command. Instead, a TooltipLabel property has been introduced lately (see 9c2f197e8e945f584e718e889938c06fbf644897). This doesn't affect extensions (They have their own format to specify toolbars). Change-Id: I0f0fd05b310bb49dd5b4123e31d3e7fec997dd15
2015-11-16Move CommandInfoProvider to vcl and use it from thereSamuel Mehrbrodt
Change-Id: If7e3ef81cad8974bc54f359096e3ecc700fa62d6 Reviewed-on: https://gerrit.libreoffice.org/19984 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
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-16Cleanup: Consolidate the different ways to get command labels/tooltipsSamuel Mehrbrodt
Change-Id: Ieab809a3122c9d592894b84ec2e68195a4e02dde
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian
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>
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 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-13Toolbar: Use 'Name', not 'Label' property for Toolbar itemsSamuel Mehrbrodt
Name is a stripped-down version of Label (doesn't contain dots etc). Inadvertently changed in 9c2f197e8e945f584e718e889938c06fbf644897 Thanks to Maxim for pointing this out. Change-Id: I7df5752af6c398cc216b7773e4506d401232c216
2015-11-12loplugin:passstuffbyrefStephan Bergmann
Change-Id: Ie8641fe51f1a8943402f0aab5f78c331b6deb3a0
2015-11-12Add a new TooltipLabel property for uno commandsSamuel Mehrbrodt
This allows buttons to have different labels and tooltips. Change-Id: Icbc3fe5f3b4db8a2e6b7177c21341f2df3520f19
2015-11-12Windows header sanitizationAshod Nakashian
Isolation of windows headers using prewin.h and postwin.h headers and making headers dependent on them more self contained. Conversion of TCHAR to WCHAR and LPCTSTR to LPCWSTR etc. and cleanup of unnecessary casts. Change-Id: I7eff5c477d9223a064bfb4d962ff6d61960ee69c Reviewed-on: https://gerrit.libreoffice.org/19901 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-12Namespace cleanup and disambiguationAshod Nakashian
Change-Id: Ib6d2f8b4e71436c3a7c26bdfc9847152ebaf0739 Reviewed-on: https://gerrit.libreoffice.org/19900 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-11tdf#93837 Create Thesaurus popup menu controllerMaxim Monastirsky
The old context menu implementation adds the thesaurus sub-menu by manipulating the menu at runtime, which isn't a good idea in general. Since it's a sub-menu anyway, better to have it as a separate controller, so it can be added to the xml, and users could decide if they want it, and where. Most of the code adapted from sfx2 (menu/mnumgr.cxx, menu/thessubmenu.cxx), hence the Apache-based license header. Change-Id: I4f533fcdd5d6480fae8ebcf53ec7c69675025adb
2015-11-11tdf#93837 Add a new PopupLabel propertyMaxim Monastirsky
Some commands in context menus use different labels than in the menu bar. In the old resource format those labels are defined in the resource file itself. Note that the menu xml has the menu:label attribute, but we can't use it because it lacks localization support, and as such useful only for user customization. The order of consideration now is: 1. Label - Used if Context/PopupLabel isn't defined. (It's also used as the base for toolbar tooltips.) 2. ContextLabel - Overrides Label when in menu or context menu. Useful to drop the context, e.g. "Insert Image" should be only "Image" under "Insert" menu. If exists, that's what returned when asking for the "Label" property, instead of the full label. 3. PopupLabel - Overrides Label/ContextLabel when in context menu. Used to give items in a context menu different labels than in the main menu, e.g. "Paste Special" from the main menu turns to "More Options" when in context menu. It doesn't affect the Label property, and should be asked separately. Change-Id: I7408fc2bfb8d384b0f1a72a78b8c5d7c50de38da
2015-11-11framework: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: I10801343e65646b92eb0a6256cd7bfbf5c84c854
2015-11-11framework: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: Ia75bf59de4eb5e0be18f81b6ab897f9f9cb28855
2015-11-11framework: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: If9981b141a591f23e03479c90694e6ffa78f2cb8
2015-11-11Fix NotebookBar not showing up when directly opening a documentSamuel Mehrbrodt
Change-Id: I6bb154102d5e58e7c7e1f1b0d68629555a6d1697
2015-11-10loplugin:nullptr (automatic rewrite; Mac-specific code)Stephan Bergmann
Change-Id: I4ba74ec66d6d848c7e49e85d2cebeb422e027f7d
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: Ie178c474921c1695927a9b01a9972baf09fbb73d
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 (manually due to macros)Stephan Bergmann
Change-Id: I4633229b94be1b15dfa14eafe8d7176a1fd253c9
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann
Change-Id: Iff1f68969f0f044c59a92ab4c019c471511743f7
2015-11-05java: remove ((unnecessary)) parenthesesNoel Grandin
Change-Id: I39fbe3a260c8dbfc203662c54eec4db064b88195
2015-11-05java: make inner classes static where possibleNoel Grandin
Change-Id: Icc6444ad15d9f4b50858d8c1b1d3adeaeac40926
2015-11-04yyyyyNoel Grandin
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-11-04Tweak MenuBarManager a bit for use with context menusMaxim Monastirsky
Change-Id: Ie28277e692d3b3286f1961e66f90b5ae59810fe7
2015-11-03Support of popupmenu resource typeMaxim Monastirsky
Reusing the same xml format as the menubar, except that a popup menu use menu:menupopup as the root element. Change-Id: I2987af0dc698b09aeeb757cff828617515bc3009
2015-11-02Fix license headerStephan Bergmann
corrupted with 7408498de37be05159f84cf0c8116313d3c196df "loplugin:stringconstant" Change-Id: Ia7af4b7276fb30485f39e24c9afcdc82f7cef447
2015-11-02fix buildNoel Grandin
after my commit 7408498de37be05159f84cf0c8116313d3c196df "loplugin:stringconstant" Change-Id: I1354207e1ecb6ebc76fcda3ed8eb8f369180eae8
2015-11-02loplugin:stringconstantNoel Grandin
Change-Id: I865efc1884b82d430fe7df2e432d43f5425a83d4
2015-11-02use uno::Reference::set method instead of assignmentNoel Grandin
Change-Id: Ic979f8a7734d0ef7a915d47a875cdcd460c0cc58
2015-11-01no need to be so verbose in constructing uno::ReferenceNoel Grandin
Change-Id: I187a26e200e9ecaff2adaf53a2ba3f6e87346030 Reviewed-on: https://gerrit.libreoffice.org/19724 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
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-29Initialize Sequence<beans::NamedValue> from initializer_listsNoel Grandin
Change-Id: I216dcbd983dcf3df79df9fda371b93114540a9d8
2015-10-27Reduce scope of #include <tools/stream.hxx>Matteo Casalin
Change-Id: I0752cbb0cb2e0f89607d81d9eda7ce7091449fd6
2015-10-22afl-eventtesting: improve event testing exitCaolán McNamara
don't "Quit" twice and skip tearing down office ipc etc for the pseudo-quit AFL_PERSISTENT=1 case Change-Id: I26f0e798b95bc9376890381d4e5bd87fe8f12622
2015-10-21impl_mergeMediaDescriptorWithMightExistingModelArgs is a sick function name.Jan Holesovsky
Rename to addModelArgs, and kill some whitespace. Change-Id: Ic644cb2d1074450491d271db36db92049e7d77e3
2015-10-20afl-eventtesting: shutdown cleaner to allow things to deregisterCaolán McNamara
Change-Id: I2dc7c90f1f5a776bb0e6772d2b381116d28dd46f
2015-10-20loplugin:defaultparamsStephan Bergmann
Change-Id: I3432d70efd156e59ba9a2ac72de4ec46887d7852
2015-10-19loplugin:defaultparamsStephan Bergmann
Change-Id: Icf92bef2685c507dd61416260f662dfdd24354d5
2015-10-16convert "continue" flag to an enumNoel Grandin
Change-Id: I160de1152978f301c514d9107c9e9082bab3cf05
2015-10-161327208 UwF: Unwritten fieldNoel Grandin
this class is doing nothing useful at all, just remove it Change-Id: I77f295f96758f8bf5e29fbdaca5eecc08cd5cf83
2015-10-15calling IsSet() before Call() on Link<> is unnecessaryNoel Grandin
the Call() already does a check Found with: git grep -A 1 -w 'IsSet()' | grep -B 1 '.Call(' | grep ':' | cut -d ':' -f 1 Change-Id: Ia7248f5d62640b75f705e539c3d1183e39c0d847
2015-10-15vcl: Initial NotebookBar implementation.Jan Holesovsky
See https://wiki.documentfoundation.org/Development/NotebookBar Change-Id: I91535c13d68261f7195989ec78bd305cf572c87c
2015-10-14com::sun::star->css in frameworkNoel Grandin
Change-Id: If5a77db83fcbef5ed436f2043ddeb7c515a840dc Reviewed-on: https://gerrit.libreoffice.org/19356 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-13tdf#94042 Change autorecovery & autosave to 10 minutesYousuf Philips
Change-Id: I53ee3002db38cc7d79cd431fc6254fde5427b751 Reviewed-on: https://gerrit.libreoffice.org/19136 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3