diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 13:12:24 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-19 01:36:55 +0100 |
commit | 6ceb1d0f2e23749fe03fab08ec338ba4d7782173 (patch) | |
tree | 44e69c2fdf12594169ca3a052224368faa967185 /sc/inc/dpfilteredcache.hxx | |
parent | 695280feb90729fde1a7ecf1c409ae16f8281a46 (diff) |
tdf#123936 Formatting files in module sc with clang-format
Change-Id: I66cafda863e3e1e4559a57289c09925d68b0719c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105701
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
Diffstat (limited to 'sc/inc/dpfilteredcache.hxx')
-rw-r--r-- | sc/inc/dpfilteredcache.hxx | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/sc/inc/dpfilteredcache.hxx b/sc/inc/dpfilteredcache.hxx index 43e6ca0ced5f..aa40da4a11cf 100644 --- a/sc/inc/dpfilteredcache.hxx +++ b/sc/inc/dpfilteredcache.hxx @@ -31,8 +31,14 @@ #include <mdds/flat_segment_tree.hpp> -namespace com::sun::star::uno { class Any; } -namespace com::sun::star::uno { template <typename > class Sequence; } +namespace com::sun::star::uno +{ +class Any; +} +namespace com::sun::star::uno +{ +template <typename> class Sequence; +} class ScDPCache; struct ScDPValue; @@ -54,7 +60,7 @@ public: virtual ~FilterBase() {} /** returns true if the matching condition is met for a single cell value, or false otherwise. */ - virtual bool match( const ScDPItemData& rCellData ) const = 0; + virtual bool match(const ScDPItemData& rCellData) const = 0; virtual std::vector<ScDPItemData> getMatchValues() const = 0; }; @@ -63,7 +69,7 @@ public: class SingleFilter final : public FilterBase { public: - explicit SingleFilter(const ScDPItemData &rItem); + explicit SingleFilter(const ScDPItemData& rItem); virtual bool match(const ScDPItemData& rCellData) const override; virtual std::vector<ScDPItemData> getMatchValues() const override; @@ -101,7 +107,7 @@ public: sal_Int32 getRowSize() const; sal_Int32 getColSize() const; - const ScDPCache& getCache() const { return mrCache;} + const ScDPCache& getCache() const { return mrCache; } void fillTable(const ScQueryParam& rQuery, bool bIgnoreEmptyRows, bool bRepeatIfEmpty); @@ -114,32 +120,33 @@ public: /** Set filter on/off flag to each row to control visibility. The caller must ensure that the table is filled before calling this function. */ - void filterByPageDimension(const std::vector<Criterion>& rCriteria, const std::unordered_set<sal_Int32>& rRepeatIfEmptyDims); + void filterByPageDimension(const std::vector<Criterion>& rCriteria, + const std::unordered_set<sal_Int32>& rRepeatIfEmptyDims); /** Get the cell instance at specified location within the data grid. Note that the data grid doesn't include the header row. Don't delete the returned object! */ const ScDPItemData* getCell(SCCOL nCol, SCROW nRow, bool bRepeatIfEmpty) const; - void getValue( ScDPValue& rVal, SCCOL nCol, SCROW nRow) const; + void getValue(ScDPValue& rVal, SCCOL nCol, SCROW nRow) const; OUString getFieldName(SCCOL nIndex) const; - /** Get the unique entries for a field specified by index. The caller must + /** Get the unique entries for a field specified by index. The caller must make sure that the table is filled before calling function, or it will get an empty collection. */ - const ::std::vector<SCROW>& getFieldEntries( sal_Int32 nColumn ) const; + const ::std::vector<SCROW>& getFieldEntries(sal_Int32 nColumn) const; /** Filter the table based on the specified criteria, and copy the result to rTabData. This method is used, for example, to generate a drill-down data table. */ void filterTable(const std::vector<Criterion>& rCriteria, - css::uno::Sequence< css::uno::Sequence< css::uno::Any > >& rTabData, + css::uno::Sequence<css::uno::Sequence<css::uno::Any>>& rTabData, const std::unordered_set<sal_Int32>& rRepeatIfEmptyDims); void clear(); bool empty() const; #if DUMP_PIVOT_TABLE - static void dumpRowFlag( const RowFlagType& rFlag ); + static void dumpRowFlag(const RowFlagType& rFlag); void dump() const; #endif @@ -152,12 +159,12 @@ private: * @param nRow index of row to be tested. * @param rCriteria a list of criteria */ - bool isRowQualified(sal_Int32 nRow, const ::std::vector<Criterion>& rCriteria, const std::unordered_set<sal_Int32>& rRepeatIfEmptyDims) const; + bool isRowQualified(sal_Int32 nRow, const ::std::vector<Criterion>& rCriteria, + const std::unordered_set<sal_Int32>& rRepeatIfEmptyDims) const; private: - /** unique field entries for each field (column). */ - ::std::vector< ::std::vector<SCROW> > maFieldEntries; + ::std::vector<::std::vector<SCROW>> maFieldEntries; /** Rows visible by standard filter query. */ RowFlagType maShowByFilter; |