summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2016-03-31tdf#98987 sw: add AddVerticalFrameOffsets compat modeMiklos Vajna
The situation is the following: we have a text frame, with at least two anchored objects: one is wrapped not-wrap-through, the other is. In case the non-wrap-though one shifts the text content of the text frame right or down, then layout may or may not want to re-consider what is the top left corner of the text frame for anchoring purposes. Regarding the x position, sw layout repositioned the anchor point depending on the AddFrameOffsets compat mode: it's enabled for documents imported from Word, disabled otherwise. Regarding the y position, no repositioning was done, however the bugdoc shows that Word does the same repositioning on the vertical axis as well. Add a new AddVerticalFrameOffsets compat mode that enables vertical repositioning as well, and enable that mode for documents imported from DOCX. Change-Id: Idc5cad7d86662008a92ff3bf5fbb3806aa2c7b07 Reviewed-on: https://gerrit.libreoffice.org/23702 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-03-31tdf#90855 add table header entries to resourcesJakub Trzebiatowski
removed hardcoded table header entries Change-Id: Ib0268421d1b0035e7764555054377d08ee47a29d Reviewed-on: https://gerrit.libreoffice.org/23520 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-03-31fix MSVC buildNoel Grandin
after commit 41bdaa37cc62f656cc164992c4c7d39bec7e57e2 "tdf#84938 convert SW_* script constants to scoped enum" o3tl::enumarray and MSVC does not like classes with private constructors Change-Id: Id954ecb6100b0a51c25b4405e322d20c37e09fea
2016-03-31tdf#84938 convert DLG_CHAR_ constants to scoped enumNoel Grandin
Change-Id: Ia58860f3f106d332596d2a682638edae6a270213
2016-03-31tdf#84938 convert INSERT_NUM_ constants to scoped enumNoel Grandin
Change-Id: If5880558bb04a71ebc4ef76aa4f5aac3d10040f9
2016-03-31tdf#84938 convert VIEWOPT_ constants to scoped enumNoel Grandin
Change-Id: I7d72ed66ea2cf920a0a03a2aa71b5de079f0cf6e
2016-03-31tdf#84938 convert AS_CHAR_ constants to scoped enumNoel Grandin
Change-Id: I8800c0ae0b028d2c4c4eb4609c44190928a2de9e
2016-03-31tdf#84938 convert FRM_ constants to scoped enumNoel Grandin
Change-Id: I785d154a5df9a33b7d513dee1d3d859e5e800e7a
2016-03-31tdf#84938 convert NA_ constants to scoped enumNoel Grandin
Change-Id: Id348f202483d17b63c0762a60f8ddc5f01b8e01f
2016-03-31tdf#84938 convert SWBLK_ constants to scoped enumNoel Grandin
Change-Id: Ib5ff447973850cac8c1a31dd4778dda4d1c8c83c
2016-03-31tdf#84938 convert FINDMODE_ constants to scoped enumNoel Grandin
Change-Id: Ibfe8a0bab07b2572079841f7957a7a52f2127f94
2016-03-31tdf#84938 convert INV_ constants to scoped enumNoel Grandin
Change-Id: I587d8ae6510aa5e464214c05a5da9e5e2e0b7228
2016-03-31tdf#97525 vcl: make DeletionListener internalJochen Nitschke
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>
2016-03-31sfx2: make SfxDispatcher::Execute() less variadic ...Michael Stahl
... and less overloaded; C++11 initializer_list should make undefined behavior as fixed in ba0a866b83f016fd460320e7d057dd107e019f19 less likely. Change-Id: I15cc0804451b6a4fcbfaa623f9a30db222207865 Reviewed-on: https://gerrit.libreoffice.org/23666 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-03-31tdf#84938 convert SW_* script constants to scoped enumNoel Grandin
Change-Id: I09ad92f194a136318ea77edb802ac6601c4e58dc
2016-03-31tdf#84938 convert SW_MC_* to scoped enumNoel Grandin
Change-Id: Id2a64dd31e5e1a61ac5873255e1452ca9bff97e3 Reviewed-on: https://gerrit.libreoffice.org/23655 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-31use SAL_N_ELEMENTS more widelyNoel Grandin
found using git grep -n 'sizeof.*/.*sizeof.*[0]' Change-Id: Icd4a6cc1ca8ec8ebd68e1701a02789c74cf0eb2a
2016-03-31use SAL_N_ELEMENTS in for loopsNoel Grandin
for with git grep -n 'for.*sizeof' Change-Id: I6211024385e03ac5eeeb38690d2c1c699e015c2f Reviewed-on: https://gerrit.libreoffice.org/23569 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-31loplugin:constantparam in swNoel Grandin
Change-Id: I2d99ff8149f6348a3781e01e9b3079f6c2505d6a
2016-03-31tdf#98806 RTF import: handle bookmarks in table textMiklos Vajna
Mapper().props() was called directly, so all bookmarks pointed to the start of the A1 cell instead of the correct text range. Change-Id: I40eeb85b61d2ae9138cd666d4a6a3c08eda47da3
2016-03-30sw layout dump: show Prt() next to Frame() of SwFramesMiklos Vajna
To be able to see what layout thinks about margins. Change-Id: I45b29cb8f71a96f4720158c2357bcbb295738130
2016-03-30loplugin:staticanonymousStephan Bergmann
cf. <https://gerrit.libreoffice.org/#/c/23630/> "tdf#97966 Compiler plugin"; in code not covered by Tamás's pending "tdf#97966 Drop 'static' keywords" changes. Change-Id: Ifbaef83fdb1fde7e25fafd5746cdbf99c334c5be
2016-03-30sw layout dump: show name of shapesMiklos Vajna
Change-Id: Iefd4a8e5a61c26a474886c968ebf7e85bcec0396
2016-03-30notebookbar: More advanced example of the notebookbar.Jan Holesovsky
Change-Id: I8c56777b8d200f38cd369944d9e9a67f4d41d393
2016-03-30notebookbar: Move the proof-of-concept notebookbar from vcl to sw.Jan Holesovsky
Change-Id: I58b79c433e208ab4451c2e76af7604cfe254c1d0
2016-03-30notebookbar: Trying to use the SfxChildWindow for it does not work too well.Jan Holesovsky
The notebookbar is not a child window, so trying to graft it on the SfxChildWindow infrastructure is more pain than gain, unfortunately... Instead, it's enough to create the appropriate functions for ExecMethod and StateMethod, and call them from Writer / Calc / etc. with the appropriate .ui file; that's easier & works equally well. Change-Id: I08d98d4f481bd02e90ba11df0bd1c1149697a7fa
2016-03-30notebookbar: Instantiate the notebookbar via sfx2 infrastructure.Szymon Kłos
Change-Id: Iaed4596246245560e646d9086e717d5fb516897e
2016-03-30Related: tdf#65642 RTF filter: import \pgnlcltrMiklos Vajna
This as a side effect also implements support for DOCX <w:pgNumType w:fmt="lowerLetter" .../>. Change-Id: I47b60a0390ef081dc15b26e40393e35bf7bad130
2016-03-30Related: tdf#65642 RTF export: \pgnucltr testcaseMiklos Vajna
There is no reason this unit test is import-only, this area of the export filter was untested so far. Change-Id: Ia271bccf59c1b21474e7b854cbaa0992b722e552
2016-03-30tdf#97361 Refactor load_save_testslideon
Make new helper functions, minor style cleanup in other tests Change-Id: Ifb188fa8227cdd1a1a5af88e692315c5f93da67d Reviewed-on: https://gerrit.libreoffice.org/23547 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-03-29tdf#98882 DOCX import: set default para properties on the Standard para styleMiklos Vajna
That's what the DOC import does, and that's the reason e.g. the strange unwanted crop of the as-char anchored picture doesn't happen there. This also needs the "reset all existing style properties back to default" logic to be adapted: the Standard style has to be reset before the default are set, and later it should be left alone, otherwise the defaults are lost. Change-Id: Ie422a0b64b80a826fa4f469145a26283fb32d734 Reviewed-on: https://gerrit.libreoffice.org/23593 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-03-29tdf#94449: special text attributes are not removed with paragraph styleOliver Specht
commit 3c0805e1f4f4d14e92c7e655d59c87de5c207e48 introduced removal of all character attributes applied to the complete paragraph if a paragraph style was applied. This should not remove special attributes like index entries, reference marks etc. Change-Id: I6fe92066269da2cf10c871ca319faf6fda91f4be Reviewed-on: https://gerrit.libreoffice.org/23591 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2016-03-29tdf#94570: document statistic of none odf files fixedOliver Specht
The fix allows first time calculation of the document statistic. Change-Id: I54d2f208fa75e6c3502c27678b85a9995d4daec5 Reviewed-on: https://gerrit.libreoffice.org/23589 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2016-03-29set translatable property in .ui files (bin/ui-translatable.sh)Andras Timar
Change-Id: I8b382bddac208d12216842ace6511b8b9127f205
2016-03-29Avoid reserved identifiersStephan Bergmann
Change-Id: I759939aa74570be63f5d41814c22aad1851d65c4 Reviewed-on: https://gerrit.libreoffice.org/23587 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-03-29cid#1357172: UNUSED_VALUEStephan Bergmann
...after 9585c8b8c8d8724cc1bad4a2060c828c15599929 "loplugin:constantparam in sw" Change-Id: I29ac058ce3f42ff4ceb60c8de09352c2810967b8
2016-03-28WaE: 'userSpaceScaleFactor' is deprecated: first deprecated in OS X 10.7 ...Tor Lillqvist
... Use -convertRectToBacking: or -backingScaleFactor instead Change-Id: Ided81790349304172ab911f93475cdc40a676a7b
2016-03-27Revert "vcl: two printing headers should be private Unix headers"Julien Nabet
This reverts commit 6b2889b3c4b2da175c4f95bde4495a1a89deedc3. It breaks several TBs eg: /Users/cloph/source/libo-core/sw/source/uibase/dbui/dbmgr.cxx:140:10: fatal error: 'config_cups.h' file not found ^
2016-03-27Remove vars used onceJulien Nabet
Change-Id: Iee5c87e6bd2153062072238e6f833493c298dae6 Reviewed-on: https://gerrit.libreoffice.org/23555 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2016-03-27tdf#92218 Implement Writer single toolbar mode toolbarYousuf Philips
Change-Id: Ic6cc130e0dcb91584b11aecb937bc8d7039d2427 Reviewed-on: https://gerrit.libreoffice.org/22818 Tested-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2016-03-28vcl: two printing headers should be private Unix headersChris Sherlock
Change-Id: I17a8d361b6c24dd9c4853d82e788c48084133e69
2016-03-26MM: Some wizard pages are just too spaced outAdolfo Jayme Barrientos
Change-Id: Idbcc7d98883a9150ef38ae304a121fb6903382e6
2016-03-25tdf#97362: Fixed Python Unit Test(check_table.py)kadertarlan
Change-Id: I6c88091e5231a42a7eb4ae82cb6231bd9330ae40 Reviewed-on: https://gerrit.libreoffice.org/23501 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-03-25fix headless buildOliver Specht
disables OpenGL and glew usage, lets --without-gui do what --without-x did before and disables X related test Change-Id: I680b47c9962a0d43c8ece593db0b82e347ceebdb Reviewed-on: https://gerrit.libreoffice.org/23474 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2016-03-25tdf#90855 Improve the 'Insert Bookmark' dialogJakub Trzebiatowski
implemented: - display page number - displaying bookmark text - goto (button and table doubleclick) - help - rename - selecting multiple bookmarks in TableView or in EditField by ";" - sorting by any column Change-Id: I7523dc066380bc360bd484c88a6f4ba45e867320 Reviewed-on: https://gerrit.libreoffice.org/23156 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-03-25loplugin:defaultparams,staticcall,literaltoboolconversionStephan Bergmann
Change-Id: Ie758fc9d7d8546f7631bb865b307be56386a2057
2016-03-25fix another involuntary behaviour change from 0c5cbcd7Bjoern Michaelsen
Change-Id: Idd8e48777b2a5e8e91754ec0afa9dd5b50d8bf00
2016-03-24MM: fix debug document dumpingJan-Marek Glogowski
Previously the debug documents were dumped to the temporary mail merge directory, which is removed at the end of MM. So this dumps the document to an extra directory. Also fixes the broken reinterpret_cast "env" => "int" conversation to get the real number of documents, which work with multi-digit numbers. Change-Id: I456b506e9a70cffdfc93cb3eadd39c454a536343
2016-03-24MM: remove lock from saved documentsJan-Marek Glogowski
Actually we have to call DoSaveCompleted to get rid of the locking. Instead this adds a parameter to skip the recent file registration used in non bCreateSingleFile modes. Change-Id: I57151f08ad8d737007da84c4566685cc37612dfb
2016-03-24MM: remove multiple unneeded indention levelsJan-Marek Glogowski
Change-Id: Ia363904d3c3fbabdb7aa0dd9aa0715d7d6982f85