summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2013-03-08fdo#60691 add modelines to *.src and *.hrc filesBorim
use solenv/bin/add-modulelines script for the task and remove all UTF bom from *.src and *.hrc files svx/source/dialog/hdft.src Change-Id: I745d4f0fe9b05436a142a03f8512970f91c41bd4
2013-03-08SwTableBox::IsValidNumTxtNd: Allow trivial formattingMiklos Vajna
Not allowing flys or footnotes during string -> number conversion is fine, but I don't see what's the reason for rejecting simple formatting (like bold) completely. Change-Id: I8f54aebeb6ea35d099a88570d3f7d365c7325dc0
2013-03-08SwTxtNode::GetRedlineTxt: fix string conversionMiklos Vajna
As I understand it, String allowed the length parameter to be longer than the remaining string, in which case it simply returned the substring till the end of the string. In case of OUString, "!!br0ken!!" is returned instead, so make sure the length is never longer then the remaining string. Change-Id: I69499d74f1d9ba8ed6d9ba1a18d10b45ce319bf5
2013-03-08make use of startsWith()Thomas Arnhold
Change-Id: Ie70097de550ddd1cddc6714f8f86f9723cb36679 Reviewed-on: https://gerrit.libreoffice.org/2599 Tested-by: Fridrich Strba <fridrich@documentfoundation.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-08embed also view-only fonts, but do not use themLuboš Luňák
MSO embeds even fonts which allow only embedding for viewing the document but not editing it. So embed such fonts too, but do not actually use them from the document. What MSO does when such a font is not present locally when opening the document is switching to read-only mode, warning about this and providing a button for switching to editing mode by dumping the font(s). That should be done for LO too, but right now dropping view-only fonts is better than using them for editing. Change-Id: I19c28fadb091e6b21beaf4cbf8b47e3078256d1c
2013-03-08simplify compareTo (now correct)Thomas Arnhold
Change-Id: Ia4fd2f54d0bda71d472f46949500c0b23ff8e1b7 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-08Revert "simplify some compareTo"Stephan Bergmann
This reverts commit 19020191cbf3e3c7a7bf98d0958d86d931ae687b, s1.compareTo(s2, length-of-s2) is *not* equivalent to s1 == s2
2013-03-08simplify some compareToThomas Arnhold
Change-Id: Ib63cfac8b5f129f31534020fd634750e846e3b98
2013-03-08Translate german comments in sw/source/filter/ww8/wrtww8.cxxJoren 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: I4df75b92ea7a66552df36f56de1c87d567d5b643 Reviewed-on: https://gerrit.libreoffice.org/2589 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-07Resolves: #i120442# fix html-flavored copy+paste of unicode surrogate pairsHerbert Dürr
Patch-by: Chen Peng Found-by: Yan Ji Review-by and minor modifications: Herbert Duerr Change-Id: Id100b90367bc1b1603e22337b67b55bb1ffb40d4
2013-03-07fdo#38838 Replaced some use of (Uni)String with OUString.Jean-Noël Rouvignac
Change-Id: Iad623c9300919fbae34279268a5a720f978c6434 Reviewed-on: https://gerrit.libreoffice.org/2514 Reviewed-by: Joren De Cuyper <joren.libreoffice@telenet.be> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-07i#118925# enhance textsearch's match-group referencesHerbert Dürr
to work for look-ahead/look-behind (cherry picked from commit 3b83c404c56e5db5bab29ffee41f02822410d625) Conflicts: sw/source/core/crsr/findtxt.cxx Change-Id: Ia5b31628b0f2af8f93132afa4b2eabd2f533bb91
2013-03-07fdo#61343 fix DOCX import of OLE object after groupshapeMiklos Vajna
Change-Id: I88d5e49cc3fb915d25c1b2576cdda1fffc9e2f23
2013-03-07Translate german comments in wrtw8sty.cxxJoren De Cuyper
Please, only apply this patch if you are native speaking German. I'm not a native speaker, so a double check is really necessary and appreciated. Thanks in advance. Change-Id: Iee7603c3fb8d78b951b967bd5942df4b1e9634f6 Reviewed-on: https://gerrit.libreoffice.org/2575 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-07Leave this one unfixed, since I have no idea what went wrongFridrich Štrba
Change-Id: Ibad1e2a397fdffb66b45ad6e897501c65b03b231
2013-03-07Fix sw buildFridrich Štrba
Change-Id: I28d0a471df67b9b61ba3878f38ae5c3584a80f28
2013-03-07rename setInitialLayoutSize to setOptimalLayoutSizeCaolán McNamara
and add a mechanism to know that we're in true initial layout mode Change-Id: I4ff61160ae67a7ccf1cb8b25c41870c195d32b94
2013-03-07fdo#46808 use document::DocumentRevisionListPersistence constructorNoel Grandin
Change-Id: I1a591ec4061c73657c26552d41c58b970696038f
2013-03-07fdo#46808, Convert text:: and drawing:: ModuleDispatcher service to new styleNoel Grandin
The services already existing, just needed to create the IDL files Change-Id: Ifedd46722ba0bae2985e82d18827c61c1d12cd62
2013-03-06Some cppcheck cleaningJulien Nabet
Change-Id: I53ddb92d1fef3513536fa9a54bcedad35581f4aa
2013-03-06delete previous uncommented comments in positionhelper.cxxJoren De Cuyper
Change-Id: I0f177a078b915c1220423ea583e749de4d02e384 Reviewed-on: https://gerrit.libreoffice.org/2571 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-03-06fdo#60722 testcaseMiklos Vajna
Change-Id: Ib6097c844b2bc929c6ece31bcec62f27bfbf386c
2013-03-06It is safer to uncomment these checks in the postithelperJoren De Cuyper
Change-Id: I84d96224dbe51ff25fcb6d96e0be9a8dff89b0a1 Reviewed-on: https://gerrit.libreoffice.org/2567 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-03-06some refinements on label configurations in writerWinfried Donkers
Change-Id: I94ad02972b0fae1327f72a41373f34962452b8ef Reviewed-on: https://gerrit.libreoffice.org/2473 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-03-06various efforts to consistently apply HIG rulesCaolán McNamara
Change-Id: I1a3ef21959d2bf50c57ffeaf5be3e49f75cd8cca
2013-03-06Commenting 3 failing tests before someone can have a look at itFridrich Štrba
Change-Id: Ie6100b1eb21cc991324636c18745faa10092f570
2013-03-06do not embed the same font file twice into one .docxLuboš Luňák
Change-Id: I6d38e83a7fa609d53f2f687ccfe289440d23e960
2013-03-06fdo#60724 change spelling error REMOVEABLE -> REMOVABLEKenneth Beck
Only applies to PropertyAttribute::REMOVEABLE, and all instances in comments. All other instances of the misspelling have remained the same. Example: AF_REMOVEABLE Change-Id: I391f4101bbc3e06689318235a37d616065bc1686 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-05bnc#793998 SwTxtFormatter::FormatLine: fix missing repaintsMiklos Vajna
The incorrect SwLineLayout width caused a missing repaint when a character is inserted after the tab in the bugdoc, see the already existing sw/qa/extras/ooxmlimport/data/n793998.docx. Change-Id: I685203eeb2ed4236758d65132069cd894ece488c
2013-03-05res. bug on numbered paragraph when .doc importMaxime de Roucy
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ály
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 Vajna
Change-Id: I80496eab6f1bbdcbae74ddac946a95ca2c34b45f
2013-03-05sw: include SwLineLayout width in layout dumpMiklos Vajna
Change-Id: Ib891a4338a80939b4f6212b1b4f6ae0abfea36fb
2013-03-05Fix float scale factor -> integer percentage conversion bug in my new codeTor Lillqvist
Change-Id: I1b843ee1921bad3607e62f7e61b085a33cd84aed
2013-03-05Remove unused variablesTor Lillqvist
Change-Id: I81c62dd3f6319d6ca9c0da518ca07391a80179da
2013-03-04remove trailing whitespacesThomas Arnhold
Change-Id: Ib6684fe00e063e150af30477fd704d9b3f029282
2013-03-04fdo#56272 SwAnchoredDrawObject::_SetPositioningAttr: fix positionMiklos Vajna
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 McNamara
Change-Id: I9704b5becf6f0003233be2b3aa78b4b21a91fae7
2013-03-04audit GetParent harder wrt GetParentDialogCaolán McNamara
weed out assumption that widgets are direct children of Dialogs Change-Id: Ib2cf0c8862bd5e82b13380634ed82ca7fcc746b8
2013-03-04Resolves: fdo#61665 modifying column width widgets crashesCaolán McNamara
Change-Id: Ifc9b31cad9e9935c4873c2785f203bd07d1f118e
2013-03-04doubled namespacesThomas Arnhold
Change-Id: I0f6a34a459c1492a69afa3ef6bcbaa8ed7639a22
2013-03-04doubled includesThomas Arnhold
Change-Id: I70ec796188e2388e1e4d699126f7ae817f5ff86e
2013-03-04Delete double condition checkJoren De Cuyper
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-Prayer
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 Arnhold
This code gets never called. Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
2013-03-04Bin pointless PAGES01 commentsTor Lillqvist
Change-Id: I08b9bafa91c5bc7b7b6ca601ab91607b3143d590
2013-03-04First attempt to get rid of scrollbars on tabletsTor Lillqvist
Change-Id: Id861eab66c04cb5547e75959cab8102d5c18f647
2013-03-04SwFmtAnchor::SetAnchor: fix assert to still allow table -> frame conversionMiklos Vajna
Change-Id: I2dda82b675ebdd434656332d328b02ee3fc04528
2013-03-04fdo#46808, convert xforms::Model to new styleNoel Grandin
the service already existed, it just needed an IDL file. Change-Id: Id8f33183d9332f9defd855b3a3c7413fde24a61b
2013-03-03Android "desktop" app: More hacking on scalingTor Lillqvist
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