sw/source/core/access/accportions.cxx | 2 +- sw/source/core/inc/txttypes.hxx | 3 ++- sw/source/core/text/EnhancedPDFExportHelper.cxx | 2 +- sw/source/core/text/inftxt.cxx | 2 +- sw/source/core/text/txttab.cxx | 4 ++-- sw/source/core/text/xmldump.cxx | 4 ++-- 6 files changed, 9 insertions(+), 8 deletions(-)
New commits: commit 3565c3c94c6bdad5ab0913d979fd4e97547488e6 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Fri Oct 14 17:22:14 2022 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Fri Oct 14 18:08:55 2022 +0200 sw: tables have frames, not portions Went wrong in commit 60b0526ea4929ce273de499f552a4d478a973d10 (convert POR constants to scoped enum, 2019-01-17), which changed POR_TAB to PortionType::Table. Change-Id: I27131f2ab42f7c53310ee8e61b8481e07ed77da7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141379 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/core/access/accportions.cxx b/sw/source/core/access/accportions.cxx index 084498e98100..7b00b56661c2 100644 --- a/sw/source/core/access/accportions.cxx +++ b/sw/source/core/access/accportions.cxx @@ -262,7 +262,7 @@ bool SwAccessiblePortionData::IsGrayPortionType( PortionType nType ) const bGray = !m_pViewOptions->IsPagePreview() && !m_pViewOptions->IsReadonly() && SwViewOption::IsFieldShadings(); break; - case PortionType::Table: bGray = m_pViewOptions->IsTab(); break; + case PortionType::Tab: bGray = m_pViewOptions->IsTab(); break; case PortionType::SoftHyphen: bGray = m_pViewOptions->IsSoftHyph(); break; case PortionType::Blank: bGray = m_pViewOptions->IsHardBlank(); break; default: diff --git a/sw/source/core/inc/txttypes.hxx b/sw/source/core/inc/txttypes.hxx index d876b0f8e037..6b3124fb8bc6 100644 --- a/sw/source/core/inc/txttypes.hxx +++ b/sw/source/core/inc/txttypes.hxx @@ -80,7 +80,8 @@ enum class PortionType Fix = 0x06c0, Fly = 0x06c1, - Table = 0x0750, + // Tabulator, not table + Tab = 0x0750, TabRight = 0x07d0, TabCenter = 0x07d1, diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx index 29f60bdcfdb3..f193aa354cb4 100644 --- a/sw/source/core/text/EnhancedPDFExportHelper.cxx +++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx @@ -1429,7 +1429,7 @@ void SwTaggedPDFHelper::BeginInlineStructureElements() } break; - case PortionType::Table : + case PortionType::Tab : case PortionType::TabRight : case PortionType::TabCenter : case PortionType::TabDecimal : diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx index 1ca1046990a6..bdb40ac74d01 100644 --- a/sw/source/core/text/inftxt.cxx +++ b/sw/source/core/text/inftxt.cxx @@ -1344,7 +1344,7 @@ void SwTextPaintInfo::DrawViewOpt( const SwLinePortion &rPor, bDraw = true; } break; - case PortionType::Table: + case PortionType::Tab: if ( GetOpt().IsTab() ) bDraw = true; break; case PortionType::SoftHyphen: diff --git a/sw/source/core/text/txttab.cxx b/sw/source/core/text/txttab.cxx index aa0ac928833e..58555334770b 100644 --- a/sw/source/core/text/txttab.cxx +++ b/sw/source/core/text/txttab.cxx @@ -332,7 +332,7 @@ SwTabPortion::SwTabPortion( const sal_uInt16 nTabPosition, const sal_Unicode cFi { mnLineLength = TextFrameIndex(1); OSL_ENSURE(!IsFilled() || ' ' != m_cFill, "SwTabPortion::CTOR: blanks ?!"); - SetWhichPor( PortionType::Table ); + SetWhichPor( PortionType::Tab ); } bool SwTabPortion::Format( SwTextFormatInfo &rInf ) @@ -604,7 +604,7 @@ void SwTabPortion::Paint( const SwTextPaintInfo &rInf ) const { // filled tabs are shaded in gray if( IsFilled() ) - rInf.DrawViewOpt( *this, PortionType::Table ); + rInf.DrawViewOpt( *this, PortionType::Tab ); else rInf.DrawTab( *this ); } diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx index c760303bd2d3..4bb015c9111b 100644 --- a/sw/source/core/text/xmldump.cxx +++ b/sw/source/core/text/xmldump.cxx @@ -139,8 +139,8 @@ const char* sw::PortionTypeToString(PortionType nType) case PortionType::Fly: return "PortionType::Fly"; - case PortionType::Table: - return "PortionType::Table"; + case PortionType::Tab: + return "PortionType::Tab"; case PortionType::TabRight: return "PortionType::TabRight";