/* -*- 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/.
*/
/// Mapped standard element blocks (for convenience). typedef mdds::mtv::double_element_block numeric_block; typedef mdds::mtv::uint16_element_block uint16_block;
} // end sc namespace
/// CAUTION! The following defines must be in the same namespace as the respective type. /// For example sc types like sc::CellTextAttr, ScFormulaCell in global namespace. namespace sc {
MDDS_MTV_DEFINE_ELEMENT_CALLBACKS(CellTextAttr, element_type_celltextattr, CellTextAttr(), celltextattr_block)
MDDS_MTV_DEFINE_ELEMENT_CALLBACKS_PTR(SparklineCell, sc::element_type_sparkline, nullptr, sc::sparkline_block)
}
/// These need to be in global namespace just like their respective types are.
MDDS_MTV_DEFINE_ELEMENT_CALLBACKS_PTR(ScPostIt, sc::element_type_cellnote, nullptr, sc::cellnote_block)
MDDS_MTV_DEFINE_ELEMENT_CALLBACKS_PTR(SvtBroadcaster, sc::element_type_broadcaster, nullptr, sc::broadcaster_block)
MDDS_MTV_DEFINE_ELEMENT_CALLBACKS_PTR(ScFormulaCell, sc::element_type_formula, nullptr, sc::formula_block)
MDDS_MTV_DEFINE_ELEMENT_CALLBACKS_PTR(EditTextObject, sc::element_type_edittext, nullptr, sc::edittext_block)
struct SparklineTraits : public mdds::mtv::default_traits
{ using block_funcs = mdds::mtv::element_block_funcs<sc::sparkline_block>;
};
struct CellNoteTraits : public mdds::mtv::default_traits
{ using event_func = CellStoreEvent; using block_funcs = mdds::mtv::element_block_funcs<sc::cellnote_block>;
};
struct BroadcasterTraits : public mdds::mtv::default_traits
{ using block_funcs = mdds::mtv::element_block_funcs<sc::broadcaster_block>;
};
struct CellTextAttrTraits : public mdds::mtv::default_traits
{ using block_funcs = mdds::mtv::element_block_funcs<sc::celltextattr_block>;
};
struct CellStoreTraits : public mdds::mtv::default_traits
{ using event_func = CellStoreEvent; using block_funcs = mdds::mtv::element_block_funcs<
numeric_block, sc::string_block, sc::edittext_block, sc::formula_block>;
};
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.