diff options
author | Tor Lillqvist <tml@iki.fi> | 2018-12-13 13:18:46 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2018-12-13 13:20:30 +0200 |
commit | ef9e7c83267d9bfa7f225a25fceafa1027a21a6a (patch) | |
tree | 5c834092ca662f67ca96d1fd49dc74bc12b1dee2 /include/LibreOfficeKit | |
parent | Fix typo (diff) | |
download | core-ef9e7c83267d9bfa7f225a25fceafa1027a21a6a.tar.gz core-ef9e7c83267d9bfa7f225a25fceafa1027a21a6a.zip |
Revert adding the tanslateGet() and translateNGet() API to LibreOfficeKit
Will handle it another way instead that isn't so visible and annoying.
This reverts commit 5f0dda8e9f2e35e1fdb5750089a70543478fa8a1.
This reverts commit 4f1a341bc312673b8d92e4474cc39bc3ab69aa5b.
Change-Id: If456d2792a5f2793ee6337898aaa4a55637f8522
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.h | 10 | ||||
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 29 |
2 files changed, 0 insertions, 39 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index 68074a637899..4dd23a2cbc7a 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -94,16 +94,6 @@ struct _LibreOfficeKitClass @since LibreOffice 6.0 */ int (*runMacro) (LibreOfficeKit *pThis, const char* pURL); - - /** @see lok::Office::translateGet(). - @since LibreOffice 6.3 - */ - char* (*translateGet) (LibreOfficeKit *pThis, const char* pId, const char* pPrefixName, const char* pBcp47LanguageTag); - - /** @see lok::Office::translateNGet(). - @since LibreOffice 6.3 - */ - char* (*translateNGet) (LibreOfficeKit *pThis, const char* pId, int n, const char* pPrefixName, const char* pBcp47LanguageTag); }; #define LIBREOFFICEKIT_DOCUMENT_HAS(pDoc,member) LIBREOFFICEKIT_HAS_MEMBER(LibreOfficeKitDocumentClass,member,(pDoc)->pClass->nSize) diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index 923af7136b93..5d7771cf80b0 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -791,35 +791,6 @@ public: { return mpThis->pClass->runMacro( mpThis, pURL ); } - - /** - * Fetch translation for a string. - * - * @since LibreOffice 6.3 - * @returns the translated string, if available - * @param pId the context and string, separated by a '\004' character - * @param pPrefixName the prefix passed to Translate::Create() - * @param pBcp47LanguageTag the locale into which the string should be translated - */ - char* translateGet( const char* pId, const char* pPrefixName, const char* pBcp47LanguageTag ) - { - return mpThis->pClass->translateGet( mpThis, pId, pPrefixName, pBcp47LanguageTag ); - } - - /** - * Fetch translation for a string corresponding to a specific number of something. - * - * @since LibreOffice 6.3 - * @returns the translated string, if available - * @param pId the context and string, separated by a '\004' character - * @param n the number - * @param pPrefixName the prefix passed to Translate::Create() - * @param pBcp47LanguageTag the locale into which the string should be translated - */ - char* translateNGet( const char* pId, int n, const char* pPrefixName, const char* pBcp47LanguageTag ) - { - return mpThis->pClass->translateNGet( mpThis, pId, n, pPrefixName, pBcp47LanguageTag ); - } }; /// Factory method to create a lok::Office instance. |