summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)Author
2012-07-28writerfilter: drop pointless rtl:: prefix usageMiklos Vajna
Change-Id: I75e68d0ec70d0d4e95a58cd34780c3a350f7a9d2
2012-07-27fdo#48033 fix RTF import of pictures inside table cellsMiklos Vajna
Change-Id: I2d9ef3b346d4b10b99b67d0934d63d59f6119f97
2012-07-27sd, sfx2, writerfilter, xmloff: fix some warningsMichael Stahl
2012-07-27RTFDocumentImpl::text: don't try to read beyond the end of stringMiklos Vajna
Change-Id: If8dc4686f28870f1ce6b22458e29d3a9043f9783
2012-07-27SmOoxmlImport::handleR: escape brackets in math runsMiklos Vajna
Also remove the previous escaping that took care of RTF only. Change-Id: Ie9a019912f83a3f56ef52429855cd72cf2c8f463
2012-07-27fix import of nested RTF_MF groupsMiklos Vajna
Change-Id: Ibd4f93663d27d997c44f73e201c355a34d6452d3
2012-07-27implement import/export of RTF_MMATHPICTMiklos Vajna
to be compatible with readers not understanding RTF_MOMATH Change-Id: I8d6a28b03b740da372558f7aa245592be6ac70b9
2012-07-26RTF_MR: ignore if collected text is emptyMiklos Vajna
Sending an empty run would result in adding a space to the formula, leading to incorrect result. Change-Id: I1a01493cead726f667db0065deb4c145cba4ffa7
2012-07-26writerfilter/qa: clean up rtl:: and RTL_CONSTASCII_* usageMiklos Vajna
Change-Id: I729e5a6dcc9ca3a291c5f28c8b7eed7e3ca03bfd
2012-07-25import RTF_M{SEPCHR,EQARR,BOX,GROW}Miklos Vajna
Change-Id: Idbd5ea29b886d94b456b126de00a02833f7c0d7c
2012-07-24import RTF_MTYPEMiklos Vajna
Change-Id: I9414c9af69aa721a84e08fd323bc1efd5bd6c887
2012-07-24RTFDocumentImpl::popState: clean up duplicated list of DESTINATION_M* casesMiklos Vajna
Change-Id: I7806a9dc897c0187fd523d480e6366925676287b
2012-07-24import RTF_M{SSUB,SSUBPR,SSUP,SSUPPR,SSUBSUP,SSUBSUPPR,SPRE,SPREPR}Miklos Vajna
Change-Id: I8148e870ec86f282f05102757f0f8bfc53561c00
2012-07-24implement import of RTF_M{RAD,RADPR,DEG}Miklos Vajna
Change-Id: I6779cf105d792c5a59ec43a21f8693e6d8895bfd
2012-07-24rtftok: add OPEN_M_TOKEN to avoid code duplicationMiklos Vajna
Change-Id: I95b2ee34fef0c075040af808de276e0b745bf830
2012-07-24implement import of RTF_M{STRIKEH,BORDERBOX,BORDERBOXPR}Miklos Vajna
Change-Id: I3249b6a2cb5d8c100e8045f650997cea3f1d2e30
2012-07-24implement import of RTF_M{POS,VERTJC,LIMUPP,LIMUPPPR,GROUPCHR,GROUPCHRPR}Miklos Vajna
Change-Id: I40406bd4220a918507b2ae90733f3d1d5df949d5
2012-07-24RTFDocumentImpl::pushState: use switch here as wellMiklos Vajna
Change-Id: Ibb1c68612159fcdbfd92dc6b4cd3719d4db240f3
2012-07-24implement import of RTF_{MMR,MNARY,MNARYPR,MSUB,MSUP,MSUBHIDE,MSUPHIDE}Miklos Vajna
Change-Id: Ic975c7c1653fd10ef0a22ecbbbd740adac0789e0
2012-07-24implement import of RTF_{MM,MMPR,MMR}Miklos Vajna
Change-Id: I6e21159af832c5850db77a6dfe630a0fc0bb6238
2012-07-24RTFDocumentImpl::popState: use switch hereMiklos Vajna
Change-Id: If03ae8a5b44f477471ddc33063af552b3f2cfc31
2012-07-24implement import of RTF_{MFUNC,MFUNCPR,MFNAME,MLIMLOW,MLIMLOWPR,MLIM}Miklos Vajna
Change-Id: Ibdecafae7942a0c79804176aa24e448dc505a5bb
2012-07-24escape RTF_LBRACE and RTF_RBRACE inside RTF_MRMiklos Vajna
Change-Id: I9315da151390ea1b5d56c7e58ac901e3f11dd2a7
2012-07-23implement import of RTF_{MD,MDPR,MBEGCHR,MENDCHR}Miklos Vajna
Change-Id: Ie671977d523e1fb7142f62ca2d8d47e65082d3fd
2012-07-23implement RTF_MBAR{,PR}Miklos Vajna
Change-Id: Id5acca5c734f69797d5c19fdcfc0ccb4717127f6
2012-07-23rtftok: cleanup - use M_TOKEN() macroMiklos Vajna
Change-Id: If51def3c7c798104fd6dec9cf38473e5d70420fc
2012-07-23implement import of RTF_{MACC,MACCPR,MCHR,ME}Miklos Vajna
Change-Id: I5521bc3dc58b096dd80746a0af9c9d5e24ffe4a3
2012-07-23warning C4101: unreferenced local variableStephan Bergmann
Change-Id: I8dcd71b73204d37d3125e38b6983af430fa4570c
2012-07-23implement import of RTF_{MOMATH,MR,MF,MFPR,MCTRLPR,MNUM,MDEN}Miklos Vajna
Change-Id: I4d0d9df26de1ef52a808c82d89a8404c98ef7bc4
2012-07-23RTFValue: extend to be able to store embed::XEmbeddedObjectMiklos Vajna
Change-Id: I6218be1f4afe22665ab85f7d731e1c1567bb2c8e
2012-07-21writerfilter: rtl::OUString -> OUStringMiklos Vajna
Change-Id: I1577c1bb8a3dc498b647b930d405c90f80eafaf9
2012-07-21dmapper: rtl::OUString -> OUStringMiklos Vajna
Change-Id: Ib14cf2731a451226deb4aa27fd05420a0daaba4f
2012-07-19catch consistently by const referenceCaolán McNamara
Change-Id: I206cbf5453fd6b32f3ee6725d29260a8c49a68bd
2012-07-19Resolves: fdo#51772 failure to import a specific .rtf fileCaolán McNamara
In this example the xCharacterStyles->getByName(aCharStyle) throws, and the whole import is abandoned i.e. xRet.set(xCharacterStyles->getByName(aCharStyle), uno::UNO_QUERY); so to keep things simple wrap the entire block in a try catch and return an empty xRet. Could use the hasByName around the specific failing query. Change-Id: I4f4970534cc2ff15c7d96ff2ee0a9affcfce1737
2012-07-19fdo#52066 fix RTF import of rectangle shape without text in itMiklos Vajna
We used to always add a paragraph on shapes, which breaks import of abused rectangle shapes with minimal height, used as lines. Change-Id: Ice240bad68bc030e7889c46f72c45646307f17e5
2012-07-18implement import of RTF_ATRFSTART, RTF_ATRFEND and RTF_ATNIDMiklos Vajna
Change-Id: I1dc3d3a33dcad2707468b1bfc1baa5239fddee05
2012-07-16implement docx import/export of SwPostItField::aInitialsMiklos Vajna
Change-Id: I919f5f0c4f6a1f6b1ea6261d9703da7a6c1046d3
2012-07-13dmapper: drop unnecessary explicit OUString ctors in rebased codeMiklos Vajna
Change-Id: Ibaf2211425ff2ab6fc7647c159ec6b1f095e843a
2012-07-13dmapper: remove last paragraph of annotationsMiklos Vajna
See commit 94855fbbb977d6acd42c32e157af664d0ede9739 for rationale. Change-Id: I34838ea9dd60f24d20ac48e6089915b506f5d790
2012-07-13writerfilter: read w:commentRangeStart and w:commentRangeEnd elementsMiklos Vajna
Change-Id: I8da1e43ffe6a78f14ab0901ae73c4ee39f1cbe44
2012-07-11remove pointless named temporaryLuboš Luňák
Change-Id: I6d0b45451c8fe232afc05041d3c70a98e8bd8cc8
2012-07-11do not let a style override paragraph's numberingLuboš Luňák
If a paragraph has its own <w:numPr>, do not let <w:pStyle> override that. Change-Id: I7cea0d1c8bf59804f8c56382ee68c7fad5ed3ef6
2012-07-05Resolves: fdo#49587 apparent loop in style hierarchyCaolán McNamara
Change-Id: I32317a1a6500377f7e7bb98d1dcc65ad86feb9a2
2012-07-04refactor handling of double border widths:Michael Stahl
Word uses a completely different definition of "width" of a double border than OOo and ODF: for Word the width is apparently the largest of the 3 component widths, while OOo and ODF define the width as the total with of all 3 components. The new border implementation in LO 3.4 was apparently inspired by Word's double border definition, which resulted in various import filter regressions, see the previous fixes: 36e43b52992735c622833e923faa63774b9e2f76 e2ffb71305c5f085eec6d396651c76d6daee3406 70a6a4d425558340bb49507975343a3e0a1bdde8 These fixes set the ScaleMetrics, which actually seems sub-optimal as there is a ScaleItemSet function somewhere that apparently re-scales all items in an itemset, which could undo the fixes. Also, one of the fixes actually managed to break RTF/DOCX import of double borders, as that ended up in the same code via the API. This commit now reverses the change, so that the width of a border is now always the total with of all components, which is (imho) much more intutitive, and also leads to a consistent UI where selecting say 3pt width has predictable results, no matter what the border style. The border widths are now converted in the Word format import/export filters (writerfilter and sw/source/filter/ww8), and various tests were adapted to the new handling. Change-Id: I50456c49b1a298569607e6c88f19f18441348ac3
2012-07-04rtftok: border types must be mapped to the values in ooxml/model.xmlMichael Stahl
... not to the tables::BorderLineStyle values, because the domain mapper's MakeBorderLine converts the values to BorderLineStyle. Change-Id: Id89e0bcf80fbd9a1ac9238e09d898bb6b82303b4
2012-07-04replace enum SvxBorderStyle with css::table::BorderLineSyleMichael Stahl
Change-Id: I1dadb53f46b23f92d34061ef78dda872bdbcda67
2012-07-04removed unnecessary forward declarations of classTakeshi Abe
Change-Id: I0d6aad17c471b6edd584c668dc7ff054090c185c
2012-07-03callcatcher: update unused codeCaolán McNamara
Change-Id: Ia817624647ba395476d457ccd1681c6a82534e5a
2012-07-02writerfilter is now RTL_CONSTASCII..PARAM-freeMiklos Vajna
Change-Id: I04ef6ffefa7e27a1f9cac6d7d46cb6022223b9ff
2012-07-02writerfilter: kill CONSTASCII in generated codeMiklos Vajna
Change-Id: I7d1d7d8c5f8291defb86f205ea0d65674493b467