|
QGIS API Documentation 4.3.0-Master (d57cc4a041c)
|
Encapsulates an academic reference and formats it according to style guidelines. More...
#include <qgsacademicreference.h>
Public Member Functions | |
| QgsAcademicReference ()=default | |
| Constructor for an invalid QgsAcademicReference. | |
| QString | asHtml () const |
| Returns a HTML formatted representation of the reference (in APA style). | |
| QString | asPlainText () const |
| Returns a plain text representation of the reference (in APA style). | |
| QStringList | authors () const |
| Returns the authors of the reference. | |
| QString | issue () const |
| Returns the issue number. | |
| bool | isValid () const |
Returns false if this is a default constructed, invalid reference. | |
| QString | journal () const |
| Returns the journal title. | |
| QString | pages () const |
| Returns the page numbers. | |
| QString | publisher () const |
| Returns the publisher name. | |
| void | setAuthors (const QStringList &authors) |
| Sets the authors of the reference. | |
| void | setIssue (const QString &issue) |
| Sets the issue number. | |
| void | setJournal (const QString &journal) |
| Sets the journal title. | |
| void | setPages (const QString &pages) |
| Sets the page numbers. | |
| void | setPublisher (const QString &publisher) |
| Sets the publisher name. | |
| void | setTitle (const QString &title) |
| Sets the title of the work. | |
| void | setType (Qgis::AcademicReferenceType type) |
| Sets the reference type. | |
| void | setUrl (const QString &url) |
| Sets the url. | |
| void | setVolume (const QString &volume) |
| Sets the volume identifier. | |
| void | setYear (int year) |
| Sets the publication year. | |
| QString | title () const |
| Returns the title of the work. | |
| Qgis::AcademicReferenceType | type () const |
| Returns the reference type. | |
| QString | url () const |
| Returns the URL. | |
| QString | volume () const |
| Returns the volume identifier. | |
| int | year () const |
| Returns the publication year. | |
Static Public Member Functions | |
| static QgsAcademicReference | createBook (const QStringList &authors, int year, const QString &title, const QString &publisher) |
| Creates a book reference. | |
| static QgsAcademicReference | createJournalArticle (const QStringList &authors, int year, const QString &title, const QString &journal, const QString &volume=QString(), const QString &issue=QString(), const QString &pages=QString()) |
| Creates a journal article reference. | |
| static QgsAcademicReference | createPreprint (const QStringList &authors, int year, const QString &title, const QString &repository, const QString &url) |
| Creates a preprint reference. | |
| static QgsAcademicReference | createPresentation (const QStringList &authors, int year, const QString &title, const QString &meeting, const QString &publisher=QString(), const QString &pages=QString()) |
| Creates a conference paper or presentation reference. | |
| static QgsAcademicReference | createWebPage (const QStringList &authors, int year, const QString &title, const QString &url) |
| Creates a web page or online resource reference. | |
Encapsulates an academic reference and formats it according to style guidelines.
Definition at line 30 of file qgsacademicreference.h.
|
default |
Constructor for an invalid QgsAcademicReference.
| QString QgsAcademicReference::asHtml | ( | ) | const |
Returns a HTML formatted representation of the reference (in APA style).
Definition at line 192 of file qgsacademicreference.cpp.
| QString QgsAcademicReference::asPlainText | ( | ) | const |
Returns a plain text representation of the reference (in APA style).
Definition at line 187 of file qgsacademicreference.cpp.
| QStringList QgsAcademicReference::authors | ( | ) | const |
Returns the authors of the reference.
Definition at line 97 of file qgsacademicreference.cpp.
|
static |
Creates a book reference.
| authors | list of authors |
| year | publication year |
| title | book title |
| publisher | publisher name |
Definition at line 24 of file qgsacademicreference.cpp.
|
static |
Creates a journal article reference.
| authors | list of authors |
| year | publication year |
| title | article title |
| journal | journal name |
| volume | volume identifier |
| issue | issue identifier |
| pages | page range or number |
Definition at line 35 of file qgsacademicreference.cpp.
|
static |
Creates a preprint reference.
| authors | list of authors |
| year | publication year |
| title | paper title |
| repository | repository or archive name |
| url | repository target address |
Definition at line 75 of file qgsacademicreference.cpp.
|
static |
Creates a conference paper or presentation reference.
| authors | list of authors |
| year | presentation year |
| title | paper title |
| meeting | conference or meeting title |
| publisher | publisher name |
| pages | page range or number |
Definition at line 51 of file qgsacademicreference.cpp.
|
static |
Creates a web page or online resource reference.
| authors | list of authors |
| year | publication or access year |
| title | web page title |
| url | target address |
Definition at line 64 of file qgsacademicreference.cpp.
| QString QgsAcademicReference::issue | ( | ) | const |
Returns the issue number.
Definition at line 147 of file qgsacademicreference.cpp.
|
inline |
Returns false if this is a default constructed, invalid reference.
Definition at line 41 of file qgsacademicreference.h.
| QString QgsAcademicReference::journal | ( | ) | const |
Returns the journal title.
Definition at line 127 of file qgsacademicreference.cpp.
| QString QgsAcademicReference::pages | ( | ) | const |
Returns the page numbers.
Definition at line 157 of file qgsacademicreference.cpp.
| QString QgsAcademicReference::publisher | ( | ) | const |
Returns the publisher name.
Definition at line 167 of file qgsacademicreference.cpp.
| void QgsAcademicReference::setAuthors | ( | const QStringList & | authors | ) |
Sets the authors of the reference.
Individual authors should be formatted using surname first, followed by a comma and the author's initials. E.g. "Smith, J. P.".
Definition at line 102 of file qgsacademicreference.cpp.
| void QgsAcademicReference::setIssue | ( | const QString & | issue | ) |
| void QgsAcademicReference::setJournal | ( | const QString & | journal | ) |
| void QgsAcademicReference::setPages | ( | const QString & | pages | ) |
| void QgsAcademicReference::setPublisher | ( | const QString & | publisher | ) |
Sets the publisher name.
Definition at line 172 of file qgsacademicreference.cpp.
| void QgsAcademicReference::setTitle | ( | const QString & | title | ) |
Sets the title of the work.
Definition at line 122 of file qgsacademicreference.cpp.
| void QgsAcademicReference::setType | ( | Qgis::AcademicReferenceType | type | ) |
| void QgsAcademicReference::setUrl | ( | const QString & | url | ) |
| void QgsAcademicReference::setVolume | ( | const QString & | volume | ) |
Sets the volume identifier.
Definition at line 142 of file qgsacademicreference.cpp.
| void QgsAcademicReference::setYear | ( | int | year | ) |
| QString QgsAcademicReference::title | ( | ) | const |
Returns the title of the work.
Definition at line 117 of file qgsacademicreference.cpp.
| Qgis::AcademicReferenceType QgsAcademicReference::type | ( | ) | const |
Returns the reference type.
Definition at line 87 of file qgsacademicreference.cpp.
| QString QgsAcademicReference::url | ( | ) | const |
| QString QgsAcademicReference::volume | ( | ) | const |
Returns the volume identifier.
Definition at line 137 of file qgsacademicreference.cpp.
| int QgsAcademicReference::year | ( | ) | const |
Returns the publication year.
Definition at line 107 of file qgsacademicreference.cpp.