This file is indexed.

/usr/include/odsstream/calcwriterinterface.h is in libodsstream-qt5-dev 0.4.13-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/*
    libodsstream is a library to read and write ODS documents as streams
    Copyright (C) 2013  Olivier Langella <Olivier.Langella@moulon.inra.fr>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef CALCWRITERINTERFACE_H
#define CALCWRITERINTERFACE_H


#include <QDate>
#include <QUrl>
#include "odstablecellstyle.h"
#include "odstablecellstyleref.h"

class CalcWriterInterface
{
public:
    virtual ~CalcWriterInterface() {};
    virtual void close ()= 0;

    /**
     * \brief open a new sheet
     *
     * \param sheetName the sheet name
     */
    virtual void writeSheet(const QString & sheetName)= 0;

    /**
     * \brief open a new line
     */
    virtual void writeLine()= 0;
    /** 
     * \brief write a text cell
     * \param cell_text cell text
     */
    virtual void writeCell(const char * cell_text)= 0;
    /** 
     * \brief write a text cell
     * \param cell_text cell text
     */
    virtual void writeCell(const QString & cell_text)= 0;
    /** 
     * \brief write an empty cell
     */
    virtual void writeEmptyCell()= 0;
    /** 
     * \brief write an integer in a cell
     * \param number integer to write
     */
    virtual void writeCell(int number)= 0;
    /** 
     * \brief write a positive integer in a cell
     * \param number integer to write
     */
    virtual void writeCell(unsigned int posInteger) {
        writeCell((int) posInteger);
    };
    /** 
     * \brief write a float in a cell
     * \param number float to write
     */
    virtual void writeCell(float number)= 0;
    /** 
     * \brief write a double in a cell
     * \param number double to write
     */
    virtual void writeCell(double number)= 0;
    
    /** 
     * \brief write a double as a percentage
     * \param number double to write must be a ratio (0.5 == 50%)
     */
    virtual void writeCellPercentage(double value)=0;
    /** 
     * \brief write a boolean in a cell
     * \param true_or_false boolean to write
     */
    virtual void writeCell(bool true_or_false)= 0;
    /** 
     * \brief write a date in a cell
     * \param date date to write
     */
    virtual void writeCell(const QDate & date)= 0;
    /** 
     * \brief write a timestamp in a cell
     * \param datetime timestamp to write
     */
    virtual void writeCell(const QDateTime & datetime)= 0;
    /** 
     * \brief write a text cell with an URL link
     * \param url_link URL link
     * \param text text to write
     */
    virtual void writeCell(const QUrl & url_link, const QString & text)= 0;


    /**
     * build table cell style reference with a style definition
     *
     * \param style OdsTableCellStyle
     * \return OdsTableCellStyleRef pointer on a style reference
     */
    virtual OdsTableCellStyleRef getTableCellStyleRef(const OdsTableCellStyle & style) {
        return nullptr;
    };
    /**
     * set the cell table style. This is applied to in the stream to following cells.
     * This ends by using an other style reference or by using setTableCellStyleRef function
     *
     * \param style_ref OdsTableCellStyleRef
     */
    virtual void setTableCellStyleRef(OdsTableCellStyleRef style_ref) {};

    /**
     * clear cell style definition in the stream. the default style will be applied.
     *
     */
    void clearTableCellStyleRef() {
        setTableCellStyleRef(nullptr);
    };
    
    /** 
     * \brief set annotation to write in the next cell
     * \param annotation any comment on this cell
     */
    virtual void setCellAnnotation(const QString & annotation) = 0 ;

};

#endif // CALCWRITERINTERFACE_H