diff options
Diffstat (limited to 'desktop/source/lib/init.cxx')
-rw-r--r-- | desktop/source/lib/init.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 15371581c818..734f76f76362 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -5702,7 +5702,10 @@ static char* doc_getCommandValues(LibreOfficeKitDocument* pThis, const char* pCo static constexpr OStringLiteral aSheetGeometryData(".uno:SheetGeometryData"); static constexpr OStringLiteral aCellCursor(".uno:CellCursor"); static constexpr OStringLiteral aFontSubset(".uno:FontSubset&name="); - static constexpr OStringLiteral aTextFormFields(".uno:TextFormFields"); + static const std::initializer_list<std::u16string_view> vForward = { + u"TextFormFields", + u"SetDocumentProperties" + }; if (!strcmp(pCommand, ".uno:LanguageStatus")) { @@ -5879,7 +5882,9 @@ static char* doc_getCommandValues(LibreOfficeKitDocument* pThis, const char* pCo { return getFontSubset(aCommand.substr(aFontSubset.getLength())); } - else if (o3tl::starts_with(aCommand, aTextFormFields)) + else if (std::find(vForward.begin(), vForward.end(), + INetURLObject(OUString::fromUtf8(aCommand)).GetURLPath()) + != vForward.end()) { ITiledRenderable* pDoc = getTiledRenderable(pThis); if (!pDoc) |