Age | Commit message (Collapse) | Author |
|
The simple color distance on RGB color space is not good enough.
It leads to a better result if we use the scheme of the primary
colors.
This method works well with MSO highlighting color palette, but
not neccessarily in general. In highlighting palette light and
dark variant of the same color type (e.g. blue and light blue) has
the exactly same scheme.
(cherry picked from commit 16f9cf57e20ffbe34cb184f694f465708250a578)
filter: filter_utils test needs tools library (from Michael Stahl)
(cherry picked from commit 75d0f7262004d93d457b4b0b499ebf0b23fcda04)
Missing boost_headers (from Stephan Bergmann)
(cherry picked from commit bd8e8db250f99445dc1a8baa7ffc6ddfe90fdf5b)
Change-Id: I0de6e4598f365fda1cccd1d3466429e52cf4067f
Reviewed-on: https://gerrit.libreoffice.org/17058
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
|
|
These implementation names of Calc, Draw, Impress, and Writer documents are the
most likely to be checked by existing third-party code, so revert the
corresponding parts of 3099c70b11c7e5b80fe4dbe3dc99171fb38c6fc2 "Fix various
XServiceInfo implementations" (and instead add fixups in CppunitTest_serives).
Change-Id: I1a760adbf4c89a1b4477d6e628abba8d2028ccfe
(cherry picked from commit 61a3be76c221c822b189d20e9269ec5caf1aadcc)
Reviewed-on: https://gerrit.libreoffice.org/17011
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
|
|
Change-Id: I667bb264f92024b72f230c2ddbba3887471345f2
(cherry picked from commit 755b9320c81948358a1d4104c8875594b5700d39)
(cherry picked from commit cd3e5ddeb4100bab2a39cf9913e14eb371edbbcc)
Reviewed-on: https://gerrit.libreoffice.org/16994
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
|
|
Inserting a symbol in Writer set all fonts including CJK and CTL
to the same one. This patch makes the behavior consistent with that,
allows CJK and CTL user to see the symbols.
Change-Id: I7a61868e8078c81c68e471760f080b3ce7df589f
Reviewed-on: https://gerrit.libreoffice.org/16604
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Reviewed-on: https://gerrit.libreoffice.org/16871
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
|
|
One one hand, a problem since commit
330b860205c7ba69dd6603f65324d0f89ad9cd5f (fdo#68787 DOCX import: handle
when w:separator is missing for footnotes, 2013-09-04) was that the type
attribute from <w:footnote w:type="separator"> resulted in two
ooxml:CT_FtnEdn_type tokens, ignoring too many paragraph ends for
footnotes, which resulted in missing paragraph style on footnotes.
On the other hand, fixing the first problem showed that it wasn't
correct that commit 9389cf78e304a5a99bcf1745b9388e14ac36281a (cp#1000018
RTF import: empty para at the end of footnote text got lost, 2013-11-15)
unconditionally removed the RemoveLastParagraph() call in
DomainMapper_Impl::PopFootOrEndnote(). It turns out that RTF and DOCX
have different semantics here, the footnote is always within a <p></p>
pair in DOCX, while in RTF a \par at the end of a
footnote means an empty paragraph. Fix that by conditionally restoring
the removed RemoveLastParagraph() call.
(cherry picked from commit 519b34300f73b1e08f6194d6ba49d4fc010cf186)
Change-Id: I33020ac761c94addfec8164a17863565e4453b07
Reviewed-on: https://gerrit.libreoffice.org/16810
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
|
|
This is a fixup for 2a51dd6aca55a92d8751b67cdf7a5a6ab8c38237
Change-Id: I4fba62f944747cbb39013d4b0005a6b4a31f5222
|
|
Regression from commit beb4aa21d61f0d66392d596be86fb57b4b167239
(SwViewShell::ImplEndAction: avoid direct paint, 2015-06-29), the
problem was that the lcl_PaintTransparentFormControls() call performs
direct paint, so it should be called only in case we don't do an async
paint via invalidate.
As expected, this call is no longer needed for the original i#107365
bug document in case SwViewShell::Paint() will be called by the main
loop shortly.
Change-Id: Ia27c551ed838d610f972f20abbb4ae9f0e1241b6
(cherry picked from commit 2b26c1796d0a05f47cfb01d79ee4f69344efbbb2)
|
|
Regression from commit 1d9e837698baab795efee6cc8b0e289528d5cac6 (Use
GetBoundRect() instead of Frm() in layout., 2011-04-29), this causes
problems for double-buffered rendering and also seems to be pointless,
as just above we already added the rectangle to the repaint area.
Change-Id: I3dc67143e8332ab941a683414ee318dbef13de88
(cherry picked from commit e47db97d2ced9178456eebaece11118158dce406)
|
|
Change-Id: I1f663e1a463919fc0662c94e03b801c7c58f1f5d
Reviewed-on: https://gerrit.libreoffice.org/16745
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
|
|
(cherry picked from commit ffc7b671e213d366e59d39ddbbef66544ebf01e5)
Change-Id: I1af1d6bc150c16a2c6b0fe788a41c8c18caee6c6
Reviewed-on: https://gerrit.libreoffice.org/16785
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
|
|
- first, actually use the selection in MergeNew()
- secoond, bring back GetSelection() for that
- third, throw away lots of the old (dead) code that mostly just
stumbled over itself
- e.g. ExcludeRecord() wouldnt work on the last element due to a
off-by-one error
Change-Id: I07d07e086b748b393f2ada7cb22fdb2ce285ad65
Reviewed-on: https://gerrit.libreoffice.org/16762
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
|
|
With double-buffering enabled and typing quickly, one saw blinks in the
text sometimes. The reason was that PaintDesktop() painted directly
outside SwViewShell::Paint().
The problem is more visible with VCL_DOUBLEBUFFERING_AVOID_PAINT=1,
loading a simple document + pressing a key draw an unexpected white
rectangle.
Given that InvalidateWindows() already calls PaintDesktop() inside
Paint() implicitly (via SwViewShell::Paint()), fix the problem by just
avoiding the DLPrePaint2() + PaintDesktop() + DLPostPaint2() calls.
Change-Id: Ib8ce26a0bdd526bf85d362f0e865dd61d29f6d11
(cherry picked from commit c9175a1bd3249ad573ae6827bf19963a3ebe2fbc)
|
|
With this, if the sw window is small enough that the page shadow is
supposed to be under the sidebar, we no longer paint the shadow over the
sidebar.
In the non-double-buffered case the output is a window, so
SdrPaintWindow::PreparePreRenderDevice() does its own buffering, and
clipping is taken care of when that buffer is copied to the window in
SdrPreRenderDevice::OutputPreRenderDevice().
This wasn't a problem before, as either the output was a non-screen
device or UI elements were painted (like the sidebar), but never both at
the same time.
Change-Id: Ic02c814fc4deeea86c245c74bd69656533d9f835
(cherry picked from commit 978033d5ed9f93f2d5d9a1ba44acf6b37bc13bfe)
|
|
Change-Id: Ib01e794b70d611f68ab4a7c048860b28b2dca99f
Reviewed-on: https://gerrit.libreoffice.org/16676
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
(cherry picked from commit 2eea698f5b41b2dbf371e3a6c9d3b242c347206d)
|
|
- crashed due to out-of-range index with empty vector
- kill pruposeless manual index fiddling for good
- add trivial test
Change-Id: Ic224c70f432d2b26718e05aa5a2742461cfb7bec
Reviewed-on: https://gerrit.libreoffice.org/16749
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
|
|
Change-Id: I5756c033e173faaba373c145b15a07e275453643
(cherry picked from commit ef46186bbab756442db1b7c12cd1902c138c737e)
|
|
... that have a Writer table as data source, such as ooo38798-1.sxw.
The problem is that during layouting, the SwWrtShell::CalcAndSetScale()
wants to call setVisualAreaSize() on the embedded chart object.
This switches the state of the object to RUNNING, which loads it from
the file, and during that the ODF filter calls into SwChartDataProvider
and that uses a UnoActionRemoveContext; unfortunately that ends all
pending Actions, so we get a recursive layout action.
Apparently the UnoActionRemoveContext is required to call
SwUnoTableCrsr::MakeBoxSels() for old-style tables, which need layout
frames for selection?!?
Try to avoid the problem by disabling UnoActionRemoveContext in case a
new-style table will be selected, which can be done without layout.
(cherry picked from commit b6cefd5e8b5086619e591385a0d7a6ffcd9783b9)
Conflicts:
sw/source/core/unocore/unochart.cxx
sw/source/core/unocore/unotbl.cxx
Change-Id: I097991ffb2e78ddf011db7575f7bb63ae8aa7005
Reviewed-on: https://gerrit.libreoffice.org/16617
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
|
|
With this, if e.g. Ctrl-A is hit for a hello-world document, then
selection is properly visible.
Change-Id: If3fae1e73dc76c50e62f6e1f31d99873636f0e93
(cherry picked from commit a2c4bed594013ed9d671197cde53990fcede395d)
|
|
Fixes warnings on startup like:
warn:legacy.osl:13026:1:svx/source/svdraw/svdpntv.cxx:813: SdrPaintView::UpdateDrawLayersRegion: No SdrPaintWindow (!)
when double buffering is enabled for SwEditWin.
Change-Id: I3dd8019a158b7d50c5e460abf504da31aabe72c3
(cherry picked from commit 82307b16f89250d5fd724806f51823a38f7e202f)
|
|
With this, most of the SwEditWin is painted to the virtual device in
case of double buffering, not directly to the screen (avoids
flickering).
Change-Id: If93aa082daaec6b0e2c417ebc7367e5ab601aa2c
(cherry picked from commit af9d02a24bc61c9a531157ed6a49b25c47668277)
|
|
2 changes for the 2 following bts
First bt: see https://bugs.documentfoundation.org/attachment.cgi?id=116883
Second bt: see https://bugs.documentfoundation.org/attachment.cgi?id=116888
Change-Id: I92ed3b7305bb5b714532f2dcffd615a8337db8b6
Reviewed-on: https://gerrit.libreoffice.org/16557
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit cb813b392d1f59ad8927b87e899d8a33d1db2504)
|
|
Commit 56dd27d9ed829ea0444b3b5932dcd0d431d6e251 (sw: invalidate after
keypresses when we have a callback, 2015-01-13) only enabled
invalidate-then-paint for the tiled rendering case, because the main
loop had no priorities back then.
This limitation went away with 48c2815dd20cf20eeec8bb4e003000f4a3d13291
(tdf#91727 - Unwind non-dispatch of idle handlers., 2015-06-10), so it's
not a problem to always do this panting inside the Paint() call.
Change-Id: I98ddfcc0f20f1553974b74ec3c859dde315612e4
Reviewed-on: https://gerrit.libreoffice.org/16587
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit beb4aa21d61f0d66392d596be86fb57b4b167239)
|
|
The idea is that mpOut is only used for non-drawing purposes outside
Paint(), e.g. to do logic <-> pixel conversion.
Change-Id: Ia83cd32dd0a5152dcfc1644e92af08b4ddf4653c
Reviewed-on: https://gerrit.libreoffice.org/16584
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 98d2d985082114ec259c11788af7b8574f2c9b3d)
|
|
(cherry picked from commit 8527dfbd4d3f79de8b02c561e5f0fef0d54d3eeb)
Conflicts:
sw/source/core/layout/sectfrm.cxx
sw/source/core/text/frmform.cxx
sw/source/core/text/txtfrm.cxx
Change-Id: I98de3f5413756c494c677d592ea921155e4c08be
|
|
Change-Id: I2aaee946bdc5a22cf5a83e1e50714556260280f3
(cherry picked from commit 7192cb0f32632ba4095ba0316109cc2eb7f1b218)
|
|
Change-Id: I34306bb1622c79489eb647ed45f398ad2634c144
(cherry picked from commit ea1ea3b910dea72c901cd655af9a3abd501f4e60)
|
|
Change-Id: I9c59116828585c9645bc415ef5fffe65a24d09ee
(cherry picked from commit 533e97947d82f780d5b1b7a02138d738b2435a56)
|
|
properties.pSGlobalShell can be legitimately 0 here.
No testcase, for some reason the export does not crash if it's done by
CppunitTest_sw_filters_test or CppunitTest_sw_odfexport; but it does
crash with '--headless --convert-to odt kde140265-1.doc'.
Change-Id: I50936f9e5236763cc987aba14d8fc897c4b789bf
(cherry picked from commit 4cd3f9a7749b8ef285012a59d031dc9f2e4b5e43)
|
|
One tricky part is that in generic SwFrm methods SwRootFrm may not have
a shell and doesn't need a vcl::RenderContext, either; so check for that
situation explicitly where the frame may be a root one.
Change-Id: I48f39fb7195290393fca34f75d8798fb5f960f46
(cherry picked from commit a3413204d2eb0563a4a2e1104905951f81e417bc)
|
|
Change-Id: I468d662a612c951dc1482cfc685dee800bb11f82
(cherry picked from commit 05e50b570f602c17218bb6e82bcaac2fbdd943c1)
|
|
Change-Id: Ia37257286cce7a4a4a6fdffd2dd0d896d46db548
(cherry picked from commit 6b88a6501a4de7aeb02da8f5efed28925aafc144)
|
|
Reading SwWW8ImplReader::CoreLoad()'s "update graphic bullet
information" block, it turns out that the numbering picture bullet's
height should be independent from the supplied bitmap, and only its
aspect ratio should be respected.
(cherry picked from commit eab89b7f024a8c86decdcb3362c40c40a7df37df)
Change-Id: I1300aa0397a8098df2a3170af795fbba47fd2a9e
Reviewed-on: https://gerrit.libreoffice.org/16502
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
|
|
Change-Id: Ia08207143d27f88d09bd45e64ba7c3c12cd2c1a1
(cherry picked from commit acdf113baf04263a03d574eac9a8c09f98598b7a)
Reviewed-on: https://gerrit.libreoffice.org/16468
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
|
|
(cherry picked from commit 54106fae68149c0b1dbb4f6ece133fefacacc322)
Conflicts:
sw/source/core/text/frmform.cxx
Change-Id: I8ff1647bdf8c46d395c398c97b97066d7b128cdb
|
|
Change-Id: I0f775bdfaf6a098be25d053f87b1bcf86d533297
(cherry picked from commit a5fe6ea091ae7e897b11b62b9b749b6194d34585)
|
|
Change-Id: I07b3a7768def547a34cbcdd8966157065605d5fb
(cherry picked from commit d3456256eafa376abaad50dc980ab94032185af6)
|
|
Change-Id: I1931ec139798d2f2eb956fd0590ab98ce1a65c3c
(cherry picked from commit 0c33e10b594aa07c4e9adadae59e5c03a4fdc29c)
|
|
Change-Id: Ie57e1f5abc91286662804e7528afd062d1427fee
(cherry picked from commit 9829d6ab01e15be7e81f971eac6ba5e402ca5189)
|
|
Change-Id: I6dfceb02b57d886dd8025520e5ed21a2ad46a5b1
(cherry picked from commit 8af3974013dbae4aa83b13c6fd6c6e8fd04ac072)
|
|
Change-Id: I8964701bf5b1ecdb11851d7cc8540175e007dd2b
(cherry picked from commit d7eacc579fb0874e9602b5c0714ac00bd520322a)
|
|
Change-Id: I3bc993b00940732fd9ca26ccec7d025c8558516a
(cherry picked from commit b13fbaf697b1cbd1f8b019e3f5500b53e2a39c6c)
|
|
Change-Id: I4fb6c42da0c5defa1d5da4cf6f3a13d11388c88d
(cherry picked from commit 08b3b6ed6c4d8599c9bb75719974c710462f2764)
|
|
Change-Id: Icbc5e9a42cc7e7693c6584461505a3233046272c
(cherry picked from commit 1a2705d16c945cdd85dd75c803039c05af0c853c)
|
|
Change-Id: Ife6c7404079aa1ae10d5c2bdbe77629e0689b167
(cherry picked from commit c369f8644c45869cb1d80e5e243e445f5cb8b778)
|
|
Change-Id: I7acd380d2e199f042dca61d95596c3bc63c6a206
(cherry picked from commit cec17a4659389c5fe3a97c144d541c6aedc64d3f)
|
|
Change-Id: If36b6fdda54dfbe6e4eea14883d659302a1db6be
(cherry picked from commit 85cd7a6c6883d4d80d583f13d923527ed5e72343)
|
|
Change-Id: Ib506b912752a16c514958896aa16b310f8e09200
(cherry picked from commit 7b6329479eeb3c416396404c0d371b7aab59dd64)
|
|
Change-Id: Id9e9aa312d8fd4e0d776b41c9cca8073fa57b6fa
(cherry picked from commit 3b7c803b1b2f5d13f5ca225a9d4aabab348c7786)
|
|
Change-Id: If861aa0a579eb953cd2fc7b790b3514ab1d0ffd0
(cherry picked from commit d7dd8bb3bdd0fee44d6704cbf34d4a39cd7a3d29)
|
|
If the caller has a vcl::RenderContext already, use it. Otherwise just
use GetOut() on the shell in the caller for now.
(cherry picked from commit 702cb2b28431d4acec302af20169fbb447a2980a)
Conflicts:
sw/source/core/crsr/viscrs.cxx
Change-Id: I8070dd3d6622d211885067514d6eb728716830ee
|