summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)AuthorFilesLines
2014-11-11coverity#1242754 Unused valueCaolán McNamara1-2/+1
Change-Id: I5e3d39b8f87e1496550c616928eab9166f624387 Reviewed-on: https://gerrit.libreoffice.org/12364 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-11-11fdo#85912 Delete surrounding text failing for input method calls regression.Justin Luth1-0/+3
When Apache OpenOffice code was merged in, a few lines were removed for no apparent reason. This just adds the code back in, and resolves the bug. See the comments in fdo#85912 for details about this bug. It is hard for majority language users to reproduce since they don't use ibus/kmfl to type their language's letters. Change-Id: I3963ea0f0eeeab8c8006408a7e229beab1ccf9f6 Reviewed-on: https://gerrit.libreoffice.org/12311 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-11callcatcher: dropping SwChapterNumRules binary Load/Store has knock-on effectCaolán McNamara7-23/+0
Change-Id: I2567026af23dd5fc42812b90bd6098c4c74a4f92
2014-11-11coverity#1130164 Unchecked return valueCaolán McNamara1-2/+2
Change-Id: I9d040b0a8862095ff7ac20b07642d60c17e54fce
2014-11-11fdo#86035 added menu items for shapes and text box and did small rearrangementYousuf Philips6-11/+23
Change-Id: If37446116dc4022d88e46af1af610bc70ce7db78 Reviewed-on: https://gerrit.libreoffice.org/12327 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-11-11sw: remove silly assertion that copy constructor "succeeds"Michael Stahl1-14/+0
Change-Id: Ida31220457959d2ccc21ee2a723dd1ad16b2a502
2014-11-11iwyu: remove unneeded includes in sc, sd, swRiccardo Magliocchetti4-4/+0
Remove only include for files where iwyu does not suggest any includes to add. Change-Id: I58f3e956485ce058750c2635db9633736708d7f0 Reviewed-on: https://gerrit.libreoffice.org/12342 Reviewed-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> Tested-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2014-11-11Yet more nEndInvalid/COMPLETE_STRING fixesStephan Bergmann1-2/+4
...to fix -fsanitize=signed-integer-overflow Change-Id: I713dabd49b5a6085b2e40510540a20441f0c3541
2014-11-11Remove unused ShiftRightStephan Bergmann1-2/+0
Change-Id: I0405506b8dc61df023c01c4f0ae63926e3ea1769
2014-11-11More nEndInvalid/COMPLETE_STRING fixesStephan Bergmann2-2/+2
...to fix -fsanitize=signed-integer-overflow Change-Id: Ib8dad09f1ed088c51fb417efecf662e76b2e495a
2014-11-11sw: fix misleading log messageMichael Stahl1-1/+1
Change-Id: Iec87ed441ccdb03646fecaa8102a047c07a9b25d
2014-11-11fdo#39468 Translate German comments - sw/source/core/textPhilipp Weissenbacher5-235/+275
Change-Id: I8f94931ab8e55e8e330350c92251fa8737bfe730 Reviewed-on: https://gerrit.libreoffice.org/12308 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-11fdo#84938: replace HELPMODE_ constants with enumNoel Grandin6-9/+9
Change-Id: I44be5567e84cdabd8b10771ea37e28b8a88cc23e Reviewed-on: https://gerrit.libreoffice.org/12333 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-10Resolves fdo#86008: fix a crash when open doc fileJulien Nabet1-1/+1
This was the only block, in this part of the code, which wasn't checking pSFlyPara->pFlyFmt Change-Id: Id467dd601a24ba46391544a79d4eecaf5370812c
2014-11-10Update nEndInvalid if it was COMPLETE_STRINGStephan Bergmann1-1/+1
Change-Id: I850c9083230f44daa722e7f51dbfa73efd088d25
2014-11-10Related: fdo#85111 put a box around xml filter settings controlCaolán McNamara2-6/+10
and writer->insert->table->autoformat and calc->data->consolidate and calc->insert->sheet Change-Id: I7c89d9f01747a00b906afe3c762b747df6872869
2014-11-10loplugin: cstylecastNoel Grandin8-64/+64
Change-Id: I4fbe7d35b66dda16f19019fd1baf0aa03361390c
2014-11-10loplugin: cstylecastNoel Grandin50-176/+180
Change-Id: If7ada4cba0b1098bba304f1ec9b860ec7df75e7a
2014-11-10loplugin: cstylecastNoel Grandin4-6/+6
Change-Id: I1f5823e34d400004ccafc0a6cd539d59929b14fa
2014-11-10loplugin: cstylecastNoel Grandin2-8/+9
Change-Id: I639ac26f4d84ff0a2d573d2e58bc5bd41052a925
2014-11-10loplugin: cstylecastNoel Grandin12-53/+69
Change-Id: Ie57f543681790e662f6ac7d074ccb37925999790
2014-11-10sw: disable failing c&p test on headless buildRiccardo Magliocchetti1-1/+1
Change-Id: If9c3aad600332ae289e05e3b046f8b15292dee57 Reviewed-on: https://gerrit.libreoffice.org/12301 Reviewed-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> Tested-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2014-11-10602 regression testCaolán McNamara6-0/+647
Change-Id: I044b9b445a7911e77424613145c7e4d152789f44
2014-11-10coverity#1242522 silence Arguments in wrong orderCaolán McNamara1-1/+3
Change-Id: I248a99b1c0755c54d4f7dbdd291f382d7d99b9ce
2014-11-10coverity#1000853 Uncaught exceptionCaolán McNamara1-1/+12
Change-Id: Id55768822a6a932dace1e30cb03175880ba3ca6a
2014-11-10Fix build.Jan Holesovsky1-5/+4
Change-Id: I91599766e607b26d2c71006c9543a2bd952e228a
2014-11-09avoid unused argument warningLuboš Luňák1-0/+2
Change-Id: Ib67b804423b521407710f8319cb89977e44494cc
2014-11-09speed up SwDoc::IsInHeaderFooter() by using SwFrmFmtAnchorMapLuboš Luňák1-21/+23
Now that it's possible to quickly find anchored objects for a node, it's actually faster to check the node hiearchy rather than layout. Change-Id: I5f93d5af32c744f1773535e5ec8537334d1ff58a
2014-11-09CJK Numbered list test cases for ooxmlimport and ww8import.Mark Hung10-0/+104
Reviewed on: https://gerrit.libreoffice.org/12319 Change-Id: I8c23aa97a16feae32071cb2f71f1b63d771c467c
2014-11-09WaE: unused parameter 'pTbl'Tor Lillqvist1-0/+1
Change-Id: I96dcaeb1b0d01b8b7b21cafce7fed4261c1060a7
2014-11-09WaE: private field 'doc' is not usedTor Lillqvist1-0/+2
Change-Id: I0386d6ee091288ae0913d31ee0ddddee4d3cbb6f
2014-11-09do not display missing data source always as "SOURCE"Luboš Luňák1-1/+1
Broken by cc6f43275a00b0aff2e60e70ee8032222a2c9610. Change-Id: Ie870dea874327639460349b239525e4ce77dd8fe
2014-11-09faster mapping from nodes to SwFrmFmt's anchored at themLuboš Luňák10-13/+207
The SwFrmFmtAnchorMap class provides reverse mapping to SwFrmFmt::GetAnchor().GetCntntAnchor(), so that when code somewhere needs to update SwFrmFmt's anchored at a position, it's not necessary to iterate over all of them (which can be a large number e.g. with mail merge). One special catch with the multimap of SwNodeIndex keys is that the values of those keys change (whenever the node structure of the document changes, indexes of nodes change as a result). This makes it impossible to use any hashing container, as the hashes would change without the container noticing, but multimap should work fine, as it just requires that the keys remain sorted, and that is the case. Nevertheless, the old code in the two converted places is intentionally left there in debug mode to verify the reverse mapping is updated correctly. I intentionally went with SwNodeIndex rather than SwPosition, as SwIndex (the other component of SwPosition) was causing some trouble (see e.g. the SwPosition comparison operator< , where two same positions are different if one is registered and the other not) and it doesn't appear to be actually necessary. Change-Id: I7f1768558f60155d4ba83c84aa7f9e34dc65ebf9
2014-11-09do not break encapsulation of SwFmtAnchor::GetCntntAnchor()Luboš Luňák6-37/+46
Change-Id: I0a320eb990f9a3b6800447a97a84c118239bae96
2014-11-09constLuboš Luňák16-18/+18
Change-Id: Ie2f4c5059a4160287690cf7a4e99472d9a575102
2014-11-09fix constness of SwFmtsBase::GetFmt()Luboš Luňák8-18/+26
And covariant return type while I'm at it. Change-Id: Iab8459e73fa6743eae17094d9826c83b0f53c3f5
2014-11-09do not bother with nice unique names during mailmergeLuboš Luňák7-11/+63
When using a single document for all the generating MM documents, there can be a significant number of sections/etc. , enough to make searching them all in order to find a next nice unique name take a noticeable time. Since it's very unlikely anybody will ever care about nice names after mailmerge, just get some unique name in a fast way. Change-Id: Id6b8d39a67529984cb93bb369f2c6eab401f1799
2014-11-09actually use return value of GetUniqueSectionName() in SwDoc::UpdateSection()Luboš Luňák1-1/+1
Change-Id: I6d9ae98e900e5e42c5253ee9b2f71bec351b54d1
2014-11-09do not iterate over all bookmarks in SwTxtNode::Update()Luboš Luňák1-6/+13
3f9872185e introduced new API for fast finding of marks to a specific text node, so use that (code itself based on cb46aaf2d7). This makes mailmerge faster (since it can create a huge document, and especially with the change to use UNO bookmarks to mark starts of MM documents inside the larger single document there can be a large number of marks). Change-Id: I30ec69acf423e9a62fae5f5492ed8744cb727a56
2014-11-09Try to fix CppunitTest_sw_mailmerge testSamuel Mehrbrodt1-2/+3
Change-Id: I225ef5b01625e8260b751e5255161ae51456fbf1
2014-11-09SfxTabDialog ctors: take an OUStringMiklos Vajna2-2/+2
Change-Id: I91b9b2ffd19b2412ac01dd12429d6460b4c4812c
2014-11-09fdo#82707 Unify click behavior in Statusbar (Writer)Samuel Mehrbrodt3-1/+11
Use single click for primary action, right click for context menu Change-Id: Ia707a88b48f4af144588c45d37acea547e77773e
2014-11-09HIG fixes in swAdolfo Jayme Barrientos63-1261/+416
Change-Id: I0d70e69909f6e58784aa4bc7cf03ae9f4219c992 Reviewed-on: https://gerrit.libreoffice.org/12312 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-11-09fdo#86050 Let LibreOffice add scrollbars to widgets only when necessaryAdolfo Jayme Barrientos5-11/+0
Change-Id: I1a930a413c071d4d0c8855315dc85339e01b7d9b Reviewed-on: https://gerrit.libreoffice.org/12322 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-11-09fdo#81475 Disabling background color in enabling some other buttonsYousuf Philips2-8/+9
Change-Id: I5eee027d2cb1dd3528a274556568110da5609223 Reviewed-on: https://gerrit.libreoffice.org/12306 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-11-09fdo#85804 Introduce bullets and numbering popupsMaxim Monastirsky2-2/+2
Change-Id: I39ea402a3ce3296f55ea127b0139e89954e41252
2014-11-08fdo#86018 Distribute space in statusbar better on small screensSamuel Mehrbrodt6-6/+6
Change-Id: If07037e8d313c966c2db572716bf958c89c2fd79 Reviewed-on: https://gerrit.libreoffice.org/12313 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-11-08fdo#84645 RTF import: set DontBalanceTextColumns=true for the last section ...Miklos Vajna2-0/+13
... if it has multiple columns. See commit d185204737031955c56a24356ed003d342548434 (DOCX import: set DontBalanceTextColumns=true for the last section, 2014-07-17) for the DOCX equivalent of this problem; this just adapts the RTF tokenizer to dmapper. Change-Id: Ib30f9b386e204b8b2987832ab17ee0cc53b3f0bc
2014-11-08sw: SwChapterNumRules::sFileName looks pretty constantMichael Stahl2-6/+5
Change-Id: Iaecaccab729e22ae9504d01c9974779cf1ab381b
2014-11-08sw: SwChapterNumRules::bModified has become pointlessMichael Stahl2-20/+13
Change-Id: I7d4937dab947b14d4885c548cd7a96ebaba23c60