/usr/include/wv2/functordata.h is in libwv2-dev 0.4.2.dfsg.2-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 | /* This file is part of the wvWare 2 project
Copyright (C) 2002-2003 Werner Trobin <trobin@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#ifndef FUNCTORDATA_H
#define FUNCTORDATA_H
#include "sharedptr.h"
namespace wvWare
{
/**
* @internal
* Holds all the necessary information for asynchronous header/footer parsing.
* The sectionNumber is a 0-based index, the headerMask holds bits of
* the Type enum ORed together.
*/
struct HeaderData
{
enum Type { HeaderEven = 0x01, HeaderOdd = 0x02, FooterEven = 0x04,
FooterOdd = 0x08, HeaderFirst = 0x10, FooterFirst = 0x20 };
HeaderData( int sectionNum ) : sectionNumber( sectionNum ),
headerMask( HeaderOdd | FooterOdd ) {}
int sectionNumber;
unsigned char headerMask;
};
/**
* @internal
* Holds all necessary information for delayed footnote/endnote parsing.
*/
struct FootnoteData
{
enum Type { Footnote, Endnote };
FootnoteData( Type t, bool autoNum, unsigned int start, unsigned int lim ) :
type( t ), autoNumbered( autoNum ), startCP( start ), limCP( lim ) {}
Type type;
bool autoNumbered;
unsigned int startCP;
unsigned int limCP;
};
namespace Word97
{
struct TAP;
struct PICF;
}
/**
* @internal
* Keeps track of the table (row) information. Tables are parsed
* row by row.
*/
struct TableRowData
{
TableRowData( unsigned int sp, unsigned int so, unsigned int len,
int subDoc, SharedPtr<const Word97::TAP> sharedTap );
~TableRowData();
unsigned int startPiece;
unsigned int startOffset;
unsigned int length;
int subDocument; // int to avoid #including <parser.h> here
SharedPtr<const Word97::TAP> tap;
};
/**
* @internal
* Holds the information about pictures inside the functor.
*/
struct PictureData
{
PictureData( unsigned int fc, SharedPtr<const Word97::PICF> sharedPicf );
~PictureData();
unsigned int fcPic;
SharedPtr<const Word97::PICF> picf;
};
} // namespace wvWare
#endif // FUNCTORDATA_H
|