summaryrefslogtreecommitdiff
path: root/sw/source/filter/html
AgeCommit message (Collapse)AuthorFilesLines
2012-08-22fdo#51777: add a hack for 1 twip DOUBLE borders:Michael Stahl1-2/+1
Arguably such annoyingly thin double borders don't make much sense anyway, because they're essentially 2 hairlines with ~no space between, but unfortunately older LO versions are able to create them; since the refactoring in 2d045cdb69176b280812dda0b813371cf1ac72e2, which changed the BorderWidthImpl::Get* methods to return 0 due to rounding, they were ignored at least in the HTML import, which is a regression. So add a special purpose hack that essentially rounds up the first line to 1 but not the other lines so the visual result is a hairline single border. Change-Id: I20ac4675bcf67ea58a6931a40bff3605390e9c0d (cherry picked from commit 601bfe2ce3113719b2f8edaba2ccb6b630051a9a) Reviewed-on: https://gerrit.libreoffice.org/451 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-07-04replace enum SvxBorderStyle with css::table::BorderLineSyleMichael Stahl4-30/+39
Change-Id: I1dadb53f46b23f92d34061ef78dda872bdbcda67 (cherry picked from commit 8b4593948582c3b5b3d013bd751bb19ffd37a31b)
2012-07-04rename SvxBorderLine::SetStyle to something unambiguousMichael Stahl4-16/+18
Change-Id: Iec70985319a64cdc3630e15499ac304a7f1aabae (cherry picked from commit 463e59d680467a7b0d30ae956935a444c513de9e)
2012-06-01targeted string re-workNorbert Thiebaud1-75/+75
Change-Id: Ieb2e362853f146f58370a60511cc75ab64fe439e
2012-05-25Convert SV_DECL_PTRARR_SORT_VISIBILITY(SwPosFlyFrms) to std::setNoel Grandin1-5/+4
Change-Id: Iba19e13b4402594023d9ce7c4d4fa3a9cdc9899e
2012-05-24Removed unused SfxMedium::bDirectStephan Bergmann1-1/+1
See the TODO comment in sfx2/inc/sfx2/docfile.hxx about a temporary SfxMedium ctor overload to find not yet adapted uses of another overload, to be removed again in due time. Change-Id: Ie22c33c32f8870ce6ebf6d500abc7a4e33d97183
2012-05-23removed unused temporary rtl::OUStringTakeshi Abe1-2/+0
Change-Id: I9d118a5fbe2306465d8bcdb9ddd0596588137e5e
2012-05-14Convert SV_DECL_PTRARR_DEL(SwTableBoxes) to std::vectorNoel Grandin2-19/+21
I added a GetPos() method because quite a lot of code used that method and the existing code is quite tied to the precise return values of that method. Change-Id: I9af6b923d978abe758b63d835f228495c020455a
2012-05-09also convert assertions in previous commitMichael Stahl1-4/+4
2012-05-09Convert SV_DECL_PTRARR(_HTMLEndLst) to std::vectorNoel Grandin1-27/+26
2012-05-09Convert SV_DECL_PTRARR(SwHTMLTxtFtns) to std::vectorNoel Grandin2-11/+8
2012-05-09Convert SV_DECL_PTRARR_SORT_DEL(SwHTMLFmtInfos) to boost::ptr_setNoel Grandin3-74/+72
I had to move "struct SwHTMLFmtInfo" from htmlatr.cxx to wrthtml.hxx because there are clear() calls in wrthtml.cxx and ptr_set needs the full declaration to be visible.
2012-05-09fix debug code in previous 3 commitsMichael Stahl1-13/+11
2012-05-09Convert SV_DECL_PTRARR_DEL(HTMLTableCells) boost::ptr_vectorNoel Grandin1-12/+9
2012-05-09Convert SV_DECL_PTRARR_DEL(HTMLTableRows) to boost::ptr_vectorNoel Grandin1-39/+37
2012-05-09Convert SV_DECL_PTRARR_DEL(HTMLTableColumns) to boost::ptr_vectorNoel Grandin1-23/+21
2012-05-09Convert SV_DECL_PTRARR(SdrObjects) to std::vectorNoel Grandin1-3/+3
2012-05-09also convert assertions in previous commitMichael Stahl3-27/+26
2012-05-09fix std::deque::deque(size_t) in previous commitMichael Stahl1-1/+1
2012-05-09Convert SV_DECL_PTRARR(_HTMLAttrs) to std::dequeNoel Grandin7-107/+125
The code frequently inserts at both ends, so a deque made more sense.
2012-05-09Convert SV_DECL_PTRARR(_HTMLAttrContexts) to std::vectorNoel Grandin8-35/+34
2012-05-09Convert SV_DECL_PTRARR_DEL(ImageMaps) to boost::ptr_vectorNoel Grandin3-7/+4
2012-05-09Convert SV_DECL_PTRARR(SwHTMLFrmFmts) to std::vectorNoel Grandin3-6/+5
2012-05-09Convert SV_DECL_PTRARR(INetFmts) to std::vectorNoel Grandin3-21/+15
2012-05-09Convert SV_DECL_PTRARR_DEL(SwWriteTableCells) to boost::ptr_vectorNoel Grandin1-5/+5
2012-04-30fdo#47670: sw: HTML: fix table border export:Michael Stahl1-74/+0
SwHTMLWrtTable::Write no longer writes BORDER and BORDERCOLOR attributes on TABLE elements, but instead various CSS "border" properties into STYLE attributes of the TD elements. However, it was forgotten to also remove the ROWS and FRAMES attributes, which (as the comments helpfully explain) only make sense in case BORDER is actually written, and cause Mozilla to not render some of the borders in cases RULES=ROWS or RULES=COLS. (regression from d18feffd49f4481626417daac7984b2a7e70c3bf)
2012-04-30fdo#41796: sw: HTML: spurious semicolons in STYLE:Michael Stahl4-5/+20
The STYLE attributes on TD elements (except for the first) start with a spurious semicolon, because the bFirstCSS1Prop variable is not reset. Apparently the semicolon is a separator in STYLE attributes, so it is probably invalid to write a spurious one, but Mozilla can still render the borders right, so add a workaround to CSS1Parser::ParseStyleOption to skip initial semicolons. Fix the export by using the SwCSS1OutMode to set the mode (also turning on encoding while at it), which is the only way to reset bFirstCSS1Prop. (regression from d18feffd49f4481626417daac7984b2a7e70c3bf)
2012-04-30fdo#41796: sw: HTML: import CSS STYLE border on TD:Michael Stahl1-4/+26
For TD elements, the SYLE attribute containing "border" properties is read, but the borders end up not at the table cell, but on some span or paragraph inside the cell. So insert a special case that re-routes the SvxBoxItems containing the borders to FixFrameFmt, where the properties set at the TD element directly now override the SvxBoxItem that is derived from BORDER etc. attributes of the table. (regression from d18feffd49f4481626417daac7984b2a7e70c3bf, which changed the way the border attributes are written)
2012-04-02Remove unused HTMLMODE_FIRSTLINEHarri Pitkänen1-54/+1
HTMLMODE_FIRSTLINE was disabled in all HTML export modes. It seems to have been used to add first line indent for paragraphs in Netscape version 3 but all currently available export modes use CSS for that.
2012-04-02convert Suffix/Prefix to rtl::OUStringCaolán McNamara1-3/+3
2012-03-20remove ToDouble/ToFloatCaolán McNamara1-1/+1
2012-03-08Convert from tools/table.hxx to std::map in SvxMacroTableDtorNoel Grandin5-24/+22
In this case, we also convert from storing pointers to storing the items directly because SvxMacroTableDtor completely controls the lifecycle of the SvxMacro objects it contains. Also add an operator== to SvxMacroTableDtor and remove the out-of-line implementations of equals from two other places.
2012-03-08tidy up WW8FormulaControl, with knock on results elsewhereCaolán McNamara1-2/+2
2012-03-05Sprinkle more DISABLE_SCRIPTING ifdefsTor Lillqvist1-0/+2
2012-01-30refactor ConvertLineEndCaolán McNamara6-16/+13
2012-01-24Replaced String by rtl::OUStringTakeshi Abe1-40/+40
2012-01-21Removed some unused parameters; added SAL_UNUSED_PARAMETER.Stephan Bergmann8-16/+16
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC) is used to annotate legitimately unused parameters, so that static analysis tools can tell legitimately unused parameters from truly unnecessary ones. To that end, some patches for external modules are also added, that are only applied when compiling with GCC and add necessary __attribute__ ((unused)) in headers.
2012-01-17Fix for fdo43460 Part XL getLength() to isEmpty()Olivier Hallot8-46/+46
Part XL Modules sw
2012-01-18removed dead macroTakeshi Abe4-20/+0
2012-01-13SvStringsDtor->std::vectorAugust Sodora3-7/+6
2012-01-13SvStringsDtor->std::vectorAugust Sodora1-9/+7
2012-01-13SvStringsDtor->std::vectorAugust Sodora2-55/+49
2012-01-10Remove _SVSTDARR_STRINGSISORTDTORAugust Sodora6-26/+0
2012-01-10MAC_WITHOUT_EXT never defined thesedaysCaolán McNamara1-4/+0
2012-01-09simplify CharClassCaolán McNamara1-1/+1
multiple variants of toUpper (etc) some that take a non-const OUString or String and modify it some that take a const OUString or String and return a new one some that take part of a const OUString or String and return a new one
2012-01-05Removed unnecessary tools includes.Marcel Metz2-2/+1
2012-01-05Removed unnecessary tools includes.Marcel Metz3-3/+0
2012-01-05add a comphelper::string::getTokenCountCaolán McNamara1-1/+2
suitable for conversion from [Byte]String::GetTokenCount converted low-hanging variants to rtl::O[UString]::getToken loops added unit test
2012-01-04Easyhack fdo#38831 remove SvStringsBrad Sowden1-2/+0
Remove SvStrings definition and obsolete #defines.
2011-12-22sw: Improved document comparison based on RSIDs.Tzvetelina Tzeneva2-2/+3