summaryrefslogtreecommitdiffstats
path: root/writerfilter
Commit message (Collapse)AuthorAgeFilesLines
* check for NS_ooxml::LN_CT_Style_type being processed firstLuboš Luňák2013-04-241-3/+12
| | | | | | | | | The code relies on NS_ooxml::LN_CT_Style_type being handled first (because of m_pImpl->m_pCurrentEntry being reset there), so at least check for it. Still no idea how to actually ensure the correct ordering in this overdesigned $#%@! writerfilter thing. Change-Id: Ib6a2129a078728e162257275ac2a1243dbaf4017
* avoid crash when no table grid is givenLuboš Luňák2013-04-221-0/+4
| | | | | | | The document may contain just <w:tblGrid/> and <w:tblW w:w="0" w:type="auto"/> . It appears we do not handle the auto width properly at all, but at least don't crash. Change-Id: Ibdc9d1ad69c13456acd347a151ec8739bcb98855
* n#382137: Do run out of bounds (& consequently crash) when we have 0 spans.Jan Holesovsky2013-04-221-4/+1
| | | | | | | Maybe just works around the root issue (I did not debug deeper if this is correct to have 0 here), but improves the code overall, so why not to do this. Change-Id: I7c2b7f7e410faea5c1d6f3c15f1bc0f155dfb1f4
* Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks2013-04-2227-619/+108
|
* Revert "fdo#62096: Replaced some compareTo with =="Fridrich Štrba2013-04-221-7/+7
| | | | This reverts commit dd47994722eaead16099145e593fbf878072d52b.
* fdo#62096: Replaced some compareTo with ==Sameer Deshmukh2013-04-221-7/+7
| | | | | | | Change-Id: I1151dafcef91abdb2ce08abe3547a49fe3f4a67c Reviewed-on: https://gerrit.libreoffice.org/3509 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* fdo#63685 wp:inline's distT/B/L/R is in EMU's, not twipsMiklos Vajna2013-04-191-4/+4
| | | | | | Regression from 3d7e168a2a43c2414b0633379102ddb29437e75b. Change-Id: I9ab3f9f41316a01d5a74f3e500bad7a83c8d2dca
* fdo#63023 incorrect RTF background color in headerMiklos Vajna2013-04-181-3/+8
| | | | Change-Id: I33f5c8a856206860ac9cdb23dd6b5222cb785bf7
* Update pchAurimas Fišeras2013-04-171-0/+4
| | | | | | | Change-Id: Ice80350184f7a514d5beab0a5e1da5b98d5733e4 Reviewed-on: https://gerrit.libreoffice.org/3427 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* fdo#61193 fix crash on RTF paste of footnoteMiklos Vajna2013-04-161-3/+7
| | | | | | Regression from 232ad2f2588beff50cb5c1f3b689c581ba317583. Change-Id: Ia0873851979df5bba0a4693f044aab2aeff2b8e4
* RTF import: initial handling of posrelh and posrelv shape propertiesMiklos Vajna2013-04-121-0/+22
| | | | Change-Id: Id576d6df4b7a6144507e5f8230ac62a953b5c050
* RTF filter: import fShadow, shadowColor and shadowOffset shape propertiesMiklos Vajna2013-04-111-3/+23
| | | | Change-Id: I862a6b59ea2c3fa00f12cb3e9dbfd672a6aa58e5
* RTF import of new-style frames: implement line color/widthMiklos Vajna2013-04-111-1/+17
| | | | Change-Id: Ice40f1a9532e661ab6f4e3f476e638f2f8f82b72
* RTF shape import: fix default horizontal/vertical orient relationMiklos Vajna2013-04-111-0/+7
| | | | Change-Id: Icf324d2762f292c7f5f2ec9502f58c4961b28512
* Resolves: #i119464# Update default alignment value for docx [Sub]TitleYong Lin Ma2013-04-111-1/+18
| | | | | | | | | Patch by: Ying Zhang Review by: mayongl (cherry picked from commit 22602686933abaa1512ebd3bca77dbb9987b6ad5) Change-Id: I04cf1bbbeadf23147fa2cbc1c08c850288ef943a
* fix new-style RTF frame default internal margin valuesMiklos Vajna2013-04-103-14/+20
| | | | Change-Id: I1a4819905f0fc2e8dbbcf7d9570785ad4384dc39
* add msfilter::util::ConvertColor to avoid copy&pasteMiklos Vajna2013-04-101-22/+2
| | | | Change-Id: Ia5507f8d1ec18a45d3128c809d03f8f41849f93c
* RTF import: fix priority handling of shpz vs dhgtMiklos Vajna2013-04-101-0/+4
| | | | | | | \shpz is the older markup, dhgt shape property is the newer one. When having both, dhgt should have priority. Change-Id: I11904315d13fa23999badad26be26852719dbb3b
* RTF import of fillType and fillFocus shape propertiesMiklos Vajna2013-04-103-1/+60
| | | | Change-Id: I2043477aebbe2e4f9afc48a68dcf7d2b18fa6613
* coverity#1000707: out of bounds accessMarkus Mohrhard2013-04-101-1/+1
| | | | Change-Id: I889ccb08f8f44bd558d95505342af0336dca0b0f
* RTF import of new-style frames: fix txflTextFlow shape propertyMiklos Vajna2013-04-101-4/+7
| | | | Change-Id: If6febeaea00b384ea36d470264c04dfb4c7afd24
* RTF import of new-style frames: fix nameMiklos Vajna2013-04-101-1/+10
| | | | Change-Id: Ifa8e79fb9c4b9ad5a0bf64466cefad91b6bbeb0c
* restore disabled rtfimport testsMiklos Vajna2013-04-103-0/+10
| | | | | | | | | | | | There were two problems here: - Writer textframes don't have an AnchorPosition property, use compareRegionStarts() instead - turns out DOC/DOCX import doesn't create Write textframes when the shape has no text, doing so in the RTF import fixes the other two testcase as well. Change-Id: Ib2b4a0b7f8317d300fd532daea22568e33eceb53
* RTF equivalent of 229f6e187bd85d0af47da9feffef2d9ac7f83120Miklos Vajna2013-04-101-1/+5
| | | | Change-Id: I18165df2a2a59d460b06b0cfd3fcdae977bc65ee
* RTF: also import rectangles as Writer text framesMiklos Vajna2013-04-101-4/+3
| | | | Change-Id: I5aae8cbc050187b1adf7757b112470a8e9e6160e
* RTF import of d{x,y}WrapDist* shape propertiesMiklos Vajna2013-04-101-0/+8
| | | | Change-Id: Id59c8dd91de2733cf0f3620d7b27e8a34f3034fc
* fix RTF import of default fFitShapeToTextMiklos Vajna2013-04-101-0/+4
| | | | Change-Id: I7813ea4b3a2cb97c334bca04e6ff556690725b5f
* RTF import of d{x,y}Text* shape propertiesMiklos Vajna2013-04-101-0/+9
| | | | Change-Id: I6ce85cc4fd7bb317be002f5aa7295a03f0d0e7dd
* RTF import of new-style frames: fix defaultsMiklos Vajna2013-04-103-25/+43
| | | | Change-Id: I0b674f770f467a32dc2fa5bb7227f038addae4a8
* RTF import of new-style frames: avoid fake empty paragraph at the endMiklos Vajna2013-04-101-1/+8
| | | | Change-Id: I0abd941fbebfc032a3f3827929cfa721a187852e
* RTF filter: import text box shapes as a Writer textframeMiklos Vajna2013-04-101-4/+16
| | | | | | | | Text box shapes, just like any other shape types, used to be imported as drawinglayer shapes. To keep the DOC/DOCX/RTF filters in sync, import text box shapes as Writer textframes instead. Change-Id: Iacead5352d0a297cff54afb134d895e40d446147
* Fix variables not initializedJulien Nabet2013-04-071-0/+5
| | | | Change-Id: Ib741c7144bfa48f8071c2b86478c111dbf09b14e
* remove needless forward rtl::OUString declarationsLuboš Luňák2013-04-071-1/+0
| | | | Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
* mass removal of rtl:: prefixes for O(U)String*Luboš Luňák2013-04-0713-59/+41
| | | | | | | | Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
* new module i18nlangtagEike Rathke2013-04-053-3/+3
| | | | | | | | | | | Moved portions from module i18npool, all of former i18nisolang1 library that now is i18nlangtag. Included are languagetag, isolang and mslangid. This i18nlangtag code is now even used by module comphelper, so disentangling i18npool and making this an own module was needed to not create circular module dependencies. Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
* import RTF_LISTPICTURE and RTF_LEVELPICTUREMiklos Vajna2013-04-052-3/+34
| | | | Change-Id: Iff8d07a53ddfc114eb4c3921273c007bb750be6b
* Resolves: #i119621# Outline level in sample file lostJürgen Schmidt2013-04-053-6/+16
| | | | | | | | | | | | | | | | | fix: - PropertyMap.hxx, add definition for outline level min value - DomainMapper.cxx, import outline level for paragraph property - DomainMapper_Impl.cxx, fix TOC import if no range is given Patch By: Yolanda Zhang Ying Reviewed By: jsc (cherry picked from commit 5b87b9b8bc679dfbb308646a6da7584d4b418337) Conflicts: writerfilter/source/dmapper/DomainMapper_Impl.cxx Change-Id: I2149a7338b128d0dd1c1317a259e537d2a1e1063
* DOCX import of w:numPicBulletMiklos Vajna2013-04-049-9/+168
| | | | Change-Id: Ifc827d5180ce1dc0e3db095c2b92023f4c2d72ec
* Resolves: #i119544# sequence number is not displayed in docxJürgen Schmidt2013-04-041-1/+27
| | | | | | | | | | | | fix: add code to handle the SEQ field command... Patch By: Jin Long Wu Found By: Don Jun Zung Reviewed By: jsc (cherry picked from commit 0d2415df82388eb1a9a00c2d5e6bd3d9193057db) Change-Id: Ia588857aa453ea05cde2e66f6efd403e8eb282f2
* fdo#51916 out of bounds substring accessMiklos Vajna2013-04-031-3/+6
| | | | Change-Id: I7db46ef17b8aed443faa7eb0c13b6ba109242cc1
* fdo#51916 don't try to support nested tables having table styles for nowMiklos Vajna2013-04-032-2/+13
| | | | Change-Id: I4350ce0b791b42ce3c21a61e37d61e3b2063cb6a
* writerfilter: fix silly init causing trivial STL assertion in testMichael Stahl2013-04-031-2/+2
| | | | | | (regression from 35b75ed510f49ff64cd86b38e228c2b5b9a9f3fc) Change-Id: I4342fd619f4d1f760b8fef2594a67b9fb7cd8f0e
* writerfilter: -Werror=sign-compareMichael Stahl2013-04-031-1/+1
| | | | Change-Id: I3fd0dfee676e511fb882d46729c214fbab525651
* ooxmlimport: conditional table styles fixedSJacobi2013-04-035-68/+110
| | | | | | | Change-Id: I84f1d7c718dfc120b76364479ca68f63d2549b9f Reviewed-on: https://gerrit.libreoffice.org/3175 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
* implement import/export of RTF_MNORMiklos Vajna2013-04-022-3/+17
| | | | Change-Id: I9caea7fbea4643e57d81ad3b7812d0cc10f54c11
* fdo#59273 DOCX import: fix table width when w:tblW is missingMiklos Vajna2013-04-022-0/+17
| | | | | | | | Regression from 6718482c072defe5d885030826fef5ef833732e9, put back the table width counting in DomainMapperTableManager::endOfRowAction(), in case the document has no explicit w:tblW token. Change-Id: I8bd983045e1950451c9afb4f15f1deb87312524e
* Prefer prefix ++/-- operators for non-primitive typesJulien Nabet2013-04-011-4/+3
| | | | Change-Id: If5950affaff1537362b1e5c2e3791d04c5371306
* upgrade icu to 51.1Peter Foley2013-03-301-0/+1
| | | | | | | Change-Id: I1c0d5ca4b2f88ca48225fcdbeb978f27fa91f7a6 Reviewed-on: https://gerrit.libreoffice.org/2953 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Peter Foley <pefoley2@verizon.net>
* ResMgr with LanguageTagEike Rathke2013-03-291-1/+1
| | | | Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0
* WaE: -Wsign-compareMiklos Vajna2013-03-281-2/+2
| | | | Change-Id: I4de04e5ba43735e5ed236109cdf5bfbfc9d1a220