summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)AuthorFilesLines
2013-03-05res. bug on numbered paragraph when .doc importMaxime de Roucy2-35/+44
This patch solve an issue on .doc import (on paragraph numbering). It was created from the code found in SwDoc::DelNumRules. To see the problem you can download simple test document : wget ftp://craoc.fr/{a,b,c,d}.{doc,png} Each document contain a paragraph "Test test test2" using Normal/default style (this paragraph is imported correctly) and a "Test test test1" using nouveau_style paragraph style. In a.doc no direct paragraph formating are apply to the test1 paragraph. a.doc is imported correctly. To create b.doc, in Microsoft Office Word I opened a.doc, put my cursor in front of the first charactère of the test1 paragraph (T) and push "backspace". The result is that it apply some direct paragraph formating on test1 : * disable paragraph numbering * apply some indent To create c.doc I did on b.doc the same things I did to a.doc to create b.doc. c.doc direct paragraph formating on test1 : * disable paragraph numbering * apply some (other) indent To create d.doc I did on c.doc the same things I did to a.doc to create b.doc. d.doc direct paragraph formating on test1 : * disable paragraph numbering Without this patch, when importing {b,c,d}.doc in Writer : The "disable paragraph numbering" direct formating isn't correctly apply and test1 remain a numbered paragraph (even if the "dot" in front of the paragraph is removed). The indent are not correctly apply. With this patch {a,b,c,d}.doc are correctly imported. It also reset the left indent of paragraph when the numbering style is remove. Change-Id: If0568f341b82c2e8354f1728e5fc6f1ab310ea51 Reviewed-on: https://gerrit.libreoffice.org/2046 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@iki.fi> Reviewed-by: Muthu Subramanian K <muthusuba@gmail.com> Tested-by: Muthu Subramanian K <muthusuba@gmail.com>
2013-03-05fdo#38838, replacement of String with OUStringÁdám Csaba Király6-18/+18
Replaced String with OUString in mediawindow.cxx, basdoc.cxx, basdoc.hxx and bastype3.cxx. In other files I only replaced, what was necessary for the changes in basdoc to work. Change-Id: I1ad0e7e262f8becdf57f182853aaa914a88895a4 Reviewed-on: https://gerrit.libreoffice.org/2554 Reviewed-by: Muthu Subramanian K <muthusuba@gmail.com> Tested-by: Muthu Subramanian K <muthusuba@gmail.com>
2013-03-05SwLinePortion: drop no longer needed C30 workaroundMiklos Vajna1-11/+0
Change-Id: I80496eab6f1bbdcbae74ddac946a95ca2c34b45f
2013-03-05sw: include SwLineLayout width in layout dumpMiklos Vajna5-7/+12
Change-Id: Ib891a4338a80939b4f6212b1b4f6ae0abfea36fb
2013-03-05Fix float scale factor -> integer percentage conversion bug in my new codeTor Lillqvist1-2/+2
Change-Id: I1b843ee1921bad3607e62f7e61b085a33cd84aed
2013-03-05Remove unused variablesTor Lillqvist1-7/+1
Change-Id: I81c62dd3f6319d6ca9c0da518ca07391a80179da
2013-03-04remove trailing whitespacesThomas Arnhold3-4/+4
Change-Id: Ib6684fe00e063e150af30477fd704d9b3f029282
2013-03-04fdo#56272 SwAnchoredDrawObject::_SetPositioningAttr: fix positionMiklos Vajna3-5/+13
This reverts a part of 51cfbf0cfaec395a99a00f2c20fcba96de9a4427, that is no longer needed, but causes incorrect drawing objects position. The problem was that a non-zero position doesn't mean the layout in a later iteration doesn't change the position, but the referred commit didn't allow later iterations to fine-tune the position. Change-Id: Id91a4c6952d1b58e0c5bc0b1a60991a284c29ddc
2013-03-04include scrollbar width in optimalsize if vert scrollbar is always shownCaolán McNamara1-39/+26
Change-Id: I9704b5becf6f0003233be2b3aa78b4b21a91fae7
2013-03-04audit GetParent harder wrt GetParentDialogCaolán McNamara1-1/+1
weed out assumption that widgets are direct children of Dialogs Change-Id: Ib2cf0c8862bd5e82b13380634ed82ca7fcc746b8
2013-03-04Resolves: fdo#61665 modifying column width widgets crashesCaolán McNamara2-14/+26
Change-Id: Ifc9b31cad9e9935c4873c2785f203bd07d1f118e
2013-03-04doubled namespacesThomas Arnhold7-12/+0
Change-Id: I0f6a34a459c1492a69afa3ef6bcbaa8ed7639a22
2013-03-04doubled includesThomas Arnhold3-11/+0
Change-Id: I70ec796188e2388e1e4d699126f7ae817f5ff86e
2013-03-04Delete double condition checkJoren De Cuyper1-2/+2
We don't need to check if aNextPostIt != aVisiblePostItList.end() again because we only can enter the enclosing if-statement when aNextPostIt != aVisiblePostItList.end() Change-Id: I853ed465e957bd26dae8312d2ce717ea1ca0b4e8 Reviewed-on: https://gerrit.libreoffice.org/2453 Reviewed-by: Muthu Subramanian K <muthusuba@gmail.com> Tested-by: Muthu Subramanian K <muthusuba@gmail.com>
2013-03-04docx import: table styles and rPr/pPr tags unit testPierre-Eric Pelloux-Prayer2-0/+24
When importing table style from docx, ignore sz tag when not inside a tblStylePr element. I did not find any reason for this in WordProcessingML documentation, but Office seems to be doing so. This change includes the unit test. Change-Id: I2a6c27e458e02eb6cd39defe65a415792adc6393
2013-03-04remove unused and commented out codeThomas Arnhold7-25/+0
This code gets never called. Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
2013-03-04Bin pointless PAGES01 commentsTor Lillqvist8-20/+3
Change-Id: I08b9bafa91c5bc7b7b6ca601ab91607b3143d590
2013-03-04First attempt to get rid of scrollbars on tabletsTor Lillqvist1-1/+9
Change-Id: Id861eab66c04cb5547e75959cab8102d5c18f647
2013-03-04SwFmtAnchor::SetAnchor: fix assert to still allow table -> frame conversionMiklos Vajna1-0/+2
Change-Id: I2dda82b675ebdd434656332d328b02ee3fc04528
2013-03-04fdo#46808, convert xforms::Model to new styleNoel Grandin1-15/+10
the service already existed, it just needed an IDL file. Change-Id: Id8f33183d9332f9defd855b3a3c7413fde24a61b
2013-03-03Android "desktop" app: More hacking on scalingTor Lillqvist1-0/+6
Added a new "mode" for the CommandWheelData, COMMAND_WHEEL_ZOOM_SCALE, where the "delta" is the scale percentage to multiply the curent zoom factor with. Implement in Writer and Calc. But actually, I am more and more startng to think that live scaling of the document view during the pinch/spread gesture will never perform fast enough. Need to go back to the (simple) trick to just scale the BitmapView, and do the actual LO re-zoom only when the gesture finishes. But in order for that to look nicer, need to get rid of the LO UI element clutter around the document, scrollbars, buttons etc. Plus of course need to make sure the LO zooming happens around the gesture center position. Change-Id: I20dfcb4c2a97aacbf7e5b6ea5c24816b237fe687
2013-03-03Related to fdo#60724: correct spellingThomas Arnhold40-52/+52
Using the autocorrect list of LibreOffice extras/source/autotext/lang/en-US/acor/DocumentList.xml Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657 Script: http://pastebin.ca/2327716
2013-03-03fix buildMarkus Mohrhard1-1/+0
2013-03-03Comment translation german-english sw/source/ui/uno/Matthias Freund2-42/+35
Change-Id: I350aa56bd27ef55a44d5a7140e78fa36b350b302 Reviewed-on: https://gerrit.libreoffice.org/2530 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-03-03sal_Bool to boolTakeshi Abe28-41/+41
Change-Id: I4040baa1a0202426df80a0ea94abde55e2b6ca65
2013-03-02coverity#704453: new[] vs delete mismatchMarkus Mohrhard1-2/+2
Change-Id: Idf32727e40605ab00c0423f57dbbcd744e898f7c
2013-03-02Typo fix: informations -> information and a few other adjacent typos.Gregg King2-2/+2
FDO:60724 Change-Id: I73ad9f1c37cbbcf28d996ed73c75cf09553e499b Reviewed-on: https://gerrit.libreoffice.org/2479 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-03-02fdo#60886: _SetGetExpFlds: use the custom operator<Michael Stahl1-7/+5
The calls to upper_bound in SwDoc::FldsToExpand and SwDoc::FldsToCalc unfortunately compare the pointers and not the values pointed to, which causes all sorts of trouble around non-updated fields. (regression from 2815396a1813cb3956c5aba066de49a7f34bc657) Change-Id: I48817247719671a16821fcb851b17b628c960a66
2013-03-02sal_Bool to boolTakeshi Abe12-54/+55
Change-Id: I278eeb5c61a88cc96d59adb4d9b722d4c91abd3d
2013-03-01fdo#59638 handle RTF_F inside RTF_LISTLEVELMiklos Vajna2-0/+60
Word typically uses the Symbol font to describe bullet characters instead of using a sane Unicode value, the previous can only be handled if we parse the custom font set for the list. Change-Id: I1491f07c40953949e381a035c1596c207cdc4c35
2013-03-01fix higher debug levelsCaolán McNamara1-1/+1
Change-Id: I57c01a8ab7ba158c160dce977e3e0e54e5b67f23
2013-03-01RTL_CONSTASCII_USTRINGPARAM and ::rtl:: removalsKrisztian Pinter34-288/+285
Change-Id: I3ef372b07f2bacc2b9bbbb034e3d61b9cc8a3677 Reviewed-on: https://gerrit.libreoffice.org/2486 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-03-01#c704126# fix off-by-one when parsing WW8_STD's fHidden memberHerbert Dürr1-1/+1
According to the header file ww8struc.hxx the fHidden member is at bit 1 (cherry picked from commit a428571aeecd1acee1b2d5a80cd1d9978f25aeb7)
2013-03-01Resolves: #i120028# SvxBorderLine leakCaolán McNamara1-1/+4
Change-Id: I652653ae8a99b8486e893c65b6c82b6ea6e4faec
2013-02-28regenerate pchPeter Foley2-1/+4
Change-Id: I130bfbeaf8723f0f9ee38051c8acf32cb7f5ba85
2013-02-28remove all d.lstMichael Stahl1-0/+0
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-28Related: fdo#59638 DOCX import of w:lvlOverrideMiklos Vajna2-0/+25
Change-Id: I23fca674e2436b09eeea3337b4d3eeb7a33ccf09
2013-02-28Resolves: fdo#36668 allow image captions above imageCaolán McNamara2-7/+4
orientation is the *second* argument, not the first, which may be why this was never implemented, because setting BOTTOM "didn't work". Change-Id: Ief9b7f3ef7f696d38a3da73f9e38fe30a2d6c855
2013-02-28various efforts to consistently apply HIG rulesCaolán McNamara5-25/+43
Change-Id: Iada517a5addaeacbc83f46e55773ae373098c95e
2013-02-28Remove dead voice command codeTor Lillqvist2-91/+0
I don't see voice input commands being generated anywhere. Nobody seems to know what this code has been used for. Change-Id: I4e4221dd4dff76086d0268be286c3605e669bae7 Reviewed-on: https://gerrit.libreoffice.org/2452 Reviewed-by: Niko Rönkkö <ronkko@iki.fi> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-02-28sw: remove CH_TXT_ATR_FORMELEMENT when CheckboxFieldmark is deletedMichael Stahl3-14/+18
Change-Id: I5f58b558b15f7d11b75554195e10a258d027bcfc
2013-02-28fdo#61016: sw::marks::MarkManager: delay deletion of text fieldmarksMichael Stahl3-14/+50
There is a STL assertion in deleteMarks because the ReleaseDoc call will recursively call into deleteMark again and delete marks that are in the vector vMarksToDelete up the stack. Change-Id: I9139b174f8a518a551a3ca8520396202c306abcf
2013-02-28fdo#61309: writerfilter: filter out enormous numbering levelsMichael Stahl1-0/+5
Change-Id: Iafef1c2ca2ca072bd604946fbe19b6a24e323512
2013-02-28sal_Bool to boolTakeshi Abe10-31/+31
Change-Id: I78955b1a7aba864e83c5c5869f389809be0e76e0
2013-02-28drop/fix #define suffixed with semicolonTakeshi Abe2-3/+1
Change-Id: I0569586cf558d5ab487da4cf8ede24507ec84035
2013-02-27#c708928# avoid double free errorHerbert Dürr1-0/+2
2013-02-27sw: get rid of no longer needed TOOLS_CONSTASCII_STRINGPARAM defineMiklos Vajna1-11/+7
Change-Id: I595907d345c0438858e53ca76fbb2ae7d79743e6
2013-02-27fdo#53985 DOCX import: don't try to set empty PageDescNameMiklos Vajna2-0/+11
Regression from 50cb1667020494906afaacb68d4163d1eda527cf. Change-Id: Ie04d5ad37555ed4cfeb34ccb8dc021675fbd25ea
2013-02-27ww8export test: fail if control shape not foundMiklos Vajna1-7/+3
This check was added due to random failures (where it failed if the shape was completely missing, while the test wanted to check a property of the shape), but it shoult no longer be necessary since 2ed931303b10386153a1337fa15b225aabd40cb4 Change-Id: Ia5665b4f292cee09eab52b76e53c34a44d545896
2013-02-26fdo#61507 export of RTF_TITLE may need RTF_UPR and RTF_UDMiklos Vajna4-6/+42
Change-Id: I3b8fe209a96e5119541e09cb5dbda8a2c6926b40