C# Class Docear4Word.CiteProcRunner

Inheritance: JavaScriptRunner
ファイルを表示 Open project: JabRef/JabRef4Word Class Usage Examples

Public Methods

Method Description
AppendCitation ( Docear4Word.JSInlineCitation citation ) : string
CacheRawCitationItem ( Docear4Word.JSRawCitationItem rawCitationItem ) : void
CiteProcRunner ( Docear4Word.StyleInfo style, GetDatabaseDelegate databaseProvider ) : System
CreateInlineCitationFromFieldJSON ( Field field ) : Docear4Word.JSInlineCitation
CreateJSInlineCitationItem ( Docear4Word.EntryAndPagePair itemSource ) : Docear4Word.JSInlineCitationItem
GetCitationStringByIndex ( int index ) : string
HackCreateWrappedArray ( Docear4Word.JSCitationIDAndIndexPair objects ) : object
MakeBibliography ( ) : Docear4Word.BibliographyResult
ProcessCitation ( Docear4Word.JSInlineCitation citation, object citationsPre, object citationsPost ) : Docear4Word.JSProcessCitationResult
ResetProcessorState ( ) : void
RestoreProcessorState ( object jsCitations ) : Docear4Word.JSProcessCitationResult

RestoreProcessState doesn't always return all strings. Therefore we get them all manually.

SetOutputFormat ( string name ) : void
UpdateItems ( string idList, bool suppressOutput = false ) : string[]

Private Methods

Method Description
CallMethod ( string name ) : object
CiteProcRunner ( ) : System
CreateEntryAndPagePairByID ( string id ) : Docear4Word.EntryAndPagePair
CreateJSProcessCitationResult ( object jsResult ) : Docear4Word.JSProcessCitationResult
FetchOrCreateJSRawCitationItem ( string id ) : Docear4Word.JSRawCitationItem
RetrieveItemByID ( string id ) : object

Method Details

AppendCitation() public method

public AppendCitation ( Docear4Word.JSInlineCitation citation ) : string
citation Docear4Word.JSInlineCitation
return string

CacheRawCitationItem() public method

public CacheRawCitationItem ( Docear4Word.JSRawCitationItem rawCitationItem ) : void
rawCitationItem Docear4Word.JSRawCitationItem
return void

CiteProcRunner() public method

public CiteProcRunner ( Docear4Word.StyleInfo style, GetDatabaseDelegate databaseProvider ) : System
style Docear4Word.StyleInfo
databaseProvider GetDatabaseDelegate
return System

CreateInlineCitationFromFieldJSON() public method

public CreateInlineCitationFromFieldJSON ( Field field ) : Docear4Word.JSInlineCitation
field Field
return Docear4Word.JSInlineCitation

CreateJSInlineCitationItem() public method

public CreateJSInlineCitationItem ( Docear4Word.EntryAndPagePair itemSource ) : Docear4Word.JSInlineCitationItem
itemSource Docear4Word.EntryAndPagePair
return Docear4Word.JSInlineCitationItem

GetCitationStringByIndex() public method

public GetCitationStringByIndex ( int index ) : string
index int
return string

HackCreateWrappedArray() public method

public HackCreateWrappedArray ( Docear4Word.JSCitationIDAndIndexPair objects ) : object
objects Docear4Word.JSCitationIDAndIndexPair
return object

MakeBibliography() public method

public MakeBibliography ( ) : Docear4Word.BibliographyResult
return Docear4Word.BibliographyResult

ProcessCitation() public method

public ProcessCitation ( Docear4Word.JSInlineCitation citation, object citationsPre, object citationsPost ) : Docear4Word.JSProcessCitationResult
citation Docear4Word.JSInlineCitation
citationsPre object
citationsPost object
return Docear4Word.JSProcessCitationResult

ResetProcessorState() public method

public ResetProcessorState ( ) : void
return void

RestoreProcessorState() public method

RestoreProcessState doesn't always return all strings. Therefore we get them all manually.
public RestoreProcessorState ( object jsCitations ) : Docear4Word.JSProcessCitationResult
jsCitations object An array of JS citations.
return Docear4Word.JSProcessCitationResult

SetOutputFormat() public method

public SetOutputFormat ( string name ) : void
name string
return void

UpdateItems() public method

public UpdateItems ( string idList, bool suppressOutput = false ) : string[]
idList string
suppressOutput bool
return string[]