/* -*- 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_SVX_SOURCE_INC_FMEXCH_HXX #define INCLUDED_SVX_SOURCE_INC_FMEXCH_HXX
private: // don't allow this base class method to be called from outside using TransferDataContainer::StartDrag;
};
//= OLocalExchangeHelper
/// a helper for navigator windows (SvTreeListBox'es) which allow DnD within themself class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) OLocalExchangeHelper
{ protected:
rtl::Reference<OLocalExchange> m_xTransferable;
css::uno::Reference< css::form::XForms >
m_xFormsRoot; // the root of the forms collection where the entries we represent reside // this uniquely identifies the page and the document
bool m_bFocusEntry;
protected: // updates m_aCurrentFormats with all formats we currently could supply void updateFormats( );
public:
OControlTransferData( );
// ctor to construct the data from an arbitrary Transferable (usually clipboard data)
OControlTransferData( const css::uno::Reference< css::datatransfer::XTransferable >& _rxTransferable
);
/** notifies the data transfer object that a certain entry has been removed from the owning tree
In case the removed entry is part of the transfer object's selection, the entry is removed from the selection.
@param _pEntry @return the number of entries remaining in the selection.
*/
size_t onEntryRemoved(const weld::TreeView* pView, const weld::TreeIter* _pEntry);
void buildPathFormat(const weld::TreeView* pTreeBox, const weld::TreeIter* pRoot); // assembles m_aControlPaths from m_aSelectedEntries // (it is assumed that the entries are sorted in m_aSelectedEntries with respect to the neighbor relationship)
void buildListFromPath(const weld::TreeView* pTreeBox, const weld::TreeIter* pRoot); // The reverse way: throws everything out of m_aSelectedEntries and rebuilds it using m_aControlPaths
void addHiddenControlsFormat(const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >& seqInterfaces); // adds an SVX_FML_HIDDEN_CONTROLS format and remembers the passed interfaces for it // (it is NOT checked whether actually only hidden controls are denominated // by this - the caller must ensure that)
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.