"Fossies" - the Fresh Open Source Software Archive

Member "cb2bib-2.0.1/src/c2b/idMaker.h" (12 Feb 2021, 1636 Bytes) of package /linux/privat/cb2bib-2.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "idMaker.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.0.0_vs_2.0.1.

    1 /***************************************************************************
    2  *   Copyright (C) 2004-2021 by Pere Constans
    3  *   constans@molspaces.com
    4  *   cb2Bib version 2.0.1. Licensed under the GNU GPL version 3.
    5  *   See the LICENSE file that comes with this distribution.
    6  *
    7  *   Improvements and modifications:
    8  *   July 2009 - Added <<author_all_abbreviated>>, (C) 2009 by Dayu Huang
    9  ***************************************************************************/
   10 #ifndef IDMAKER_H
   11 #define IDMAKER_H
   12 
   13 #include "bibReference.h"
   14 
   15 #include <QObject>
   16 
   17 
   18 /**
   19     @author Pere Constans
   20 */
   21 class idMaker : public QObject
   22 {
   23 
   24     Q_OBJECT
   25 
   26 public:
   27     explicit idMaker(const QString& patternKey, QObject* parento = 0);
   28     inline ~idMaker() {}
   29 
   30     QString makeID(const bibReference& reference);
   31 
   32 
   33 private:
   34     QString _author;
   35     QString _id_pattern;
   36     QString _journal;
   37     QString _pages;
   38     QString _title;
   39     QString _title_pattern;
   40     QString _volume;
   41     QString _year;
   42     bool _is_title_underscored;
   43     const QString _pattern_key;
   44     int _title_max_length;
   45     void make_author_all_abbreviated(QString* id);
   46     void make_author_all_initials(QString* id);
   47     void make_author_first(QString* id);
   48     void make_author_first_lowercase(QString* id);
   49     void make_journal_initials(QString* id);
   50     void make_pages_first(QString* id);
   51     void make_ppages_first(QString* id);
   52     void make_title(QString* id);
   53     void make_title_first_word(QString* id);
   54     void make_volume(QString* id);
   55     void make_year_abbreviated(QString* id);
   56     void make_year_full(QString* id);
   57 
   58 
   59 private slots:
   60     void loadSettings();
   61 };
   62 
   63 #endif