LibreOffice Module sc (master) 1
autofiltercontext.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include "excelhandlers.hxx"
23#include "autofilterbuffer.hxx"
24
25namespace oox::xls {
26
27class AutoFilter;
28class FilterColumn;
29class FilterSettingsBase;
30
32{
33public:
34 explicit FilterSettingsContext( WorksheetContextBase& rParent, FilterSettingsBase& rFilterSettings );
35
36private:
37 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
38 virtual void onStartElement( const AttributeList& rAttribs ) override;
39
40 virtual ::oox::core::ContextHandlerRef onCreateRecordContext( sal_Int32 nRecId, SequenceInputStream& rStrm ) override;
41 virtual void onStartRecord( SequenceInputStream& rStrm ) override;
42
44};
45
47{
48public:
49 explicit FilterColumnContext( WorksheetContextBase& rParent, FilterColumn& rFilterColumn );
50
51private:
52 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
53 virtual void onStartElement( const AttributeList& rAttribs ) override;
54
55 virtual ::oox::core::ContextHandlerRef onCreateRecordContext( sal_Int32 nRecId, SequenceInputStream& rStrm ) override;
56 virtual void onStartRecord( SequenceInputStream& rStrm ) override;
57
59};
60
61// class SortConditionContext
62
64{
65public:
66 explicit SortConditionContext( WorksheetContextBase& rFragment, SortCondition& rSortCondition );
67
68private:
69 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
70 virtual void onStartElement( const AttributeList& rAttribs ) override;
71
72 virtual ::oox::core::ContextHandlerRef onCreateRecordContext( sal_Int32 nRecId, SequenceInputStream& rStrm ) override;
73 virtual void onStartRecord( SequenceInputStream& rStrm ) override;
74
76};
77
78// class SortStateContext
79
81{
82public:
83 explicit SortStateContext( WorksheetContextBase& rFragment, AutoFilter& rAutoFilter );
84
85private:
86 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
87 virtual void onStartElement( const AttributeList& rAttribs ) override;
88
89 virtual ::oox::core::ContextHandlerRef onCreateRecordContext( sal_Int32 nRecId, SequenceInputStream& rStrm ) override;
90 virtual void onStartRecord( SequenceInputStream& rStrm ) override;
91
93};
94
95// class AutoFilterContext
96
98{
99public:
100 explicit AutoFilterContext( WorksheetFragmentBase& rFragment, AutoFilter& rAutoFilter );
101
102private:
103 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
104 virtual void onStartElement( const AttributeList& rAttribs ) override;
105
106 virtual ::oox::core::ContextHandlerRef onCreateRecordContext( sal_Int32 nRecId, SequenceInputStream& rStrm ) override;
107 virtual void onStartRecord( SequenceInputStream& rStrm ) override;
108
110};
111
112} // namespace oox::xls
113
114/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
AutoFilterContext(WorksheetFragmentBase &rFragment, AutoFilter &rAutoFilter)
virtual void onStartRecord(SequenceInputStream &rStrm) override
virtual void onStartElement(const AttributeList &rAttribs) override
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual void onStartRecord(SequenceInputStream &rStrm) override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual void onStartElement(const AttributeList &rAttribs) override
FilterColumnContext(WorksheetContextBase &rParent, FilterColumn &rFilterColumn)
A column in a filtered range.
Base class for specific filter settings for a column in a filtered range.
FilterSettingsBase & mrFilterSettings
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
FilterSettingsContext(WorksheetContextBase &rParent, FilterSettingsBase &rFilterSettings)
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual void onStartRecord(SequenceInputStream &rStrm) override
virtual void onStartElement(const AttributeList &rAttribs) override
SortConditionContext(WorksheetContextBase &rFragment, SortCondition &rSortCondition)
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual void onStartRecord(SequenceInputStream &rStrm) override
virtual void onStartElement(const AttributeList &rAttribs) override
SortStateContext(WorksheetContextBase &rFragment, AutoFilter &rAutoFilter)
virtual void onStartElement(const AttributeList &rAttribs) override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual void onStartRecord(SequenceInputStream &rStrm) override
Context handler derived from the WorksheetHelper helper class.
Fragment handler derived from the WorksheetHelper helper class.
void SvStream & rStrm