summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2013-05-10resolved fdo#35756 import more than 64k HTML table cellsEike Rathke
Enhanced EditEngine to be able to hold more than 64k paragraphs. Used also in RTF import Calc and Writer, so that could benefit as well. * changed all EditEngine,Outliner,... related paragraph index/count variables from sal_uInt16 to sal_Int32 * sal_Int32 instead of sal_uInt32 to match accessibility API * matched some Outliner methods' paragraph parameters from sal_uLong to sal_Int32 * containers capable to hold size_t nevertheless are limited to a maximum of sal_Int32 * changed definition of EE_PARA_NOT_FOUND and EE_PARA_ALL to SAL_MAX_INT32 + added EE_PARA_MAX_COUNT and EE_TEXTPOS_MAX_COUNT to initialize ESelection with what previously were hard coded 0xFFFF all over the place + for similar reason added EE_TEXTPOS_ALL corresponding to EE_PARA_ALL to initialize an ESelection spanning all available text like aSel(0,0,EE_PARA_ALL,EE_TEXTPOS_ALL) Change-Id: I62d1b9c399cd709a4f93dbac31b219a61c46ec00 Reviewed-on: https://gerrit.libreoffice.org/3838 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-05-09WW8FlyPara::Read: replace hardwired numbers with constantsMiklos Vajna
Change-Id: I298499d09ac44e0fdbbd62fc0bd07a25f1b33aa3
2013-05-09fdo#63154: Remove _CL and _LF from solar.hMarcos Paulo de Souza
And use RTL_CHAR_{CR,LF} from rtl/string.h Conflicts: vcl/source/app/dbggui.cxx Change-Id: I05b0325006845e48eb5483485a9042aa7b0cd22a Reviewed-on: https://gerrit.libreoffice.org/3740 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-05-09Update pchAurimas Fišeras
Change-Id: I7c0c9158eb17cb79ffceae6770b4c513d57b3817 Reviewed-on: https://gerrit.libreoffice.org/3831 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-05-08Resolves: #119945# improve setting of OrdNums for "nesting" of objectsOliver-Rainer Wittmann
- instead of adjusting the OrdNum of the "nested" object the OrdNum of the "parent" is adjusted. Found by: Yan Ji <yanji.yj at gmail dot com> Patch by: yuanlin <yuanlin.ibm at gmail dot com> Review by: Oliver <orw at apache dot org> (cherry picked from commit 73f462e2162847262093c3984dc6c98919e1b3cd) Conflicts: sw/source/core/layout/flylay.cxx Change-Id: I0541dc3775f81efd60a6f4baa172c5297ee9d829
2013-05-08svx: remove Package_sdiMichael Stahl
Change-Id: I0c648ca1b1f3cc22244d660e032bacbdbe0f642e
2013-05-08sfx2: remove Package_sdiMichael Stahl
There are just a handful of sdi files in sfx2 anyway so just put sfx2/sdi on include path. Change-Id: Ia9be889a63ba9a2f330b505613ae38158a4b7bdf
2013-05-08sw: convert some usage of Point::X/Y to Point::set/getX/YMiklos Vajna
As I understand it, Point::X/Y() basically provide direct access to the position, so they come without the usual benefits of getter/setter methods. Change-Id: I6d5bfd4f20ab8c7377419dcf5aac2c4ea0e9db05
2013-05-08test case for WPS Office CVE-2012-4886/EDB-25140Caolán McNamara
Change-Id: Ia4d6a4a2b6277fee6f59fa9407f9cf868ad0f1ce
2013-05-07coverity#704453: new[] vs delete mismatchMarkus Mohrhard
2013-05-07oox: remove Package_generated and Package_tokensMichael Stahl
Change-Id: Iab5eb4fbfecea905f4eeb9f1b1f503c1908dadc8
2013-05-07writerfilter: remove Package_sprmidsMichael Stahl
Change-Id: I3791f7f513246faaeb76f9209c08008c78a38619
2013-05-07officecfg: remove Package_cppheaderMichael Stahl
Instead include generated headers directly from workdir. Change-Id: I9d2bcc07175d2bbc16d3cc548c2245e7a4fb0c65
2013-05-07Fix style renaming confusion in ww8 filter (solves fdo#63603)Luke Deller
- Mapping LO default style to Word "Normal" style for docx output used a hard coded style name, so it broke when LO's default style was renamed in 4.0 (plus it would never have worked for non-English languages) - This renaming did not cater for nameclashes, leading to fdo#63603 - Similar renaming when importing doc styles did cater for nameclashes, but had a minor bug in that Change-Id: Id23f3021c6507b474c16e93abf43ba748606ebc7 Reviewed-on: https://gerrit.libreoffice.org/3743 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-05-07sw_filters_test: add support for ooxml filesMiklos Vajna
The motivation is that if -- after fixing a crash -- the document looks OK, then all the paperwork in the ooxmlimport isn't necessary, just drop in the file to qa/core/data/ooxml/pass/, and we're done. Change-Id: I2287189bd3c49c5e53489f9d89a6341685359b33
2013-05-07fdo#64256 writerfilter: handle void GraphicURL in ListsManager::lcl_sprmMiklos Vajna
Change-Id: I4d8b1b527d5099781a36cc1265318c167205340e
2013-05-06fix typos (wich instead of which)Philipp Riemer
2013-05-06cleanup whitespaces due to RTL_CONSTASCII_USTRINGPARAM removalPhilipp Riemer
In e2e2cc61144cb22227eebfadff0ea24b51ccfbd0 the method was removed automatically leaving several line breaks etc. as visual noise.
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-05-06SW : Fix crash by checking find resultArnaud Versini
Change-Id: I6caf18b110dd0a40f09e185c00cb238261457db3 Reviewed-on: https://gerrit.libreoffice.org/3783 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-05-06fdo#42144 WW8 export: avoid writing pointless empty footersMiklos Vajna
Regression from 1348288905ffa75d3634eee4392ba4660d28cdb9 (mismerge, I guess), when header was enabled, actually empty footer was exported, even in case footer was disabled. Change-Id: Ied55dc2a9f0faef87689c07935a47db384d37e1a
2013-05-06fdo#46808, Use service constructor for rendering::CanvasFactoryNoel Grandin
Change-Id: If6bebe0d2dfb30c3fffd0fb284cd766e3f315b49
2013-05-05follow up to commit 2e109641648bed508318d3b65a385f5b9e78edf7Philipp Riemer
Norbert cherry-picked the original patch [1] without changes. However some sentences in it where translated misleadingly. So here I am merging my remarks/corrections to it, plus some minor changes regarding whitespaces in front of punctuations. [1] see https://gerrit.libreoffice.org/3788 Change-Id: If5fa033c48b2bd16fc0b83195ba4d46f5051414b
2013-05-05Partially translate german comments in sw/source/filter/ww8/Joren De Cuyper
Please, only apply this patch if you are a native speaking German. I'm not a native speaker, so a double check is really necessary and appreciated. Thanks in advance! Change-Id: I9493d128e124d319391aa851ae364aefeb27c512 Reviewed-on: https://gerrit.libreoffice.org/3788 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-05-05coverity#1000604: Dereference after null checkJulien Nabet
Change-Id: Id9c3b7eb29c58c55c100db6da644b232ada550ee Reviewed-on: https://gerrit.libreoffice.org/3791 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-05-05remove commented-out code in sw/source/core/viewPhilipp Riemer
Change-Id: Ib94be6370549c6a71879a5af1eb60808fba762e8
2013-05-05fdo#62475 - remove visual noise in sw/source/core/viewPhilipp Riemer
- ASCII art - method comments without further info - multiple blank lines Change-Id: Iec6fac8ce28a82b2ce15a72ed7ffa5fc38d4e218
2013-05-05work on comments in sw/source/core/viewPhilipp Riemer
Change-Id: I3934487475df1da7fe6cf68656c4c38881d1a394
2013-05-05fix indentationPhilipp Riemer
Change-Id: If17defd0a64c0b6b4e2c1faf60601199a978e2e9
2013-05-05fdo#39468: Translate German comments in sw/source/core/viewPhilipp Riemer
Change-Id: Icc9249ec66ea10ae0ceea6b5e611cf774474c7c2
2013-05-05work on comments and remove commented-out code in sw/source/core/graphicPhilipp Riemer
Change-Id: I2b1b29d469277998dafed41fb7c0bb33e8064a16
2013-05-05fdo#39468: Translate German comments in sw/source/core/graphicPhilipp Riemer
Change-Id: Ic78269f73b31125d7326b9aa1bfca76d7e881177
2013-05-05fdo#62475 - remove ASCII art in sw/source/core/graphicPhilipp Riemer
Change-Id: Ie37dbb1c0c5d01c958d168d15ec5285c36bbf28d
2013-05-05fix indentation of a commentPhilipp Riemer
Change-Id: I4528725cdfe2bdd0ae071d5719d4e8e082d88e5b
2013-05-05fdo#62475 - remove pointless comments and ASCII art in sw/source/core/drawPhilipp Riemer
Change-Id: I223cdd6d3bfddf0216453406efc32beee2489ae4
2013-05-05doxygen-ize comments in sw/source/core/drawPhilipp Riemer
Change-Id: I04ef6f0992e6d00dd6519eb6e9bcddecbb97e8de
2013-05-03SwPostItMgr::Delete: fix crash when layout is not yet readyMiklos Vajna
pPostIt is 0 when we have a large document, and the layout is not yet ready for a later part of the document, having a comment. Just don't try to delete such comments, better than a crash. Change-Id: I5fd5c908bc7b1feba926214863e84391b9037484
2013-05-02SwTxtSizeInfo: rename member variables missing their prefixMiklos Vajna
Conflicts: sw/source/core/text/inftxt.hxx Change-Id: I32a430c35d69308f87b7b6f1b4ef232315deed2f
2013-05-02Add --enable-desktop-gui-elements to show such even on non-DESKTOP platformsTor Lillqvist
Not my idea. Change-Id: If4874d97a2035588cd65ded9f281de0c3598b7d7
2013-05-02make parent style for 'frame contents' be 'standard' rather than 'text'Luboš Luňák
The actual reason for this change is a .docx document, which has a textframe and a modified 'text' style. The textframe in MSO has 'normal' style (which is like our 'standard') and so the style is not written to the docx. LO however uses 'frame contents' for the textframe, and since it was based on 'text', it used the modified style, unlike in MSO. But even on its own, this change seems to make sense. It's similar to 4014d40c96b9d70796a154f0ac48cf5b685cf187, and I see no particular reason why contents of textframes should be the same style like the main text of the document, while footnotes, footers, headers, tables, etc. are different. Change-Id: Ibe7bfd6a2820cff5cf29c669fd60b575c63500b0 Reviewed-on: https://gerrit.libreoffice.org/3697 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-05-02bnc#779630 testcaseMiklos Vajna
Change-Id: Ia888670ad7a5b51c9b6a3d05676b192456311704
2013-05-02Resolves: #i119922 Graphic in header and footer can not be displayed correctlyJian Hong Cheng
* sw/source/core/unocore/unoframe.cxx odf compatibility Patch by: Jane Kang,<kangjane2012@gmail.com> Found by: Yan Ji,<yanji.yj@gmail.com> Review by: Jian Hong Cheng,<chengjh@apache.org> (cherry picked from commit f8ecf85d889ba70b48c2b49ebd650afc0a5ab776) Conflicts: sw/source/core/unocore/unoframe.cxx Change-Id: Iffbe79efd43119e78f6983e27b99ba278118555d
2013-05-02Resolves: #i119516# allow 0x1 0x1 as well as 0x8 0x1 detection for canvasesArmin Le Grand
Be prepared to allow not only 0x8 0x1 detection for canvases, but also 0x1 0x1. Patch by: Lei Debin Detected by: louqle Review by: alg(cherry picked from commit 0711fae8c3f99c53bc1cb091eb218f10f3d8b15f) Conflicts: sw/source/filter/ww8/ww8par.cxx Change-Id: Ib1d8d892470261639fa46ae9955079759c0aebaa
2013-05-02unused old insert chart dialogCaolán McNamara
Change-Id: Ibce96479b440dd3406cb7a46896b89834a14460f
2013-05-02bnc#779630 initial DOCX import of w:sdt's w:dateMiklos Vajna
Also factor out the w:sdt-related methods to a helper class to avoid DomainMapper_Impl become a God object. Change-Id: Ic1a388940bce89688e8558818f92ce9ac997609c
2013-05-02Resolves: #120098# Memoryleak fixed at escher sw exportArmin Le Grand
remember and destroy the used stream. Found by: Chao Huang Patch by: Chao Huang Review by: alg (cherry picked from commit 9914b3172fd4e3867693e5e63c8085dd66f18b5f) Conflicts: sw/source/filter/ww8/wrtww8.cxx Change-Id: I5bccdd71312f32f861291fc600396dc111fc11c7
2013-05-02Don't crash with empty *pTxtFridrich Štrba
Change-Id: I5fdd0cbc70dec1119b1b6a76cb3c5805f11c11ed
2013-05-02fdo#60780, refactor Save a Copy and fixÁdám Csaba Király
Refactor Save a Copy, basing it on Export functionality. SID_SAVEACOPY takes its parameters, and sends a SID_EXPORTDOC request with them, using SID_SAVEACOPYITEM to differentiate Save a Copy from regular Export. Fix storing docx to url, by preventing finalizeFilter method, in filterbase.cxx, from writing back to the original file's MediaDescriptor. Change-Id: I876dbe17e43b26a43f29e797fdb157e31889ee1e Reviewed-on: https://gerrit.libreoffice.org/3355 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-05-01put a border around the numbering level listboxCaolán McNamara
Change-Id: Ie45cc82af0e232b7b523d30552cc14317fc479b5
2013-05-01remove unnecessary widgets from word count dialogCaolán McNamara
Change-Id: Ia490b8eb4367e54a73fbf9d54a76cf3155eb1615