LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / include / vcl / IDialogRenderable.hxx
blobbb5480f1bf4fa2986cd48f32311c20007c1456c0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 */
11 #ifndef INCLUDED_VCL_IDIALOGRENDERABLE_HXX
12 #define INCLUDED_VCL_IDIALOGRENDERABLE_HXX
14 #include <config_options.h>
15 #include <vcl/dllapi.h>
17 #include <rtl/ustring.hxx>
19 #include <vector>
21 class SfxItemSet;
23 namespace vcl
26 typedef std::pair<const OString, const OString> LOKPayloadItem;
28 typedef sal_uInt32 LOKWindowId;
30 class VCL_DLLPUBLIC ILibreOfficeKitNotifier
32 public:
33 virtual ~ILibreOfficeKitNotifier();
35 /// Callbacks
36 virtual void notifyWindow(vcl::LOKWindowId nLOKWindowId,
37 const OUString& rAction,
38 const std::vector<LOKPayloadItem>& rPayload = std::vector<LOKPayloadItem>()) const = 0;
40 virtual void libreOfficeKitViewCallback(int nType, const char* pPayload) const = 0;
43 } // namespace vcl
45 #endif // INCLUDED_VCL_IDIALOGRENDERABLE_HXX
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */