/* -*- 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 .
*/
// menu ids for language status bar control enum LangMenuIDs
{
MID_LANG_SEL_1 = 1, // need to start with 1 since xPopupMenu->execute will return 0 if the menu is cancelled
MID_LANG_SEL_2,
MID_LANG_SEL_3,
MID_LANG_SEL_4,
MID_LANG_SEL_5,
MID_LANG_SEL_6,
MID_LANG_SEL_7,
MID_LANG_SEL_8,
MID_LANG_SEL_9,
MID_LANG_SEL_NONE,
MID_LANG_SEL_RESET,
MID_LANG_SEL_MORE,
MID_LANG_DEF_NONE,
MID_LANG_DEF_RESET,
MID_LANG_DEF_MORE,
//It's common for an object to want to create and own a Broadcaster and set //itself as a Listener on its own Broadcaster member.
//However, calling addListener on a Broadcaster means that the Broadcaster adds //a reference to the Listener leading to an ownership cycle where the Listener //owns the Broadcaster which "owns" the Listener.
//The WeakContainerListener allows breaking this cycle and retrofitting //afflicted implementations fairly easily.
//OriginalListener owns the Broadcaster which "owns" the WeakContainerListener //which forwards the events to the OriginalListener without taking ownership of //it. class WeakContainerListener final : public ::cppu::WeakImplHelper<css::container::XContainerListener>
{ private:
css::uno::WeakReference<css::container::XContainerListener> mxOwner;
class WeakChangesListener final : public ::cppu::WeakImplHelper<css::util::XChangesListener>
{ private:
css::uno::WeakReference<css::util::XChangesListener> mxOwner;
class WeakDocumentEventListener final : public ::cppu::WeakImplHelper<css::document::XDocumentEventListener>
{ private:
css::uno::WeakReference<css::document::XDocumentEventListener> mxOwner;
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.