diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2020-12-29 10:42:17 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-01-19 06:42:16 +0100 |
commit | 97dfcf4d7d5bf9249926a05d9e69720921159f43 (patch) | |
tree | 8b32fd94dc76ddb43f6e359f02de62820e40ad42 /svx | |
parent | e49dbc6c7ebae0162b6e1d7c5d0bdf3152c1814e (diff) |
vcl: remove or rename too long methods names in VectorGraphicData
Change-Id: I8a64d27927b608afdc7996e0b0bbc59a58fde90f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108443
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/core/graphichelper.cxx | 4 | ||||
-rw-r--r-- | svx/source/svdraw/svdedtv2.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdograf.cxx | 6 | ||||
-rw-r--r-- | svx/source/xoutdev/_xoutbmp.cxx | 10 |
4 files changed, 11 insertions, 11 deletions
diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx index 8485b0e0df3b..2c97da419c98 100644 --- a/svx/source/core/graphichelper.cxx +++ b/svx/source/core/graphichelper.cxx @@ -69,9 +69,9 @@ void GraphicHelper::GetPreferredExtension( OUString& rExtension, const Graphic& OUString aExtension = "png"; auto const & rVectorGraphicDataPtr(rGraphic.getVectorGraphicData()); - if (rVectorGraphicDataPtr && rVectorGraphicDataPtr->getVectorGraphicDataArrayLength()) + if (rVectorGraphicDataPtr && !rVectorGraphicDataPtr->getBinaryDataContainer().isEmpty()) { - switch (rVectorGraphicDataPtr->getVectorGraphicDataType()) + switch (rVectorGraphicDataPtr->getType()) { case VectorGraphicDataType::Wmf: aExtension = "wmf"; diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx index f688c32df82b..9dd795bb632b 100644 --- a/svx/source/svdraw/svdedtv2.cxx +++ b/svx/source/svdraw/svdedtv2.cxx @@ -2103,7 +2103,7 @@ void SdrEditView::DoImportMarkedMtf(SvdProgressInfo *pProgrInfo) Graphic aGraphic = pGraf->GetGraphic(); auto const & pVectorGraphicData = aGraphic.getVectorGraphicData(); - if (pVectorGraphicData && pVectorGraphicData->getVectorGraphicDataType() == VectorGraphicDataType::Pdf) + if (pVectorGraphicData && pVectorGraphicData->getType() == VectorGraphicDataType::Pdf) { #if HAVE_FEATURE_PDFIUM aLogicRect = pGraf->GetLogicRect(); diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index 925b714cb5ff..f56bad94ab71 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -142,7 +142,7 @@ void SdrGrafObj::onGraphicChanged() // Skip for PDF as it is only a bitmap primitive in a sequence and // doesn't contain metadata. However getting the primitive sequence // will also trigger a premature rendering of the PDF. - if (rVectorGraphicDataPtr->getVectorGraphicDataType() == VectorGraphicDataType::Pdf) + if (rVectorGraphicDataPtr->getType() == VectorGraphicDataType::Pdf) return; const drawinglayer::primitive2d::Primitive2DContainer aSequence(rVectorGraphicDataPtr->getPrimitive2DSequence()); @@ -557,7 +557,7 @@ OUString SdrGrafObj::TakeObjNameSingul() const if (rVectorGraphicDataPtr) { - switch (rVectorGraphicDataPtr->getVectorGraphicDataType()) + switch (rVectorGraphicDataPtr->getType()) { case VectorGraphicDataType::Svg: { @@ -632,7 +632,7 @@ OUString SdrGrafObj::TakeObjNamePlural() const if (rVectorGraphicDataPtr) { - switch (rVectorGraphicDataPtr->getVectorGraphicDataType()) + switch (rVectorGraphicDataPtr->getType()) { case VectorGraphicDataType::Svg: { diff --git a/svx/source/xoutdev/_xoutbmp.cxx b/svx/source/xoutdev/_xoutbmp.cxx index 6dba9e722a7d..9f53d9c22d41 100644 --- a/svx/source/xoutdev/_xoutbmp.cxx +++ b/svx/source/xoutdev/_xoutbmp.cxx @@ -129,12 +129,12 @@ ErrCode XOutBitmap::WriteGraphic( const Graphic& rGraphic, OUString& rFileName, // #i121128# use shortcut to write Vector Graphic Data data in original form (if possible) auto const & rVectorGraphicDataPtr(rGraphic.getVectorGraphicData()); - if (rVectorGraphicDataPtr && rVectorGraphicDataPtr->getVectorGraphicDataArrayLength()) + if (rVectorGraphicDataPtr && rVectorGraphicDataPtr->getBinaryDataContainer().getSize()) { - const bool bIsSvg(rFilterName.equalsIgnoreAsciiCase("svg") && VectorGraphicDataType::Svg == rVectorGraphicDataPtr->getVectorGraphicDataType()); - const bool bIsWmf(rFilterName.equalsIgnoreAsciiCase("wmf") && VectorGraphicDataType::Wmf == rVectorGraphicDataPtr->getVectorGraphicDataType()); - const bool bIsEmf(rFilterName.equalsIgnoreAsciiCase("emf") && VectorGraphicDataType::Emf == rVectorGraphicDataPtr->getVectorGraphicDataType()); - const bool bIsPdf(rFilterName.equalsIgnoreAsciiCase("pdf") && VectorGraphicDataType::Pdf == rVectorGraphicDataPtr->getVectorGraphicDataType()); + const bool bIsSvg(rFilterName.equalsIgnoreAsciiCase("svg") && VectorGraphicDataType::Svg == rVectorGraphicDataPtr->getType()); + const bool bIsWmf(rFilterName.equalsIgnoreAsciiCase("wmf") && VectorGraphicDataType::Wmf == rVectorGraphicDataPtr->getType()); + const bool bIsEmf(rFilterName.equalsIgnoreAsciiCase("emf") && VectorGraphicDataType::Emf == rVectorGraphicDataPtr->getType()); + const bool bIsPdf(rFilterName.equalsIgnoreAsciiCase("pdf") && VectorGraphicDataType::Pdf == rVectorGraphicDataPtr->getType()); if (bIsSvg || bIsWmf || bIsEmf || bIsPdf) { |