odfstudio: adapt prototypes to upstream API changes

Change-Id: I4504ed441ec4ffba82e1b3ece2279854e042a99a
This commit is contained in:
2026-09-28 18:24:35 +02:00
parent 9f2c8403f2
commit 368829e5f2
2 changed files with 7 additions and 5 deletions
@@ -29,6 +29,7 @@
#if HAVE_FEATURE_ODFSTUDIO
#include <vcl/timer.hxx>
#include <vcl/weld/Label.hxx>
#endif
namespace svx::sidebar {
+6 -5
View File
@@ -27,7 +27,7 @@
#endif
#if HAVE_FEATURE_ODFSTUDIO && defined(LINUX)
#include <unx/fontmanager.hxx>
#include <unx/font/GenericFontFace.hxx>
#endif
#include <font/PhysicalFontCollection.hxx>
@@ -174,10 +174,11 @@ rtl::Reference<LogicalFontInstance> ImplFontCache::GetFontInstance( PhysicalFont
#if defined(LINUX)
OString aFontFile;
const auto nFontId = static_cast<psp::fontID>(pFontData->GetFontId());
psp::PrintFontManager& rFontManager = psp::PrintFontManager::get();
if (rFontManager.getFont(nFontId))
aFontFile = rFontManager.getFontFileSysPath(nFontId);
if (const auto* pGenericFontFace =
dynamic_cast<const GenericFontFace*>(pFontData))
{
aFontFile = pGenericFontFace->GetFontFileName();
}
#endif
SAL_INFO("odfstudio.fonts",