summaryrefslogtreecommitdiff
path: root/editeng
AgeCommit message (Collapse)Author
2012-07-05ConvertBorderWidthToWord: fix wrong INSET/OUSET conversion:Michael Stahl
This should do the inverse of ConvertBorderWidthFromWord. Change-Id: If0b2a8a83a7faa6600a07ecfcb13a124d7cdeab6
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-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-03ditch String::CreateFromAsciiCaolán McNamara
Change-Id: I2b482bd323ac510629c5ee31868010b7cd6ce691
2012-07-02fdo#51582: Avoid double deletion of a text portion.Kohei Yoshida
Change-Id: Ia1c31cc8122c99a7e37bc285f61f8c5d2779b577
2012-07-02Remove unused definesThomas Arnhold
Some of them were commented out for documentation purpose. Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-07-02targetted improvement of UNO API includes / usageMichael Meeks
2012-07-01Remove unused definesThomas Arnhold
Change-Id: I45e1618dcff920b63b7e21ba9e842eed684114d7
2012-06-29Remove some unused defines and controlsThomas Arnhold
Change-Id: I96f76ed6b33f5c786d1e3ab3981a535037a9c1b5
2012-06-29some pesky XubStringsCaolán McNamara
Change-Id: Ib4095dee416cab6d954e1612d2e3f6e2d4464f48
2012-06-29Remove some more PCH tracesThomas Arnhold
Change-Id: Iafca82ac728feba97fb68523dcb032b0e17e5a3c
2012-06-27targetted re-work of cppunit pieces.Michael Meeks
2012-06-27Remove commented out codeThomas Arnhold
Change-Id: Ifd82dbc35d2f03ee9a9a40f498c8fde3f5a1d5c6
2012-06-27Reduce newline bloat at eofThomas Arnhold
Change-Id: I494ceee07d6825f9466cab810742d7f85291fe14
2012-06-26re-base on ALv2 code.Michael Meeks
2012-06-25rename SvxBorderLine::SetStyle to something unambiguousMichael Stahl
Change-Id: Iec70985319a64cdc3630e15499ac304a7f1aabae
2012-06-23Fix prefix ++/-- operators for non-primitive typesJulien Nabet
Change-Id: Ibb55fcedecaf66f0817d24d8f408ef69d273ffa2
2012-06-22remove bunch of obsolete looking .dxp filesMichael Stahl
Change-Id: Ib06d88890007fd27d6838a5c8829230733d3df97
2012-06-22.dxp files don't need executable bitsMichael Stahl
Change-Id: I5fae2ec81b50203e9d6100f8c938fb3643ff651f
2012-06-22re-base on ALv2 code.Michael Meeks
Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
2012-06-21replace all but one .hdl include with equivalent .hpp includes.Michael Meeks
Change-Id: I15e94f112144549692d0c2babeb48c77adcb93a9
2012-06-21reduce scope and replace some String::CreateFromAsciiCaolán McNamara
Change-Id: I8c375e3bfbcd3d7046a8bdb1968934b7d7ca96f8
2012-06-21re-base on ALv2 code.Michael Meeks
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21re-base on ALv2 code.Michael Meeks
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-21hrc cleanup: Remove unused definesThomas Arnhold
All of those defines (should) not be used at any point in the code. False positives may exist, because some macro names are getting generated by some template/macro foo. This is the version which compiled fine for me. Also there are many commented out lines removed. Change-Id: I6394024682e4ab3691eb72707a9363d41ba31df8
2012-06-19typo: paramters, paramaters -> parametersAndras Timar
Change-Id: If58683331c50f2a95204e8e2dea11edbef3ccb63
2012-06-19merge together hand-crafted traditional/simplified chinese testsCaolán McNamara
merge together a gadzillion hand-crafted isSimpleChinese/isTraditionalChinese/isKoreanVariants/isCJK implementations which should fix a goodly amount of them add a MsLangId::isFamilyNameFirst for locales where family name appears first while I'm at it. Change-Id: I65377793be037d16fe7250cd7450b28aec689e83
2012-06-19move odd IsSimilarChinese debugging thing to local scopeCaolán McNamara
Change-Id: I3abcd97b15d9a8500435fab795a7834fa5745dc9
2012-06-19death to some UniStringsCaolán McNamara
Change-Id: I0fa0c60e12c418d25f8bd96cc04c6abd74b1a608
2012-06-18convert LocaleDataWrapper to OUStringCaolán McNamara
Change-Id: Icb5f5adf9139d1c0f0e86d8128ea6742ce20b138
2012-06-15hrc cleanup: Remove completely unused RIDsThomas Arnhold
These RID definitions aren't used at any other point. So remove them. Unused START and END definitions were commented out for documentation purpose. All definitions in basctl/source/basicide/tbxctl.hrc were unused, so I removed this file. Change-Id: I4713188a12b9da912b2a91b85ea4e54ca1aeb994
2012-06-13Remove unnecessary size-too-large checkStephan Bergmann
...it is done in UniString(rtl::OUString const&) ctor anyway Change-Id: I890ab21a6c04fe0ddc0a9b2c9a356359984e516e
2012-06-13Better fix for those short stringsStephan Bergmann
...that are not intended to be short after all; just the length calculation turned out to be wrong. Change-Id: Ic3a81c935161564f980ddd0241575fff2f76b467
2012-06-13Drop throw clause that was incomplete anywayTor Lillqvist
SvxUnoTextRangeBase::SetPropertyValueHelper throws a css::lang::IllegalArgumentException but its delaration did not mention that. This caused a crash in sd_filters_test with Apple's Clang which does not have -fno-enforce-eh-specs. So drop the whole throw clause. Change-Id: Ib9bbbc885f657aeb8d671c75a41b60a6544ea421
2012-06-13Take care of short stringsStephan Bergmann
Change-Id: I469b27a45bb5676570b59a829419f3959210a1a6
2012-06-13error C2227: left of ´->acquire´ must point to class/struct/union typeCaolán McNamara
Change-Id: I6c6e395a87cc25f2ec2f01e6508be8a1214f4d02
2012-06-12Convert SV_DECL_PTRARR_DEL(SvxRTFItemStackList) to boost::ptr_vectorNoel Grandin
I had to make the destructor of SvxRTFItemStackType public. The combination of friend class, boost, and a private destructor does not make OSX's gcc happy. Change-Id: I2d9a3bff3c5edaf5435fb543389a9a2822c6b2ad
2012-06-12don't need to realloc stringCaolán McNamara
Change-Id: I17ec5a54b0088b56bd8c8431eb255626dbb1fac8
2012-06-11remove EraseLeadingChars and EraseTrailingCharsCaolán McNamara
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
2012-06-09Remove superfluous empty lines on topThomas Arnhold
More than two lines are removed for readability. Change-Id: Ibff6cf68d7c512e240a54065b54a225bb23a782b
2012-06-09Remove superfluous include commentsThomas Arnhold
Change-Id: Icd57ca7fd89e30c190c1b06dbe67c30bea8d1b59
2012-06-06valgrind: uninitialized valueCaolán McNamara
Change-Id: I405733a77a721f3d5562782e654a1942fe3b073e
2012-06-04fdo#46112: tweak condition to prevent guessing only...Michael Stahl
...if there are actually individual line widths given; fixes the sw_rtftok test. Change-Id: If5f6ef54b93c5bfccfd011f25d9d9301637d388e
2012-06-04fdo#46808, Adapt UNO services to new style, Part 7, updating ::createNoel Grandin
Update calls to factories to use new ::create methods Change-Id: I01d4417820f52718836c92faf3c2fae0dc96b30d Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-04fdo#46112: fix Calc ODF border line import:Michael Stahl
There are 2 problems here: - the border widths are tripled on import, because that is effectively what SetWidth does for DOUBLE borders; set a divisor of 3 similar to e2ffb71305c5f085eec6d396651c76d6daee3406 - the 3 individual line widths are ignored and the 3 lines end up with the same width, while older versions had numerous pre-defined border styles with asymmetric line widths; fix this by always guessing the width from the 3 parts for DOUBLE lines Change-Id: Ibdde7e034e25433835765330e81db0825efd9eb8
2012-06-04Fix call of getLengthJulien Nabet
Change-Id: I5fb5bc5016bd2779643ecfcf2df40e00c4741a2c
2012-06-04Hyperlinks/Fields wrapping feature.Muthu Subramanian
* Known issue: If the hyperlink wraps the next content is always from the new line! :( * Pending: Creation of unit test case for this.
2012-05-31nuke unused typedefTakeshi Abe
Change-Id: I8848d0e687c3b19be1a8bc1f41c2a0c94e13bbbf
2012-05-29targeted string re-workNorbert Thiebaud
Change-Id: I477fc34c21530b51d975216156e66abf21a7149c