summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2015-11-18Remove redundant toolbar:text labelsSamuel Mehrbrodt
Change-Id: I9ca5739462742a4e3ec3a034918891e53022d6de
2015-11-18remove unused typedefs and inline use-once typedefsNoel Grandin
and improve the script a little Change-Id: I2792ea4dd5df3a50736fbe209225c3f16fb86b84 Reviewed-on: https://gerrit.libreoffice.org/20033 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-18tdf#95888 sw: make click to header area show header controls againMiklos Vajna
Regression from commit 54a2c8c006e2f216e9d8c6b0ed625180c843c48b (tdf#39080 Interactive hide-whitespace mode, 2015-08-30), the problem was that SwPageFrm::IsOverHeaderFooterArea() checked if the header is active before accepting that the user clicked in that area. Don't require an active header at least in non-hide-whitespace mode, as the member function is used in the "could there be a header here" sense in SwEditWin::MouseButtonDown() to show the controls that allows actually adding a header. Change-Id: I6f905920113aed1512e333e718a8f26d88a3245d
2015-11-17sw lok comments: implement clipboard copyMiklos Vajna
Change-Id: I0f45b1a6ab198a8403073eea05497e76f758250c
2015-11-17sw lok comments: fix meta author/data size with custom zoomMiklos Vajna
Change-Id: I3310813c971aa7abffccc0b7f462e05caa83482e
2015-11-17sw lok comments: fix comment widget width with custom zoomMiklos Vajna
When tiled rendering, then only the render context (or failing that, SwViewShell::GetOut()) has the correct zoom level, so use that when doing pixel-to-logic conversion or scaling pixel values. Change-Id: I265a642b8253c6eced42da2a0e06a2de25c36ca8
2015-11-17Toolbar: Remove empty attributesSamuel Mehrbrodt
Change-Id: Id78cae55eb89520bd87713f9ea6c009c922f2870
2015-11-17An SwMailMergeConfigItem_Impl instance per SwMailMergeConfigItem looks sanerStephan Bergmann
...than fixing the avalanche of loplugin:staticmethods issues caused by b5eaa0f9f00cd62f4769c3e8860d788844ccf557 "use unique_ptr for pImpl in sw/," given that SwMailMergeConfigItem_Impl has mutable state? Change-Id: I342511d0f39086f33e2a8abd2c377341455d54a7
2015-11-17loplugin:unnecessaryvirtualNoel Grandin
update the plugin with lessons learned from the mergeclasses plugin and re-run it Change-Id: I9d622eb3d05fceaf8fa764c533c8fa5dfb4c7711 Reviewed-on: https://gerrit.libreoffice.org/20015 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-17other #includes should be AFTER the include-once #defineNoel Grandin
found with the following script: git ls-files *.hxx | xargs perl -0777 -ne 'if (/include.* .* .* "; close ARGV }' Change-Id: I3afb0e81eb315c34bc0eb6bb4733dd1f0537d5c0
2015-11-17sw lok comments: fix text selection with custom zoomMiklos Vajna
SwPostItMgr::GetSidebarWidth() can be called in two scenarios: - inside PaintTile() the output device contains the zoom level and has the map mode enabled (and its scale factor is the zoom level) - outisde PaintTile() the output device is SwEditWin and has the map mode disabled (and the zoom level is to be taken from the view options) Change-Id: I6cf19f3241a2e972ae711e0efa7b0205aae1a3f2
2015-11-17use unique_ptr for pImpl in sw/Noel Grandin
Change-Id: I8508894d70e1ff16cfb9d7a9d716f11a923f453d
2015-11-17Don't assume sal_Unicode is unsigned shortStephan Bergmann
Change-Id: I3411c688361e95b4c72b5257cdd63b137dab0538
2015-11-17Add SvStream::ReadUtf16 (don't assume sal_Unicode is unsigned short)Stephan Bergmann
Change-Id: I74f34e3389582617fa83f8f4a3d6867cf87189e1
2015-11-17Added Test for tdf#67238 table cell UnprotectVarun Dhall
Change-Id: Iaaaaca1bcc5f5b6274f54ef4fcd3f35ffe1a9cd0 Reviewed-on: https://gerrit.libreoffice.org/20008 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-11-17sw: unomapproperties.hxx can be private to unocoreMiklos Vajna
Change-Id: Ia3d1c1ccef53113e50f81a2f93aa157c4e23963b
2015-11-16tdf#83300 DOCX import: 'TOC Heading' should not be 'keep with next' by defaultMiklos Vajna
On one hand, neither our binary DOC import, nor Word maps the "TOC Heading" style to something special, and that's how the DOCX import added that property to some paragraphs in the document, moving the as-char picture from the first to the second page. OTOH, the DOCX export filter has a lcl_guessQFormat() function that explicitly assumes that such a style name exists in Writer document models, so again it doesn't make sense to handle this style name with special care. Change-Id: I3af548930f9683695fc3ad56b486e013f107d61a
2015-11-16sw lok comments: fix sidebar width with custom zoomMiklos Vajna
Change-Id: I6772cce10d157421d983d6b93efb52bf8b95f5b8
2015-11-16sw: prefix members of SwChartDataSequence.Jan Holesovsky
Change-Id: Ie0c91e739ee7a3bda55fd6dd45aa79c6b75675d1
2015-11-16no need to take a mutex when only dealing with stack-local dataNoel Grandin
Change-Id: Ie45e626aad55a8174a53b769a98601bf54dedf65 Reviewed-on: https://gerrit.libreoffice.org/19979 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-16sw: Rename to avoid conflict after Frm -> Frame rename.Jan Holesovsky
Change-Id: I4d02024fd80ad85c8c3ecd830dcc5c4b49ad2014
2015-11-16sw: Rename to avoid conflict after Frm -> Frame rename.Jan Holesovsky
Change-Id: I59147583c74e7211ac56d75468501f328122ba0f
2015-11-16sw: Rename to void conflict after Crsr -> Cursor rename.Jan Holesovsky
Change-Id: I850a207aebdf2a0f85f1ae75bb6b9a1532b3b4a6
2015-11-16sw: Rename to avoid conflict after Frm -> Frame rename.Jan Holesovsky
Change-Id: Iffb3681458aeee7b374d1836158e30b6fd488122
2015-11-16sw: Rename to avoid conflict after Crsr -> Cursor rename.Jan Holesovsky
Change-Id: Iee7124259cadc1db416e8aedc5b4e87f75ba9d21
2015-11-16sw: Prefix a member in SwVirtFlyDrawObj.Jan Holesovsky
Change-Id: I5514bf16446fa4e4c498a6bc1df77e4f59565ee1
2015-11-16sw: prefix members of SwTextFrmBreak.Jan Holesovsky
Change-Id: Id1d6166ee8c1c3558746da1d7bb5ad2163a87845
2015-11-16sw: Prefix a member that may conflict after a rename.Jan Holesovsky
Change-Id: I083dfbb768df0ba2a6bd6a396cf33ab1e2e09f4b
2015-11-16sw: Kill unused member.Jan Holesovsky
Change-Id: I2c4de63330a18c4354293d0220e5320eda7d67e4
2015-11-16tdf#92754: Excel Chart content type is not exported properly.yogesh.bharate001
Problem Description : - Excel chart contenttype is not exported properly, it exported the .xls file as .bin file. - Due to this when we open the roundtrip file back in MS Office, the embedded excel chart is not open and gives ERROR. Solution : Added support for embedded .xls for docx file. Change-Id: I16e18ffa4f6c72526665ff9d34d6c6053278c2c5 Reviewed-on: https://gerrit.libreoffice.org/17066 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-11-16use cairo-compatible top-down direction virtual devices everywhereCaolán McNamara
that way we can use cairo to text render etc onto our basebmp-backed headless/gtk3 virtual devices Change-Id: I91002b610b72a4fe1d2094a57c5cb1b6b5d69cb1 Reviewed-on: https://gerrit.libreoffice.org/19957 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
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-16Rename SetCursor -> CallSetCursor to avoid future name clash.Jan Holesovsky
Change-Id: I0e0e2351f1bcccee8157c00ab22c35dcf2007ec5
2015-11-15Refactored Writer's unomapAshod Nakashian
Writer's unomap.cxx takes by far the longest to compile. On Windows, in Release configuration, the file alone takes 270.5 seconds to compile (measured by cl's built-in front- and back-end timers.) The file is split into a new unomap1.cxx which implements a number of functions to return the property entries that are set in the map. The two files compile in a combined time of 9.5 seconds which is reduced to under 6 seconds in parallel. Change-Id: I3f722189b94dbef7309bd0447e2c73033d1117a6 Reviewed-on: https://gerrit.libreoffice.org/19973 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
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-15loplugin:nullptrStephan Bergmann
Change-Id: Ie59472fb9c58561fad46dff08cfcdcb8a96e7032
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-14tdf#95403 Add Outline buttonMaxim Monastirsky
Change-Id: I0d5187ed34539a05ab9f2ffdfb89118df0aa3511 Reviewed-on: https://gerrit.libreoffice.org/19964 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-11-14SwPostItField::dumpAsXml: survive 0 mpTextMiklos Vajna
And no need to copy it to be able to dump it. Change-Id: I5c0782c489a5d7c24173a81cc82efd195c4aa56e
2015-11-14CppunitTest_sw_tiledrendering: replace various ifdefs with a single conditionMiklos Vajna
LOK is Linux-only at the moment, don't bother with disabling each and every unit test on Mac/Windows for now. Change-Id: I2ff1ed47251c16ec6a8d43138789480d95ea720e
2015-11-14sw lok comments: implement mouse move and mouse upMiklos Vajna
As long as we don't tweak the map mode of the comment widgets permanently we also have to disable the selection engine's timer, as that would emit events without the correct map mode: so disable that for the LOK case for now. Change-Id: If377ff2f064c30feb473f153f9d5b29b8ace7113
2015-11-14coverity#1339307 Uncaught exceptionCaolán McNamara
Change-Id: I1d8b40843de8d9bb9e4113442bc083c21a7b278d
2015-11-14sw lok comments: fix cursor position of a newly created sidebar windowMiklos Vajna
With this, pressing ctrl-alt-c to create a new comment has the correct cursor position. Change-Id: Icb8d708dab015d8ffa9bcfe28de66238a75b50bc
2015-11-14sw lok comments: fix callback of newly created outliner viewsMiklos Vajna
SwPostItMgr::registerLibreOfficeKitCallback() already took care of informing existing outliners, this commit gives a callback to newly registered ones as well. Change-Id: I660dcb54231a9d404bf80b4284003d119dae6a5c
2015-11-14sw lok comments: implement setTextSelection() APIMiklos Vajna
So that it's possible to drag the text selection start/end handles in comment text when there is an existing selection. Change-Id: I3acc4770928d4f385f0ca09a2484a9e112409907
2015-11-14sw lok comments: emit invalidation events in SidebarTextControlMiklos Vajna
With this, newly typed characters show up instantly in comments, not only after changing the zoom level. Change-Id: I1470db1ec03cc415917375f1f95434cf0944e559
2015-11-14tdf#95775: Allow zero shape width/height; fix setting width/height relationMike Kaganski
Conflicts: sw/qa/extras/ooxmlimport/ooxmlimport.cxx Reviewed on: https://gerrit.libreoffice.org/19962 Change-Id: Ic91ebf4a18a77704dc1ccd1e1180b42d0bc84c74