/* -*- 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/. */ #pragma once #include #include #include #include namespace sc { /** Type of a pivot table cell format to which a selection can be made. */ enum class FormatType { None, Data, Label }; /** Information to make a selection in the pivot table. */ struct Selection { bool bSelected = false; sal_Int32 nField = 0; std::vector nIndices; }; /** Holds cell pattern attributes and a selection information to which cells in the pivot table * the pattern should be applied. */ struct PivotTableFormat { FormatType eType = FormatType::None; bool bDataOnly = true; bool bLabelOnly = false; bool bSelected = false; bool bOutline = false; std::optional oFieldPosition = std::nullopt; std::vector aSelections; std::shared_ptr pPattern; std::vector const& getSelections() const { return aSelections; } }; /** A holder for a collection of PivotTableFormat */ class PivotTableFormats { std::vector maFormats; public: void add(PivotTableFormat const& rPivotTableFormat) { maFormats.push_back(rPivotTableFormat); } size_t size() const { return maFormats.size(); } std::vector const& getVector() const { return maFormats; } }; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ro/cib/libreoffice-6-1'>distro/cib/libreoffice-6-1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Nordback <kurt.nordback@protonmail.com>2023-12-01 11:18:31 -0700
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-02-19 01:29:36 +0100
commit1cda27cf69054b006aa1b16cab8f56339274588b (patch)
tree7e517f2396e969ac4201ed52cf9846ef28a1ddd4 /udkapi/com/sun/star/uri
parentbbc9ac1f08a5ee4b9f65eaf10110df328d95de95 (diff)
tdf#50934: OfPie inport from OOXML, plus initial work for export
Change-Id: Ie17b583af28d274b3e7817c646dd4f5873e03fef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160733 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>