/* -*- 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 .
*/
namespace com::sun::star::sheet { class XSpreadsheetDocument; } namespace com::sun::star::table { class XCellRange; }
namespace calc
{
//= OCellListSource
class OCellListSource; // the base for our interfaces typedef ::comphelper::WeakComponentImplHelper < css::form::binding::XListEntryTypedSource
, css::util::XModifyListener
, css::lang::XServiceInfo
, css::lang::XInitialization
> OCellListSource_Base; // the base for the property handling typedef ::comphelper::OPropertyContainer2 OCellListSource_PBase; // the second base for property handling typedef ::comphelper::OPropertyArrayUsageHelper< OCellListSource >
OCellListSource_PABase;
class OCellListSource :public OCellListSource_Base // order matters! before OCellListSource_PBase, so rBHelper gets initialized
,public OCellListSource_PBase
,public OCellListSource_PABase
{ private:
css::uno::Reference< css::sheet::XSpreadsheetDocument >
m_xDocument; /// the document where our cell lives
css::uno::Reference< css::table::XCellRange >
m_xRange; /// the range of cells we're bound to
::comphelper::OInterfaceContainerHelper4<css::form::binding::XListEntryListener>
m_aListEntryListeners; /// our listeners bool m_bInitialized; /// has XInitialization::initialize been called?
/** retrieves the actual address of our cell range @precond our m_xRange is not <NULL/>
*/
css::table::CellRangeAddress
getRangeAddress( ) const;
/** retrieves the text of a cell within our range @param _nRangeRelativeRow the relative row index of the cell within our range @param pAny if not <NULL/> then the underlying data value is returned in the Any @precond our m_xRange is not <NULL/>
*/
OUString
getCellTextContent_noCheck(
std::unique_lock<std::mutex>& rGuard,
sal_Int32 _nRangeRelativeRow,
css::uno::Any* pAny
);
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.