summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)Author
2013-01-21Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()Jean-Noël Rouvignac
Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de Reviewed-on: https://gerrit.libreoffice.org/1784 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-15fdo#59338 fix RTF paste into footnoteMiklos Vajna
Change-Id: I89501f267fd4256eb3b1316ef41a0f9b0786e0f0
2013-01-14fdo#44053 fix this again and this time add a testcase as wellMiklos Vajna
This was about importing RTF tables where different rows had different number of cells. In the meantime, a better implementation was added for DOCX, just using that for RTF fixes the import of this bugdoc. Also fixes a crasher while loading ooo43817-1.rtf. Change-Id: I0970275272eca7f33a442bd6acc97a4f8d9dabeb
2013-01-11docx import: fix incorrect nested table marginsPierre-Eric Pelloux-Prayer
Change-Id: I07f0f47fcbd3d463d7831820cde338d8d59d9b68
2013-01-11remove block that is a complete nonsenseLuboš Luňák
result of incorrect merges Change-Id: I43f5ef2afbd5390f937f1220613ffa7d1f284634
2013-01-10include PCH headers for headers changesLuboš Luňák
Change-Id: Id94a4322428e27010757ef36b166f8b01697778f
2013-01-10fdo#58327: writerfilter: RemoveLastParagraph is tricky:Michael Stahl
What happens here is that the xCursor->goLeft( 1, true ) selects the entire inserted table, which is then deleted. That causes annoyances, such as an assertion from ~SwIndexReg because as collateral damage the SwTxtNode that SwReader::Read's pUndoPam points to is also deleted, as well as missing tables in the document. DomainMapper_Impl::RemoveLastParagraph() can avoid this by not using setString() but instead disposing the paragraph, like it already does in other cases. But don't do it for new (loaded) documents, because it may kill flys in that case, which i strangely couldn't reproduce when pasting as RTF. Change-Id: I87302b8916e39ca42bc4fedfee40ac38fadd0939
2013-01-09fdo#58933 RTF import: avoid fake pars / cells when having graphic inside cellsMiklos Vajna
Regression from 8063e36115a11ddf3db05928db9287947beee74d.
2013-01-08n#793998 sw: add TabOverMargin compat modeMiklos Vajna
In case the right margin is larger then the tab position (e.g. the right margin of 7cm, there is a tab position at 16cm and right margin begins at 9cm), we have a conflicting case. In Word, the tab has priority, so in this conflicting case, the text can be outside the specified margin. In Writer, the right margin has priority. Add a compat flag to let the tab have priority in Writer as well for Word formats. This is similar to TabOverflow, but that was only applied to left tabs and only in case there were no characters after the tabs in the paragraph.
2013-01-07callcatcher: update unused codeCaolán McNamara
Change-Id: Ic896ea234c3ea7bfaa94ab2441471926beae427d
2013-01-04Make LO buildable again after the GraphicFilter move.Jan Holesovsky
Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c
2013-01-04n#793262 DOCX: import w:tcMar inside w:tcMiklos Vajna
These were ignored previously, and in case they contained some margins, the resulting table was potentially smaller than necessary.
2013-01-04n#793262 fix DOCX import of last empty header/footer para char propsMiklos Vajna
At the end of the header/footer import, the last empty paragraph was removed. In case the last but one paragraph was empty, but had character properties (e.g. a custom font size), the removal changed these, and used the character properties of the last paragraph instead. Simply dispose the last paragraph, this way character properties are always kept.
2013-01-03writerfilter: remove Junit complex testMichael Stahl
The test just loads 4 documents and has been disabled for months. Also remove the test documents because they are duplicates and are also stored in writerfilter/qa/documents/. Change-Id: I9f51240483d800bc104c3842b8158dec90b3e69b
2013-01-02docx import: don't apply complex font size to non-complex fontPierre-Eric Pelloux-Prayer
OOXML spec says: "[szCs] specifies the font size which shall be applied to all complex script characters in the contents of this run when displayed" Change-Id: I0faf599e38ef5a2e2005bb6f98874639be7d8287 Reviewed-on: https://gerrit.libreoffice.org/1454 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-12-30fdo#54612 don't crash on RTF_DPPTX before RTF_DPPOLYCOUNTMiklos Vajna
Change-Id: I35bf580df157dee429d9dca193945ea95616d678
2012-12-29rethink external executable setupDavid Tardon
Change-Id: I5293fea9b5404b82e72761407d325c408a2e45ca
2012-12-28Replace %d by %u in some format stringsJulien Nabet
Change-Id: Ica066dcdff68c50c10378752be9c3497104b2a0b
2012-12-28fdo#45533 make it easier to debug RTF copy&pasteMiklos Vajna
Previously there was only a compile-time switch to dump contents of RTF paste. Remove this, and add two environment variables instead: - SW_DEBUG_RTF_PASTE_TO: to dump what would be pasted - SW_DEBUG_RTF_PASTE_FROM: to paste contents of a file, instead of the real clipboard Change-Id: I65f89417ec1cf781ace41df7916791f2199fe104
2012-12-28fdo#45183 fix RTF import of tables with different row widthsMiklos Vajna
2012-12-27fdo#45183 import RTF_SHPFBLWTXTMiklos Vajna
2012-12-26ignore #include inside #ifLubos Lunak
2012-12-25Get rid of (most uses of) GUITor Lillqvist
GUI only takes values UNX or WNT, so it is fairly pointless. One can check whether OS is WNT or not instead. Change-Id: I78ae32c03536a496a563e5deeb0fca78aebf9c34 Reviewed-on: https://gerrit.libreoffice.org/1304 Reviewed-by: Peter Foley <pefoley2@verizon.net> Tested-by: Peter Foley <pefoley2@verizon.net>
2012-12-24fdo#57678 fix import of RTF_PARD between RTF_CELL and RTF_ROWMiklos Vajna
2012-12-23fdo#58076 fix import of RTF page margins vs partial section propsMiklos Vajna
The problem was that \sbknone (being a section property) triggered creating a section, but the document doesn't have multiple sections. Make sure we don't send section properties as long as no \sect control words present.
2012-12-22fdo#57886 fix import of RTF_MLIMLOCMiklos Vajna
The RTF spec says control words are case sensitive, and page 252 of the v1.9.1 spec defines \mlimloc, but earlier page 118 and 125 also defines \mlimLoc, so let's accept both.
2012-12-19regenerate pchPeter Foley
Change-Id: I4e18ce06db42e13479809ba8eec70033943271cf
2012-12-18Replace GUIBASE checks with equivalent OS checksTor Lillqvist
The idea is to get rid of GUIBASE and GUI checks as much as possible. GUIBASE=aqua <=> OS=MACOSX GUIBASE=WIN <=> OS=WNT GUIBASE=cocoatouch <=> OS=IOS GUIBASE=android <=> OS=ANDROID Don't set GUIBASE to these values any more in configure.ac either. GUIBASE_FOR_BUILD is not used anywhere. Conflicts: configure.ac postprocess/packcomponents/makefile.mk postprocess/packregistry/makefile.mk Change-Id: Ie0526b40e1073f2328ba6c333e28752104b0fed3
2012-12-17n#792778 DOCX import: parse group shapes in oox onlyMiklos Vajna
Previously textframes inside groupshapes were tried to be imported as TextFrames, but then their addition to a GroupShape failed, so the text simply ended up as a normal paragraph. Fix this by importing members of groupshapes as drawinglayer objects, just like how the WW8 import does. Also fix two testcases, which implicitely tested that the groupshape VML element is ignored on import. Change-Id: I1a9fba8a5fd532203a825e55b1d5996277ea12fa
2012-12-13update PCH headersLuboš Luňák
2012-12-10docx import/export non-breaking hyphen and soft hyphenLennard
God made non-breaking hyphen and saw that it was gone he told us to fix it as soon as hell we promised that we would Change-Id: I1d2bb8f7542f5ffec36fafdbdb07ace1cb62fb4a Signed-off-by: Lennard <Wasserthal@nefkom.net> Reviewed-on: https://gerrit.libreoffice.org/1279 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2012-12-10new autogenerated PCH header for writerfilterLuboš Luňák
2012-12-10remove unneeded PCH stuffLuboš Luňák
Since the PCH is now explicitly included using the command line, it is no longer necessary to have include guards or #ifdefs for enabling it. Change-Id: Ie64fdc75129af7097213d86f2daec461993fb6f4
2012-12-10no longer necessary to add include path for PCH headerLuboš Luňák
MSVC uses full path with -FI, Clang uses full path to .pch file. Change-Id: I403a8a919a8b672d1e98c2ea1fee50097e535351
2012-12-10testing PCH for writerfilterLuboš Luňák
Change-Id: If5425c2727b94a61cacb64ac65c871ee28b371e1
2012-12-10fdo#46808, use service constructor for embed::StorageFactoryNoel Grandin
Change-Id: I26cd1cf86118122f392f16801a646df753a7df26
2012-12-08fdo#49934 fix RTF import of column break in case no columns are definedMiklos Vajna
It turns out on that case the column break should be parsed as a page break. Change-Id: I5dddc8f334fab35bc2ff03fd8127989ab6a601f3
2012-12-07remove bogus assert and add emacs modelines.Michael Meeks
Change-Id: If4b6478ab67211e00c52fb9b17189f6f054b3482
2012-12-07Emacs modeline + whitespace fix.Jan Holesovsky
Change-Id: I89b08c4125495d8d1b06ca9509e31dd5222dee22
2012-12-07fdo#44736 - convert RTFSprms to a copy-on-write structure.Michael Meeks
Also try to avoid copy/delete thrash of RTFParserState.
2012-12-06-Werror,-Wunused-private-fieldStephan Bergmann
Change-Id: Ic4c805079529f13b6cabe78f0c7d33b76c0b7ce6
2012-12-04fdo#54473 fdo#57133 fix RTF import of character stylesMiklos Vajna
Regression from commit d2d77fd86e6cb7341e113557e2cfe3d7948759bd Change-Id: I7accc5c383de3fa53c12527766c3fc155bfa9863
2012-12-03writerfilter: unused createStreamHandlerMiklos Vajna
Change-Id: I3c0417c1d5ff6fa515f3c494d4a5b4d545836988
2012-12-02move setting up of ext. executables out of gbuild.mkDavid Tardon
Change-Id: Icacd44abfa5bf5f75f0ee719b39fba6821976a8a
2012-12-01writerfilter: remove unused WW8AnalyzerMiklos Vajna
Change-Id: I711bc4d6b7100a1b089ed5bfeec7ff14f2727138
2012-12-01sw: remove unused UNO wrapper around old internal RTF importMiklos Vajna
Change-Id: I460f75d03a0af53da7523e290136126e95e01192
2012-11-30fdo#57708 fix RTF import of pictures right before text framesMiklos Vajna
Change-Id: Ibfeaadd5b48fd48c2c1f20de5dc272d9a326bfc4
2012-11-30fdo#57708 fix fake page break problem during RTF importMiklos Vajna
The core of this change is: so far the continous section break at the end of the document was sent as a normal section break. This was introduced in commit 892d33c8d5033b4f8f7889bf91d257f55adf0e1f, probably as a workaround (sadly it's not documented and I no longer remember). Don't do this, since it causes additional page breaks during import. Instead, fix properly whatever was broken after getting rid of this workaround. Change-Id: I28c372d539c150fe21ff9db31209f9935a5e9063
2012-11-30dmapper: couple of null pointer checks for the unit testMiklos Vajna
Change-Id: Ie0b12f416da2dda95fdb4e46482a50fee0245ffe
2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens
This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f