Logo Search packages:      
Sourcecode: tellico version File versions

Tellico::Data::BibtexCollection Class Reference

#include <bibtexcollection.h>

Inheritance diagram for Tellico::Data::BibtexCollection:

Tellico::Data::Collection

List of all members.


Detailed Description

A collection specifically for bibliographies, in Bibtex format.

It has the following standard attributes:

Author:
Robby Stephenson
Version:
Id
bibtexcollection.h 862 2004-09-15 01:49:51Z robby

Definition at line 33 of file bibtexcollection.h.


Public Types

enum  Type {
  Base = 1, Book = 2, Video = 3, Album = 4,
  Bibtex = 5, ComicBook = 6, Wine = 7, Coin = 8,
  Stamp = 9, Card = 10
}

Signals

void signalFieldAdded (Tellico::Data::Collection *coll, Tellico::Data::Field *field)
void signalFieldDeleted (Tellico::Data::Collection *coll, Tellico::Data::Field *field)
void signalFieldModified (Tellico::Data::Collection *coll, Tellico::Data::Field *newField, Tellico::Data::Field *oldField)
void signalFieldsReordered (Tellico::Data::Collection *coll)
void signalGroupModified (Tellico::Data::Collection *coll, const Tellico::Data::EntryGroup *group)
void signalRefreshField (Tellico::Data::Field *field)

Public Member Functions

void addEntry (Entry *entry)
virtual bool addField (Field *field)
virtual bool addFields (const FieldList &list)
void addMacro (const QString &key, const QString &value)
 BibtexCollection (bool addFields, const QString &title=QString::null)
void citeEntries (QFile &lyxpipe, const EntryList &list)
const QString & defaultGroupField () const
bool deleteEntry (Entry *entry)
virtual bool deleteField (const QString &name, bool force=false)
virtual bool deleteField (Field *field, bool force=false)
unsigned entryCount () const
EntryGroupDict *const entryGroupDictByName (const QString &name) const
const QStringList & entryGroups () const
const EntryList & entryList () const
const QString & entryName () const
const QString & entryTitle () const
Field *const fieldByBibtexName (const QString &name) const
Field *const fieldByName (const QString &name) const
Field *const fieldByTitle (const QString &title) const
const QStringList & fieldCategories () const
const FieldList & fieldList () const
const QString & fieldNameByTitle (const QString &title) const
const QStringList & fieldNames () const
FieldList fieldsByCategory (const QString &category) const
const QString & fieldTitleByName (const QString &name) const
const QStringList & fieldTitles () const
void groupModified (EntryGroup *group)
bool hasImages () const
const QString & iconName () const
int id () const
const FieldList & imageFields () const
void invalidateGroups ()
bool isAllowed (const QString &key, const QString &value) const
const StringMap & macroList () const
virtual bool mergeField (Field *field)
virtual bool modifyField (Field *field)
int nextEntryId () const
const FieldList & peopleFields () const
const QString & preamble () const
void reorderFields (const FieldList &list)
void setDefaultGroupField (const QString &name)
void setIconName (const QString &name)
void setMacroList (StringMap map)
void setPreamble (const QString &preamble)
void setTitle (const QString &title)
const QString & title () const
virtual Type type () const
void updateDicts (Entry *entry)
QStringList valuesByFieldName (const QString &name) const

Static Public Member Functions

static BibtexCollectionconvertBookCollection (const Collection *coll)
static FieldList defaultFields ()

Static Public Attributes

static const QString s_emptyGroupTitle = i18n("(Empty)")
static const QString s_peopleGroupName = QString::fromLatin1("_people")

Protected Member Functions

QStringList entryGroupNamesByField (Entry *entry, const QString &fieldName)
void populateDicts (Entry *entry)
void removeEntryFromDicts (Entry *entry)

Static Protected Member Functions

static int getID ()

Private Attributes

QDict< Fieldm_bibtexFieldDict
StringMap m_macros
QString m_preamble

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index