summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2013-11-05convert xub_StrLen to sal_Int32Noel Grandin
Converts code that calls comphelper::string::getTokenCount() to use sal_Int32 to store the return value. Change-Id: I439605a39d29b1309649e30f3ff40dfa412efcde
2013-11-05DOCX filter: handle tcMar inside tblStylePrMiklos Vajna
Change-Id: Ifc7694b39337fb9824c2b57083fee101d48f6b84
2013-11-05update pchThomas Arnhold
Change-Id: I10f3dbd9513052b3bbe30ddc6523cd231f26ded3
2013-11-05remove further external include guardsThomas Arnhold
Change-Id: I23ec3b7372425fb35d4b0c50c5719a2170251ffc
2013-11-05fixincludeguards.sh: swThomas Arnhold
Change-Id: I8e0889200d1a1c36e53022a74792728efd66c2fc
2013-11-05First modification on the default template for the WriterAhmad H. Al Harthi
Headings modified and resized based on discussions at http://nabble.documentfoundation.org/Default-Writer-Template-td4076271.html Change-Id: Iccb2bcceb1bbc135b7b53b887760bf50fae762c0
2013-11-04Make CppunitTest_sw_rtfimport use DECLARE_SW_IMPORT_TEST()Miklos Vajna
Change-Id: I670e0460f15951f99f0f750d2798c771f64c3095
2013-11-04DOCX filter: handle CT_Ind_rightChars and CT_PPrBase_snapToGridMiklos Vajna
Also, add InteropGrabBag support to bCs, themeFill, themeFillShade and w:ind's right attribute. Change-Id: I0d6ad0ef062218e71d7c71f99c56dd680b6930de
2013-11-04DOCX filter: roundtrip themeTint and themeShadeMiklos Vajna
Change-Id: Idaf5f6ef13df1ee821d23b8366d25924d26ff4c2
2013-11-04use results of include-what-you-useChr. Rossmanith
Change-Id: Ia6ebc21da0dcc134d07e040fc32f94a4928aa17c Reviewed-on: https://gerrit.libreoffice.org/6560 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-04DOCX filter: more run properties table style roundtrip workMiklos Vajna
Implement roundtrip of smallCaps, spacing, caps and color's themeColor attribute. Change-Id: I1ac88de030356a5ce08a28ac16cd159a426d2be9
2013-11-04remove redundant calls to OUString constructor in if expressionNoel Grandin
Convert code like: if( aStr == OUString("xxxx") ) to this: if( aStr == "xxxx" ) Change-Id: I8d201f048477731eff590fb988259ef0935c080c
2013-11-04remove redundant calls to OUString constructorNoel Grandin
Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
2013-11-04Convert code that calls OUString::getStr()[] to use the [] operatorNoel Grandin
This also means that this code now gets bounds checked in debug builds. Change-Id: Id777f85eaee6a737bbcb84625e6e110abe0e0f27
2013-11-03Get rid of global aDotStrTor Lillqvist
Change-Id: I6be71a738162ed53f2b81b7e03a18b1a8ddbdae0
2013-11-03Bin unused (and uninformative) debugging SvStream operator<< for SwpHintsTor Lillqvist
Change-Id: I7faa055831872cdc46004653eb5d01e6b7ea4b4e
2013-11-03Forgot to bin this declaration, tooTor Lillqvist
Change-Id: Ifd27073ca0451cf285ff0a473676d9f2ad213f00
2013-11-03Add operator<< for SAL_INFO and SAL_DEBUG useTor Lillqvist
Change-Id: I1da8d2fcf503f60ef7947e8956009e09c4b5c867
2013-11-03Bin the unused SvStream &operator<<Tor Lillqvist
Change-Id: I3971f46a14d96770660f7b0060df305248f9ec91
2013-11-02fdo#39468 Translate German strings.Henning Diedler
Quality translation by certified German/English teacher. Change-Id: I4684630004ad2846b6a5ba76e18d30831d20bc26
2013-11-02SwSpellPopup: rename member variables missing their prefixesMiklos Vajna
Change-Id: Iea3acea6b080a0236a6a5dfce8a855df16b74231
2013-11-01Make CppunitTest_sw_rtfexport use DECLARE_SW_ROUNDTRIP_TEST()Miklos Vajna
Change-Id: I50babe172d3c9a46256ac3dc95a3b7591cd3c777
2013-11-01stop unbalanced OutputDevice Push/Pop warnings on closing helpCaolán McNamara
where it takes the early GetBackColor return after Push but before Pop Change-Id: I5fac78b7270c8561cb8e7d26bd2bff44628c8547
2013-11-01Related: #i33737# some minor refactoring in advanceOliver-Rainer Wittmann
(cherry picked from commit b27ff0a078b7c1b32e88041f25314eaad267618b) Conflicts: sw/source/core/bastyp/init.cxx sw/source/core/crsr/findtxt.cxx sw/source/core/doc/doc.cxx sw/source/core/doc/docfld.cxx sw/source/core/edit/edfld.cxx sw/source/core/fields/authfld.cxx sw/source/core/fields/dbfld.cxx sw/source/core/fields/docufld.cxx sw/source/core/fields/expfld.cxx sw/source/core/fields/fldlst.cxx sw/source/core/fields/reffld.cxx sw/source/core/frmedt/tblsel.cxx sw/source/core/inc/wrong.hxx sw/source/core/layout/atrfrm.cxx sw/source/core/text/EnhancedPDFExportHelper.cxx sw/source/core/text/atrstck.cxx sw/source/core/text/itratr.cxx sw/source/core/tox/txmsrt.cxx sw/source/core/txtnode/atrfld.cxx sw/source/core/txtnode/ndtxt.cxx sw/source/core/txtnode/thints.cxx sw/source/core/undo/SwUndoField.cxx sw/source/core/undo/rolbck.cxx sw/source/core/unocore/unocrsrhelper.cxx sw/source/core/unocore/unofield.cxx sw/source/core/unocore/unoportenum.cxx sw/source/core/unocore/unotext.cxx sw/source/filter/rtf/rtffld.cxx sw/source/filter/ww8/ww8atr.cxx sw/source/filter/ww8/ww8par.cxx sw/source/ui/docvw/AnnotationWin.cxx sw/source/ui/utlui/content.cxx Change-Id: I372cfaed881188266c359867879ae92c8d45fee1
2013-11-01-Werror,-Wunused-variableStephan Bergmann
Change-Id: I3bf848c49c5ff980a3a8cc8b84333cb4d0d480df
2013-11-01-Werror,-Wunused-variableStephan Bergmann
Change-Id: Icedd42e4cbdf76bba9fd21e8ead2c8e5dcaf52f1
2013-11-01Made some changes to remove the compile warnings...Jian Hong Cheng
on the comparison between un-uniform data types (cherry picked from commit e0705e2a87726c6d8a04eae624d4f032c5d596ce) Conflicts: sw/source/filter/ww8/wrtw8esh.cxx sw/source/filter/ww8/wrtww8.cxx sw/source/filter/ww8/ww8par.cxx sw/source/filter/ww8/ww8par.hxx sw/source/filter/ww8/ww8par3.cxx Change-Id: I1e6931e01fdcce6c1a4e98a86fcbc08f5e0933bd
2013-11-01Revise un-necessary checking..Jian Hong Cheng
Patch by: chengjh,<chengjh@apache.org> (cherry picked from commit 3869d0164607a1576826dcc338b1f8b52f1147bd)
2013-11-01Resolves: #i120927: Import/Export Hyperlink Info of Graphic with Anchor...Jian Hong Cheng
Type Except “As Character” to MS Word Binary File * sw/source/filter/ww8/escher.hxx * sw/source/filter/ww8/wrtw8esh.cxx * sw/source/filter/ww8/wrtww8.hxx * sw/source/filter/ww8/ww8graf.cxx * sw/source/filter/ww8/ww8par.cxx * sw/source/filter/ww8/ww8par.hxx Interoperability of Hyperlink within Flying object 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 8f7c7a5713e92aecfe4837e628a001b7668c9540) Conflicts: sw/source/filter/ww8/wrtw8esh.cxx sw/source/filter/ww8/wrtww8.hxx sw/source/filter/ww8/ww8graf.cxx sw/source/filter/ww8/ww8par.cxx Fix non-pro build breaker: SvMemoryStream has no member GetRecLeft() Possible introduced from copy and paste from sc, see sal_Size XclImpStream::GetRecLeft() function in class:XclImpStream sc/source/filter/inc/xistream.hxx (cherry picked from commit 4a3a3afa32785d0b1051d9d1104adbbb0e61a820) Conflicts: sw/source/filter/ww8/ww8par.cxx 9ce792333ba3f6aa0f8d8660533bc740e1354597 Change-Id: Icbecea61bf6ec3e7baa02e678a575d64fcfca731
2013-11-01fdo#70998 Termchange: Graphics->ImageSamuel Mehrbrodt
Change-Id: I73458ad8c4f6017bd9fdc36a40b67684d36adbad Reviewed-on: https://gerrit.libreoffice.org/6483 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-10-31writerfilter: implement BorderHandler::getInteropGrabBag()Miklos Vajna
Change-Id: I86922585122898692dc4fb1fbbee11e1864dad29
2013-10-31DOCX filter: roundtrip more table cell border properties for table stylesMiklos Vajna
Change-Id: Ia93bd2083b00f62770970a4efa783b6b19967acb
2013-10-31sw/qa: adapt ooxmlexport to use new tests macrosPierre-Eric Pelloux-Prayer
Change-Id: Iacdcb70e369f3f48e2885480ec5acabdae422f99 Reviewed-on: https://gerrit.libreoffice.org/6513 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-10-31writerfilter: implement TDefTableHandler::getInteropGrabBagMiklos Vajna
This allows to roundtrip table cell borders in conditional table style definitions for DOCX. Change-Id: Ibc0da9996e98e89864c001294695328c15c1549c
2013-10-31sw/qa: 1 individual unit test per filter (import/export) testPierre-Eric Pelloux-Prayer
The goal is to have clearer failure message by distinguishing failures (only import, import and export, only export). Change-Id: Ic4fc5f7bfd7c9ddb0705597c3fb994e41d04b5ba Reviewed-on: https://gerrit.libreoffice.org/6289 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-10-31Resolves: fdo#70358 crash when deleting tablesCaolán McNamara
Change-Id: I87282e363425a1bb6d9ab92e07717f66ee56a6c5
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin
This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-30-Werror,-Wmismatched-tagsStephan Bergmann
Change-Id: Iec4f78de9e52144b84baaa739d97681343ae5a27
2013-10-30DOCX filter: roundtrip more table style propertiesMiklos Vajna
Handle wordWrap, beforeLines, afterLines, beforeAutospacing, afterAutospacing, asciiTheme, hAnsiTheme, b, i, color, sz and vAlign. With this, the export filter is now in sync with the import one again. Change-Id: I7184447baf872374eaa69afdfcb149a7e6e45faa
2013-10-30Factor out DocxTableStyleExport from DocxAttributeOutputMiklos Vajna
Also add a docxhelper, that contains stuff that was local to DocxAttributeOutput till now, but required by DocxTableStyleExport. Change-Id: I24dcc62d11862078202244c214b317e3bc600567
2013-10-30DOCX export: initial w:tblStylePr handlingMiklos Vajna
Change-Id: Ib368d558913149d7489ed320b459b66d3b1279a0
2013-10-30Bin obsolete C30-only (some ancient Sun compiler) codeTor Lillqvist
Change-Id: I8efa4de7c3348867274ee9d40a6e3b8ae0fb86f7
2013-10-29cppcheck: fix Possible inefficient checking for emptinessJulien Nabet
Change-Id: I4d98c7feb71daafeba95a493c71f3f5d520b3058
2013-10-29sw: clone InputField dialog on input-field removalPierre-Eric Pelloux-Prayer
Setup a listener on RES_FIELD_DELETED event, and cancel dialog if a field is deleted. Add Cancellable capability to Input dialog too. Fixes a crasher that occurs when fields are removed (e.g: by an extension) while the InputField dialog is running. Change-Id: I9e132a109cba3127b934a3baecbf445a2bde1377 Reviewed-on: https://gerrit.libreoffice.org/6261 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-10-29Resolves: fdo#69510 don't access beyond end of stringCaolán McNamara
Change-Id: Ib5d60159ad75791371a7805ef8e211a4010d7608
2013-10-29DOCX export: handle table style's pPr / rPr from InteropGrabBagMiklos Vajna
Change-Id: I6dfb29db030212e55a207f39e79a1cf01d482e85
2013-10-29cppcheck: Array index is used before limits checkJulien Nabet
Change-Id: I51f7408a81a10e2c586cb05b863f20b13bb7b263
2013-10-29cppcheck: Prefer prefix ++/-- operators for non-primitive typesJulien Nabet
Change-Id: If9283c4c80ad955cc36ec93ee730927024ff37fa
2013-10-28DOCX filter: roundtrip semiHidden and unhideWhenUsed for table stylesMiklos Vajna
Change-Id: Ie7073a6346553650741a1631096342318d650890
2013-10-28remove local css namespace definitionsThomas Arnhold
As we have it globally in sal/types.h those are not necessary. Change-Id: I18bba2c763c4680c4fa7fde4c5158953b5cfad82