/* -*- 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_SFX2_BINDINGS_HXX #define INCLUDED_SFX2_BINDINGS_HXX
namespace com::sun::star::frame { class XDispatch; } namespace com::sun::star::frame { class XDispatchProvider; } namespace com::sun::star::frame { class XDispatchRecorder; } namespace com::sun::star::frame { class XFrame; } namespace com::sun::star::util { struct URL; }
class SfxSlot; class SfxSlotServer; class SfxControllerItem; class SfxStateCache; class SfxItemSet; class SfxDispatcher; class SfxBindings_Impl; class Timer; class SfxWorkWindow; struct SfxFoundCache_Impl; class SfxFoundCacheArr_Impl; class SfxPoolItemHolder;
enumclass SfxCallMode : sal_uInt16
{
SLOT = 0x00, // sync/async from Slot
SYNCHRON = 0x01, // synchronously in the same Stackframe
ASYNCHRON = 0x02, // asynchronously via AppEvent
RECORD = 0x04, // take into account while recording
API = 0x08 // API call (silent)
};
class SFX2_DLLPUBLIC SfxBindings final : public SfxBroadcaster
/* [Description]
In each SFx application one instance of the SfxBindings-Class will exists from <SfxApplication::Init()> until <SfxApplication::Exit()>. This instance is automatically created and destroyed by SfxApplication. However these instances will be handled by the Macro <SFX_BINDINGS> or the associated <SfxViewFrame>.
The SfxBindings manages all of its Slot-Ids bound by the registered controllers and keeps a cache of the <Slot-Server> respectively. (it is what we call the combination of SfxShell instance and SfxSlot). In the SfxBindings it is stored, if and in this case which controllers that are dirty and which Slot-Server-Caches are dirty respectively. It summarizes status queries (calls to the status methods specified in the IDL) that are served by the same state methods, and handles the simulation of <Pseudo-Slots>.
*/
std::unique_ptr< SfxBindings_Impl> pImpl; // Data of the Bindings instance
SfxDispatcher* pDispatcher; // Dispatcher, to be used
sal_uInt16 nRegLevel; // Lock-Level while Reconfig
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.