summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2014-11-19fdo#85872: sw: fix crash in insert index dialogMichael Stahl
Looks like the old code would create a link starting at the beginning in this case, so let's do the same. (regression from 94b296d5416dd71d721ad16216b50bce79e3dc04) Change-Id: Idcd17ae51c478aa5c2a000c7b33a8244f06bd166
2014-11-19Mark Color::AsRGBHexString() as constMiklos Vajna
Change-Id: Idf00e228c480afe2bbbb64682ed01f2c778b6d9d
2014-11-19sw: include the font of SwNumberPortions in layout dumpMiklos Vajna
Change-Id: I3d015c7a97ace6db548c4ad11ae24b0a7daa35c5
2014-11-19comphelper::SequenceAsHashMap: throw IllegalArgumentExceptionStephan Bergmann
...instead of IllegalTypeException (where the latter is not a RuntimeException). Fixes cid#707218, cid#1224993, etc., and reverts previous fix 358f5280e0f6afb968edc295d8f1dce55f05e18f "Fix coverity#1224993 w/o breaking JunitTest_framework_unoapi." Change-Id: I13ce153e1513749fb0be2ee8e560cec86a30c5ba
2014-11-19Fix rtf outline importing issue.Mark Hung
When importing RTF files, the outline is treated as normal numbering list. Open the tools>chapter, outline doesn't correspond to heading styles correctly. This patch is to handle RTF keyword \s in a \listlevel. The patch use style name as its id so that is consistent with the one already used by StyleSheetEntry. Change-Id: I5ab6602b5ce64ca65ec08e0adb34d60ae7293650 Reviewed-on: https://gerrit.libreoffice.org/12960 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-11-19DOCX import: handle <w:lvlOverride> without <w:lvlText>Miklos Vajna
Change-Id: I0b941bd7a733408655db192b8608ed3987b9c1fc
2014-11-19loplugin: cstylecastNoel Grandin
Change-Id: If25e3b030d484f03078bfba265bed82b315e2742
2014-11-19loplugin: cstylecastNoel Grandin
Change-Id: I322c6f9cd106a0ac3ad5c67dd0d49660b608e079
2014-11-19add EDB-35279 test-caseCaolán McNamara
Change-Id: I9fb6e1e33f6b67342c8b407eafc9882ee44f4b46
2014-11-19Use SwNode::GetTxtNode()Miklos Vajna
Change-Id: Icf3e1013d5eba5702badf19aa6c1f5e6708ed154
2014-11-19remove nonsense comment clutterBjoern Michaelsen
Change-Id: I9ab33513ffb927b02c27fbd6c115b41702751d18
2014-11-19move docfunc to own headerBjoern Michaelsen
Change-Id: I5e1c66e09418e534bb47233f45c67206af20cab4
2014-11-18coverity#735514 Logically dead codeCaolán McNamara
Change-Id: I33ffbe87b7c7f2f1fefc18f10055e47e2454ead1
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-18DOCX export: put either hints or the para attr set into the para marker propsMiklos Vajna
Commit d72237741ed1d8f976032ff2ee5d2a8702d3380e (abi#9930 DocxAttributeOutput::AddToAttrList: avoid duplicated attributes, 2014-11-02) added a quick fix to avoid writing duplicated attributes, but the validation problem of duplicated elements remained. Make sure that when writing paragraph marker properties, then we write either the hints at the end of the paragraph or the character attributes range of the paragraph properties, but not both. The only exception is the character style that's always set as a hint, as explained in commit 4bb872b1924453f22e90bdd14e2898a3e66d5551 (DOCX export: fix handling of paragraph mark on empty paragraphs, 2014-10-17). Change-Id: I494e5bb9871aa535532fef32bd344d8093e9f762
2014-11-18gcc 4.8.3 lets us do it, but not everyone elseCaolán McNamara
Change-Id: I83cca6a1bd3a462a277e5f5338cafbcd037d4227
2014-11-18coverity#735517 Logically dead codeCaolán McNamara
its possible that this was the original intent, maybe Change-Id: Ia7ab679b84f16ae7aab201b43eb69ce6a693c0f2 Reviewed-on: https://gerrit.libreoffice.org/12392 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-11-18Move remaining static vars into the properties containerMichaël Lefèvre
Change-Id: Ic52213fa73290508216fa9d2c27805e2afe68747 Reviewed-on: https://gerrit.libreoffice.org/12488 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18Move static pSpecsSubLines into properties containerMichaël Lefèvre
Change-Id: I0ff8ab2c36960a5b9b8108269fca88b325d001f6 Reviewed-on: https://gerrit.libreoffice.org/12487 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18Move static pProgress into properties containerMichaël Lefèvre
Change-Id: I0e2843327173b9459b1b5bf73277b106c495ecef Reviewed-on: https://gerrit.libreoffice.org/12486 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18Move static n*Pixel* into properties containerMichaël Lefèvre
Change-Id: I37d932ceabf50ffad2953d32309a668dbde1469f Reviewed-on: https://gerrit.libreoffice.org/12485 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18Move *RetoucheFly* into properties containerMichaël Lefèvre
Change-Id: I07c1751848c55c12bad16735b7f83ea07b150080 Reviewed-on: https://gerrit.libreoffice.org/12484 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18Move bFlyMetafile and pFlyMetafileOut into properties containerMichaël Lefèvre
Change-Id: I88b9a193a790fd1985bdd0f83d7b75993a746c0e Reviewed-on: https://gerrit.libreoffice.org/12483 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18Move pGlobalShell into properties containerMichaël Lefèvre
Change-Id: I10eca8c422f8242a892a0c6608a874ed8a37dd46 Reviewed-on: https://gerrit.libreoffice.org/12482 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18java: make fields final where possibleNoel Grandin
found by PMD Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec
2014-11-18Move pFlyOnly into properties containerMichaël Lefèvre
Change-Id: I64dcaba589f77cc5bd9241c6adb34dbe029ad9f1 Reviewed-on: https://gerrit.libreoffice.org/12481 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18Move scale factors inside the properties containerMichaël Lefèvre
Change-Id: Ic2417796d1e1cf150124ede660b53d3a01d70aab Reviewed-on: https://gerrit.libreoffice.org/12480 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18Remove dead codeMichaël Lefèvre
Change-Id: Ieac5dec327f5203221e31c50d679ef3ffa1ce8e4 Reviewed-on: https://gerrit.libreoffice.org/12479 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18Make const variables constMichaël Lefèvre
Change-Id: Ib29fa559028327ffb8835daf271da0769fecaa2a Reviewed-on: https://gerrit.libreoffice.org/12478 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18Put properties in their own structureMichaël Lefèvre
The structure will be the entry point for static variables in latter patches Change-Id: Iaa072591b1c900598c4f8ebf386e9b51342967dd Reviewed-on: https://gerrit.libreoffice.org/12477 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18Fix outline numbering for ooxml import filter.Mark Hung
Conflicts: sw/qa/extras/ooxmlimport/ooxmlimport.cxx Reviewed on: https://gerrit.libreoffice.org/12519 Change-Id: Ifd8a562bcee4f57cc99ed3215e6d8d6dd95216b0
2014-11-18fdo#86018 Don't do anything when clicked on placeholder in statusbarSamuel Mehrbrodt
No idea why this code got executed in sw, it has no action in sd and sc. Change-Id: I1d2b4b049f6ae6d117e7bf3464ae993c6951f1dc Reviewed-on: https://gerrit.libreoffice.org/12314 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18fdo#81475 moving alignment buttons back to original placeYousuf Philips
Change-Id: I10f9d4423ae039f304ff1e29e98eda21c961a93e Reviewed-on: https://gerrit.libreoffice.org/12420 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18fdo#80838 rearranging the buttons in the toolbarYousuf Philips
Change-Id: I4452374d372ff49533cea4d07fc79c3adb730f84 Reviewed-on: https://gerrit.libreoffice.org/12390 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18fdo#82708 editing statusbar tooltip textsYousuf Philips
Change-Id: I3ac2e46f89d5c1e4decb6d6aaf8487663e904a43 Reviewed-on: https://gerrit.libreoffice.org/12433 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18fdo#76937 Improve organization and layout in Position tabsAdolfo Jayme Barrientos
Change-Id: I55e08db1c4c32d0e2a1def293d1d42abb6717cb0 Reviewed-on: https://gerrit.libreoffice.org/12520 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18fdo#86289 rename 'Page Preview' to 'Print Preview' in toolbar names and popupsYousuf Philips
Change-Id: Ifb4254a044b1aa15b1c3e09d7f662daaf6eb61d7 Reviewed-on: https://gerrit.libreoffice.org/12502 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18sw: no matching function for call to assertEquals(sal_Int32, int, ...)Miklos Vajna
Change-Id: I3fc87b89c85bf800bfafccf1c379bc379ebba058
2014-11-18fdo#86131 SwXTextField::getAnchor: handle postit field with annotation markMiklos Vajna
Change-Id: I3881c4577375a2eda053f64800d0991de6f009ad
2014-11-18loplugin: cstylecastNoel Grandin
Change-Id: I939e4af2ca27b34f78d079bb1e209d9b118eed01
2014-11-17fdo#85542: fix DOCX import of overlapping bookmarksBjoern Michaelsen
This was broken by 345a3a394e082595924bf219796627f6c00ae2dd. Kill the static variable and instead have some more state in the implementation. Still not ideal, but at least fixes the regression. Change-Id: I562f7d88a1983bd0ec2e01d6bb1e4a53551d0953 Reviewed-on: https://gerrit.libreoffice.org/12491 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-11-17Work around warning C4702: unreachable codeStephan Bergmann
...introduced with 82d08580e368afbc9d73da3613845a36a89b0a8c " switch saxparser from expat to libxml2" Change-Id: I4e214fff0f3650b44f299f112b27c607c7936c03
2014-11-17DOCX import: handle <w:numId> from parent styles as wellMiklos Vajna
Without this, we may miss the <w:numId> of a paragraph and set no numbering style name; and that leads to not restarting numberings when needed. Change-Id: I9a4896266c5b7f1d7cc2adc43b84e227c004da7c
2014-11-17CppunitTest_sw_rtfimport: indentation fixesMiklos Vajna
Change-Id: I696489a60729426b9b14df6c9e79a2d8247d21fb
2014-11-17help coverity out with empty()Caolán McNamara
Change-Id: Icc28a0f0f4afcbda9e595fa753494a8161f82d4c
2014-11-17OSL_ENSURE->assert where guaranteed deref followsCaolán McNamara
Change-Id: I241e13cbf440c1a7e208c2646ded7bf2628ca25b
2014-11-17coverity#1242523 we just need a copy hereCaolán McNamara
Change-Id: I238756de13a5bd2711538cbd92e78bbae8fced22
2014-11-17third argument should be SfxFilterFlagsCaolán McNamara
Change-Id: Id0a73ffbbddc7fd2b2190cc04f59769561f45dd0
2014-11-17salhelper: include-what-you-use cleanup of public headersMichael Stahl
Change-Id: Ie778e541cecadeefc5ee5f30af9577a00c870a58
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05