/* -*- 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_SC_INC_CONSOLI_HXX #define INCLUDED_SC_INC_CONSOLI_HXX #include "global.hxx" #include "address.hxx" class ScDocument; // Sequence: // 1) create ScConsData // 2) Parameter (Size/Flags) // 3) AddFields for all areas (only needed for bColByName or bRowByName) // 4) DoneFields ( " " ) // 5) AddData for all areas // perhaps AddName after each area // 6) OutputToDocument //! Use structure ScDocument if a certain size is exceeded? class ScConsData { private: struct ScReferenceEntry // without constructor ! { SCCOL nCol; SCROW nRow; SCTAB nTab; }; typedef std::vector ScReferenceList; ScSubTotalFunc eFunction; bool bReference; bool bColByName; bool bRowByName; SCSIZE nColCount; SCSIZE nRowCount; bool** ppUsed; double** ppSum; double** ppCount; double** ppSumSqr; ScReferenceList** ppRefs; ::std::vector maColHeaders; ::std::vector maRowHeaders; ::std::vector maTitles; SCSIZE nDataCount; SCSIZE** ppTitlePos; bool bCornerUsed; OUString aCornerText; // only for bColByName && bRowByName public: ScConsData(); ~ScConsData(); void SetSize( SCCOL nCols, SCROW nRows ); void SetFlags( ScSubTotalFunc eFunc, bool bColName, bool bRowName, bool bRef ); void InitData(); void DeleteData(); void AddFields( ScDocument* pSrcDoc, SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); void DoneFields(); void AddData( ScDocument* pSrcDoc, SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); void AddName( const OUString& rName ); void OutputToDocument( ScDocument* pDestDoc, SCCOL nCol, SCROW nRow, SCTAB nTab ); void GetSize( SCCOL& rCols, SCROW& rRows ) const; SCROW GetInsertCount() const; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 24.04.7'>distro/collabora/co-24.04.7 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2021-04-07Updated README.md files to represent current code / use Markdown formatHossein
2021-03-24Using .md extension/Markdown syntax for modules READMEHossein
2020-11-02Fix typosAndrea Gelmini
2020-08-25tdf#92287 Make LibreLogo icons theme basedMaxim Monastirsky
2020-07-17Follow up tdf#132022: Remove Tango icons for LibreLogoRizal Muttaqin
2020-06-26LibreLogo: add command FONTTRANSPARENCYLászló Németh
2020-05-14fix python 3.8 deprecation warningsNoel Grandin
2020-04-09pyuno,*: kill Python 2 support with fireMichael Stahl
2020-02-16GBUILD_TRACE, support for finding out where the build time is spentLuboš Luňák
2019-06-07sanitize LibreLogo callsLászló Németh
2019-04-25LibreLogo: fix RANGE with a single function argumentLászló Németh
2019-04-18Don't set LANG env var by accidentStephan Bergmann
2019-03-13tdf#124035 LibreLogo: support starting colon in variable namesLászló Németh
2018-11-08Adapt LibreLogo.py to Python 3.7 re.sub changeStephan Bergmann
2018-11-06Removed not-used variableAndrea Gelmini
2018-11-06LibreLogo: function calls and definitions can be in any orderLászló Németh
2018-11-05Fix typoAndrea Gelmini
2018-11-05tdf#120413 LibreLogo: handle complex Logo expressionsLászló Németh
2018-11-05LibreLogo: stop program immediately at pressing CancelLászló Németh
2018-10-26LibreLogo: support backslash escape sequence for apostrophesLászló Németh
2018-10-26LibreLogo: add unit tests for program compilationLászló Németh
2018-10-25LibreLogo: add unit testsLászló Németh
2018-10-10tdf#120422 LibreLogo: fix page and line formatting of "magic wand"László Németh
2018-09-30LibreLogo: fix regression of line drawingLászló Németh
2017-11-05tdf#113592 LibreLogo: add fallback localization to fix platform issuesLászló Németh
2017-04-12enum spelling: throught -> throughJustin Luth
2017-03-29Wrong Unicode character referenceAdolfo Jayme Barrientos
2017-03-02Fix typosAndrea Gelmini