LibreOffice Module sc (master)  1
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
sc Namespace Reference

Namespaces

 datastreams
 
 op
 
 opencl
 Arguments that are actually compile-time constant string Currently, only the hash is passed.
 
 sidebar
 
 tools
 

Classes

class  AggregateFunction
 
class  AlignedAllocator
 Custom allocator for STL container to ensure that the base address of allocated storage is aligned to a specified boundary. More...
 
struct  AreaListener
 
struct  ArraySumFunctor
 
class  AutoCalcSwitch
 Temporarily switch on/off auto calculation mode. More...
 
class  BulkDataHint
 
class  CellStoreEvent
 
struct  CellTextAttr
 
class  CellValues
 Think of this as a mini-ScColumn like storage that only stores cell values in a column. More...
 
struct  CellValuesImpl
 
struct  CellValueSpan
 
class  ClipContextBase
 
class  ColRowReorderMapType
 
struct  ColRowSpan
 
struct  ColumnBlockConstPosition
 
struct  ColumnBlockPosition
 Store position data for column array storage. More...
 
class  ColumnBlockPositionSet
 
class  ColumnIterator
 This iterator lets you iterate over cells over specified range in a single column. More...
 
class  ColumnRemoveTransformation
 
class  ColumnSet
 Simple container to keep track of sheet - column pair. More...
 
class  ColumnSpanSet
 Structure that stores segments of boolean flags per column, and perform custom action on those segments. More...
 
struct  Compare
 
struct  CompareOptions
 
class  CompiledFormula
 Abstract base class for a "compiled" formula. More...
 
class  CompileFormulaContext
 
class  CopyFromClipContext
 
class  CopyToClipContext
 
class  CopyToDocContext
 
class  CSVDataProvider
 
class  CSVFetchThread
 
class  DataProvider
 Abstract class for all data provider. More...
 
class  DataProviderFactory
 
class  DataStream
 
class  DataStreamDlg
 
class  DataTransformation
 
class  DateTimeTransformation
 
class  DelayFormulaGroupingSwitch
 Wrapper for ScDocument::DelayFormulaGrouping() More...
 
class  DelayStartListeningFormulaCells
 Wrapper for ScDocument::EnableDelayStartListeningFormulaCells() More...
 
class  DocFuncUtil
 
class  DocumentLinkManager
 
struct  DocumentLinkManagerImpl
 
class  DocumentStreamAccess
 Provides methods to allow direct shifting of document content without broadcasting or shifting of broadcaster positions. More...
 
struct  DocumentStreamAccessImpl
 
class  EditTextIterator
 Iterate through all edit text cells in a given sheet. More...
 
class  EndListeningContext
 
class  ExpandRefsSwitch
 
class  ExternalDataMapper
 
class  ExternalDataSource
 
class  FormulaGroupAreaListener
 
struct  FormulaGroupContext
 
struct  FormulaGroupEntry
 
class  FormulaGroupInterpreter
 Abstract base class for vectorised formula group interpreters, plus a global instance factory. More...
 
class  FormulaLogger
 Dummy class with all empty inline methods. More...
 
struct  FormulaResultValue
 
struct  FuncElseNoOp
 
class  HTMLDataProvider
 
class  HTMLFetchThread
 
class  IdleSwitch
 
struct  ImportPostProcessData
 Stores data imported from the file that need to be processed at the end of the import process. More...
 
class  MergeColumnTransformation
 
class  MixDocContext
 
struct  MultiDataCellState
 
struct  NoteEntry
 
class  NumberTransformation
 
class  NumFmtUtil
 
struct  ParamIfsResult
 
class  PivotTableDataProvider
 
class  PivotTableDataSequence
 
class  PivotTableDataSource
 
struct  PivotTableSources
 Store pivot table data that need to be post-processed at the end of the import. More...
 
class  PrintPageRanges
 
struct  PrintPageRangesInput
 
class  PurgeListenerAction
 
class  QueryRange
 
class  RangeColumnSpanSet
 Optimized ColumnSpanSet version that operates on a single ScRange. More...
 
struct  RangeMatrix
 
class  RefColReorderHint
 
class  RefHint
 
class  RefQueryFormulaGroup
 Used to collect positions of formula cells that belong to a formula group. More...
 
class  RefRowReorderHint
 
class  RefStartListeningHint
 
class  RefStopListeningHint
 
struct  RefUpdateContext
 Context for reference update during shifting, moving or copying of cell ranges. More...
 
struct  RefUpdateDeleteTabContext
 
struct  RefUpdateInsertTabContext
 
struct  RefUpdateMoveTabContext
 
struct  RefUpdateResult
 
struct  ReorderParam
 
class  ReplaceNullTransformation
 
class  RowHeightContext
 
struct  RowSpan
 
class  ScDBDataManager
 This class handles the copying of the data from the imported temporary document to the actual document. More...
 
class  ScNumberFormatControl
 
class  SearchResultsDlg
 
class  SearchResultsDlgWrapper
 
struct  SetFormulaDirtyContext
 
class  SharedFormulaGroupEntry
 
class  SharedFormulaGroups
 
class  SharedFormulaUtil
 
class  SingleColumnSpanSet
 Keep track of spans in a single column only. More...
 
class  SortTransformation
 
class  SpellCheckContext
 Class shared between grid windows to cache spelling results. More...
 
class  SplitColumnTransformation
 
class  SQLDataProvider
 
class  SQLFetchThread
 
class  StartListeningContext
 
class  TableColumnBlockPositionSet
 Set of column block positions only for one table. More...
 
class  TablePivotChart
 
class  TablePivotCharts
 
class  TableValues
 Stores cell values for multiple tables. More...
 
class  TextTransformation
 
struct  TokenStringContext
 Context for creating string from an array of formula tokens, used in ScTokenArray::CreateString(). More...
 
class  UndoFormulaToValue
 
class  UndoSetCells
 
class  UndoSort
 
class  UndoSwitch
 
class  UpdatedRangeNames
 Keep track of all named expressions that have been updated during reference update. More...
 
struct  ValueAndFormat
 
class  XMLDataProvider
 
class  XMLFetchThread
 

Typedefs

typedef std::vector< std::unique_ptr< CellValues > > TableType
 
typedef std::vector< std::unique_ptr< TableType > > TablesType
 
typedef std::map< OUString, BitmapExIconSetBitmapMap
 
typedef mdds::mtv::noncopyable_managed_element_block< element_type_cellnote, ScPostItcellnote_block
 Custom element blocks. More...
 
typedef mdds::mtv::noncopyable_managed_element_block< element_type_broadcaster, SvtBroadcasterbroadcaster_block
 
typedef mdds::mtv::default_element_block< element_type_celltextattr, CellTextAttrcelltextattr_block
 
typedef mdds::mtv::default_element_block< element_type_string, svl::SharedStringstring_block
 
typedef mdds::mtv::noncopyable_managed_element_block< element_type_edittext, EditTextObjectedittext_block
 
typedef mdds::mtv::noncopyable_managed_element_block< element_type_formula, ScFormulaCellformula_block
 
typedef mdds::mtv::double_element_block numeric_block
 Mapped standard element blocks (for convenience). More...
 
typedef mdds::mtv::uint16_element_block uint16_block
 
typedef mdds::mtv::custom_block_func1< sc::cellnote_blockCNoteFunc
 Cell note container. More...
 
typedef mdds::multi_type_vector< CNoteFuncCellNoteStoreType
 
typedef mdds::mtv::custom_block_func1< sc::broadcaster_blockBCBlkFunc
 Broadcaster storage container. More...
 
typedef mdds::multi_type_vector< BCBlkFuncBroadcasterStoreType
 
typedef mdds::mtv::custom_block_func1< sc::celltextattr_blockCTAttrFunc
 Cell text attribute container. More...
 
typedef mdds::multi_type_vector< CTAttrFuncCellTextAttrStoreType
 
typedef mdds::mtv::custom_block_func3< sc::string_block, sc::edittext_block, sc::formula_blockCellFunc
 Cell container. More...
 
typedef mdds::multi_type_vector< CellFunc, CellStoreEventCellStoreType
 
typedef cppu::WeakImplHelper< css::chart2::data::XDataProvider, css::chart2::data::XPivotTableDataProvider, css::beans::XPropertySet, css::lang::XServiceInfo, css::util::XModifyBroadcaster > PivotTableDataProvider_Base
 
typedef cppu::WeakImplHelper< css::chart2::data::XDataSequence, css::chart2::data::XTextualDataSequence, css::chart2::data::XNumericalDataSequence, css::util::XCloneable, css::util::XModifyBroadcaster, css::beans::XPropertySet, css::lang::XServiceInfo > PivotTableDataSequence_Base
 
typedef cppu::WeakImplHelper< css::chart2::data::XDataSource, css::lang::XServiceInfo > PivotTableDataSource_Base
 
typedef cppu::WeakComponentImplHelper< css::table::XTablePivotChart, css::document::XEmbeddedObjectSupplier, css::container::XNamed, css::lang::XServiceInfo > TablePivotChart_Base
 
typedef cppu::WeakImplHelper< css::table::XTablePivotCharts, css::container::XIndexAccess, css::lang::XServiceInfo > TablePivotCharts_Base
 

Enumerations

enum  TransformationType {
  TransformationType::MERGE_TRANSFORMATION,
  TransformationType::SPLIT_TRANSFORMATION,
  TransformationType::DELETE_TRANSFORMATION,
  TransformationType::SORT_TRANSFORMATION,
  TransformationType::TEXT_TRANSFORMATION,
  TransformationType::AGGREGATE_FUNCTION,
  TransformationType::NUMBER_TRANSFORMATION,
  TransformationType::REMOVE_NULL_TRANSFORMATION,
  TransformationType::DATETIME_TRANSFORMATION
}
 
enum  TEXT_TRANSFORM_TYPE {
  TEXT_TRANSFORM_TYPE::TO_LOWER,
  TEXT_TRANSFORM_TYPE::TO_UPPER,
  TEXT_TRANSFORM_TYPE::CAPITALIZE,
  TEXT_TRANSFORM_TYPE::TRIM
}
 
enum  AGGREGATE_FUNCTION {
  AGGREGATE_FUNCTION::SUM,
  AGGREGATE_FUNCTION::AVERAGE,
  AGGREGATE_FUNCTION::MIN,
  AGGREGATE_FUNCTION::MAX
}
 
enum  NUMBER_TRANSFORM_TYPE {
  NUMBER_TRANSFORM_TYPE::ROUND,
  NUMBER_TRANSFORM_TYPE::ROUND_UP,
  NUMBER_TRANSFORM_TYPE::ROUND_DOWN,
  NUMBER_TRANSFORM_TYPE::ABSOLUTE,
  NUMBER_TRANSFORM_TYPE::LOG_E,
  NUMBER_TRANSFORM_TYPE::LOG_10,
  NUMBER_TRANSFORM_TYPE::CUBE,
  NUMBER_TRANSFORM_TYPE::SQUARE,
  NUMBER_TRANSFORM_TYPE::SQUARE_ROOT,
  NUMBER_TRANSFORM_TYPE::EXPONENT,
  NUMBER_TRANSFORM_TYPE::IS_EVEN,
  NUMBER_TRANSFORM_TYPE::IS_ODD,
  NUMBER_TRANSFORM_TYPE::SIGN
}
 
enum  DATETIME_TRANSFORMATION_TYPE {
  DATETIME_TRANSFORMATION_TYPE::DATE_STRING,
  DATETIME_TRANSFORMATION_TYPE::YEAR,
  DATETIME_TRANSFORMATION_TYPE::START_OF_YEAR,
  DATETIME_TRANSFORMATION_TYPE::END_OF_YEAR,
  DATETIME_TRANSFORMATION_TYPE::MONTH,
  DATETIME_TRANSFORMATION_TYPE::MONTH_NAME,
  DATETIME_TRANSFORMATION_TYPE::START_OF_MONTH,
  DATETIME_TRANSFORMATION_TYPE::END_OF_MONTH,
  DATETIME_TRANSFORMATION_TYPE::DAY,
  DATETIME_TRANSFORMATION_TYPE::DAY_OF_WEEK,
  DATETIME_TRANSFORMATION_TYPE::DAY_OF_YEAR,
  DATETIME_TRANSFORMATION_TYPE::QUARTER,
  DATETIME_TRANSFORMATION_TYPE::START_OF_QUARTER,
  DATETIME_TRANSFORMATION_TYPE::END_OF_QUARTER,
  DATETIME_TRANSFORMATION_TYPE::TIME,
  DATETIME_TRANSFORMATION_TYPE::HOUR,
  DATETIME_TRANSFORMATION_TYPE::MINUTE,
  DATETIME_TRANSFORMATION_TYPE::SECOND
}
 
enum  DebugTime {
  DebugTime::Import,
  DebugTime::Recalc,
  DebugTime::Render,
  DebugTime::LAST = Render
}
 
enum  ColRowEditAction {
  ColRowEditAction::Unknown,
  ColRowEditAction::InsertColumnsBefore,
  ColRowEditAction::InsertColumnsAfter,
  ColRowEditAction::InsertRowsBefore,
  ColRowEditAction::InsertRowsAfter,
  ColRowEditAction::DeleteColumns,
  ColRowEditAction::DeleteRows
}
 
enum  ValueType {
  ValueType::Empty,
  ValueType::String,
  ValueType::Numeric
}
 
enum  MatrixEdge {
  MatrixEdge::Nothing = 0,
  MatrixEdge::Inside = 1,
  MatrixEdge::Bottom = 2,
  MatrixEdge::Left = 4,
  MatrixEdge::Top = 8,
  MatrixEdge::Right = 16,
  MatrixEdge::Open = 32
}
 
enum  GroupCalcState {
  GroupCalcDisabled = 0,
  GroupCalcEnabled,
  GroupCalcRunning
}
 
enum  AreaOverlapType {
  AreaOverlapType::Inside,
  AreaOverlapType::InsideOrOverlap,
  AreaOverlapType::OneRowInside,
  AreaOverlapType::OneColumnInside
}
 
enum  ListenerGroupType {
  ListenerGroupType::Group,
  ListenerGroupType::Both
}
 
enum  StartListeningType {
  ConvertToGroupListening,
  SingleCellListening,
  NoListening
}
 

Functions

CellStoreType::iterator ProcessFormula (const CellStoreType::iterator &it, CellStoreType &rStore, SCROW nRow1, SCROW nRow2, std::function< void(size_t, ScFormulaCell *)> aFuncElem)
 Process formula cells found within specified row range. More...
 
ScRefCellValue toRefCell (const sc::CellStoreType::const_iterator &itPos, size_t nOffset)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const ParamIfsResult &rRes)
 
double CompareFunc (const Compare &rComp, CompareOptions *pOptions)
 
double CompareFunc (const Compare::Cell &rCell1, double fCell2, const CompareOptions *pOptions)
 
double CompareFunc (double fCell1, double fCell2)
 
double CompareEmptyToNumericFunc (double fCell2)
 Left cell is empty while the right cell is numeric. More...
 
static double err_pow (const double &fVal1, const double &fVal2)
 
double power (const double &fVal1, const double &fVal2)
 Return pow(fVal1,fVal2) with error handling. More...
 
 IMPL_LINK (SearchResultsDlg, HeaderBarClick, int, nColumn, void)
 
 IMPL_LINK_NOARG (SearchResultsDlg, ListSelectHdl, weld::TreeView &, void)
 
 IMPL_STATIC_LINK (SearchResultsDlg, OnShowToggled, weld::ToggleButton &, rButton, void)
 
 SFX_IMPL_CHILDWINDOW_WITHID (SearchResultsDlgWrapper, SID_SEARCH_RESULTS_DIALOG)
 
double datastream_get_time (DebugTime nIdx)
 
 IMPL_LINK_NOARG (DataStream, ImportTimerHdl, Timer *, void)
 
 IMPL_LINK_NOARG (DataStreamDlg, BrowseHdl, weld::Button &, void)
 
 IMPL_LINK_NOARG (DataStreamDlg, UpdateClickHdl, weld::ToggleButton &, void)
 
 IMPL_LINK_NOARG (DataStreamDlg, UpdateComboBoxHdl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (DataStreamDlg, UpdateHdl, weld::Entry &, void)
 
static const SfxItemPropertyMapEntrylcl_GetDataSequencePropertyMap ()
 
template<typename Key , typename Span >
void buildSpan (std::vector< Span > &rSpans, typename mdds::flat_segment_tree< Key, bool >::const_iterator it, typename mdds::flat_segment_tree< Key, bool >::const_iterator itEnd, const Key *pStart)
 
template<typename Key , typename Val , typename Span >
void buildSpanWithValue (std::vector< Span > &rSpans, typename mdds::flat_segment_tree< Key, Val >::const_iterator it, typename mdds::flat_segment_tree< Key, Val >::const_iterator itEnd)
 
template<typename Key , typename Span >
std::vector< Span > toSpanArray (const mdds::flat_segment_tree< Key, bool > &rTree)
 Convert a flat_segment_tree structure whose value type is boolean, into an array of ranges that corresponds with the segments that have a 'true' value. More...
 
template<typename Key , typename Val , typename Span >
std::vector< Span > toSpanArrayWithValue (const mdds::flat_segment_tree< Key, Val > &rTree)
 Convert a flat_segment_tree structure into an array of ranges with values. More...
 
template<typename Key , typename Span >
std::vector< Span > toSpanArray (const mdds::flat_segment_tree< Key, bool > &rTree, Key nStartPos)
 
inline::tools::Long TwipsToHMM (::tools::Long nTwips)
 
inline::tools::Long HMMToTwips (::tools::Long nHMM)
 
inline::tools::Long TwipsToEvenHMM (::tools::Long nTwips)
 
double div (const double &fNumerator, const double &fDenominator)
 Return fNumerator/fDenominator if fDenominator!=0 else #DIV/0! error coded into double. More...
 
double divide (const double &fNumerator, const double &fDenominator)
 Return fNumerator/fDenominator if fDenominator!=0 else +-Infinity if fNumerator!=0 or NaN if fNumerator==0. More...
 
template<typename Func >
void ProcessFormula (CellStoreType &rStore, Func &rFunc)
 
template<typename FuncElem >
CellStoreType::iterator ProcessFormula (const CellStoreType::iterator &it, CellStoreType &rStore, SCROW nRow1, SCROW nRow2, FuncElem &rFuncElem)
 
template<typename FuncElem , typename FuncElse >
CellStoreType::iterator ProcessFormula (const CellStoreType::iterator &it, CellStoreType &rStore, SCROW nRow1, SCROW nRow2, FuncElem &rFuncElem, FuncElse &rFuncElse)
 
template<typename Func >
CellStoreType::iterator ProcessEditText (const CellStoreType::iterator &itPos, CellStoreType &rStore, SCROW nRow1, SCROW nRow2, Func &rFunc)
 
template<typename Func >
void ParseFormula (const CellStoreType &rStore, Func &rFunc)
 
template<typename Func >
CellStoreType::const_iterator ParseFormula (const CellStoreType::const_iterator &itPos, const CellStoreType &rStore, SCROW nStart, SCROW nEnd, Func &rFunc)
 
template<typename FuncElem , typename FuncElse >
CellStoreType::const_iterator ParseAll (const typename CellStoreType::const_iterator &itPos, const CellStoreType &rCells, SCROW nRow1, SCROW nRow2, FuncElem &rFuncElem, FuncElse &rFuncElse)
 
template<typename Func >
CellStoreType::const_iterator ParseAllNonEmpty (const typename CellStoreType::const_iterator &itPos, const CellStoreType &rCells, SCROW nRow1, SCROW nRow2, Func &rFunc)
 
template<typename Func >
CellStoreType::const_iterator ParseFormulaNumeric (const CellStoreType::const_iterator &itPos, const CellStoreType &rCells, SCROW nRow1, SCROW nRow2, Func &rFunc)
 
template<typename Func >
void ProcessFormulaEditText (CellStoreType &rStore, Func &rFunc)
 
template<typename Func >
std::pair< CellStoreType::const_iterator, size_t > FindFormula (const CellStoreType &rStore, SCROW nRow1, SCROW nRow2, Func &rFunc)
 
template<typename Func >
std::pair< CellStoreType::const_iterator, size_t > FindFormulaEditText (const CellStoreType &rStore, SCROW nRow1, SCROW nRow2, Func &rFunc)
 
template<typename Func >
void ProcessNote (CellNoteStoreType &rStore, Func &rFunc)
 
template<typename Func >
CellNoteStoreType::const_iterator ParseNote (const CellNoteStoreType::const_iterator &itPos, const CellNoteStoreType &rStore, SCROW nStart, SCROW nEnd, Func &rFunc)
 
template<typename FuncElem >
CellNoteStoreType::iterator ProcessNote (const CellNoteStoreType::iterator &it, CellNoteStoreType &rStore, SCROW nRow1, SCROW nRow2, FuncElem &rFuncElem)
 
template<typename FuncElem >
BroadcasterStoreType::iterator ProcessBroadcaster (const BroadcasterStoreType::iterator &it, BroadcasterStoreType &rStore, SCROW nRow1, SCROW nRow2, FuncElem &rFuncElem)
 
template<typename StoreT , typename Func >
StoreT::const_iterator ParseBlock (const typename StoreT::const_iterator &itPos, const StoreT &rStore, Func &rFunc, typename StoreT::size_type nStart, typename StoreT::size_type nEnd)
 Generic algorithm to parse blocks of multi_type_vector either partially or fully. More...
 
template<typename StoreT , typename Func >
StoreT::iterator ProcessBlock (const typename StoreT::iterator &itPos, StoreT &rStore, Func &rFunc, typename StoreT::size_type nStart, typename StoreT::size_type nEnd)
 Non-const variant of the above function. More...
 
template<typename BlkT , typename ItrT , typename NodeT , typename FuncElem >
void EachElem (NodeT &rNode, size_t nOffset, size_t nDataSize, FuncElem &rFuncElem)
 
template<typename BlkT , typename ItrT , typename NodeT , typename FuncElem >
void EachElem (NodeT &rNode, FuncElem &rFuncElem)
 
template<typename BlkT , typename ItrT , typename NodeT , typename FuncElem >
void EachElemReverse (NodeT &rNode, FuncElem &rFuncElem)
 
template<typename BlkT , typename StoreT , typename FuncElem >
std::pair< typename StoreT::const_iterator, size_t > CheckElem (const StoreT &rStore, const typename StoreT::const_iterator &it, size_t nOffset, size_t nDataSize, FuncElem &rFuncElem)
 
template<typename StoreT , typename BlkT , typename FuncElem , typename FuncElse >
void ParseElements1 (const StoreT &rStore, FuncElem &rFuncElem, FuncElse &rFuncElse)
 
template<typename StoreT , typename BlkT , typename FuncElem , typename FuncElse >
StoreT::const_iterator ParseElements1 (const typename StoreT::const_iterator &itPos, const StoreT &rStore, typename StoreT::size_type nStart, typename StoreT::size_type nEnd, FuncElem &rFuncElem, FuncElse &rFuncElse)
 
template<typename StoreT , typename Blk1 , typename Blk2 , typename FuncElem , typename FuncElse >
StoreT::const_iterator ParseElements2 (const typename StoreT::const_iterator &itPos, const StoreT &rStore, typename StoreT::size_type nStart, typename StoreT::size_type nEnd, FuncElem &rFuncElem, FuncElse &rFuncElse)
 
template<typename StoreT , typename Blk1 , typename Blk2 , typename Blk3 , typename Blk4 , typename FuncElem , typename FuncElse >
StoreT::const_iterator ParseElements4 (const typename StoreT::const_iterator &itPos, const StoreT &rStore, typename StoreT::size_type nStart, typename StoreT::size_type nEnd, FuncElem &rFuncElem, FuncElse &rFuncElse)
 
template<typename StoreT , typename BlkT , typename FuncElem , typename FuncElse >
void ProcessElements1 (StoreT &rStore, FuncElem &rFuncElem, FuncElse &rFuncElse)
 
template<typename StoreT , typename BlkT , typename FuncElem , typename FuncElse >
StoreT::iterator ProcessElements1 (const typename StoreT::iterator &itPos, StoreT &rStore, typename StoreT::size_type nStart, typename StoreT::size_type nEnd, FuncElem &rFuncElem, FuncElse &rFuncElse)
 This variant specifies start and end positions. More...
 
template<typename StoreT , typename Blk1 , typename Blk2 , typename FuncElem , typename FuncElse >
void ProcessElements2 (StoreT &rStore, FuncElem &rFuncElem, FuncElse &rFuncElse)
 
template<typename StoreT , typename Blk1 , typename Blk2 , typename FuncElem , typename FuncElse >
void ProcessElements2Reverse (StoreT &rStore, FuncElem &rFuncElem, FuncElse &rFuncElse)
 
template<typename StoreT , typename Blk1 , typename FuncElem , typename FuncElse >
std::pair< typename StoreT::const_iterator, typename StoreT::size_type > FindElement1 (const StoreT &rStore, typename StoreT::size_type nStart, typename StoreT::size_type nEnd, FuncElem &rFuncElem, FuncElse &rFuncElse)
 
template<typename StoreT , typename Blk1 , typename Blk2 , typename FuncElem , typename FuncElse >
std::pair< typename StoreT::const_iterator, typename StoreT::size_type > FindElement2 (const StoreT &rStore, typename StoreT::size_type nStart, typename StoreT::size_type nEnd, FuncElem &rFuncElem, FuncElse &rFuncElse)
 

Variables

static o3tl::enumarray< DebugTime, double > fTimes { 0.0, 0.0, 0.0 }
 
const mdds::mtv::element_t element_type_broadcaster = mdds::mtv::element_type_user_start
 Custom element type IDs for multi_type_vector. More...
 
const mdds::mtv::element_t element_type_celltextattr = mdds::mtv::element_type_user_start + 1
 
const mdds::mtv::element_t element_type_string = mdds::mtv::element_type_user_start + 2
 
const mdds::mtv::element_t element_type_edittext = mdds::mtv::element_type_user_start + 3
 
const mdds::mtv::element_t element_type_formula = mdds::mtv::element_type_user_start + 4
 
const mdds::mtv::element_t element_type_cellnote = mdds::mtv::element_type_user_start + 5
 
const mdds::mtv::element_t element_type_numeric = mdds::mtv::element_type_double
 Mapped standard element types (for convenience). More...
 
const mdds::mtv::element_t element_type_empty = mdds::mtv::element_type_empty
 
const mdds::mtv::element_t element_type_uint16 = mdds::mtv::element_type_uint16
 

Typedef Documentation

typedef mdds::mtv::custom_block_func1<sc::broadcaster_block> sc::BCBlkFunc

Broadcaster storage container.

Definition at line 106 of file mtvelements.hxx.

typedef mdds::mtv::noncopyable_managed_element_block<element_type_broadcaster, SvtBroadcaster> sc::broadcaster_block

Definition at line 62 of file mtvelements.hxx.

typedef mdds::multi_type_vector<BCBlkFunc> sc::BroadcasterStoreType

Definition at line 107 of file mtvelements.hxx.

typedef mdds::mtv::custom_block_func3<sc::string_block, sc::edittext_block, sc::formula_block> sc::CellFunc

Cell container.

Definition at line 114 of file mtvelements.hxx.

typedef mdds::mtv::noncopyable_managed_element_block<element_type_cellnote, ScPostIt> sc::cellnote_block

Custom element blocks.

Definition at line 61 of file mtvelements.hxx.

typedef mdds::multi_type_vector<CNoteFunc> sc::CellNoteStoreType

Definition at line 103 of file mtvelements.hxx.

typedef mdds::multi_type_vector<CellFunc, CellStoreEvent> sc::CellStoreType

Definition at line 115 of file mtvelements.hxx.

typedef mdds::mtv::default_element_block<element_type_celltextattr, CellTextAttr> sc::celltextattr_block

Definition at line 63 of file mtvelements.hxx.

typedef mdds::multi_type_vector<CTAttrFunc> sc::CellTextAttrStoreType

Definition at line 111 of file mtvelements.hxx.

typedef mdds::mtv::custom_block_func1<sc::cellnote_block> sc::CNoteFunc

Cell note container.

Definition at line 102 of file mtvelements.hxx.

typedef mdds::mtv::custom_block_func1<sc::celltextattr_block> sc::CTAttrFunc

Cell text attribute container.

Definition at line 110 of file mtvelements.hxx.

typedef mdds::mtv::noncopyable_managed_element_block<element_type_edittext, EditTextObject> sc::edittext_block

Definition at line 65 of file mtvelements.hxx.

typedef mdds::mtv::noncopyable_managed_element_block<element_type_formula, ScFormulaCell> sc::formula_block

Definition at line 66 of file mtvelements.hxx.

Definition at line 207 of file document.hxx.

typedef mdds::mtv::double_element_block sc::numeric_block

Mapped standard element blocks (for convenience).

Definition at line 69 of file mtvelements.hxx.

typedef cppu::WeakImplHelper<css::chart2::data::XDataProvider, css::chart2::data::XPivotTableDataProvider, css::beans::XPropertySet, css::lang::XServiceInfo, css::util::XModifyBroadcaster> sc::PivotTableDataProvider_Base

Definition at line 38 of file PivotTableDataProvider.hxx.

typedef cppu::WeakImplHelper<css::chart2::data::XDataSequence, css::chart2::data::XTextualDataSequence, css::chart2::data::XNumericalDataSequence, css::util::XCloneable, css::util::XModifyBroadcaster, css::beans::XPropertySet, css::lang::XServiceInfo> sc::PivotTableDataSequence_Base

Definition at line 80 of file PivotTableDataSequence.hxx.

typedef cppu::WeakImplHelper<css::chart2::data::XDataSource, css::lang::XServiceInfo> sc::PivotTableDataSource_Base

Definition at line 27 of file PivotTableDataSource.hxx.

typedef mdds::mtv::default_element_block<element_type_string, svl::SharedString> sc::string_block

Definition at line 64 of file mtvelements.hxx.

typedef cppu::WeakComponentImplHelper<css::table::XTablePivotChart, css::document::XEmbeddedObjectSupplier, css::container::XNamed, css::lang::XServiceInfo> sc::TablePivotChart_Base

Definition at line 33 of file TablePivotChart.hxx.

typedef cppu::WeakImplHelper<css::table::XTablePivotCharts, css::container::XIndexAccess, css::lang::XServiceInfo> sc::TablePivotCharts_Base

Definition at line 29 of file TablePivotCharts.hxx.

typedef std::vector<std::unique_ptr<TableType> > sc::TablesType

Definition at line 267 of file cellvalues.cxx.

typedef std::vector<std::unique_ptr<CellValues> > sc::TableType

Definition at line 266 of file cellvalues.cxx.

typedef mdds::mtv::uint16_element_block sc::uint16_block

Definition at line 70 of file mtvelements.hxx.

Enumeration Type Documentation

Enumerator
SUM 
AVERAGE 
MIN 
MAX 

Definition at line 39 of file datatransformation.hxx.

enum sc::AreaOverlapType
strong
Enumerator
Inside 
InsideOrOverlap 
OneRowInside 
OneColumnInside 

Definition at line 110 of file types.hxx.

enum sc::ColRowEditAction
strong
Enumerator
Unknown 
InsertColumnsBefore 
InsertColumnsAfter 
InsertRowsBefore 
InsertRowsAfter 
DeleteColumns 
DeleteRows 

Definition at line 436 of file global.hxx.

Enumerator
DATE_STRING 
YEAR 
START_OF_YEAR 
END_OF_YEAR 
MONTH 
MONTH_NAME 
START_OF_MONTH 
END_OF_MONTH 
DAY 
DAY_OF_WEEK 
DAY_OF_YEAR 
QUARTER 
START_OF_QUARTER 
END_OF_QUARTER 
TIME 
HOUR 
MINUTE 
SECOND 

Definition at line 44 of file datatransformation.hxx.

enum sc::DebugTime
strong
Enumerator
Import 
Recalc 
Render 
LAST 

Definition at line 27 of file datastreamgettime.hxx.

Enumerator
GroupCalcDisabled 
GroupCalcEnabled 
GroupCalcRunning 

Definition at line 76 of file types.hxx.

enum sc::ListenerGroupType
strong
Enumerator
Group 
Both 

Definition at line 118 of file types.hxx.

enum sc::MatrixEdge
strong
Enumerator
Nothing 
Inside 
Bottom 
Left 
Top 
Right 
Open 

Definition at line 66 of file types.hxx.

Enumerator
ROUND 
ROUND_UP 
ROUND_DOWN 
ABSOLUTE 
LOG_E 
LOG_10 
CUBE 
SQUARE 
SQUARE_ROOT 
EXPONENT 
IS_EVEN 
IS_ODD 
SIGN 

Definition at line 41 of file datatransformation.hxx.

Enumerator
ConvertToGroupListening 
SingleCellListening 
NoListening 

Definition at line 124 of file types.hxx.

Enumerator
TO_LOWER 
TO_UPPER 
CAPITALIZE 
TRIM 

Definition at line 37 of file datatransformation.hxx.

Enumerator
MERGE_TRANSFORMATION 
SPLIT_TRANSFORMATION 
DELETE_TRANSFORMATION 
SORT_TRANSFORMATION 
TEXT_TRANSFORMATION 
AGGREGATE_FUNCTION 
NUMBER_TRANSFORMATION 
REMOVE_NULL_TRANSFORMATION 
DATETIME_TRANSFORMATION 

Definition at line 24 of file datatransformation.hxx.

enum sc::ValueType
strong
Enumerator
Empty 
String 
Numeric 

Definition at line 33 of file PivotTableDataSequence.hxx.

Function Documentation

template<typename Key , typename Span >
void sc::buildSpan ( std::vector< Span > &  rSpans,
typename mdds::flat_segment_tree< Key, bool >::const_iterator  it,
typename mdds::flat_segment_tree< Key, bool >::const_iterator  itEnd,
const Key pStart 
)

Definition at line 19 of file fstalgorithm.hxx.

References Span.

template<typename Key , typename Val , typename Span >
void sc::buildSpanWithValue ( std::vector< Span > &  rSpans,
typename mdds::flat_segment_tree< Key, Val >::const_iterator  it,
typename mdds::flat_segment_tree< Key, Val >::const_iterator  itEnd 
)

Definition at line 48 of file fstalgorithm.hxx.

References Span.

template<typename BlkT , typename StoreT , typename FuncElem >
std::pair<typename StoreT::const_iterator, size_t> sc::CheckElem ( const StoreT &  rStore,
const typename StoreT::const_iterator &  it,
size_t  nOffset,
size_t  nDataSize,
FuncElem &  rFuncElem 
)

Definition at line 135 of file mtvfunctions.hxx.

double sc::CompareEmptyToNumericFunc ( double  fCell2)

Left cell is empty while the right cell is numeric.

Definition at line 312 of file compare.cxx.

double sc::CompareFunc ( const Compare rComp,
CompareOptions pOptions = nullptr 
)
double sc::CompareFunc ( const Compare::Cell rCell1,
double  fCell2,
const CompareOptions pOptions 
)
double sc::CompareFunc ( double  fCell1,
double  fCell2 
)

Definition at line 290 of file compare.cxx.

double sc::datastream_get_time ( DebugTime  nIdx)

Definition at line 39 of file datastream.cxx.

References fTimes.

Referenced by ScInterpreter::ScDebugVar().

double sc::div ( const double &  fNumerator,
const double &  fDenominator 
)
inline
double sc::divide ( const double &  fNumerator,
const double &  fDenominator 
)
inline

Return fNumerator/fDenominator if fDenominator!=0 else +-Infinity if fNumerator!=0 or NaN if fNumerator==0.

This allows to build/run with -fsanitize=float-divide-by-zero and have a defined behavior for the otherwise undefined division by zero case ("If the second operand of / or % is zero the behavior is undefined." ([expr.mul]/4)).

The Calc interpreter gracefully handles Infinity or NaN double values encountered as interim or final results, using this function we can ensure defined behavior where desired.

Use where the double coded error creating div() is not wanted.

Definition at line 51 of file math.hxx.

Referenced by ScInterpreter::ScChiTest().

template<typename BlkT , typename ItrT , typename NodeT , typename FuncElem >
void sc::EachElem ( NodeT &  rNode,
size_t  nOffset,
size_t  nDataSize,
FuncElem &  rFuncElem 
)

Definition at line 102 of file mtvfunctions.hxx.

template<typename BlkT , typename ItrT , typename NodeT , typename FuncElem >
void sc::EachElem ( NodeT &  rNode,
FuncElem &  rFuncElem 
)

Definition at line 114 of file mtvfunctions.hxx.

template<typename BlkT , typename ItrT , typename NodeT , typename FuncElem >
void sc::EachElemReverse ( NodeT &  rNode,
FuncElem &  rFuncElem 
)

Definition at line 124 of file mtvfunctions.hxx.

static double sc::err_pow ( const double &  fVal1,
const double &  fVal2 
)
static

Definition at line 19 of file math.cxx.

References assert().

Referenced by power().

template<typename StoreT , typename Blk1 , typename FuncElem , typename FuncElse >
std::pair<typename StoreT::const_iterator, typename StoreT::size_type> sc::FindElement1 ( const StoreT &  rStore,
typename StoreT::size_type  nStart,
typename StoreT::size_type  nEnd,
FuncElem &  rFuncElem,
FuncElse &  rFuncElse 
)

Definition at line 411 of file mtvfunctions.hxx.

template<typename StoreT , typename Blk1 , typename Blk2 , typename FuncElem , typename FuncElse >
std::pair<typename StoreT::const_iterator, typename StoreT::size_type> sc::FindElement2 ( const StoreT &  rStore,
typename StoreT::size_type  nStart,
typename StoreT::size_type  nEnd,
FuncElem &  rFuncElem,
FuncElse &  rFuncElse 
)

Definition at line 461 of file mtvfunctions.hxx.

template<typename Func >
std::pair<CellStoreType::const_iterator, size_t> sc::FindFormula ( const CellStoreType rStore,
SCROW  nRow1,
SCROW  nRow2,
Func &  rFunc 
)
template<typename Func >
std::pair<CellStoreType::const_iterator, size_t> sc::FindFormulaEditText ( const CellStoreType rStore,
SCROW  nRow1,
SCROW  nRow2,
Func &  rFunc 
)

Definition at line 139 of file mtvcellfunc.hxx.

Referenced by ScColumn::HasEditCells().

inline ::tools::Long sc::HMMToTwips ( ::tools::Long  nHMM)
sc::IMPL_LINK ( SearchResultsDlg  ,
HeaderBarClick  ,
int  ,
nColumn  ,
void   
)

Definition at line 181 of file searchresults.cxx.

References TRISTATE_FALSE, TRISTATE_INDET, and TRISTATE_TRUE.

sc::IMPL_LINK_NOARG ( DataStreamDlg  ,
BrowseHdl  ,
weld::Button ,
void   
)

Definition at line 51 of file datastreamdlg.cxx.

References ERRCODE_NONE, and m_xDialog.

sc::IMPL_LINK_NOARG ( DataStreamDlg  ,
UpdateClickHdl  ,
weld::ToggleButton ,
void   
)

Definition at line 61 of file datastreamdlg.cxx.

sc::IMPL_LINK_NOARG ( DataStreamDlg  ,
UpdateComboBoxHdl  ,
weld::ComboBox ,
void   
)

Definition at line 63 of file datastreamdlg.cxx.

sc::IMPL_LINK_NOARG ( DataStreamDlg  ,
UpdateHdl  ,
weld::Entry ,
void   
)

Definition at line 65 of file datastreamdlg.cxx.

sc::IMPL_LINK_NOARG ( SearchResultsDlg  ,
ListSelectHdl  ,
weld::TreeView ,
void   
)
sc::IMPL_LINK_NOARG ( DataStream  ,
ImportTimerHdl  ,
Timer ,
void   
)

Definition at line 532 of file datastream.cxx.

sc::IMPL_STATIC_LINK ( SearchResultsDlg  ,
OnShowToggled  ,
weld::ToggleButton ,
rButton  ,
void   
)
static const SfxItemPropertyMapEntry* sc::lcl_GetDataSequencePropertyMap ( )
static
template<typename charT , typename traits >
std::basic_ostream<charT, traits>& sc::operator<< ( std::basic_ostream< charT, traits > &  stream,
const ParamIfsResult rRes 
)
inline

Definition at line 72 of file interpre.hxx.

References sc::ParamIfsResult::mfSum, and stream.

template<typename FuncElem , typename FuncElse >
CellStoreType::const_iterator sc::ParseAll ( const typename CellStoreType::const_iterator &  itPos,
const CellStoreType rCells,
SCROW  nRow1,
SCROW  nRow2,
FuncElem &  rFuncElem,
FuncElse &  rFuncElse 
)

Definition at line 84 of file mtvcellfunc.hxx.

References ParseElements4().

Referenced by ScColumn::GetFilterEntries(), and ScColumn::MixData().

template<typename Func >
CellStoreType::const_iterator sc::ParseAllNonEmpty ( const typename CellStoreType::const_iterator &  itPos,
const CellStoreType rCells,
SCROW  nRow1,
SCROW  nRow2,
Func &  rFunc 
)
template<typename StoreT , typename Func >
StoreT::const_iterator sc::ParseBlock ( const typename StoreT::const_iterator &  itPos,
const StoreT &  rStore,
Func &  rFunc,
typename StoreT::size_type  nStart,
typename StoreT::size_type  nEnd 
)
template<typename StoreT , typename BlkT , typename FuncElem , typename FuncElse >
void sc::ParseElements1 ( const StoreT &  rStore,
FuncElem &  rFuncElem,
FuncElse &  rFuncElse 
)

Definition at line 157 of file mtvfunctions.hxx.

template<typename StoreT , typename BlkT , typename FuncElem , typename FuncElse >
StoreT::const_iterator sc::ParseElements1 ( const typename StoreT::const_iterator &  itPos,
const StoreT &  rStore,
typename StoreT::size_type  nStart,
typename StoreT::size_type  nEnd,
FuncElem &  rFuncElem,
FuncElse &  rFuncElse 
)

Definition at line 176 of file mtvfunctions.hxx.

template<typename StoreT , typename Blk1 , typename Blk2 , typename FuncElem , typename FuncElse >
StoreT::const_iterator sc::ParseElements2 ( const typename StoreT::const_iterator &  itPos,
const StoreT &  rStore,
typename StoreT::size_type  nStart,
typename StoreT::size_type  nEnd,
FuncElem &  rFuncElem,
FuncElse &  rFuncElse 
)

Definition at line 214 of file mtvfunctions.hxx.

Referenced by ParseFormulaNumeric().

template<typename StoreT , typename Blk1 , typename Blk2 , typename Blk3 , typename Blk4 , typename FuncElem , typename FuncElse >
StoreT::const_iterator sc::ParseElements4 ( const typename StoreT::const_iterator &  itPos,
const StoreT &  rStore,
typename StoreT::size_type  nStart,
typename StoreT::size_type  nEnd,
FuncElem &  rFuncElem,
FuncElse &  rFuncElse 
)

Definition at line 258 of file mtvfunctions.hxx.

Referenced by ParseAll(), and ParseAllNonEmpty().

template<typename Func >
void sc::ParseFormula ( const CellStoreType rStore,
Func &  rFunc 
)
template<typename Func >
CellStoreType::const_iterator sc::ParseFormula ( const CellStoreType::const_iterator &  itPos,
const CellStoreType rStore,
SCROW  nStart,
SCROW  nEnd,
Func &  rFunc 
)

Definition at line 73 of file mtvcellfunc.hxx.

template<typename Func >
CellStoreType::const_iterator sc::ParseFormulaNumeric ( const CellStoreType::const_iterator &  itPos,
const CellStoreType rCells,
SCROW  nRow1,
SCROW  nRow2,
Func &  rFunc 
)
template<typename Func >
CellNoteStoreType::const_iterator sc::ParseNote ( const CellNoteStoreType::const_iterator &  itPos,
const CellNoteStoreType rStore,
SCROW  nStart,
SCROW  nEnd,
Func &  rFunc 
)
double sc::power ( const double &  fVal1,
const double &  fVal2 
)

Return pow(fVal1,fVal2) with error handling.

If an error was detected, a coded double error of FormulaError::IllegalFPOperation is returned.

Definition at line 29 of file math.cxx.

References o3tl::convertsToAtLeast(), o3tl::convertsToAtMost(), CreateDoubleError(), err_pow(), f, i, SAL_MAX_INT64, and SAL_MIN_INT64.

Referenced by ScMatrix::PowOp(), and ScInterpreter::ScPow().

template<typename StoreT , typename Func >
StoreT::iterator sc::ProcessBlock ( const typename StoreT::iterator &  itPos,
StoreT &  rStore,
Func &  rFunc,
typename StoreT::size_type  nStart,
typename StoreT::size_type  nEnd 
)

Non-const variant of the above function.

TODO: Find a way to merge these two in an elegant way.

Definition at line 71 of file mtvfunctions.hxx.

Referenced by ScColumn::DeleteCells(), ScColumn::EndListeningFormulaCells(), ScColumn::StartListeningFormulaCells(), and ScColumn::UpdateReferenceOnCopy().

template<typename FuncElem >
BroadcasterStoreType::iterator sc::ProcessBroadcaster ( const BroadcasterStoreType::iterator &  it,
BroadcasterStoreType rStore,
SCROW  nRow1,
SCROW  nRow2,
FuncElem &  rFuncElem 
)

Definition at line 174 of file mtvcellfunc.hxx.

References ProcessElements1().

Referenced by ScColumn::BroadcastBroadcasters(), and ScColumn::CollectListeners().

template<typename Func >
CellStoreType::iterator sc::ProcessEditText ( const CellStoreType::iterator &  itPos,
CellStoreType rStore,
SCROW  nRow1,
SCROW  nRow2,
Func &  rFunc 
)

Definition at line 56 of file mtvcellfunc.hxx.

Referenced by ScColumn::RemoveEditAttribs().

template<typename StoreT , typename BlkT , typename FuncElem , typename FuncElse >
void sc::ProcessElements1 ( StoreT &  rStore,
FuncElem &  rFuncElem,
FuncElse &  rFuncElse 
)

Definition at line 307 of file mtvfunctions.hxx.

Referenced by ProcessBroadcaster(), ProcessFormula(), and ProcessNote().

template<typename StoreT , typename BlkT , typename FuncElem , typename FuncElse >
StoreT::iterator sc::ProcessElements1 ( const typename StoreT::iterator &  itPos,
StoreT &  rStore,
typename StoreT::size_type  nStart,
typename StoreT::size_type  nEnd,
FuncElem &  rFuncElem,
FuncElse &  rFuncElse 
)

This variant specifies start and end positions.

Definition at line 329 of file mtvfunctions.hxx.

template<typename StoreT , typename Blk1 , typename Blk2 , typename FuncElem , typename FuncElse >
void sc::ProcessElements2 ( StoreT &  rStore,
FuncElem &  rFuncElem,
FuncElse &  rFuncElse 
)

Definition at line 366 of file mtvfunctions.hxx.

template<typename StoreT , typename Blk1 , typename Blk2 , typename FuncElem , typename FuncElse >
void sc::ProcessElements2Reverse ( StoreT &  rStore,
FuncElem &  rFuncElem,
FuncElse &  rFuncElse 
)

Definition at line 388 of file mtvfunctions.hxx.

CellStoreType::iterator sc::ProcessFormula ( const CellStoreType::iterator &  it,
CellStoreType rStore,
SCROW  nRow1,
SCROW  nRow2,
std::function< void(size_t, ScFormulaCell *)>  aFuncElem 
)
template<typename Func >
void sc::ProcessFormula ( CellStoreType rStore,
Func &  rFunc 
)

Definition at line 21 of file mtvcellfunc.hxx.

template<typename FuncElem >
CellStoreType::iterator sc::ProcessFormula ( const CellStoreType::iterator &  it,
CellStoreType rStore,
SCROW  nRow1,
SCROW  nRow2,
FuncElem &  rFuncElem 
)

Definition at line 29 of file mtvcellfunc.hxx.

References ProcessElements1().

template<typename FuncElem , typename FuncElse >
CellStoreType::iterator sc::ProcessFormula ( const CellStoreType::iterator &  it,
CellStoreType rStore,
SCROW  nRow1,
SCROW  nRow2,
FuncElem &  rFuncElem,
FuncElse &  rFuncElse 
)

Definition at line 47 of file mtvcellfunc.hxx.

References ProcessElements1().

template<typename Func >
void sc::ProcessFormulaEditText ( CellStoreType rStore,
Func &  rFunc 
)
template<typename Func >
void sc::ProcessNote ( CellNoteStoreType rStore,
Func &  rFunc 
)
template<typename FuncElem >
CellNoteStoreType::iterator sc::ProcessNote ( const CellNoteStoreType::iterator &  it,
CellNoteStoreType rStore,
SCROW  nRow1,
SCROW  nRow2,
FuncElem &  rFuncElem 
)

Definition at line 164 of file mtvcellfunc.hxx.

References ProcessElements1().

sc::SFX_IMPL_CHILDWINDOW_WITHID ( SearchResultsDlgWrapper  ,
SID_SEARCH_RESULTS_DIALOG   
)
ScRefCellValue sc::toRefCell ( const sc::CellStoreType::const_iterator &  itPos,
size_t  nOffset 
)
template<typename Key , typename Span >
std::vector<Span> sc::toSpanArray ( const mdds::flat_segment_tree< Key, bool > &  rTree)

Convert a flat_segment_tree structure whose value type is boolean, into an array of ranges that corresponds with the segments that have a 'true' value.

Definition at line 78 of file fstalgorithm.hxx.

template<typename Key , typename Span >
std::vector<Span> sc::toSpanArray ( const mdds::flat_segment_tree< Key, bool > &  rTree,
Key  nStartPos 
)

Definition at line 109 of file fstalgorithm.hxx.

template<typename Key , typename Val , typename Span >
std::vector<Span> sc::toSpanArrayWithValue ( const mdds::flat_segment_tree< Key, Val > &  rTree)

Convert a flat_segment_tree structure into an array of ranges with values.

Only those ranges whose value is evaluated to be true will be included. The value type must be something that supports bool operator. The span type must support a constructor that takes a start key, an end key and a value in this order.

Definition at line 97 of file fstalgorithm.hxx.

inline ::tools::Long sc::TwipsToEvenHMM ( ::tools::Long  nTwips)
inline ::tools::Long sc::TwipsToHMM ( ::tools::Long  nTwips)

Variable Documentation

const mdds::mtv::element_t sc::element_type_broadcaster = mdds::mtv::element_type_user_start

Custom element type IDs for multi_type_vector.

Definition at line 45 of file mtvelements.hxx.

Referenced by ScColumn::EndListening(), and ScColumn::PrepareBroadcastersForDestruction().

const mdds::mtv::element_t sc::element_type_cellnote = mdds::mtv::element_type_user_start + 5
const mdds::mtv::element_t sc::element_type_celltextattr = mdds::mtv::element_type_user_start + 1
const mdds::mtv::element_t sc::element_type_edittext = mdds::mtv::element_type_user_start + 3
const mdds::mtv::element_t sc::element_type_empty = mdds::mtv::element_type_empty
const mdds::mtv::element_t sc::element_type_formula = mdds::mtv::element_type_user_start + 4
const mdds::mtv::element_t sc::element_type_numeric = mdds::mtv::element_type_double
const mdds::mtv::element_t sc::element_type_string = mdds::mtv::element_type_user_start + 2
const mdds::mtv::element_t sc::element_type_uint16 = mdds::mtv::element_type_uint16

Definition at line 57 of file mtvelements.hxx.

o3tl::enumarray<DebugTime, double> sc::fTimes { 0.0, 0.0, 0.0 }
static