Revision: 309 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=309&view=rev Author: frlan Date: 2008-11-21 13:18:30 +0000 (Fri, 21 Nov 2008)
Log Message: ----------- GeanyLaTeX: Use direct integer values instead of calling get_entry_pos().
Modified Paths: -------------- trunk/geanylatex/src/bibtex.c
Modified: trunk/geanylatex/src/bibtex.c =================================================================== --- trunk/geanylatex/src/bibtex.c 2008-11-21 13:18:05 UTC (rev 308) +++ trunk/geanylatex/src/bibtex.c 2008-11-21 13:18:30 UTC (rev 309) @@ -154,46 +154,46 @@
switch(doctype) { case ARTICLE: - set_status(get_entry_pos("author"), TRUE); - set_status(get_entry_pos("title"), TRUE); - set_status(get_entry_pos("journal"), TRUE); - set_status(get_entry_pos("year"), TRUE); + set_status(AUTHOR, TRUE); + set_status(TITLE, TRUE); + set_status(JOURNAL, TRUE); + set_status(YEAR, TRUE); break; case BOOK: - set_status(get_entry_pos("author"), TRUE); - set_status(get_entry_pos("editor"), TRUE); - set_status(get_entry_pos("title"), TRUE); - set_status(get_entry_pos("publisher"), TRUE); - set_status(get_entry_pos("year"), TRUE); + set_status(AUTHOR, TRUE); + set_status(EDITOR, TRUE); + set_status(TITLE, TRUE); + set_status(PUBLISHER, TRUE); + set_status(YEAR, TRUE); break; case BOOKLET: - set_status(get_entry_pos("title"), TRUE); + set_status(TITLE, TRUE); break; case CONFERENCE: case INCOLLECTION: case INPROCEEDINGS: - set_status(get_entry_pos("author"), TRUE); - set_status(get_entry_pos("title"), TRUE); - set_status(get_entry_pos("booktitle"), TRUE); - set_status(get_entry_pos("year"), TRUE); + set_status(AUTHOR, TRUE); + set_status(TITLE, TRUE); + set_status(BOOKTITLE, TRUE); + set_status(YEAR, TRUE); break; case INBOOK: - set_status(get_entry_pos("author"), TRUE); - set_status(get_entry_pos("editor"), TRUE); - set_status(get_entry_pos("title"), TRUE); - set_status(get_entry_pos("chapter"), TRUE); - set_status(get_entry_pos("pages"), TRUE); - set_status(get_entry_pos("publisher"), TRUE); - set_status(get_entry_pos("year"), TRUE); + set_status(AUTHOR, TRUE); + set_status(EDITOR, TRUE); + set_status(TITLE, TRUE); + set_status(CHAPTER, TRUE); + set_status(PAGES, TRUE); + set_status(PUBLISHER, TRUE); + set_status(YEAR, TRUE); break; case MANUAL: - set_status(get_entry_pos("title"), TRUE); + set_status(TITLE, TRUE); break; case MASTERSTHESIS: - set_status(get_entry_pos("author"), TRUE); - set_status(get_entry_pos("title"), TRUE); - set_status(get_entry_pos("school"), TRUE); - set_status(get_entry_pos("year"), TRUE); + set_status(AUTHOR, TRUE); + set_status(TITLE, TRUE); + set_status(SCHOOL, TRUE); + set_status(YEAR, TRUE); break; case MISC: for (i = 0; i < N_ENTRIES; i++) @@ -201,19 +201,19 @@ set_status(i, TRUE); } case PHDTHESIS: - set_status(get_entry_pos("title"), TRUE); - set_status(get_entry_pos("year"), TRUE); + set_status(TITLE, TRUE); + set_status(YEAR, TRUE); break; case TECHREPORT: - set_status(get_entry_pos("author"), TRUE); - set_status(get_entry_pos("title"), TRUE); - set_status(get_entry_pos("institution"), TRUE); - set_status(get_entry_pos("year"), TRUE); + set_status(AUTHOR, TRUE); + set_status(TITLE, TRUE); + set_status(INSTITUTION, TRUE); + set_status(YEAR, TRUE); break; case UNPUBLISHED: - set_status(get_entry_pos("author"), TRUE); - set_status(get_entry_pos("title"), TRUE); - set_status(get_entry_pos("note"), TRUE); + set_status(AUTHOR, TRUE); + set_status(TITLE, TRUE); + set_status(NOTE, TRUE); }
output = g_strconcat(output, label_types[doctype], "{ \n",NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org