/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * 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/.
*/
/** * A dispatcher that serves as a proxy for style commands with arguments * i.e. .uno:StyleApply?... in order to provide useful status updates to * generic UI elements such as toolbars or menubar. It listens to special * status commands, and computes a boolean status out of them. Then it * forwards that boolean status to the listener, as if it was the status * of the original command. * * Note that the implementation is minimal: Although the UI element appears * to be the owner of the dispatcher, it's still responsible, as usual, to * call removeStatusListener same amount of times as addStatusListener, * otherwise the dispatcher might not be destructed. In addition this * implementation might hold a hard reference on the owner, and it's the * responsibility of the owner to destroy the dispatcher first, in order * to break the cycle.
*/ class StyleDispatcher final : public cppu::WeakImplHelper< css::frame::XDispatch, css::frame::XStatusListener >
{ public:
StyleDispatcher( const css::uno::Reference< css::frame::XFrame >& rFrame,
css::uno::Reference< css::util::XURLTransformer > xUrlTransformer, const css::util::URL& rURL );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.