summaryrefslogtreecommitdiff
path: root/libreofficekit/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2022-08-24 15:40:16 +0300
committerTor Lillqvist <tml@collabora.com>2022-08-25 11:57:55 +0200
commitc8d974444507a96bebc1ef46869809cb8c9ce5c7 (patch)
tree0780c9e45a7efa909318c9c6245941ccd227cfdd /libreofficekit/source
parenteaf0b96ec2acdea2376413ef3a93c4c17889e23c (diff)
Tell LibreOfficeKit clients what fonts in a document are missing on the machine
Use the OutputDevice::StartTrackingFontMappingUse() and OutputDevice::FinishTrackingFontMappingUse() functionality that was added last year. Add a new LibreOfficeKit document callback: LOK_CALLBACK_FONTS_MISSING. "Font" here means just the family name. We dont really know what style from the family is missing. Change-Id: Iec4349b5827e7d1dbdde7f8a9f8da92efde429e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138802 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'libreofficekit/source')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index a092a1dbf1ab..4c5dbdd9f595 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1464,6 +1464,7 @@ callback (gpointer pData)
case LOK_COMMAND_BLOCKED:
case LOK_CALLBACK_SC_FOLLOW_JUMP:
case LOK_CALLBACK_PRINT_RANGES:
+ case LOK_CALLBACK_FONTS_MISSING:
{
// TODO: Implement me
break;