File: sourcereference.h

package info (click to toggle)
okular 4%3A4.8.4-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,040 kB
  • sloc: cpp: 62,030; ansic: 3,964; xml: 66; sh: 22; makefile: 7
file content (64 lines) | stat: -rw-r--r-- 1,697 bytes parent folder | download | duplicates (3)
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
/***************************************************************************
 *   Copyright (C) 2007 by Pino Toscano <pino@kde.org>                     *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 ***************************************************************************/

#ifndef OKULAR_SOURCEREFERENCE_H
#define OKULAR_SOURCEREFERENCE_H

#include "okular_export.h"

class QString;

namespace Okular {

/**
 * @short Defines a source reference
 *
 * A source reference is a reference to one of the source(s) of the loaded
 * document.
 */
class OKULAR_EXPORT SourceReference
{
    public:
        /**
         * Creates a reference to the row @p row and column @p column of the
         * source @p fileName
         */
        SourceReference( const QString &fileName, int row, int column = 0 );

        /**
         * Destroys the source reference.
         */
        ~SourceReference();

        /**
         * Returns the filename of the source.
         */
        QString fileName() const;

        /**
         * Returns the row of the position in the source file.
         */
        int row() const;

        /**
         * Returns the column of the position in the source file.
         */
        int column() const;

    private:
        class Private;
        Private* const d;

        Q_DISABLE_COPY( SourceReference )
};

}

#endif