summaryrefslogtreecommitdiffstats
path: root/sw/inc
Commit message (Collapse)AuthorAgeFilesLines
* sw: implement page-relative size for drawing objects and import them from docxCédric Bosdonnat2012-09-271-1/+1
| | | | Change-Id: I98b5c53d4860278e3646324ca045114e37b4cf61
* sal_Bool to boolTakeshi Abe2012-09-272-9/+9
| | | | Change-Id: Ic05d9f062e7419d192b8cf6e56c91b3f9d97bfe0
* rhbz#827695: sw: prevent crashes after incomplete print:Michael Stahl2012-09-262-3/+4
| | | | | | | | | If the last page is not printed for whatever reason, then SwXTextDocument's destructor will delete a SwViewOptionAdjust_Impl, which accesses the document's ViewShell, which has already been deleted at that point. Add a horrible kludge to not crash for now. Change-Id: I67fe37970d60782030b84f2badddd1e66ef3f9c6
* sal_Bool to boolTakeshi Abe2012-09-252-2/+2
| | | | Change-Id: Ib9a6f3ecbe38cdad6e28b4d8a9ae13d1f5bc4265
* Remove unused member SwDoc::pMacroTableArnaud Versini2012-09-241-1/+0
| | | | | | | Change-Id: Ic09b960b675d674a16f7f252ed2a974c4e25505b Reviewed-on: https://gerrit.libreoffice.org/680 Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
* fuck you, SIZE_MAX. you'll rue the day i find out which .h defines you.Michael Stahl2012-09-211-4/+1
| | | | | | rue!!! Change-Id: I9e2b05180ba64d1617b33423ceffc19bc996e335
* the intarwebs say it may be hidden in limits.h...Michael Stahl2012-09-211-0/+1
| | | | Change-Id: I79bb1cf7777ae92982bc2909411ed4efd0d31352
* sigh... include stdint.h for SIZE_MAXMichael Stahl2012-09-211-2/+5
| | | | Change-Id: I714149f8cf800ea0021cc72a4bb50d840076da66
* "a function call cannot appear in a constant-expression"Michael Stahl2012-09-211-1/+1
| | | | Change-Id: Ic1aecfb1071033d8e134649506f72c17833a206a
* fdo#48692: fix problems with large number of table cells:Michael Stahl2012-09-213-6/+6
| | | | | | | SwSelBoxes containers are filled from SwTableSortBoxes in various places, so adapt that to use size_t integers as well. Change-Id: Ia55f020bb9ada94bb22802d9adabb055a22edd2f
* fdo#48692: fix problems with large number of table cells:Michael Stahl2012-09-212-7/+8
| | | | | | | | | The SwTableSortBoxes is now a STL container which can have more than 2^16 elements but unfortunately there are a lot of 16 bit integers used to index it all over the place, causing infinite loops and possibly worse problems; fix that to use size_t. Change-Id: I868ec9dd0629be4fbe4d6b8f294fb765e3d662ec
* sal_Bool to boolTakeshi Abe2012-09-201-4/+4
| | | | Change-Id: Id29032b3f2f228141e37f713c798d61cc20584c0
* Modifying comments to meet doxygen standardsAbdulmajeed Al-Abaulrazzaq2012-09-1810-463/+463
| | | | | | | Change-Id: Ibc60c20241b70492aaebcebccb738c7e11fdbb41 Reviewed-on: https://gerrit.libreoffice.org/638 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* rhbz#852128: sw: avoid table undo crash:Michael Stahl2012-09-181-0/+1
| | | | | | | | | | | SwUndoTblNdsChg::UndoImpl: to prevent access of deleted table box start node, disconnect the SwTableBox from the start node before removing the table box nodes. This problem was probably introduced with CWS swnewtable db4de0817df6906db2743239d45f9f0834ab1e91, which changed the order of the removal operations for unknown reasons. Change-Id: Ic59823a84082cc6ff453b2b512cbb8253886ecf3
* Resolves: fdo#40025 add text correction undo idCaolán McNamara2012-09-121-1/+2
| | | | | | | instead of a single overwrite foo so now the undo message is "Text Correction" for a spell or grammar change Change-Id: I0227780ba9024ff903632923dd94238719b65764
* n#778133 sw: add BackgroundParaOverDrawings compat flagMiklos Vajna2012-09-122-0/+2
| | | | | | | | | | | | | In Word, the layer that contains a background image is behind the layer that contains the paragraph background. In Writer, the paragraph background is painted before the hell layer. Add a compat flag to change the order, so the DOCX importer can trigger that. To reproduce, create an XShape, send it to the background, set some color for a paragraph background, and notice that the background color is missing where the shape is behind the text. Change-Id: I9b1fffd9ac9a6e5a1c3d1f65371440047d125b38
* Modifying comments to meet doxygen standardsAbdulmajeed Al-Abaulrazzaq2012-09-1117-448/+448
| | | | | | | Change-Id: I363ce532c7d11e798c2a5cc67b1b7893dcd0a389 Reviewed-on: https://gerrit.libreoffice.org/596 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* -Werror,-Wunused-private-field (various sw)Stephan Bergmann2012-09-114-10/+2
| | | | Change-Id: Ib2becb2af810da0fa3d24bd0aa21887d41e2f34c
* read support for docx w:embedTrueTypeFonts/w:embedSystemFontsLuboš Luňák2012-09-062-1/+5
| | | | | | No write support yet. Change-Id: Ia10239acc77cf9ebc4f511e30c007da36abf43cb
* n#775270: clip pictures instead of scaling they don't fitCédric Bosdonnat2012-09-042-0/+2
| | | | | | | | Word clips pictures that are bigger than a page instead of scaling them down. This patch introduces a new compatibility option to allow clipping a picture in Writer instead of scaling it down. Change-Id: I4defbee05be81e23ec28a2ed272eaf4e4cc6faf5
* Improved usage of the auto-complete tree structure.Nico Weyand2012-09-021-1/+15
| | | | | | | | Auto-complete lookup structure remembers as-you-type the character position in a word. Currently the whole word was always looked up which was not necessary. This patch improves this. Change-Id: I7dced25707979377ae3f696a5987956d2308aeec
* expand ACT_KONTEXT and MV_KONTEXT macros, rename kontext to contextIvan Timofeev2012-09-021-11/+6
| | | | Change-Id: I7783e60cc048dfbd99976881afca317ad1326d66
* Modifying comments to meet doxygen standardsAbdulmajeed Al-Abaulrazzaq2012-09-0236-717/+716
| | | | | | | | Change-Id: I4c82b7e543ec74cec3d4eb2985a3e4ec68c16b11 Change-Id: Iaf83b7119767cf0b953cab62d5555141e8e154bb Reviewed-on: https://gerrit.libreoffice.org/496 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
* n#777337 SwEditWin::UpdatePointer: fix mouse pointer wrt. background imagesMiklos Vajna2012-08-301-0/+2
| | | | | | | 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
* Resolves: fdo#38983 allow extra word boundary charactersCaolán McNamara2012-08-291-1/+5
| | | | | | | | | | | 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
* Related: fdo#51908 reuse the status bar word counts for the dialogCaolán McNamara2012-08-271-0/+1
| | | | | | | Set the counts directly on the word count dialog when we have them precalculated from updating the status bar Change-Id: Idd64f20097af661dd4938af7fcc8506eca076e9c
* sw, FIRSTSHARE flag wasn't set in defaults and copied in SetUseOnCédric Bosdonnat2012-08-271-0/+2
| | | | Change-Id: Ib0fd2097af4f45ec838b96e8214dfe913a3b47df
* n#775899 sw: add FloattableNomargins compat flagMiklos Vajna2012-08-232-1/+3
| | | | | | | | | 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
* SwXTextTable: add "TableBorder2" propertyMichael Stahl2012-08-202-5/+7
| | | | | | | | This new property is necessary because the old TableBorder cannot be extended to contain the BorderLine2 structs without breaking compatibility. Change-Id: I5e22782256b29224225a9d74c818b2c47fee8526
* fdo#53175: Don't load the default values of the styles in writerfilterCédric Bosdonnat2012-08-202-1/+3
| | | | | | ...or we may have some additional properties set on some styles. Change-Id: I5a5d307931a2a6c1f25bd2da93381d8de65c2480
* idxexample.odt and html.stw cleanup (fdo#49101, fdo#49098)Istvan Turi2012-08-161-0/+5
| | | | | | | | | | | 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
* unusedcode.easy: remove unused codeThomas Arnhold2012-08-131-1/+0
| | | | Change-Id: I87e7264ffd3086796aaa8e136c2f9b77fde7b74f
* Bin ViewShell::getIDocumentFieldsAccess()Julien Nabet2012-08-091-4/+0
| | | | Change-Id: Ib5c49b06a6aab7d578030c3486c9cab91c7f9b28
* remove empty ascii boxes and stuffThomas Arnhold2012-08-076-24/+1
| | | | Change-Id: Ied91b5b298f0cfad0d3408c3cbb87c7bd1b83247
* drop bogus eof linesThomas Arnhold2012-08-071-3/+0
| | | | Change-Id: Idda2852c3e96ce15fde75d5a95369ec50a012410
* Remove non-existing forward declarationsThomas Arnhold2012-08-076-7/+0
| | | | | | Those classes don't exist. So remove friend class operators too. Change-Id: I8e3b32db933dea7cbab86015f0c926df967511f6
* Related: fdo#46757 extend ModelToViewHelper for more casesCaolán McNamara2012-08-031-2/+35
| | | | | | | beef up ModelToViewHelper to be able to optionally expand fields, collapse hidden text and collapse/expand redline deleted text Change-Id: I6d4d0969102ad9699f7fafe091b2eff6a5707bc4
* Revert "Revert "sorted_vector: turn Find parameter into template""Michael Stahl2012-08-022-3/+3
| | | | | | | | | | | This reverts commit 8291d41667b1a63d35bf818aaf9d75529e1f12f0. Un-revert that, with a tweak: with the bizarre name lookup semantics in C++, the proper way to refer to a template (as opposed to a template instance) is by prefixing the name with its namespace, which does seem to work with MSVC2008 & GCC 4.7; thanks to Stephan Bergmann for the hint. Change-Id: Id9cccbe68fb3ce2dd070c4b3dbd21782c92170ca
* Modifying comments to meet doxygen standardsAbdulmajeed Al-Abaulrazzaq2012-08-016-419/+415
| | | | Change-Id: If7c4162a49a7c7b612b6f480f6fbba75727ae1df
* Revert "sorted_vector: turn Find parameter into template"Michael Stahl2012-08-012-3/+3
| | | | | | | | | | | | This reverts commit 3e3acee762fac71f7356ed1305a64e0278278081. It was a nice idea, but C++ is not yet ready for it; with the travesty of parametric polymorphism in C++ the find_unique inside the definition of find_unique actually refers to find_unique<Value, Compare>, so there is no way to actually refer to template<Value, Compare> find_unique inside its definition. Thanks to Luboš Luňák for explaining the problem to me. Somehow this does work in GCC 4.7 even with -std=c++98, likely by accident.
* Fix for a236f8318a0e05caeec53ccbee8b134f44a98008Cédric Bosdonnat2012-08-011-1/+1
| | | | | | | | To get footnotes sorted properly one need to: * actually use the comparator class * compare on the offsets value (and not there pointers) Change-Id: Ie86802c7a92602bfbb4d2a603afe06f621e392a3
* sorted_vector: turn Find parameter into templateMichael Stahl2012-08-012-3/+3
| | | | | | | Enforces same type parameters for sorted_vector and Find, and makes it easier to use. Change-Id: Ide456a48f015cb0a9dea7a0bf2bcf2ccad527fd1
* SwHTMLPosFlyFrms: fix STL conversion:Michael Stahl2012-07-311-1/+1
| | | | | | | | It appears that the operator== for SwPosFlyFrm always returns false, so cf0e08c6b8d739b8b17dc533efc3e12505b2d5a9 changed the semantics; use std::mulitset to fix it. Change-Id: Ib7a8ebe56e146d21c265e60ad68c6b4a319dfe98
* _SwRedlineTbl: fix STL conversion:Michael Stahl2012-07-311-1/+4
| | | | | | | | It appears that the operator== for SwRedline does pointer equality check, so ddd84d08c9bb6e00fbd9a73bd52a28688a8c1ba7 changed the semantics; use o3tl::find_partialorder_ptrequals to fix it. Change-Id: I8d4a13da9543ef8a7f6e38c05eef3a2c9918e421
* fix some problems in previous STL conversion:Michael Stahl2012-07-311-3/+6
| | | | | | | | | - use o3tl::find_partialorder_ptrequals to allow multiple hints on same position - GetPos must not dereference its argument - unused IsEquals Change-Id: I274203be96ff90d1e9a46bab17fd00355514a4fa
* sw: convert SwpHtStart SwpHtEnd to sorted_vectorNoel Grandin2012-07-311-12/+19
| | | | Change-Id: I74696094ef066687582bd961d61a4877673016fd
* First step to change sorted vector with LookupTree for word autocompletion.Tomaž Vajngerl2012-07-301-0/+5
| | | | | | | | With this commit autocompletion words are inserted into a LookupTree instance and used when autocompleting words. Previouslly used sorted vector is still used for the GUI. Change-Id: Ib5aed38d575fbef7221afbebe824a440d4ffbc7e
* remove unnecessary includes of svl/svarray.hxxCaolán McNamara2012-07-3011-14/+1
| | | | Change-Id: Ifec201efc4e97baf2d36d66c4ae6967eadd6134c
* Typo ressource -> resourceStephan Bergmann2012-07-301-1/+1
| | | | Change-Id: Id13e7acfbe34eca5e124c9032d36d6f158bfb831
* Convert InsCaptionOptArr to boost::ptr_vectorCaolán McNamara2012-07-291-8/+8
| | | | | | | I can't see any reason to keep these sorted, there are only two operations used, Insert and Find, and neither makes any use of the sort order. Change-Id: Iac3c327084dfdb83c0065a4a1786ac1f6b6b387e