/* -*- 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 .
*/
/** to be overridden if elements which are to be inserted into the container shall be checked
<p>the ElementDescription given can be used to cache information about the object - it will be passed later on to implInserted/implReplaced.</p>
*/ virtualvoid approveNewElement( const css::uno::Reference< css::beans::XPropertySet >& _rxObject,
ElementDescription* _pElement
);
/** inserts an object into our internal structures
@param _nIndex the index at which position it should be inserted @param _bEvents if <TRUE/>, event knittings will be done @param _pApprovalResult must contain the result of an approveNewElement call. Can be <NULL/>, in this case, the approval is done within implInsert. @param _bFire if <TRUE/>, a notification about the insertion will be fired @throws css::lang::IllegalArgumentException
*/ void implInsert(
sal_Int32 _nIndex, const css::uno::Reference< css::beans::XPropertySet >& _rxObject, bool _bEvents /* = sal_True */,
ElementDescription* _pApprovalResult /* = NULL */ , bool _bFire /* = sal_True */
);
// called after the object is inserted, but before the "real listeners" are notified virtualvoid implInserted( const ElementDescription* _pElement ); // called after the object is removed, but before the "real listeners" are notified virtualvoid implRemoved(const css::uno::Reference<css::uno::XInterface>& _rxObject);
/** called after an object was replaced. The default implementation notifies our listeners, after releasing the instance lock.
*/ virtualvoid impl_replacedElement( const css::container::ContainerEvent& _rEvent,
::osl::ClearableMutexGuard& _rInstanceLock
);
/** validates the given index @throws css::lang::IndexOutOfBoundsException if the given index does not denote a valid position in our children array
*/ void implCheckIndex( const sal_Int32 _nIndex );
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.