Age | Commit message (Collapse) | Author |
|
This should do the inverse of ConvertBorderWidthFromWord.
Change-Id: If0b2a8a83a7faa6600a07ecfcb13a124d7cdeab6
|
|
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
|
|
Change-Id: I1dadb53f46b23f92d34061ef78dda872bdbcda67
|
|
Change-Id: I0d6aad17c471b6edd584c668dc7ff054090c185c
|
|
Change-Id: I2b482bd323ac510629c5ee31868010b7cd6ce691
|
|
Change-Id: Ia1c31cc8122c99a7e37bc285f61f8c5d2779b577
|
|
Some of them were commented out for documentation purpose.
Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
|
|
|
|
Change-Id: I45e1618dcff920b63b7e21ba9e842eed684114d7
|
|
Change-Id: I96f76ed6b33f5c786d1e3ab3981a535037a9c1b5
|
|
Change-Id: Ib4095dee416cab6d954e1612d2e3f6e2d4464f48
|
|
Change-Id: Iafca82ac728feba97fb68523dcb032b0e17e5a3c
|
|
|
|
Change-Id: Ifd82dbc35d2f03ee9a9a40f498c8fde3f5a1d5c6
|
|
Change-Id: I494ceee07d6825f9466cab810742d7f85291fe14
|
|
|
|
Change-Id: Iec70985319a64cdc3630e15499ac304a7f1aabae
|
|
Change-Id: Ibb55fcedecaf66f0817d24d8f408ef69d273ffa2
|
|
Change-Id: Ib06d88890007fd27d6838a5c8829230733d3df97
|
|
Change-Id: I5fae2ec81b50203e9d6100f8c938fb3643ff651f
|
|
Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
|
|
Change-Id: I15e94f112144549692d0c2babeb48c77adcb93a9
|
|
Change-Id: I8c375e3bfbcd3d7046a8bdb1968934b7d7ca96f8
|
|
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
|
|
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
|
|
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
|
|
Change-Id: If58683331c50f2a95204e8e2dea11edbef3ccb63
|
|
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
|
|
Change-Id: I3abcd97b15d9a8500435fab795a7834fa5745dc9
|
|
Change-Id: I0fa0c60e12c418d25f8bd96cc04c6abd74b1a608
|
|
Change-Id: Icb5f5adf9139d1c0f0e86d8128ea6742ce20b138
|
|
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
|
|
...it is done in UniString(rtl::OUString const&) ctor anyway
Change-Id: I890ab21a6c04fe0ddc0a9b2c9a356359984e516e
|
|
...that are not intended to be short after all; just the length
calculation turned out to be wrong.
Change-Id: Ic3a81c935161564f980ddd0241575fff2f76b467
|
|
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
|
|
Change-Id: I469b27a45bb5676570b59a829419f3959210a1a6
|
|
Change-Id: I6c6e395a87cc25f2ec2f01e6508be8a1214f4d02
|
|
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
|
|
Change-Id: I17ec5a54b0088b56bd8c8431eb255626dbb1fac8
|
|
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
|
|
More than two lines are removed for readability.
Change-Id: Ibff6cf68d7c512e240a54065b54a225bb23a782b
|
|
Change-Id: Icd57ca7fd89e30c190c1b06dbe67c30bea8d1b59
|
|
Change-Id: I405733a77a721f3d5562782e654a1942fe3b073e
|
|
...if there are actually individual line widths given; fixes the
sw_rtftok test.
Change-Id: If5f6ef54b93c5bfccfd011f25d9d9301637d388e
|
|
Update calls to factories to use new ::create methods
Change-Id: I01d4417820f52718836c92faf3c2fae0dc96b30d
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
|
|
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
|
|
Change-Id: I5fb5bc5016bd2779643ecfcf2df40e00c4741a2c
|
|
* Known issue: If the hyperlink wraps the next content is always from
the new line! :(
* Pending: Creation of unit test case for this.
|
|
Change-Id: I8848d0e687c3b19be1a8bc1f41c2a0c94e13bbbf
|
|
Change-Id: I477fc34c21530b51d975216156e66abf21a7149c
|