summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)AuthorFilesLines
2012-06-18fdo#50896 SfxItemSets can contain emtpy elementDavid Tardon1-10/+14
Use vector<shared_ptr> instead of ptr_vector. Change-Id: I4e7d0735cbb036c608f697f7418109a2c497982f Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2012-06-17Get rid of GRADIENT_* defines, they conflict with Windows GDI types.Jan Holesovsky2-4/+4
Change-Id: Ia0bc37f81b7213b20fc5093beb46d7a05b1ac931 Signed-off-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2012-06-15fdo#46757 Word/character count incorrect with record changes enabledMuhammad Haggag1-7/+6
We were ignoring redlined (deleted) text when counting characters, but not when counting words or characters without spaces. We now mask all redlined/hidden content from the expanded node text before operating on it. Change-Id: If882a6dde883a2ba0ca99909ca7ac2b9abd4a1fb
2012-06-15fdo#50087 fix RTF import of Title, Subject, Comments document propertiesMiklos Vajna2-0/+21
Change-Id: I3358fad4949c2c21ecf63983a36b7c8428df9f06
2012-06-15n#325936 fix ww8 export of fly frames with transparent background in headersMiklos Vajna1-5/+14
Regression from commit ed8b5f2d -- to be safe, reverted only for fly frames in headers. Change-Id: Ia538b69bb913567c7d087d40afc7f0a141b7a0ed
2012-06-15n#325936 fix ww8 export of not-in-background anchored images in headerMiklos Vajna1-1/+28
Regression from commit 2ad707b3, which only updated the import, but forgot to remove the fake "in background" property on export. Change-Id: I2b42c5fa7873d946b10d311800049586bc214071
2012-06-12fdo#43249: WW8: fix double border import:Michael Stahl1-0/+4
The border widths are tripled on import, because that is effectively what SetWidth does for DOUBLE borders; set a divisor of 3 similar to e2ffb71305c5f085eec6d396651c76d6daee3406 70a6a4d425558340bb49507975343a3e0a1bdde8 Change-Id: I40b175bedc1ed2d564be126bf9e6870b43474aba (cherry picked from commit 36e43b52992735c622833e923faa63774b9e2f76) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2012-06-11fdo#50141: Character count (with spaces) incorrect with numbering on.Muhammad Haggag1-1/+1
There was a typo in the character counting code of text nodes. When a numbered list is detected, the code attempts to add the character count of the "item number" to the total count, but ends up overwriting it instead (uses '=' instead of '+='). This resulted in the item number strings to be the only ones counted in a numbered list. Change-Id: I9d96311065f66026dd4f05d3cd5ae61e2c0dafb4 (cherry picked from commit a585863f013aa4207270e11f5e031126adf1ed4a)
2012-06-08n#757905 SwLineLayout::CalcLine: improve line height calculationMiklos Vajna1-1/+10
Word vs. Writer difference: if the only portion in a line is a fly (as-character shape) and the height of the fly is smaller than the height of the line, then Writer sets the height to the height of the fly. Word takes the max of the two values. We already have IgnoreTabsAndBlanksForLineCalculation for Word compat wrt. line height calculation, use that here as well. Change-Id: Iebe1bc697d6f19a03d15a1e5fd25ab4d5f4898fd (cherry picked from commits 563df5d0c3c696912f211e74dd4dbda1aa720ae7 and 11a54814be785766d797cc83cfdacd2368ea642c)
2012-06-07fdo#50809 use the word 'Comment' instead of 'Note' everywhereAndras Timar3-8/+3
Change-Id: Ia42060d415516a1ba8e23f913875786fe27c9710
2012-06-06fdo#50144 put full reference text to selection fieldAndras Timar1-1/+1
Change-Id: I99a4a2a3fc6e20f9c8d35213609075f2269eab2f
2012-06-06fdo#50665 rtftok: don't ignore character properties of text fieldsMiklos Vajna2-0/+36
The dmapper part was already fixed in commit 9486851baea59d16c449d79bd61a38f6e686cfe0 for DOCX, this fixes the RTF tokenizer. Change-Id: Iaca706e50367bb744f5a03e15134bda1646df8fc (cherry picked from commit b9508dd55f82d35f09a58021dc001cf79b390e08)
2012-06-05fdo#50139 do not cut first character of field textAndras Timar1-1/+1
Change-Id: Ia80e0bc0540259f9a752452ad677c645c97fc7f5
2012-06-05fdo#50386: SwView::StateStatusLine: remove SwWait:Michael Stahl1-1/+0
This will turn the mouse cursor into an arrow cursor when the word count is updated, which seems odd. Change-Id: I136824a554cc31e302193cce58241cdf4e4dd281 (cherry picked from commit 78b61b4d944db7f00093d7ee250d234694f1d5b5)
2012-06-05fdo#50386 Page count field makes scrolling impossibleMuhammad Haggag1-3/+1
(Also fixes fdo#50540 View area jumps when start drawing) The word count code for the status bar was calling EndAction, which scrolls the view to focus on the cursor. We were calling it directly (Start/EndAction) and indirectly (through SwWrtShell::GetUpdatedDocStat). I removed the direct calls and replaced the SwWrtShell call with SwDoc::GetUpdatedDocStat, which doesn't call Start/EndAction. Change-Id: I764e8c2d9c10f8eb685d36d0e26142cf3fee628c (cherry picked from commit a8080cad1089431a2d97903f73623eabe2eb23a7)
2012-06-05status bar: Normalize the selection and modification status icons sizes.Jan Holesovsky6-12/+12
Change-Id: I4c11c82df0fdbf0040729323dc1fda2ece7f2582
2012-06-05layout status control: Improved artwork by Mirek M.Jan Holesovsky2-6/+6
Change-Id: I0584f4d158225dc28518fb67185d0a704bfe10d1
2012-06-05Post-translation clean-up with small formatting changePhilipp Weissenbacher1-10/+10
Change-Id: I0f237c360cfaa02c6492cbd95ebfd07657e04fd0
2012-06-05Revert "fdo#39006: Fixed layout loop"Michael Stahl1-16/+27
This reverts commit 2a22e664811e10ca58ec66ba8fd10b1a6185c178. i don't have an opinion whether this commit is wrong or right, but nobody has time to investigate the layout changes that it causes, so since it's not a regression itself it's safest to revert it.
2012-06-05drop some unused codeCaolán McNamara2-6/+0
Change-Id: I952fa56cb8cef0321688ccd117659c8603f71e16
2012-06-05right click spelling menu not honouring UseImagesInMenusCaolán McNamara1-24/+44
Change-Id: Ic012ba427febb305269d9138dd918455aa49c712
2012-06-05Unify ODF extended vs. ODF1.2 handlingThorsten Behrens1-1/+1
Make "export extended ODF" consistently mean "version > ODF1.2". Future ODF versions need manual review anyway, of the various changes/additions we ship. Change-Id: I0f6c1646b306e18f0abcdd1a1802fece821b2e93
2012-06-04edtwin.cxx: try to shut up the tinderboxesMichael Stahl1-14/+20
Change-Id: I504d3b0ac6250b88ca3de3cad179a7caec35e2a5
2012-06-04Smarter auto-complete capitalization (#i22961#) and i18n handlingBrad Sowden1-44/+70
If a word is in sentence case then the auto-completed word should be in the same case i.e. if the auto-complete list contains the word "LIBRE" then "Lib" should auto-complete to "Libre" rather than "LibRE". See OpenOffice bug 22961. Also implement better i18n handling for calander month and day names. Previously, if a month or day name was not ASCII then it would only auto-complete if it exactly matched the names retrieved from the internal calander i.e. had be a case sensitive match. Change-Id: I0c4543bd9e912072bce1ceaf4adecd41b55b576b
2012-06-04Replace SvStringsISortDtor in edtwin.cxx and gloslst.[ch]xxBrad Sowden3-38/+73
Note that the replacement vector stores all strings first and then sort and "unique" are applied (ASCII treated as case-insensitive). Previously strings were inserted sequentially and only the first version of a string would be stored (case-insensitive ASCII comparision). This should have no material impact as the strings retreived from SwAutoCompleteWord are already unique (case- insensitive ASCII comparison) and the capitalization of the string is generally changed anyway to match the capitalization of the word to be auto-completed. Also, there appears to be no logical reason to store the first inserted version of a string over of the first version post-sort. Change-Id: I132865bbb9b382d417fb2cff9de351fdb2cbfb13
2012-06-04fdo#46808, Adapt UNO services to new style, Part 7, updating ::createNoel Grandin5-10/+9
Update calls to factories to use new ::create methods Change-Id: I01d4417820f52718836c92faf3c2fae0dc96b30d Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-04nuke unused definesTakeshi Abe1-4/+0
Change-Id: I7924da4bff73ca8f82c76eb8cb211401530acdeb
2012-06-03fixed indentation of sw/source/core/inc/environmentofanchoredobject.hxxPhilipp Riemer1-63/+63
2012-06-03make coding style of files (e-h) in sw/source/core/inc consistentPhilipp Riemer9-138/+89
2012-06-03translate German comments in sw/source/core/inc/f*.hxxPhilipp Riemer7-227/+200
2012-06-03re-indent files in sw/source/core/incPhilipp Riemer2-516/+499
* re-indentatation by -4 spaces * delete ASCII art separators
2012-06-03make coding style of files (a-d) in sw/source/core/inc consistentPhilipp Riemer20-158/+179
2012-06-03translate German comments in files (a-d) in sw/source/incPhilipp Riemer10-161/+91
2012-06-03make coding style of files starting with a capital letter in ↵Philipp Riemer26-125/+74
sw/source/core/inc consistent Also tranlate German comments in these files at the same time.
2012-06-02targeted string re-workNorbert Thiebaud5-64/+61
Change-Id: I19de73d0d2bdbe5322c928e93eca556eecabb09c
2012-06-02These should be set as checkable menu entriesCaolán McNamara1-0/+9
So use Checkable = TRUE Change-Id: I13ca3cec05ed6fddb00b142bc70c892a75cd45ec
2012-06-01targeted string re-workNorbert Thiebaud10-106/+106
Change-Id: Ieb2e362853f146f58370a60511cc75ab64fe439e
2012-06-01fdo#50539 fix RTF import of automatic character background colorMiklos Vajna2-0/+22
Change-Id: I7efb3bce9a3a6f6c029d99de2264e00bb1bc7c93
2012-06-01targetted revert of minor cppcheck cleanupsMichael Meeks3-4/+4
Change-Id: I72bd86baaccb6f0604f04217046b1b523a02aa62
2012-06-01Bin MA_FASTCALL nonsenseTor Lillqvist10-62/+56
Change-Id: Ifebc06daf56ee0e4dc29d592afba5a07575c99af
2012-06-01fix some typoKorrawit Pruegsanusak1-1/+1
Change-Id: Ib88169968d164c88703505da022887ea8d53c721
2012-05-31targetted revert of comment cleanupMichael Meeks8-128/+1033
Change-Id: I9d7a761a0f479c30269e289796244572c0ed8d86
2012-05-31targetted misc. minor cppcheck cleanups reversionMichael Meeks7-8/+8
Change-Id: Ic7f91c035d3e7f0e792d2e9ab217e1fc4ebcf697
2012-05-31target cppcheck index incrementing revertMichael Meeks1-1/+1
Change-Id: I890dfe9fbd7b5a850daaa0d2b4d5040a5ddbefd7
2012-05-31targetted SAL_N_ELEMENTS revert.Michael Meeks21-61/+56
Change-Id: Idd43d44dd7fc4bb33be2de5b855a7741de88ec51
2012-05-31n#764005 testcaseMiklos Vajna2-0/+19
Change-Id: I76f7cb8aa5b15ac03786e7294ef03ad62741987c
2012-05-31targetted minor cppcheck reversionMichael Meeks2-3/+3
Change-Id: I897739c4623123c32433d0e10fd301e073bb496e
2012-05-30Clean up and translate commentsPhilipp Riemer4-126/+73
Change-Id: I7ecc27535622d7ee63251005f0768ea3cb47623b
2012-05-30Re-format commentsPhilipp Riemer1-57/+59
2012-05-30Clean up comments, whitespace, commented out codePhilipp Riemer6-216/+21
Change-Id: Ieedc214a0810b9ecbe69c5308ee3bdcf98ae461a