compile
[kdegraphics.git] / okular / core / sourcereference.h
blob6b373d993a3767eff654fc1073352c566b9c3ce5
1 /***************************************************************************
2 * Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef OKULAR_SOURCEREFERENCE_H
11 #define OKULAR_SOURCEREFERENCE_H
13 #include <okular/core/okular_export.h>
15 class QString;
17 namespace Okular {
19 /**
20 * @short Defines a source reference
22 * A source reference is a reference to one of the source(s) of the loaded
23 * document.
25 class OKULAR_EXPORT SourceReference
27 public:
28 /**
29 * Creates a reference to the row @p row and column @p column of the
30 * source @p fileName
32 SourceReference( const QString &fileName, int row, int column = 0 );
34 /**
35 * Destroys the source reference.
37 ~SourceReference();
39 /**
40 * Returns the filename of the source.
42 QString fileName() const;
44 /**
45 * Returns the row of the position in the source file.
47 int row() const;
49 /**
50 * Returns the column of the position in the source file.
52 int column() const;
54 private:
55 class Private;
56 Private* const d;
58 Q_DISABLE_COPY( SourceReference )
63 #endif