|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norvelle.textcite.gui.action.ExportRTFAction
org.norvelle.textcite.gui.action.ExportTranslationsAction
public class ExportTranslationsAction
ExportPDFAction: Handles the exporting of citations in PDF format. Produces a dialog box, allowing the user to indicate preferences, then collects the citations required and uses the iText framework to produce a PDF document with the name the user chooses.
Nested Class Summary | |
---|---|
(package private) class |
ExportTranslationsAction.GreekCitationsFilter
GreekCitationsFilter Filters for citations with Greek text |
(package private) class |
ExportTranslationsAction.TranslationsOnlyCitationExporter
TranslationsOnlyCitationExporter: An CitationExporter that outputs citations to RTF, including only citations and excluding commentaries. |
Field Summary | |
---|---|
protected boolean |
cancelButtonPressed
|
protected CitationSet |
citationSet
|
static int |
CODE_BIBTEX
|
static int |
CODE_CITATION
|
static int |
CODE_ENDNOTE
|
protected int |
codeStyle
|
static int |
COMMENTARIES_IN_FOOTNOTES
|
static int |
COMMENTARIES_INTERWOVEN
|
static int |
COMMENTARIES_MAIN_TEXT
|
protected double |
currentIndent
|
protected int |
currOutlineLevel
|
protected ExportRTFDialog |
dialog
|
static int |
EXPORT_ALL
|
static int |
EXPORT_SELECTED
|
static int |
EXPORT_VIEW
|
protected CitationExporter |
exporter
|
protected java.io.File |
exportFile
|
protected int |
exportSet
|
protected java.lang.String |
footer
|
protected java.lang.String |
header
|
protected boolean |
includeCommentaries
|
protected boolean |
includeOnlyRefs
|
protected int |
inclusionType
|
static float |
INDENT_WIDTH
Indentation equivalent to half an inch. |
protected boolean |
insertBibCodes
|
protected MainFrame |
mainFrame
|
protected ExportTranslationsAction |
me
|
protected boolean |
numberPages
|
protected int |
organization
|
static int |
ORGANIZE_AUTHOR_PUB
|
static int |
ORGANIZE_CURRENT_VIEW
|
static int |
ORGANIZE_OUTLINE
|
protected java.io.FileWriter |
outputWriter
|
protected ProgressDialog |
progressDialog
Objects for handling PDF output via iText |
Fields inherited from class org.norvelle.textcite.gui.action.ExportRTFAction |
---|
authorFont, bookFont, document, outlineFont, titleFont |
Constructor Summary | |
---|---|
ExportTranslationsAction(MainFrame mainFrame)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent arg0)
Called by the menu or toolbar when the user chooses the action. |
protected void |
addCitationsToDocument()
For each Citation in the CitationSet, add it to the PDF document to be output, following the parameters selected by the user. |
void |
cancelPressed()
|
protected void |
collectCitationSet()
The routine that adds the chosen content to the document. |
void |
doExport(ExportRTFDialog dialog)
This method is called once the dialog box has collected the necessary information from the user in order to perform the export. |
protected void |
newAuthor(Citation c)
Respond to a change in Author by outputting a new section header |
protected void |
newBook(Citation c)
Respond to a change in Book by outputting a new section header |
void |
process()
The controller routine for the export process. |
protected void |
setExporter()
Set up the CitationExporter according to the user's choice |
protected void |
setSortColumns()
Figures out what the sorting columns should be and configures the CitationSet appropriately |
Methods inherited from class org.norvelle.textcite.gui.action.ExportRTFAction |
---|
getCurrentIndent, getExportFile, getFooter, getHeader, isIncludeCommentaries, isNumberPages, newOutlineNumber, setCodeStyle, setCommentaryInclusionType, setExportFile, setExportSet, setFooter, setHeader, setIncludeCommentaries, setIncludeOnlyReferences, setInsertBibCodes, setOrganization |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EXPORT_ALL
public static final int EXPORT_SELECTED
public static final int EXPORT_VIEW
public static final int ORGANIZE_CURRENT_VIEW
public static final int ORGANIZE_AUTHOR_PUB
public static final int ORGANIZE_OUTLINE
public static final int COMMENTARIES_IN_FOOTNOTES
public static final int COMMENTARIES_INTERWOVEN
public static final int COMMENTARIES_MAIN_TEXT
public static final int CODE_BIBTEX
public static final int CODE_ENDNOTE
public static final int CODE_CITATION
public static final float INDENT_WIDTH
protected java.io.File exportFile
protected java.lang.String header
protected java.lang.String footer
protected boolean numberPages
protected boolean includeCommentaries
protected int exportSet
protected int organization
protected ExportRTFDialog dialog
protected MainFrame mainFrame
protected java.io.FileWriter outputWriter
protected CitationSet citationSet
protected boolean cancelButtonPressed
protected int inclusionType
protected boolean includeOnlyRefs
protected boolean insertBibCodes
protected int codeStyle
protected CitationExporter exporter
protected double currentIndent
protected int currOutlineLevel
protected ExportTranslationsAction me
protected ProgressDialog progressDialog
Constructor Detail |
---|
public ExportTranslationsAction(MainFrame mainFrame)
Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent arg0)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class ExportRTFAction
public void doExport(ExportRTFDialog dialog)
doExport
in class ExportRTFAction
public void process()
process
in class ExportRTFAction
protected void setSortColumns()
setSortColumns
in class ExportRTFAction
protected void setExporter() throws RTFExportException
setExporter
in class ExportRTFAction
RTFExportException
protected void collectCitationSet()
collectCitationSet
in class ExportRTFAction
protected void addCitationsToDocument() throws DocumentException
addCitationsToDocument
in class ExportRTFAction
DocumentException
public void cancelPressed()
cancelPressed
in interface CancelListener
cancelPressed
in class ExportRTFAction
protected void newAuthor(Citation c)
newAuthor
in class ExportRTFAction
protected void newBook(Citation c)
newBook
in class ExportRTFAction
changedCitation
- The citation that contains the new Book
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |