diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2021-10-22 23:28:29 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-10-23 11:37:14 +0200 |
commit | b187189318a3d49dfa049490d214faf92dce9d86 (patch) | |
tree | 03000e9f042dd6fb1544963ae5bc8e82a96a33b3 | |
parent | 4739593c39158fffd745ca6af43d41017c9cbe39 (diff) |
Fix typos
Change-Id: Iaba882b1bd000a068cfaa207c743be038d5db434
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124087
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r-- | desktop/source/lib/init.cxx | 6 | ||||
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.h | 2 | ||||
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 4 | ||||
-rw-r--r-- | include/comphelper/lok.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/lokhelper.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/viewsh.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/lokhelper.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 8 |
8 files changed, 15 insertions, 15 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 4d6a93877e6f..ba3315306464 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -1072,7 +1072,7 @@ static void doc_postKeyEvent(LibreOfficeKitDocument* pThis, int nKeyCode); static void doc_setBlockedCommandList(LibreOfficeKitDocument* pThis, int nViewId, - const char* bolckedCommandList); + const char* blockedCommandList); static void doc_postWindowExtTextInputEvent(LibreOfficeKitDocument* pThis, unsigned nWindowId, @@ -3643,10 +3643,10 @@ static void doc_postKeyEvent(LibreOfficeKitDocument* pThis, int nType, int nChar } } -static void doc_setBlockedCommandList(LibreOfficeKitDocument* /*pThis*/, int nViewId, const char* bolckedCommandList) +static void doc_setBlockedCommandList(LibreOfficeKitDocument* /*pThis*/, int nViewId, const char* blockedCommandList) { SolarMutexGuard aGuard; - SfxLokHelper::setBlockedCommandList(nViewId, bolckedCommandList); + SfxLokHelper::setBlockedCommandList(nViewId, blockedCommandList); } static void doc_postWindowExtTextInputEvent(LibreOfficeKitDocument* pThis, unsigned nWindowId, int nType, const char* pText) diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index 29ffeff44bbb..75b10017b6f6 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -461,7 +461,7 @@ struct _LibreOfficeKitDocumentClass /// @see lok::Document::setBlockedCommandList void (*setBlockedCommandList) (LibreOfficeKitDocument* pThis, int nViewId, - const char* bolckedCommandList); + const char* blockedCommandList); /// @see lok::Document::renderSearchResult bool (*renderSearchResult) (LibreOfficeKitDocument* pThis, diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index bde89ec4240c..064caae2729b 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -787,9 +787,9 @@ public: mpDoc->pClass->sendFormFieldEvent(mpDoc, pArguments); } - void setBlockedCommandList(int nViewId, const char* bolckedCommandList) + void setBlockedCommandList(int nViewId, const char* blockedCommandList) { - mpDoc->pClass->setBlockedCommandList(mpDoc, nViewId, bolckedCommandList); + mpDoc->pClass->setBlockedCommandList(mpDoc, nViewId, blockedCommandList); } /** * Render input search result to a bitmap buffer. diff --git a/include/comphelper/lok.hxx b/include/comphelper/lok.hxx index 54d461dc8cbc..66784e8e4892 100644 --- a/include/comphelper/lok.hxx +++ b/include/comphelper/lok.hxx @@ -109,7 +109,7 @@ COMPHELPER_DLLPUBLIC void statusIndicatorStart(const OUString& sText); COMPHELPER_DLLPUBLIC void statusIndicatorSetValue(int percent); COMPHELPER_DLLPUBLIC void statusIndicatorFinish(); -COMPHELPER_DLLPUBLIC void setBlockedCommandList(const char* bolckedCommandList); +COMPHELPER_DLLPUBLIC void setBlockedCommandList(const char* blockedCommandList); } #endif // INCLUDED_COMPHELPER_LOK_HXX diff --git a/include/sfx2/lokhelper.hxx b/include/sfx2/lokhelper.hxx index 9de82ce9049c..cf2c1c9c72bb 100644 --- a/include/sfx2/lokhelper.hxx +++ b/include/sfx2/lokhelper.hxx @@ -64,7 +64,7 @@ public: /// Get viewIds of views of the current DocId. static bool getViewIds(int nDocId, int* pArray, size_t nSize); /// Set View Blocked for some uno commands - static void setBlockedCommandList(int nViewId, const char* bolckedCommandList); + static void setBlockedCommandList(int nViewId, const char* blockedCommandList); /// Get the document id for a view static int getDocumentIdOfView(int nViewId); /// Get the default language that should be used for views diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx index 4dd1783fabe9..89c9cd6c0c7c 100644 --- a/include/sfx2/viewsh.hxx +++ b/include/sfx2/viewsh.hxx @@ -395,7 +395,7 @@ public: virtual tools::Rectangle getLOKVisibleArea() const { return tools::Rectangle(); } // Blocked Command view settings - void setBlockedCommandList(const char* bolckedCommandList); + void setBlockedCommandList(const char* blockedCommandList); bool isBlockedCommand(OUString command); }; diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 8210fd7faf35..35b61798c272 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -739,13 +739,13 @@ void SfxLokHelper::postKeyEventAsync(const VclPtr<vcl::Window> &xWindow, postEventAsync(pLOKEv); } -void SfxLokHelper::setBlockedCommandList(int nViewId, const char* bolckedCommandList) +void SfxLokHelper::setBlockedCommandList(int nViewId, const char* blockedCommandList) { SfxViewShell* pViewShell = SfxLokHelper::getViewOfId(nViewId); if(pViewShell) { - pViewShell->setBlockedCommandList(bolckedCommandList); + pViewShell->setBlockedCommandList(blockedCommandList); } } diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index ab03a4cc35f4..5766fb48205c 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -2076,17 +2076,17 @@ weld::Window* SfxViewShell::GetFrameWeld() const return pWindow ? pWindow->GetFrameWeld() : nullptr; } -void SfxViewShell::setBlockedCommandList(const char* bolckedCommandList) +void SfxViewShell::setBlockedCommandList(const char* blockedCommandList) { if(!mvLOKBlockedCommandList.empty()) return; - OUString BolckedListString(bolckedCommandList, strlen(bolckedCommandList), RTL_TEXTENCODING_UTF8); - OUString command = BolckedListString.getToken(0, ' '); + OUString BlockedListString(blockedCommandList, strlen(blockedCommandList), RTL_TEXTENCODING_UTF8); + OUString command = BlockedListString.getToken(0, ' '); for (size_t i = 1; !command.isEmpty(); i++) { mvLOKBlockedCommandList.emplace(command); - command = BolckedListString.getToken(i, ' '); + command = BlockedListString.getToken(i, ' '); } } |