summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2012-08-30n#777337 SwEditWin::UpdatePointer: fix mouse pointer wrt. background imagesMiklos Vajna
When the image is in the background, just show the normal text cursor, since we're able to select text as well in that situation. Change-Id: I4b4303834245e402d40567cff4a2bf53a0a13e5e
2012-08-30n#777337 testcaseMiklos Vajna
Also remove the #if 0 I forgot to remove previously. Change-Id: I2cc5e1407c509414c8395d0fd63ab3b379bef04f
2012-08-29WaE: this decimal constant is unsigned only in ISO C90Tor Lillqvist
Change-Id: Ica3bf96289d142be2ef19d3a0bb3a4006ef5317d
2012-08-29Resolves: fdo#38983 allow extra word boundary charactersCaolán McNamara
i.e. word overrides emdash and endash to be word boundary characters for the purposes of counting words. And there are some who want to treat =,- etc similarly. Default to a configuration that gives the same results as Word for word counting. Change-Id: Ia8ce6ac12011a1d6e547f11644c76163c4c993c5
2012-08-29n#777345 testcaseMiklos Vajna
Change-Id: I4dce0dfaf6f1c94024dd60df51d70a259689d6d9
2012-08-28fdo#52052 fix RTF import of page breaks on landscape pagesMiklos Vajna
The problem was that we tried to insert a page break before reaching the first section break, where section properties are sent. Additionally, the continuous section break at the end of the doc caused trouble, so ignore it explicitly. Change-Id: I22bc355994991beeadb41d26b44ce3e2beedbdb2
2012-08-28SwModelTestBase: support extracting node contents from a layout dumpMiklos Vajna
This way tests like "there is a textbox containing foo on the 3rd page" are possible. Also, make sure the XPath expression always matches a single node. Change-Id: Iac82b389e1910db2257240a3764ec3c7ebaa5a02
2012-08-28fdo#36681: fixed view window after redoing a frame deleteCédric Bosdonnat
Change-Id: I2b9f618ba6869fabf7c5ae2339421688aab127c7
2012-08-27Headers/Footers: don't create temporary parts of document (perf problems)Cédric Bosdonnat
Clicking on an empty header/footer only displays the separator as creating empty header/footer could cause important layout recomputing on long documents. Change-Id: I800c5dd27744772833dee0da4269e7591bd0a10b
2012-08-27Related: fdo#51908 reuse the status bar word counts for the dialogCaolán McNamara
Set the counts directly on the word count dialog when we have them precalculated from updating the status bar Change-Id: Idd64f20097af661dd4938af7fcc8506eca076e9c
2012-08-27Resolves: fdo#51908 count empty paragraphs if they're numberedCaolán McNamara
we want to count the numbering/bullet of otherwise empty paragraphs Change-Id: I6cdf5348bcbb97081afc743d24e6c4ffb355d085
2012-08-27n#775899 testcaseMiklos Vajna
Change-Id: I68e477464139b183b802cc3200a3b980d1ee72f3
2012-08-27fdo#46808, Adapt script::Converter service code to new styleNoel Grandin
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
2012-08-27fdo#46808, Use factory methods for frame::DispatchHelper instancesNoel Grandin
Change-Id: I7bdf16fc6d042e5ecd404c604a8b7c31c1ac7bc1
2012-08-27sw, FIRSTSHARE flag wasn't set in defaults and copied in SetUseOnCédric Bosdonnat
Change-Id: Ib0fd2097af4f45ec838b96e8214dfe913a3b47df
2012-08-27sw: fixed STL conversion from 1015cd4ff73ee25e55b4da8c8bc55a41e652da87Cédric Bosdonnat
Bad integer cast made reserve throw an std::length_error exception Change-Id: Iafdf859dd13e8b44ad61ee7e02eb11370f8260fb
2012-08-27WaE: unused variable nHtmlModeTor Lillqvist
Change-Id: I3c949e9f536b81bf405cf03992e2a9bbe0a2b0d4
2012-08-27Remove remaining checks for HTMLMODE_SOME_ABS_POSHarri Pitkänen
This HTML mode is never disabled for any HTML export options. Thus it is not necessary to check for it. Completes the cleanup started in commit feeb57e0a63cdcd81898050d059e7933f62c5292 Change-Id: I3ea27ea52cdc355f19d0d2fb33ac92262df5d13f Reviewed-on: https://gerrit.libreoffice.org/488 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2012-08-26String -> OUStringIvan Timofeev
Change-Id: I5bdcad692678b9debb77db4ec08223d38e5c01c5
2012-08-26SwPagePreView: initialize sPageStrIvan Timofeev
this adds "Page " to the page number info in the statusbar and to the scrollbar's tooltip in the page preview mode. Change-Id: Ia1dda0e98777465ef87364f12437449ca7787510
2012-08-25use dynamic_cast, prevent crash when opening Options-Writer-AutoCaptionIvan Timofeev
SwCaptionOptPage can be added either to SwCaptionOptDlg or OfaTreeOptionsDialog Change-Id: I0cedfc27f8d1f1bbf5e19dce2f438fc782cd5832
2012-08-25Revert "cast to wrong type, can cause crash when opening Options-Writer-AutoCaIvan Timofeev
Wrong fix: GetParent can return pointer to SwCaptionOptDlg which is derived from SfxSingleTabDialog. This reverts commit a5546942ec70fca551401ae61eee00b66a92f81d.
2012-08-25cast to wrong type, can cause crash when opening Options-Writer-AutoCaptionIvan Timofeev
it turns out that GetParent() returns pointer to OfaTreeOptionsDialog, not SfxSingleTabDialog. Disabling OK button in the options dialog does not make any sense, so the patch removes that code. Change-Id: I76618d89f904a6eac80fc08072dcde007b2d9c34
2012-08-25fdo#49901: SwView::ExecSearch: fix Replace All cursor:Michael Stahl
Because the "fix" for i#8288 only set the point of the cursor and not the mark, it can happen that after a Replace All weird things are selected; fix that (and i#8288 properly) by using the SwCrsrShell stack, and don't do it when searching in the selection. This cannot be done in SwCrsrShell itself because ExecSearch sets the cursor to the beginning/end of the document already. (regression from cda75d6f358d438f7ed36ed7fa296ac23e3c4a04) Change-Id: Ie9f8d7da2fa26000a0237c24f8742e47ffa29213
2012-08-25SwpHintsArray::Check(): reindent thatMichael Stahl
Change-Id: I9fede393b5a0fb6bd2fe0425f6a4b60b754aeb0b
2012-08-25SwpHintsArray: refactor assertions:Michael Stahl
Since 4623c603bde7678004fe6019f9d9e4b816a3d6c6 the assertions in lcl_IsLessStart/lcl_IsLessEnd trigger spuriously, because the comparison is invoked always now even on identical pointers, while the SvArray only invoked it if the 2 hints didn't have the same address; move the assertion to SwpHintsArray::Check(). Change-Id: Ida6c8e268452343ed3e90410636703c6baffbabd
2012-08-24kill more unneeded stuff; rename uiconfig PackagesMatúš Kukan
Change-Id: Ib2f73d679ac4a6164142a370ce6d55c6de41117c
2012-08-24SwPageBreakWin: memory leakIvan Timofeev
Change-Id: Ibb543b8da8c89c7fa3799fada03c787dabe2b3cb
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