diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2023-01-09 15:30:26 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-01-10 07:06:30 +0000 |
commit | 913b399a73c4d6dfd2c9f5983f56f612f3262fa7 (patch) | |
tree | e1df9f5b62d2212fc91949bbf38356572efb3e99 /sw | |
parent | 2ddd41b420cea7f1b988f0b8acbca564b2811382 (diff) |
vcl ITiledRenderable: rename supportsCommandValues() to supportsCommand()
It gets a single command (to determine if using it with
getCommandValues() is OK or not), so the plural was confusing, as
mentioned at
<https://gerrit.libreoffice.org/c/core/+/145082/5#message-802b1be9194440a3dcee0cad5e54795cbbdea584>.
Change-Id: Idf3c81aadeaeb3d42a50aba2ac58d5ed4278651f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145212
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/unotxdoc.hxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/uno/loktxdoc.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx index a7bbcb776f44..57cb3ccca589 100644 --- a/sw/inc/unotxdoc.hxx +++ b/sw/inc/unotxdoc.hxx @@ -462,8 +462,8 @@ public: /// @see vcl::ITiledRenderable::getCommandValues(). void getCommandValues(tools::JsonWriter& rJsonWriter, std::string_view rCommand) override; - /// @see vcl::ITiledRenderable::supportsCommandValues(). - bool supportsCommandValues(std::u16string_view rCommand) override; + /// @see vcl::ITiledRenderable::supportsCommand(). + bool supportsCommand(std::u16string_view rCommand) override; void Invalidate(); void Reactivate(SwDocShell* pNewDocShell); diff --git a/sw/source/uibase/uno/loktxdoc.cxx b/sw/source/uibase/uno/loktxdoc.cxx index 9c92d071e27e..2291cf3f7ab5 100644 --- a/sw/source/uibase/uno/loktxdoc.cxx +++ b/sw/source/uibase/uno/loktxdoc.cxx @@ -322,7 +322,7 @@ void GetSections(tools::JsonWriter& rJsonWriter, SwDocShell* pDocShell, } } -bool SwXTextDocument::supportsCommandValues(std::u16string_view rCommand) +bool SwXTextDocument::supportsCommand(std::u16string_view rCommand) { static const std::initializer_list<std::u16string_view> vForward = { u"TextFormFields", u"TextFormField", u"SetDocumentProperties", |