/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_UCBHELPER_COMMANDENVIRONMENT_HXX #define INCLUDED_UCBHELPER_COMMANDENVIRONMENT_HXX #include #include #include #include namespace ucbhelper { struct CommandEnvironment_Impl; /** * This class implements the interface * css::ucb::XCommandEnvironment. Instances of this class can * be used to supply environments to commands executed by UCB contents. */ class UCBHELPER_DLLPUBLIC CommandEnvironment : public cppu::WeakImplHelper1< css::ucb::XCommandEnvironment > { std::unique_ptr m_pImpl; private: CommandEnvironment( const CommandEnvironment& ) = delete; CommandEnvironment& operator=( const CommandEnvironment& ) = delete; public: /** * Constructor. * * @param rxInteractionHandler is the implementation of an Interaction * Handler or an empty reference. * @param rxProgressHandler is the implementation of a Progress * Handler or an empty reference. */ CommandEnvironment( const css::uno::Reference< css::task::XInteractionHandler >& rxInteractionHandler, const css::uno::Reference< css::ucb::XProgressHandler >& rxProgressHandler ); /** * Destructor. */ virtual ~CommandEnvironment(); // XCommandEnvironemnt virtual css::uno::Reference< css::task::XInteractionHandler > SAL_CALL getInteractionHandler() throw ( css::uno::RuntimeException, std::exception ) override; virtual css::uno::Reference< css::ucb::XProgressHandler > SAL_CALL getProgressHandler() throw ( css::uno::RuntimeException, std::exception ) override; }; } /* namespace ucbhelper */ #endif /* ! INCLUDED_UCBHELPER_COMMANDENVIRONMENT_HXX */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ption value='distro/collabora/co-24.04.3'>distro/collabora/co-24.04.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2023-03-03 10:57:39 +0100
committerMiklos Vajna <vmiklos@collabora.com>2023-03-03 10:51:30 +0000
commit27b8c67bb154d2e09c2377a5f73621b72167a226 (patch)
treed087e56039696314e5d01ccb1409bd7b95e3990e /jvmfwk/Makefile
parent7801b5f7562a8d1660053a2745b4f6e97b555bb2 (diff)
lingucomponent: don't get locales from the server when this is disabled
Do it like LanguageToolGrammarChecker::doProofreading(), which already checked for this setting. Helps when soffice starts up in an environment without network access and also is pointless. Avoids this warning: warn:languagetool:13511:13511:lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx:508: CURL request returned with error: 28 Which looked odd, given that LT was disabled already. Change-Id: Ideb0c59ad79bdbd7d22acef22e31a43377d30ec1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148166 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins