summaryrefslogtreecommitdiffstats
path: root/writerfilter
Commit message (Collapse)AuthorAgeFilesLines
* move setting up of ext. executables out of gbuild.mkDavid Tardon2012-12-021-20/+22
| | | | Change-Id: Icacd44abfa5bf5f75f0ee719b39fba6821976a8a
* writerfilter: remove unused WW8AnalyzerMiklos Vajna2012-12-013-299/+0
| | | | Change-Id: I711bc4d6b7100a1b089ed5bfeec7ff14f2727138
* sw: remove unused UNO wrapper around old internal RTF importMiklos Vajna2012-12-011-13/+0
| | | | Change-Id: I460f75d03a0af53da7523e290136126e95e01192
* fdo#57708 fix RTF import of pictures right before text framesMiklos Vajna2012-11-302-1/+10
| | | | Change-Id: Ibfeaadd5b48fd48c2c1f20de5dc272d9a326bfc4
* fdo#57708 fix fake page break problem during RTF importMiklos Vajna2012-11-302-30/+44
| | | | | | | | | | | | 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
* dmapper: couple of null pointer checks for the unit testMiklos Vajna2012-11-301-5/+9
| | | | Change-Id: Ie0b12f416da2dda95fdb4e46482a50fee0245ffe
* c++ API: use css alias in generated headers, adds global css declThorsten Behrens2012-11-301-2/+0
| | | | | | | | | | | | 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
* DomainMapper_Impl::finishParagraph: also handle insert of multi-para framesMiklos Vajna2012-11-291-1/+3
| | | | Change-Id: Id2e761ab1c9fc9c5fd0837d1801af95674d0f99a
* DomainMapper_Impl::finishParagraph: fix frame conversion vs insert posMiklos Vajna2012-11-291-4/+5
| | | | Change-Id: I3aefc2185412b1dc370dd723cc57ed59e60a36be
* API CHANGE: add a "position" parameter to XParagraph/TextPortionAppend methodsMiklos Vajna2012-11-286-21/+72
| | | | | | | | | | | | | | | | | | | | | | | So we can use the new RTF import for clipboard pastes in Writer without inserting text content to the end of the document only. Notes: - SwXText::insertTextPortion: the MovePara() call is removed, as all it did was trying to move the cursor beyond the end of the document. - SwRTFReader::Read: the double fake paragraph insertion / deletion is motivated by the ODT filter. - RtfFilter::filter: if TextInsertModeRange is not passed, then the behaviour is not changed. v2: - added missing @since tags - added insertTextContentWithProperties() method - removed unused appendParagraph() method Change-Id: I24cddb00a78e3b798e7d88764e59e6a77a6e98a4 Helped-by: Michael Stahl <mstahl@redhat.com>
* bigendian utext mixup triggering regression test failureCaolán McNamara2012-11-281-26/+25
| | | | | | | | | | | | | | | | | | | text takes a pointer to a sal_uInt8 buffer but utext takes a pointer to a sal_Unicode buffer passing a sal_uInt8 sequence of e.g. "\x0D\x00" to utext only happens to work on little endian machines to represent 0x000D, its 0x0D00 on bigendian. for more excitement text and utext do not share the same logic! Various special chars are treated different in text vs utext so we can't simply blindly change utext() calls to text() calls and get the same behaviour without reworking those. So keep the text()/utext() calls as they are, but change what's passed to be the right thing. Change-Id: I66696530c4a9482690c461146bdcf0a507b39b68
* writerfilter: remove copy&pasteMiklos Vajna2012-11-281-2/+1
| | | | Change-Id: I7a5be1963e41dfba1394291becb53318cf4ae8f2
* fdo#44736 RTF import: ignore direct formatting which equals to styleMiklos Vajna2012-11-258-6/+65
| | | | Change-Id: Ie82f18381a95adbfedf7ea02d6844685e44b151d
* fdo#51304 Remove @author annotationJosé Guilherme Vanz2012-11-241-9/+0
| | | | | | | | | | | This commit removes @author annotations, some templates comments. It has some cleanup. Change-Id: I995ba7b06d661fcec17f26c368d9449c0bf5ab45 Signed-off-by: José Guilherme Vanz <guilherme.sft@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/1146 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
* writerfilter: sort RTF keywords only once in RTFTokenizerMiklos Vajna2012-11-232-4/+12
| | | | | | | | This pushes down import time of http://people.freedesktop.org/~vmiklos/2012/footnote-10k.rtf.xz from 10sec to 5sec on my machine. Change-Id: I39b7e4ea59fb5c05c1d3940920950ebc47adb48b
* split qnametostr up to try and make .o's small enough for ppc64Caolán McNamara2012-11-236-39/+29
| | | | | | | | | i.e. relocation truncated to fix: R_PPC64_TOC16_DS while I'm at it merge the standalone header/footer files into the .xslt and simplify the makefile. Change-Id: Iee0e9b5dd96868f49f1bed22fb5dc6d28c8cef81
* AllSettings with LanguageTagEike Rathke2012-11-222-2/+2
| | | | Change-Id: I710ae66e51139662eb442b681fdf9cc9d158551d
* n#780645 DOCX import: add support for fixed column widthMiklos Vajna2012-11-193-1/+77
| | | | | | | | | | | | | In general, DOCX tables provide a grid for the table, then use spans in case different number of cells are used in different rows. In this case, the cell width is ignored, as the wished width can be counted from the grid and span values. However, it's also valid to simply provide more cells then the amount defined by the grid, and in this case the cell width should decide the final width of the cells. This commit adds support for this later case. Change-Id: I0dd6c1f0c06f81c2afa00489b7ad1f33ff300a7c
* use LanguageTagEike Rathke2012-11-171-5/+3
| | | | Change-Id: I35eaada40120b6d7687e35475b48f832043ed3ba
* Remove unused methods from writerfilterMarcos Paulo de Souza2012-11-154-28/+0
| | | | | | | | Change-Id: I63b0510fea80c12579985fbc4d4eb4646376e25b Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/1074 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
* fdo#55525 import RTF_TRLEFTMiklos Vajna2012-11-141-0/+37
| | | | | | | | Additionally: 1) Make sure cell margins are zero when they are not defined. 2) Handle cellx values in case of a negative left margin. Change-Id: I9b8fb700b6459e622396c98e4344aba79f62c96e
* round() is not portableTor Lillqvist2012-11-081-1/+1
| | | | Change-Id: I0f19fe7866e2ae85608e8a6380d52b66a47a98ec
* docx import: round float value to int when computing cells widthPierre-Eric Pelloux-Prayer2012-11-061-1/+1
| | | | | | | Previously, truncating float to int was introducing accumulating rounding errors, which lead to visible change in column widths. Change-Id: I4557c716fba48dfd9a6c1c4d2cd0d0aa7aeae865
* fdo#48442 fix default hori/vert frame anchor during RTF importMiklos Vajna2012-11-061-4/+6
| | | | | | | We used to send nothing when we got nothing, but this is not correct: \pvmrg and \phmrg is the default in RTF, but not in Writer. Change-Id: I9f69e282e68f0828c8b5ba98657cad1dd0715eb3
* fdo#52989 ignore provided size of JPEG files during RTF importMiklos Vajna2012-11-052-3/+7
| | | | | | | See commit 66fa759b for rationale, this fix just does the same for JPEG files as well. Change-Id: I6a9ead5f4b4b9c4661cae99501bd7c14a2a79409
* writerfilter: drop debugservices uno componentMiklos Vajna2012-11-0515-1965/+0
| | | | | | | I tried to ask all developers hacking writerfilter, and seems none of us use this at all. Change-Id: I46e59c49c47ec829e5e84cb814e515bf2e8cdafb
* WaE uno any conversion does not like intNorbert Thiebaud2012-11-031-2/+4
| | | | Change-Id: I54abaf2cd4dd896b39b4b6993d6d2f7c37f35e18
* rework filters test to squeeze through extra flagsCaolán McNamara2012-11-011-2/+7
| | | | | | | that are needed to load .odt, .sxw etc files, and add a regression test for CVE-2012-4233 Change-Id: Ie178725ded3d76942030d12f23074de519cf62de
* n#785767 import NS_ooxml::LN_CT_TrPrBase_gridBeforeMiklos Vajna2012-10-312-3/+8
| | | | Change-Id: Id7f1471b49af52e6f6b0515ccd1fe8e12c50d9b5
* n#785767 import NS_ooxml::LN_CT_TrPrBase_gridAfterMiklos Vajna2012-10-312-1/+8
| | | | Change-Id: I4cb64ae2b2f2dbf643e38c5208eb759f265acafd
* writerfilter: remove PropertyMap::InsertPropsNoOverwrite again:Michael Stahl2012-10-302-11/+0
| | | | | | | Turns out nobody calls that, so the boolean parameter to insert method was not just ugly but entirely pointless. Change-Id: Icb928747d51487d6884a16dcc1f4e22b00c7c22b
* writerfilter: clean up PropertyMap::insert mess:Michael Stahl2012-10-3012-38/+47
| | | | | | | | | | | | | Rumor has it that MSVC 2010 has problems choosing the right overload in PropertyMap::insert call, which is no surprise as that is a ridiculous piece of garbage. Special bonus points for having another class TablePropsRef that must have a call compatible method because it's used as parameter to the same templates, and for the call with a pointer converted to boolean implicitly in StyleSheetTable.cxx:163. Also remove the silly boolean parameter while at it, just have 2 methods instead. Change-Id: I022d5dd7008f3e6c510d94e19fbacbf04bcf1986
* fdo#56512 fix RTF import of non-unicode Hebrew textMiklos Vajna2012-10-301-1/+5
| | | | | | | | The trick here is that we can't just fall back to Hebrew encoding for the whole document, as that would mirror shapes as well. Instead, check where \rtlch is used, and there fall back to the default encoding. Change-Id: Iaf155912fab6a559ed165870b8524c23cabcb86d
* docx import: handle start/end attribute in tcBordersPierre-Eric Pelloux-Prayer2012-10-291-0/+2
| | | | | | | Change-Id: I148345485534ae50b616857d971ef1c8b1594f28 Reviewed-on: https://gerrit.libreoffice.org/908 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
* Revert "n#778140 fix import of w:fldSimple character properties"Miklos Vajna2012-10-292-8/+1
| | | | | | | | This reverts commit 393262b325338b568c86b9183f37fc950cfbf127. It turns out that this hack is not really needed for n#778140, but it causes problems, for example in case of n#775899. Change-Id: I00b9f7112f951935450c683c5942b0d6c2b7fee2
* DOCX: w:doNotUseHTMLParagraphAutoSpacing should affect AddParaTableSpacingMiklos Vajna2012-10-292-1/+1
| | | | | | | | | | commit 5d4bd2f97128adecc5b11699e98c934be3c3a462 unconditionally enabled AddParaTableSpacing doc setting, which broke the layout of some documents, e.g. n#778836. Fix this by doing what the WW8 importer does: enable the setting only in case the w:doNotUseHTMLParagraphAutoSpacing tag is present. Change-Id: I104259a1f37f28e3c4362eb638a134b593fcb851
* import RTF_DPROUNDRMiklos Vajna2012-10-291-1/+6
| | | | | | See the fdo#42407 bugdoc for a reproducer. Change-Id: Ia683a87215c71a238db322cb60ce5e31309eb7e9
* usual int == sal_Int32 on 64bit and long == sal_Int32 on 32bit woesCaolán McNamara2012-10-271-4/+4
| | | | Change-Id: I879ed580de72df91e269d38add23cddd29c71982
* fix top/left/right/bottom margin of RTF imported inline imagesMiklos Vajna2012-10-271-0/+4
| | | | | | | This is similar to 3d7e168a2a43c2414b0633379102ddb29437e75b, but for RTF (Word default is 0, Writer is something larger). Change-Id: Ibb429eed5d3c1d09777db88ba2a98503c8ed0ed8
* fdo#42407 fix RTF import of WMF images inside textframesMiklos Vajna2012-10-271-1/+5
| | | | | | | | Since commit f4f4a899, we send the external header of WMF images to the importer, but that seems to be cause problems with this document. To be on the safe side, revert this only for pictures inside textframes. Change-Id: I7e443beb9ca4261abf3e3a1257270d6c70b85918
* ignore spaces while reading RTF image dataMiklos Vajna2012-10-271-1/+1
| | | | Change-Id: I6a1af0cd98ed832204d4485e135da6e56e575b4a
* writerfilter: make it easy to debug the old RTF filterMiklos Vajna2012-10-271-0/+13
| | | | Change-Id: Ifc1d6b78f55e7f202f5cc391f1401de5b65ed395
* use textframes for importing RTF_DPTXBXMiklos Vajna2012-10-271-5/+41
| | | | | | | This allows inline pictures on shapes later, plus matches what the DOC/DOCX filter does. Change-Id: I5da56ccf59a26cc9657925dec94fb58f97692bb8
* fdo#46808, convert comphelper::ConfigurationHelper to XComponentContextNoel Grandin2012-10-241-3/+3
| | | | | | | Convert the helper methods to take an XComponentContext parameter, instead of XMultiServiceFactory. Change-Id: I9f0098af37b91f107d8799f14caa04756eac82b1
* RtfFilter::filter: not allowed to throw WrongFormatException:Michael Stahl2012-10-232-4/+13
| | | | | | throw a WrappedTargetRuntimeException instead :( Change-Id: Iebf2b709beea738ba513ec5ce884874b76fbf243
* -Werror=maybe-uninitializedStephan Bergmann2012-10-231-2/+2
| | | | Change-Id: I31eefa2444d7d108103818785e83816d07f8cde2
* fdo#51145 give better error message on import invalid RTFMiklos Vajna2012-10-235-6/+36
| | | | Change-Id: Idd81e58b8b0b95b1027b7ece434cb362a689f124
* DomainMapper::lcl_attribute: typo fixesMiklos Vajna2012-10-221-3/+3
| | | | Change-Id: Ib6ea496f7fb6d87011a74fc49e77c54d62cb09ec
* writerfilter: remove unused ctorMiklos Vajna2012-10-191-1/+0
| | | | Change-Id: I17ec2a253e35f90b4f670bb2981aba3402221e1f
* import RTF_DPPOLYLINEMiklos Vajna2012-10-192-1/+35
| | | | Change-Id: I65f1ddb9d0d691c126c8e94b2e60c8309b0d33ff