|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norvelle.textcite.gui.action.ExportRTFAction
public class ExportRTFAction
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.
Field Summary | |
---|---|
protected Font |
authorFont
|
protected Font |
bookFont
|
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
|
protected Document |
document
|
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 ExportRTFAction |
me
|
protected boolean |
numberPages
|
protected int |
organization
|
static int |
ORGANIZE_AUTHOR_PUB
|
static int |
ORGANIZE_CURRENT_VIEW
|
static int |
ORGANIZE_OUTLINE
|
protected Font |
outlineFont
|
protected ProgressDialog |
progressDialog
Objects for handling PDF output via iText |
protected Font |
titleFont
|
Constructor Summary | |
---|---|
ExportRTFAction(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. |
float |
getCurrentIndent()
|
java.io.File |
getExportFile()
|
java.lang.String |
getFooter()
|
java.lang.String |
getHeader()
|
boolean |
isIncludeCommentaries()
|
boolean |
isNumberPages()
|
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 |
protected void |
newOutlineNumber(Citation c)
Respond to a change in outline number by outputting a new section header |
void |
process()
The controller routine for the export process. |
void |
setCodeStyle(int style)
|
void |
setCommentaryInclusionType(int inclusionType)
|
protected void |
setExporter()
Set up the CitationExporter according to the user's choice |
void |
setExportFile(java.io.File exportFile)
|
void |
setExportSet(int exportSet)
|
void |
setFooter(java.lang.String footer)
|
void |
setHeader(java.lang.String header)
|
void |
setIncludeCommentaries(boolean includeCommentaries)
|
void |
setIncludeOnlyReferences(boolean include)
|
void |
setInsertBibCodes(boolean insert)
|
void |
setOrganization(int organizationType)
|
protected void |
setSortColumns()
Figures out what the sorting columns should be and configures the CitationSet appropriately |
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 Document document
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 ExportRTFAction me
protected ProgressDialog progressDialog
protected Font titleFont
protected Font authorFont
protected Font bookFont
protected Font outlineFont
Constructor Detail |
---|
public ExportRTFAction(MainFrame mainFrame)
Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent arg0)
actionPerformed
in interface java.awt.event.ActionListener
public void doExport(ExportRTFDialog dialog)
public void process()
protected void setSortColumns()
protected void setExporter() throws RTFExportException
RTFExportException
protected void collectCitationSet()
protected void addCitationsToDocument() throws DocumentException
DocumentException
public void cancelPressed()
cancelPressed
in interface CancelListener
protected void newAuthor(Citation c)
protected void newBook(Citation c)
changedCitation
- The citation that contains the new Bookprotected void newOutlineNumber(Citation c)
changedCitation
- The citation that contains the new Bookpublic java.io.File getExportFile()
public void setExportFile(java.io.File exportFile)
exportFile
- The exportFile to set.public java.lang.String getFooter()
public void setFooter(java.lang.String footer)
footer
- The footer to set.public java.lang.String getHeader()
public void setHeader(java.lang.String header)
header
- The header to set.public boolean isIncludeCommentaries()
public void setIncludeCommentaries(boolean includeCommentaries)
includeCommentaries
- The includeCommentaries to set.public boolean isNumberPages()
public void setExportSet(int exportSet)
exportSet
- The export set, i.e. whether all, selected or currently visible citations
are to be exported.public void setOrganization(int organizationType)
public void setCommentaryInclusionType(int inclusionType)
public void setIncludeOnlyReferences(boolean include)
public void setInsertBibCodes(boolean insert)
public void setCodeStyle(int style)
public float getCurrentIndent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |