odfstudio: adapt prototypes to upstream API changes
Change-Id: I4504ed441ec4ffba82e1b3ece2279854e042a99a
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
#if HAVE_FEATURE_ODFSTUDIO
|
||||
#include <vcl/timer.hxx>
|
||||
#include <vcl/weld/Label.hxx>
|
||||
#endif
|
||||
|
||||
namespace svx::sidebar {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user