aboutsummaryrefslogtreecommitdiff
path: root/source/id/svl
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2015-01-25 19:14:48 +0100
committerAndras Timar <andras.timar@collabora.com>2015-01-25 19:14:48 +0100
commit8c4fea354d3d98a6cb8da4f9ddb87e072bdc21e6 (patch)
treec054ed2b6c5ca0ce369b076d7e74eb17d438c856 /source/id/svl
parent78a223e7931ed04859cfe0c8bd834c4956e50e0b (diff)
Guarani (Paraguay) language code is gug not gn
Change-Id: I89083ea235ecd0a055b8853af791646d39b84da2
Diffstat (limited to 'source/id/svl')
0 files changed, 0 insertions, 0 deletions
option> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sw/source/core/text/itratr.hxx
AgeCommit message (Collapse)Author
2024-12-05tdf#162750 sw: Fix layout with small caps inside ligaturesJonathan Clark
Previously, Writer was not correctly terminating layout contexts at the starts of small caps spans. This could cause incorrect character placement in certain cases. Regression since: Commit 30d376fb7ded4c96c85ad1112a0e44b5929657c9 "tdf#61444 Correct Writer text layout across formatting changes" and Commit ab0a4543cab77ae0c7c0a79feb8aebab71163dd7 "tdf#124116 Correct Writer text shaping across formatting changes" Change-Id: I863b9b66356eb0a9efb5bbdc75e80b43d56aaaf0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177839 Reviewed-by: Jonathan Clark <jonathan@libreoffice.org> Tested-by: Jenkins
2024-09-27tdf#162268 sw: ApplyParagraphMarkFormatToEmptyLineAtEndOfParagraphMichael Stahl
Commit 2b47fae7e3e23ee7c733708500cb0482ad7f8af1 introduced the compatibility setting ApplyTextAttrToEmptyLineAtEndOfParagraph, but that was probably a mistake. What Word is doing there is not applying a text attribute but applying the formatting of the paragraph marker; add a new compatibility setting ApplyParagraphMarkFormatToEmptyLineAtEndOfParagraph to do this. Change SwAttrIter to apply the RES_PARATR_LIST_AUTOFMT formatting when the position behind the last character is reached, and use it to set the height of the last line in SwLineLayout::CalcLine() in case it is empty or contains only spaces/tabs. Frustratingly this requires another change to fdo74110.docx to get rid of some odd font that's applied to the paragraph marker. Also, change SwTextFrame::IsHiddenNow() to take into account paragraph marker formatting; if all characters are hidden but the paragraph marker isn't hidden, the paragraph is still displayed in Word. Change-Id: Icccd3e822ad0301ccbe373b50431c3254f691d6e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173880 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-04-19tdf#156146 tdf#159903 sw: add unit testsMichael Stahl
Unfortunately the actual computed margins are not stored in text formatting data structures so are only available directly from SwTextMargin. Change-Id: Ia7ce5e148194a55b5d9874ed112aaa977ed16c7b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166258 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2022-10-11use more string_view in swNoel Grandin
Change-Id: Ibefb8549834ba5011286e3221f1ae276e2c0c0bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141153 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-02-26tdf#124176 Use pragma once in sw/source/core/textSuhaas Joshi
Change-Id: I2104cad267e6f704f9389b03ff3f116fca875517 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108796 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2019-05-20tdf#42949 Fix IWYU warnings in sw/source/core/*/*hxxGabor Kelemen
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Idbd13674578be9d4edce5d2a5f45df145474d86d Reviewed-on: https://gerrit.libreoffice.org/72579 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2019-02-12sw btlr writing mode: implement initial layoutMiklos Vajna
The bulk of this commit is reasonably straightforward, the interesting parts are: - SwFrame::CheckDir() is where the layout reads the doc model, i.e. sets the new SwFrame::mbVertLRBT. - We had 3 text directions previously: horizontal, vertical (implicitly RL) and vertical LR (implicitly TB). This adds a 4th text direction for the LRBT case. - SwTextFrame::SwitchHorizontalToVertical() is responsible for re-locating the origo of a string to be painted from the top left to the bottom left corner (in addition to the height/width swap that's done for all vertical directions). - Finally MapDirection() is the place where we map Writer's new btlr mode (with no character rotation) to VCL's 900 (90 degrees) rotated direction. No functional changes intended for existing text directions. Lots of places are still not yet adapted, but this is good enough to paint a single word in a table cell at the correct position with the correct direction. Change-Id: I465c62db6562d8a2be140c3d37473e590830139e Reviewed-on: https://gerrit.libreoffice.org/67740 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2018-12-18sw_redlinehide_4b: surprising discoveriesMichael Stahl
It turns out that there was a small problem in the interpretation of sw_JoinText(), or rather, its caller, SwRangeRedline::DelCopyOfSection(), which, since about OOo 3.2 and i#100466, passes in bForceJoinNext, so the result is that the first node wins always, not just for RES_BREAK/RES_PAGEDESC items. This means that pParaPropsNode and pFirstNode are the same thing really. Another little problem is that the SwAttrIter was initing the font wrongly: the relevant items are the items in the *current* node's item set on top of the item set of the paragraph style, i.e. the *first* node's style. Simple reproducer: ooo79457-1.odt Change-Id: I06ef3c1695b8f3cdbded238864a60d5eb9ce4c44
2018-11-15sw_redlinehide_3: fix SwAttrIter::SeekFwd()Michael Stahl
This never called Rst() in the loops because the m_nPosition wasn't updated. Change-Id: I5a9cf47d9fe6d92bb7fccf255acbbd22f04b7f47
2018-09-03use less magic in sw/Noel Grandin
rename the "magic" members and fields that are actually a font-cache-id, to more useful names Change-Id: Ie787b0939115c576e979c7e27a21a68c138c32f6 Reviewed-on: https://gerrit.libreoffice.org/59868 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-07-16coverity#1401328 Uncaught exceptionCaolán McNamara
Change-Id: I08c91c9c84d53f567332e5780b14173b8c8e5fb1 Reviewed-on: https://gerrit.libreoffice.org/57462 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-07-11loplugin:useuniqueptr in SwAttrIterNoel Grandin
Change-Id: I204250a02ac88cc36267b79ef1d70cd361230752 Reviewed-on: https://gerrit.libreoffice.org/57245 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-06-08sw_redlinehide: SwAttrIter direct ctor gets a SwTextFrame argMichael Stahl
... and use it in SwTextPainter::CheckSpecialUnderline() Change-Id: I904cb955f0bc8dc1f92612b47dc129922865c198
2018-06-08sw_redlinehide: remove "protected" SwAttrIter::m_pHints memberMichael Stahl
Just get it from the current node when needed; it's a trivially inlinable function call. Change-Id: Ic2ba291fb43da263300ddaedc9ae21cd86cb07ac
2018-06-08sw_redlinehide: rename it to SwAttrIter::MaybeHasHints()Michael Stahl
... because it's only used as an optimization currently, so we just use the slow-path if there is a merged paragraph. Change-Id: I8b577174e65edd0e5210971511e054fd719de96a
2018-06-08sw_redlinehide: split font/SwAttrHandler init out of CtorInitAttrIterMichael Stahl
... so we can call it again later, when the text node changes. Change-Id: I4cd2ff064b829a70652bf1861bacf365be7277a2
2018-06-08sw_redlinehide: this m_nCurrentIndexOffset is giving me headachesMichael Stahl
Just use the mapping functions in GetNextAttr(). Change-Id: I4108e62ffbefbf3b0afe03b31ff97013969ea3a3
2018-06-08sw_redlinehide: don't need SwAttrIter::m_pFirstNodeMichael Stahl
Change-Id: Icdadd3d9daa5c0031c044004032723d7108d71ab
2018-06-08sw_redlinehide: add MergedPara member to SwAttrIterMichael Stahl
Change-Id: I304c333bb6aaca8933606b662743a1642c655de5
2018-06-08sw_redlinehide: SwAttrIter::GetHints only used to check if there areMichael Stahl
hints, so replace it with something less dangerous. Change-Id: If35cf8157e6b88ee6873789847ed9c5ceea6e37e
2018-06-08sw_redlinehide: convert itratr.hxx to TextFrameIndexMichael Stahl
Change-Id: Id02fbcf5112358fb12f4069e5bedc3292ad200b1
2018-06-08sw_redlinehide: SwAttrIter::GetNextAttr() skips over delete redlinesMichael Stahl
That's a bunch of new code. Change-Id: Ibb0170bf398c5e09bce75797206710de9b9ee893
2018-06-08sw_redlinehide: add function to create merged paragraph dataMichael Stahl
Add the data to ParaPortion for now; there is one per SwTextFrame but there doesn't seem to be anything currently in the layout that exists once per SwTextNode. Change-Id: Id86f742f09e5036485690acbe6f831ba9f69c08c
2018-05-16sw_redlinehide: SwAttrIter::m_pAttrSet is used once, in the ctorMichael Stahl
Change-Id: I44705fc14f5a7013da3b6425b0e001c03f617f19 Reviewed-on: https://gerrit.libreoffice.org/54371 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2017-10-23loplugin:includeform: swStephan Bergmann
Change-Id: Ifc3c4c31a31ee7189eeab6f1af30b94d64f2f92a
2017-10-07sw: always use "" for includes in current source's directoryMike Kaganski
Change-Id: Ida715fad0c4587a9566184180bf159da12470dd7 Reviewed-on: https://gerrit.libreoffice.org/43207 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-08-04loplugin:constparams in sw part4Noel Grandin
Change-Id: Ic42b2691869b61ba906222db893e284d8b9c39c1 Reviewed-on: https://gerrit.libreoffice.org/40767 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>