summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)AuthorFilesLines
2013-07-17fdo#39904, n#825976: implement hyperlinks for Illustrations indexCédric Bosdonnat7-6/+37
(cherry picked from commit 8bb2c7f1556c10508c8ac451c579539ccf5dacfb) Conflicts: sw/inc/swtypes.hxx Change-Id: I6f682c382e7ab0e06259b335247fdcebd7412942 (cherry picked from commit 2c10d784deb86501b5488044a61d9fc2efc6321a) Reviewed-on: https://gerrit.libreoffice.org/4957 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-16fdo#63273 sw: let word count not update stat. fieldsMiklos Vajna4-14/+20
Updating fields would generate loads of selection change events and it's not what we asked for. Regression from ce14342c4292628a641a72d4f63d9c048e030c6a. (cherry picked from commit e2484e3998f2c5036fb8e3584d4b1c72db19bfd3) Change-Id: If237df1f31436357022ca8d77b924681e403abd8 Reviewed-on: https://gerrit.libreoffice.org/4943 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-07-15i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.Michael Stahl2-2/+3
Add IsUTC member to: com.sun.star.util.DateTime com.sun.star.util.DateTimeRange com.sun.star.util.Time Add new stucts with explicit time zones: com.sun.star.util.DateTimeWithTimezone com.sun.star.util.DateWithTimezone com.sun.star.util.TimeWithTimezone Adapt the sax::Converter to read/write timezones, and fix the unit test. Everything else just uses default (no time zone), this commit is just to fix the API. STRUCT: /UCR/com/sun/star/util/DateTime nFields1 = 7 != nFields2 = 8 Registry2 contains 1 more fields STRUCT: /UCR/com/sun/star/util/DateTimeRange nFields1 = 14 != nFields2 = 15 Registry2 contains 1 more fields STRUCT: /UCR/com/sun/star/util/Time nFields1 = 4 != nFields2 = 5 Registry2 contains 1 more fields Conflicts: sc/source/filter/oox/unitconverter.cxx Reviewed-on: https://gerrit.libreoffice.org/4833 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 652ccbdf3111766fadc379a8cf4650b744e1e19c) i#108348: fix TimeZone -> Timezone in struct names (cherry picked from commit 604aae1fd240254fe851d93dc35b5408bd13296c) Signed-off-by: Michael Stahl <mstahl@redhat.com> Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu> Signed-off-by: Michael Meeks <michael.meeks@suse.com> Conflicts: forms/source/xforms/convert.cxx offapi/type_reference/offapi.rdb reportdesign/source/core/sdr/RptObject.cxx sc/source/filter/oox/unitconverter.cxx
2013-07-15fdo#54900 RTF import: support setting para align after textMiklos Vajna2-0/+30
Both Word and Writer typically write all paragraph properties before the first text in each paragraph, but at least for paragraph alignment, it's valid to write them at the end. (cherry picked from commit 431853bfae7dccd139804caf7ac2505a7c283e63) Change-Id: I0337e63678ad45c662a204ab2fc59378607abe74 Reviewed-on: https://gerrit.libreoffice.org/4913 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-07-12bnc#828598 fdo#59643 SwFormatClipboard: fix undo of paragraph attributesMiklos Vajna1-12/+1
Paragraph attributes were set directly on the SwTxtNodes, instead of going through SwWrtShell::SetAttr(), which handles undo/redo. Regression from 357fac9713875302d30185feabaf5c165e040ca4. (cherry picked from commit b1cd73d3e62c5192bc3d77f5ecd1036ff42bde61) Change-Id: I5dc86e20e3c006dab60a075355ce9ad1f1b67bb6 Reviewed-on: https://gerrit.libreoffice.org/4868 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-07-11fdo#58577 DOCX export: handle multiple textframes anchored to the same paraMiklos Vajna4-9/+18
Also fixes ~SwIndexReg assertion on closing the document. (cherry picked from commit e5b145a46cd29c9428e6e1894f7b0bb8248a412f) Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Change-Id: I7c1a9d3d646f2dacdbced2af355c076c1a1063ec Reviewed-on: https://gerrit.libreoffice.org/4826 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-07-10fdo#66682 RTF export: fix level text of SVX_NUM_ARABICMiklos Vajna3-1/+47
Even if level text is not ASCII, we should just write the placeholder values (0x00, 0x01, etc.) in a hex encoded form, without Unicode. Regression from 07d01742c69f1c0335bc7e1b57abd8341ce255e7. Also, fix the import side, so the previous bad output now looks bad in Writer as well. (cherry picked from commit 8422d1f5042de08e8b090a907889b41e133bda40) Conflicts: sw/qa/extras/rtfexport/rtfexport.cxx writerfilter/source/rtftok/rtfdocumentimpl.cxx Change-Id: I2f93892006c07eec243ec7dfcb23372d243a2db4 Reviewed-on: https://gerrit.libreoffice.org/4809 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-09fdo#66565 RTF import: don't produce cell widths smaller than MINLAYMiklos Vajna2-0/+47
In case we have a table of a given width and the second (or later) row has fewer cells, we have to add a fake cell to such a row. However, it doesn't make sense to do this when the difference is only a few twips: we can't create such a small frame inside the cell later anyway. Regression from c3b0f13546b30e5db3aecd311c7178e4e0933208. (cherry picked from commit f6a00c88482ec30b61855cb6a95a5ad240b7a517) Conflicts: sw/qa/extras/rtfimport/rtfimport.cxx Change-Id: Ibc0f02d4184b58bd423c3405e786e1ec25b9dd13 Reviewed-on: https://gerrit.libreoffice.org/4785 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
2013-07-09bnc#822175 DOCX filter: export wrapping of text framesMiklos Vajna4-0/+56
(cherry picked from commits 3a87ba9725ef7e1e9a15c5b7abda87d36c9dc614 and 00d8a4071628a88465f13d2e860ccd87c3a85b9e) Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Change-Id: I5c5128686e96a97570b8cdf109dd75976a071ca8 Reviewed-on: https://gerrit.libreoffice.org/4772 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-08fdo#66478: sw: un-break hyphenationMichael Stahl2-7/+6
The main problem is calling SetHyphPos with a stack pointer. Converting STRING_LEN <-> -1 can't hurt though. (regression from a2f6402b1fe769a430019042e14e63c9414715dc) Change-Id: I59a4e3b16b418082de468c7d7f7f38a9b0bccd01 (cherry picked from commit 6fa07d2d608646004bc45261275c4ebabb578a09) Reviewed-on: https://gerrit.libreoffice.org/4757 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-07-08fdo#39001 RTF import: fix fake empty page at the end of the docMiklos Vajna2-0/+30
In case we have a \sect, there was no \sbknone (so it counts as a page break as well) and there is nothing after it, we should not make extra efforts to make that have some effect, but adding at least one empty paragraph to that new page. (cherry picked from commit 4108f285207ed4a60c8876a8206bc5f2d7f05620) Conflicts: sw/qa/extras/rtfimport/rtfimport.cxx Change-Id: Ibcbecabcb590ed34ef96a97698e4ab8f638d3483 Reviewed-on: https://gerrit.libreoffice.org/4737 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-04bnc#820504 VML import: don't anchor shapes TO_PAGEMiklos Vajna2-1/+7
In theory, this is a problem because Word formats only support AT_CHAR and AS_CHAR, so importing something as AT_PAGE is buggy. In practice, this also leads to unvisible shapes, since f0d001a378c64ea457e722266e60c96522c72e9b. Change-Id: Ie730d67a789ef12734cede1f9b6c27764a66f237 (cherry picked from commit f5b7acac624f07fa95835b6054b8d295901bb1dd) Reviewed-on: https://gerrit.libreoffice.org/4716 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-03sw: remove SwDoc::ShareLayoutMichael Stahl4-21/+0
It is a crude hack that is no longer necessary because the underlying problems that caused crashes when deleting the layout have been fixed. Change-Id: I601bdb0dc0aff5f4ddb8b8f4ba4c8d1f72c76666 (cherry picked from commit f8dfa3a81a5382b2f18a705bd512625754167573) Reviewed-on: https://gerrit.libreoffice.org/4706 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-07-03SvStream: remove the error prone operator<</>>(sal_Int64)Michael Stahl1-5/+19
As the recent regression after merging AOO patch adding code serializing "long" variables has shown, this overload (which was added in 7b2a0e541567be9750dfc7d98374555967da3470) is a bad idea. In a unxlngx build, nm finds uses of the symbols _ZN8SvStreamrsERl and _ZN8SvStreamlsEl in these files: - sbxvalue.cxx: this appears to be a legitimate use with sal_Int64 - dateitem.cxx: this was accidentally changed by commit 9830fd36dbdb72c79703b0c61efc027fba793c5a - atrfrm.cxx: this was added for Table Autoformat enhancement in 7e8c0bd73ee59ff3041e55268c77203373962e51, which is after the sal_Int64 operators were added, so the file format is now platform dependent Change-Id: I78352b5429b53612c4831cdb81b587b5de5180a9 (cherry picked from commit 3835dee3c777bf10693903cb0866d22fab3794ea) Reviewed-on: https://gerrit.libreoffice.org/4685 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-02fdo#46361 oox: fixes for the VML import of groupshape textboxesMiklos Vajna2-1/+24
(cherry picked from commits b1f78c44c1acc246f06a963383232c9bf649a06b, f24e4c74d7d6a7d95090c6fa6a584fed7787706c, 6bf79576aeca243db553ed3b5eade492dc35337b, 5a737fca37cd5a5f90aa03a30688d447677d3b8a, ef53d4aec2a3d690de2c7cdaf73ca95bbe29a433 and 2a2105b002c482e6536d5c3046c9e7783c0cdca3) Conflicts: sw/qa/extras/ooxmlimport/ooxmlimport.cxx Change-Id: Ie7ce4fb5c32ff4b3c1f3d7ee92d8358ae67fc6c1 Reviewed-on: https://gerrit.libreoffice.org/4675 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-02Resolves: rhbz#979758 crash on 'Diagrammen in LibreOffice' help pageCaolán McNamara1-1/+1
Change-Id: I269846840b8e2f67838da525c020a305901cf903 (cherry picked from commit 3090cfc972287da3fbdc567387527b65b3bfd128) Reviewed-on: https://gerrit.libreoffice.org/4655 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-02fdo#65650: fix Writer ODF import of list style with bullets and colorMichael Stahl1-5/+1
For such lists xmloff tries to set a BulletColor property but SwXNumberingRules::SetNumberingRuleByIndex() throws a RuntimeException and does not set any of the list properties on the NumRule. (regression from abf18610998aa8330f8330f1d769508e47ef5b20) Change-Id: Id3e80ee1ed67497786258a1096bc5c8dec90ce21 (cherry picked from commit 0520eaf9e661abddadf9a21cfbeab37b0b85dd68) Reviewed-on: https://gerrit.libreoffice.org/4664 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-02fdo#66165: WW8 export: fix duplicated paragraph breaksMichael Stahl1-1/+0
MSWordExportBase::OutputTextNode(): in commit 8f2a21eac4a904db3cc4c448179e2d2cf5878ef4 (which is not merged) a "WriteCR( pTextNodeInfoInner );" was moved up a few lines, so it shows up as context in the other commit, and the bug is that the cherry-pick 83ba821c10392c08334f7d8d3775fe3e8d08f8fd erroneously adds this context line so now there are 2 WriteCR(). Change-Id: I08434b284f3d8d8426fa997623be352c37d6c7c2 (cherry picked from commit a201ae63ce798438057a1328dc644dc8b64fe4e8) Reviewed-on: https://gerrit.libreoffice.org/4662 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-29fdo#66101: lowriter crashed when trying to open .docx fileJulien Nabet1-1/+1
Change-Id: I516bcb4bc18806d5a83f94c0776bd0f918a1e927 Reviewed-on: https://gerrit.libreoffice.org/4550 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org> Reviewed-on: https://gerrit.libreoffice.org/4610
2013-06-28Resolves: fdo#65743 MovePara gets stuck on hidden para fieldsCaolán McNamara2-5/+25
Change-Id: I03b26aaa9be491e760335185c5a9ffd5d04990bb (cherry picked from commit 61533b8c54077bf1aa203f503e271037b6553411) Reviewed-on: https://gerrit.libreoffice.org/4568 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28bnc#823655 fix RTF import of freeform shape coordinatesMiklos Vajna2-0/+74
E.g. 0,1 was imported as 1,0, as we did not differentiate between not having the coordinate yet and having it as zero. Change-Id: Ia5fbbcc791dc9c6866ffd4c146793690661d81b4 (cherry picked from commit ddddfe8d6ffa05c467bddb3480e43d7043a3d3c9) Reviewed-on: https://gerrit.libreoffice.org/4483 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28bnc#823655 RTF import: ignore styles without a typeMiklos Vajna2-0/+22
Regression from 29dcdf6b56f8dbc1b7de0478afb04122f8dbf0f9. Change-Id: I970c0e7b3652d7e6f093815b90e04e0c45904b28 (cherry picked from commit c6a941b51b68eb097d4d43323b39ff1aba4c753e) Reviewed-on: https://gerrit.libreoffice.org/4482 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28SwModelTestBase: fix for leaking temporary filesMiklos Vajna1-0/+2
This alone pushes down the number of created /tmp/lu* from 527 to 2 after a single run. Regression from 9b53538a076a2370df975655c8579dfe09cff09b. Change-Id: I5ea2e3da0b89223fb32469af3d59a2a3b246d00f Helped-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
2013-06-25fdo#58029: replace quadratic child window loop with linearMichael Stahl1-26/+2
... which should speed things up without introducing problems. (Window::GetChild(n) is inefficient because the children are a linked list) Change-Id: I343d51a6866c5014cbca4c256b0c15f938958c39 (cherry picked from commit 38dcfadda85058a0ee87292c8943aec82e34b81e) Reviewed-on: https://gerrit.libreoffice.org/4488 Tested-by: Thorsten Behrens <tbehrens@suse.com> Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
2013-06-25fdo#43765, fdo#57884, fdo#58052, fdo#63949: disappearing form controlsMichael Stahl1-33/+40
Transparent form controls in Writer may not be painted properly, if painted from ViewShell::ImplUnlockPaint(true), called from SwLayIdle::SwLayIdle. The problem is that SdrPaintWindow::OutputPreRenderDevice will paint the background of the transparent form controls (thus over-painting the controls), so it has to be followed by painting the controls themselves. Change-Id: Icda4ad835a398bbd50139be32ff5014a34f23bd5 (cherry picked from commit cfa994ccbd6ee681f5ab3648ce068c4881b495f5) Reviewed-on: https://gerrit.libreoffice.org/4486 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-06-23fdo#43641 testcaseMiklos Vajna2-0/+13
Change-Id: I3426c7c23eb23fa7f91320ac036b0eb565bbc330 (cherry picked from commit abfcf7b958afb16a0e68525cefca5813ce7135eb) Reviewed-on: https://gerrit.libreoffice.org/4424 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-20WaE: macro is not usedTor Lillqvist1-1/+0
Change-Id: I2f55abf4526f4184ba04fc173df8cf5236219cfc (cherry picked from commit 1410cac73fc6e4d2c360e33ac5d185ad900cd728) Signed-off-by: Eike Rathke <erack@redhat.com>
2013-06-20fdo#62536: sw: fix AutoCorrect bold/underline on existing AUTOFMTMichael Stahl2-0/+26
With the native AUTOFMT in Writer the SETATTR_DONTEXPAND does no longer work reliably: if there is an existing AUTOFMT at the position then it will be modified and no new hint with DontExpand will be inserted. Work around this deficiency by inserting a no-length hint with the preivous formatting at the end of the range. (similar fix to the i#75891 problem in SwTextShell::InsertSymbol) (commit 062eaeffe7cb986255063bb9b0a5f3fb3fc8e34c did not introduce the problem but made it far more annoying) Change-Id: I58ece7f5bd5a786b22a066e5902f1784dafa5dce (cherry picked from commit fe444d1f74abe417962be0bcd3340f40f2446b58)
2013-06-20fdo#52028: sw: let text formatting ignore RSID in automatic stylesMichael Stahl13-38/+371
A suprising regression from 062eaeffe7cb986255063bb9b0a5f3fb3fc8e34c: The RSID text attributes that are inserted for every user-inserted text cause the text formatting (SwAttrIter) to create a lot more text portions, and the portion breaks make font kerning impossible. This is the only way i can think of to fix this problem; alternatives that don't work are splitting the RSID out of the AUTOFMT hint into a separate one and combining them in the sw UNO wrappers (fails because SwXAutoStylesEnumerator actually does need to enumerate every AUTOFMT including RSID), trying to detect and ignore them just in the text formatting (the SwAttrIter cannot easily/cheaply detect when it's allowed to skip), and having an internal subdivision inside the AUTOFMT hint (one subsection for every RSID change) (which does not work because it cannot ignore RSID-only AUTOFMTs completely). Solve the problem with 2 additional flags on AUTOFMT and CHARFMT attributes: FormatIgnoreStart and FormatIgnoreEnd, which indicate to SwAttrIter::GetNextAttr() that the start or end of the hint should be ignored, so that effectively it is merged with the preceding/subsequent hint. Of course the UNO API does not respect the flags so we can store the RSIDs in automatic styles. The flags are maintained in SwpHints::MergePortions, which detects both RSID-only AUTOFMT hints (which can be ignored completely), and the situation of N CHARFMT hints + AUTOFMT hint vs. N CHARFMT hints + AUTOFMT hint where the AUTOFMT hints differ only in their RSID attribute. This means that MergePortions needs to be called more often now, in cases where the ignore flags may have been invalidated, such as: - insertion of text with possible DontExpand flag set on hints - deletion of hints - SETATTR_NOHINTADJUST mode Change-Id: I1fb95a87c654c67d114f6f7f2c43b847c50b0ffa (cherry picked from commit 6db39dbd7378351f6476f6db25eb7110c9cfb291)
2013-06-20sw: implement proper Undo for SwDoc::UpdateRsidMichael Stahl6-45/+75
This is annoying because it's not possible to use StartUndo/EndUndo because that would break grouping via SwUndoInsert::CanGrouping(); also SwUndoAttr is somehow incapable of removing the inserted hints of a grouped insert (it seems to leave no-length hints behind); so add an explicit call to DeleteAttributes which should avoid the no-length hints. Change-Id: I1533daed9b2cf59886f380141b4eace4b22c15e0 (cherry picked from commit e012f326c1c32c053304998a6826cb322f2c7728)
2013-06-19unusual negative start point on split node undoCaolán McNamara1-2/+11
Change-Id: I787371e95d9787616ca713c808098b80e40acab0 (cherry picked from commit 967b623031cd115722e2708f1281282ca8dccbe0) Reviewed-on: https://gerrit.libreoffice.org/4360 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-06-19bounds can be -1 for not-foundCaolán McNamara1-0/+13
Change-Id: I941ef1dae00167460f2f0de39e472ed047539f27 (cherry picked from commit 18eba6a69f49c9e8e2902f84e96cb6906ee337f1) Reviewed-on: https://gerrit.libreoffice.org/4359 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-06-19Resolves: fdo#65931 why are we futzing with leading on the preview anywayCaolán McNamara1-6/+4
Change-Id: I0eff88f165a737dfd9a2f348f04b17b6a6212e6f (cherry picked from commit cb1ec05a72d54d55c8a98778c56ee01197cf45f4) Reviewed-on: https://gerrit.libreoffice.org/4363 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-06-19Resolves: #i121917# Corrected access to text objectArmin Le Grand1-3/+17
(cherry picked from commit 2c9c9923fdf042c41cebaf9a15def7caac86032d) Conflicts: sw/source/core/draw/dcontact.cxx Change-Id: Ia214127ca540c4f4036a0006e7c227649fb39134 (cherry picked from commit 6c5c5584eb1adb64fee3aaf76196115ba3812e2c)
2013-06-18bnc#825305 RTF import of fFilled shape propertyMiklos Vajna2-0/+90
(cherry picked from commit b08743d3c4381a77eee6e123230fb423acfbc116) Conflicts: sw/qa/extras/rtfimport/rtfimport.cxx writerfilter/source/rtftok/rtfsdrimport.cxx Change-Id: Iaa2ff9d5d1a28aec046f885acecbd1a44c734ec0 Reviewed-on: https://gerrit.libreoffice.org/4345 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-06-18fdo#65666 keep tab characters in footnote settings of sections, tooLászló Németh1-6/+6
Change-Id: I9728ffb7ddae2ca58af083a4748585b0ca8d1437 Reviewed-on: https://gerrit.libreoffice.org/4341 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-06-18added unit test for n#820504Cédric Bosdonnat2-0/+12
Change-Id: I804e081a564d24d3896160f817051b19da884c34 (cherry picked from commit f9610ed634318c27382d79089d022fb8175eb90a) Reviewed-on: https://gerrit.libreoffice.org/4330 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-06-18fdo#65882 - fix intermittent writer unit test failure on exit.Michael Meeks1-16/+23
Change-Id: Iffa4ea724f2192f85df66eaf4e9e4f30e6ba3d4b
2013-06-17fdo#55315 Added simple Trie lookup tree for autocomplete words storageTomaž Vajngerl2-10/+12
Added simple Trie lookup tree which is more tailored to what is needed in autocomplete implementation, but still has the speed of the LatinLookupTree that has been used till now. As the implementation is much simpler it should be more managable and easier fixable. For now two actions: insert (word) and findSuggestions are supported. Acttion findSuggestion returns all words in a list for a searched sub-word, it also fixes fdo#62945. Change-Id: I63b69c30d28b4e1c465c2122ebc537f7f75a033a Reviewed-on: https://gerrit.libreoffice.org/4237 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-06-16fdo#64925 - fix crash on paste of Arabic text on windows.Michael Stahl1-1/+1
Change-Id: I4c1c5416d6ce486f257f499c39e269d1f1619add
2013-06-13Resolves: #i122529# only check position protection when...Oliver-Rainer Wittmann1-4/+1
moving a text frame, graphic or embedded object in Writer (cherry picked from commit ba9e13a1ebad1569cd5ccf65925a06329ba0d188) Conflicts: sw/source/ui/docvw/edtwin.cxx Change-Id: I126165d6be7505223c4255262103cfb123ec3d55 (cherry picked from commit 57bf1f75942c2c9c0fc264bf0f9b84b674ea55f7)
2013-06-13fdo#65666 keep tab characters in footnote settings (Begin/After)László Németh1-4/+4
Change-Id: I3fbd0f2dea5926981c0cd351c3235f6b61e66aaa Reviewed-on: https://gerrit.libreoffice.org/4234 Reviewed-by: Németh László <nemeth@numbertext.org> Tested-by: Németh László <nemeth@numbertext.org> Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-06-09Remove remnants of help agentCaolán McNamara1-1/+0
it was removed with 66714f1888eaccef4eb5341971278ae7dfafa16b but gobs of code (and UI) still existed to collect the help id and give it to the missing help agent with various UI visible options and buttons to control the help agent which isn't there Change-Id: I625da27b3046d481e43f4d35d32cc7063a1c6291
2013-06-07bnc#820788 VML import of v:textbox's mso-fit-shape-to-text style propertyMiklos Vajna2-0/+12
Change-Id: I74a0ecd50ca61a4f5bf7ebdbf12743dc1fd9368a (cherry picked from commit a22ef599bd3fdcf0bd5c3616aa566a5922624ff3)
2013-06-07sw: fix AutoCorrect bold/underline regressionMichael Stahl1-2/+4
The horrible SvxAutoCorrect::AutoCorrect() inserts the character into the document half-way through, and then _expects_ this inserted character to show up in its rTxt parameter. This broke in Writer when SwTxtNode::m_Text was converted to OUString, because now a temporary String copy is created. Work around this disaster area for now. (regression from 0295c8a34e39326414c1b98cf4da905802f061b0) Change-Id: I1cb11a20cb0c2577036176e605426105631f3311 (cherry picked from commit e2b9946022c2a286ebac625ccb45f5ddddd5a5d6)
2013-06-06OpenSymbol is a symbol fontLuboš Luňák1-0/+1
Change-Id: I2489b836950db63f5f53f8a272970b7769c29282
2013-06-06bnc#382137 DocxAttributeOutput: don't store address of local variableMiklos Vajna1-1/+8
AttributeOutputBase::TextField() passes the address of its local variable to WriteExpand(), and DocxAttributeOutput::WriteField_Impl() stored this. When it was to be used, the variable already went out of scope, resulting in a crash. Given that SwField is an abstract base class, the easiest way is to just copy the field and manually delete it when it's no longer needed. Change-Id: I9d1fe2485277f1ac21a576d7ff0d05003f0ac8a1 (cherry picked from commit 92f328fb5eef672d379ed0b712b025eb80622d5a)
2013-06-06fdo#64283: SwMailMergeDlg: add back missing initializeMichael Stahl1-0/+1
(regression from b248624126c271c88381d3dad6e04fc954f65779) Change-Id: I0ed8c4ec91a095babccd089c7fe4508d123ba86d (cherry picked from commit 61ab0ca621898afa817c92c4d13229fa943dfba8)
2013-06-06wwSectionManager: fix import of page bordersMiklos Vajna3-3/+14
Regression from 1e113cb7604e1509e7d598a9be329f1f7b6e9322. According to the spec (see 2.9.181), the first bit disables border of "all but first" pages, the second bit disables the border of first pages. Change-Id: Ie49c9b7b76d34c2a93350481965790976f49d7df (cherry picked from commit f06cc552a0699f7c2c34db981e77d4c8efe5e9e7)
2013-06-06oups, I shouldn't have commited itXisco Fauli1-3/+3
Change-Id: I0b7433431c2da50c17f46549cde30b2b0131c61f (cherry picked from commit 6e2ff4edb2aae441142280ef31286f4627347fb8)