summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2012-08-23initialize memberLuboš Luňák
Introduced by b95d203bc17c83ec0fe5139f519d53ed1d842d3a . Change-Id: I2497ee7cd55776fbd801d07470968e5aa47e971a
2012-08-23SwHeaderFooterWin: memory leakIvan Timofeev
Change-Id: Ie8322b93745c48970766c2033a23cca2c710a516
2012-08-23n#775906 testcaseMiklos Vajna
Change-Id: Idafd1b7506dac77307190df275fb8ed35d40e5e5
2012-08-23convert docx mathml test documents into unittestsLuboš Luňák
There are few small things that do not survive the roundtrip completely accurately, they should be checked somewhen when there's time. But it's better to have these as actual tests rather than just documents somewhere. Change-Id: Ic3732ab8450376820867950438d89e324f391eeb
2012-08-23sw: one -DSWD_DLLIMPLEMENTATION ought to be enoughMichael Stahl
Change-Id: I400559c531382f90626b72b2c8702d670fa5a40b
2012-08-23sw: remove #undef SW_DLLIMPLEMENTATION nonsenseMichael Stahl
obsolete remnant of obsolete dmake build system Change-Id: Ief3f6bde9bbaeac5fe9b25d025b9b076b9a6ef3e
2012-08-23fix math export/import in docx/rtfLuboš Luňák
For some reason older gcc versions don't manage to dynamic_cast to the necessary cast. I'm not quite sure why, forcing sal/osl/unx/module.cxx to always use RTLD_GLOBAL does not seem to help. Most probably compiler bug. Changing the cast to two simpler ones helps.
2012-08-23n#775899 sw: add FloattableNomargins compat flagMiklos Vajna
The DOCX filter imports floating tables as frames containing a table. Word ignores the margins of paragraphs next to such a table, Writer does not. Add a compatibility flag the import filter can set that triggers this weird behaviour. Change-Id: Iaaa1d2a2e2f9d0eaea17832b2e418f9a845efffd
2012-08-23fdo#46141: Don't use a timer to show header/footer separatorsCédric Bosdonnat
Clicking on the header/footer area will show the separator. Clicking on an empty header/footer area will add a temporary one that we try hard to remove when clicking outside Change-Id: I8f29f8fd80b2d808257636bf94ec4e2e46f6028e
2012-08-22remove unused module-description xml filesMatúš Kukan
Change-Id: I531e47538f308ee43e0fe8d7db59f525e45942c3
2012-08-22fdo#51514: SwXBookmarks: only consider real bookmarks:Michael Stahl
Since CWS swrefactormarks2 the SwXBookmarks collection handles not only bookmarks but at least cross-ref marks as well, which then bother users when they show up in the Insert->Hyperlink dialog; remove non-bookmarks again. (regression from df6d312ca537402463e4eb0530f22b956600fc02) Change-Id: I6a64ba8a43468dd3ce1569e944371d3ef71f8824
2012-08-22SwTokenWindow::InsertAtSelection: fix STL assertion:Michael Stahl
error: attempt to copy-construct an iterator from a singular iterator. (regression from 39b8a5f87f55abe53488c9c3c35b65fb0df84cde) Change-Id: Iab29f4c356ea1cb5ca0f687bcfc5e54f185fbba3
2012-08-22Some cleanup for better localizationZolnai Tamás
First: localization tool can not recognize id because of empty line between id and its definition Second: same problem because of comment between type and id Change-Id: If42af406fab252ccae0a6bbc478bab8130210b21
2012-08-22fdo#53399 Word count is inconsistent and wrong with non-breaking spaceMuhammad Haggag
This change replaces lcl_IsSkippableWhitespace with a call to ICU's u_isspace, which covers all Unicode separators. It also updates and fixes one of the SwScanner unit tests. Bug details: SwScanner::NextWord skips whitespace before calling into ICU's BreakIterator. The function used to identify whitespace (lcl_IsSkippableWhitespace) doesn't cover the full category of Unicode separators (code [Zs], 18 in total. See: http://www.fileformat.info/info/unicode/category/Zs/index.htm). Since 0xA0 (no-break space) is not identified as whitespace and not skipped, we end up calling ICU starting at the position 0xA0, asking it to get us the boundary of the next word forward. ICU sees that it's called at the end of a word, and reverses the query direction to backward, and returns the word before. This causes NextWord to think we've hit the end of the string and call it a day, terminating word count for the rest of the line. Change-Id: I29c89ddb0b26e88da822501253898856b28e3fa5 Reviewed-on: https://gerrit.libreoffice.org/453 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-08-22do not deliver these module-description xml filesMatúš Kukan
Change-Id: Ife2f42b3a917ece10dc7ee9fcd83f1558084c4f1 Reviewed-on: https://gerrit.libreoffice.org/454 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-08-22fdo#51777: add a hack for 1 twip DOUBLE borders:Michael Stahl
Arguably such annoyingly thin double borders don't make much sense anyway, because they're essentially 2 hairlines with ~no space between, but unfortunately older LO versions are able to create them; since the refactoring in 2d045cdb69176b280812dda0b813371cf1ac72e2, which changed the BorderWidthImpl::Get* methods to return 0 due to rounding, they were ignored at least in the HTML import, which is a regression. So add a special purpose hack that essentially rounds up the first line to 1 but not the other lines so the visual result is a hairline single border. Change-Id: I20ac4675bcf67ea58a6931a40bff3605390e9c0d
2012-08-21n#775899 SwXText::convertToTextFrame fix for multi-paragraph tablesMiklos Vajna
The problem was that when we only had a table inside the frame, the DelFullPara() call removed the last paragraph of the first cell, and returned no error. Instead, check if we had to remove paragraphs both before and after, and if so, use the manual remove all the time. Change-Id: I9a3591ce9a92a2aca7d2f65b62fdf641f54e4f05
2012-08-21n#775899 SwXText::convertToTextFrame fix removing fake paragraphMiklos Vajna
In case the textrange contains a single table, the DelFullPara() call to remove the ending fake paragraph failed. When this happens, we now find the paragraph in question manually to delete it. Change-Id: I7055d4489192a8a694aef118f7646d8db87a64df
2012-08-21fdo#53175: Fixed the end of hyperlinksCédric Bosdonnat
This fixes the end of hyperlinks appearing after field ends (while the start of hyperlink is after field start too). Change-Id: If21b8973baaca183e0103e3a70ed98b99aa59392
2012-08-21add more runtime deps on resource files for unit-testsMatúš Kukan
Change-Id: Id9bbb2bbcafe335eada3f36ae103a9074a56848f
2012-08-20Remove dead java code, fields and local variablesNoel Grandin
Change-Id: If777dcb0e0142229df737c2f1e3e6ecb61f64168
2012-08-20SwXTextTable::setPropertyValue: de-dentMichael Stahl
Change-Id: Icad5dfcf8b9962623ac9f8954672a50a232bb9be
2012-08-20SwXTextTable: add "TableBorder2" propertyMichael Stahl
This new property is necessary because the old TableBorder cannot be extended to contain the BorderLine2 structs without breaking compatibility. Change-Id: I5e22782256b29224225a9d74c818b2c47fee8526
2012-08-20Revert "fdo#53175: docx export, close hyperlinks before fields"Cédric Bosdonnat
This reverts commit 82c46f1877c65042ac976312267c14bf0e5847f4 as it breaks a unit test. Needs to find a better fix.
2012-08-20fdo#53175: Don't load the default values of the styles in writerfilterCédric Bosdonnat
...or we may have some additional properties set on some styles. Change-Id: I5a5d307931a2a6c1f25bd2da93381d8de65c2480
2012-08-20fdo#53175: docx export, close hyperlinks before fieldsCédric Bosdonnat
Change-Id: Ic723149675c3fe2fca08c4ec095d14c5a39f4a8f
2012-08-18remove some useless commentsThomas Arnhold
Change-Id: Ied223890539a3407abbed7c7135dfc3de2f2fe48 Reviewed-on: https://gerrit.libreoffice.org/429 Reviewed-by: Philipp Riemer <ruderphilipp@gmail.com> Tested-by: Philipp Riemer <ruderphilipp@gmail.com>
2012-08-17Translate some German comments to EnglishKevin Hausmann
Change-Id: Iffde46f904ff3090df48f130ee4b82f23b15076e Reviewed-on: https://gerrit.libreoffice.org/423 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-08-17gbuild: register all jarsMichael Stahl
Change-Id: I9f49970e5e06d1afd3fc066a20d1671c93e262fc
2012-08-16idxexample.odt and html.stw cleanup (fdo#49101, fdo#49098)Istvan Turi
idxexample.odt will be localized through the standard l10n framework, i.e. with use of .po files, because now strings are read from resources. html.stw is language independent now, defaults for different scripts are handled in the code. Change-Id: Ie20cafc6191721a959b33e2559b9866e3762a146
2012-08-16sw layout dump: include the height and width of SwTxtPortionMiklos Vajna
Change-Id: Ia2bdff098d1bbd466f857e19315a22c835810202
2012-08-16sw layout dump: include the height and width of SwFlyPortionMiklos Vajna
Change-Id: Ib47087a9dcb96779958edfc1a984cf38cabd1086
2012-08-16de-duplicateMatúš Kukan
Change-Id: I91bcd8721249d14f76270851dc129082a4b25ed5
2012-08-15moved my border test to odfimportArtur Dorda
Change-Id: Iafab67a2e1f75f754be99a98f8e573ad07847463
2012-08-15moving border tests from {rtf,ooxml,ww8}tok to {rtf,ooxml,ww8}importArtur Dorda
Change-Id: I705fc507429c5516e88597bd4db9e2e3dead8d93
2012-08-15Added new border test in Writer, checks all the borders, not only the top oneArtur Dorda
Change-Id: Ibbbd5043e89104de4b91425b4972920e8c51cdca
2012-08-15Border test now available in rtftokArtur Dorda
Change-Id: I9d72c5f5b075983b9be921e15d62c274d84e350c
2012-08-15Border test now available in ww8tokArtur Dorda
Change-Id: I5b1c3f6477583d71eece7c2b4c1b6a4ba7e6f4a2
2012-08-15Refactoring the border test in sw, one header will be in all 3 testsArtur Dorda
Change-Id: I007019738c901e0194006ae34e7e5b99f72ee91d
2012-08-15Word format import - new test in ooxml checking top border's widths in tablesArtur Dorda
Change-Id: I0e4434e9266190f0719df7fbba9f6f2904da8707
2012-08-15fdo#53113 testcaseMiklos Vajna
Change-Id: I64cb3050dcfd10253daa521b2c5fa69ed1cfa952
2012-08-14RtfSdrExport: unnecessary explicit OString ctorsMiklos Vajna
Change-Id: I2d8b9870f2d8c6836e1006e10eed3fe4a2566c2d
2012-08-14RTF export of fillBlip and fillOpacity shape propertiesMiklos Vajna
Change-Id: Ib2c10de54725e51ecbb3dc425ab6ca8e01a4c6ea
2012-08-14fdo#53113 DOCX: export fillBlip shape propertyMiklos Vajna
Change-Id: Id23518d0f72d7650f3d875028f83caf9b6581ccd
2012-08-14RTF shape filter: handle custom segment typesMiklos Vajna
Change-Id: I320bab34080b401c61efbc5b3383836362f5f43f
2012-08-14fdo#50941: "Characters per line" will not change when changing "Max base ↵Takeshi Abe
text size" max characters per line follows max base text size in the squared mode of text grid Change-Id: I47f8cd0db1ece5c940f31aada7d51d40058c7513
2012-08-14minimize fractured text spansCaolán McNamara
There's a mismatch between writer and word as to the categorization of text, which is a pain. Change-Id: Id087034e72113d718a98ad21db1c09c79d1d4772
2012-08-14fdo#39468: Translated German comments in sw/source/core/docnode/ndnotxt.cxxBertrand Lorentz
Change-Id: I0838ef7e1a80056a2a0bf0fc8d4ff91f9acbe5b7
2012-08-13unusedcode.easy: remove unused codeThomas Arnhold
Change-Id: I87e7264ffd3086796aaa8e136c2f9b77fde7b74f
2012-08-13fdo#53113 docx export: initial shape text supportMiklos Vajna
Text is written, but paragraph and character properties are not yet handled. Change-Id: I828f8b6096bde000347066b23925376f6f945dbc