Difference between revisions of "Bibliographic/Developer Page/API Enhancements"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Description)
(Description)
Line 21: Line 21:
  
 
; string Key  
 
; string Key  
:This field contains a hash key which acts as an index to the bibliographic data stored in the bibliographic data file.  
+
:This field contains a hash key which acts as an index to the bibliographic data stored in the [http://wiki.services.openoffice.org/wiki/Bibliographic_Document_XML_Format#biblo-data.xml biblio-data.xml] file in the save package
 
;formattedText CitationString
 
;formattedText CitationString
 
:The formatted citation text, generated by CiteProc, to be displayed. (describe selection process)
 
:The formatted citation text, generated by CiteProc, to be displayed. (describe selection process)
Line 35: Line 35:
 
:The number, name, description etc. of the location of the citation.
 
:The number, name, description etc. of the location of the citation.
 
;boolean IsInitial  
 
;boolean IsInitial  
:Determines whether this citation is the first reference (ie first use of the hash key in the text) to the reference within the defined text range. '''Method''': The current API of the Writer provides an interface [http://api.openoffice.org/docs/common/ref/com/sun/star/text/XTextRangeCompare.html XTextRangeCompare]. With this interface two [http://api.openoffice.org/docs/common/ref/com/sun/star/text/TextRange.html text ranges] (citations are also text ranges) can  
+
:Determines whether this citation is the first reference (ie first use of the hash key in the text) to the reference within the defined text range. '''Method''': The current API of the Writer provides an interface [http://api.openoffice.org/docs/common/ref/com/sun/star/text/XTextRangeCompare.html XTextRangeCompare]. With this interface two [http://api.openoffice.org/docs/common/ref/com/sun/star/text/TextRange.html text ranges] (citations are also text ranges) can be sorted. This interface is implemented at each [http://api.openoffice.org/docs/common/ref/com/sun/star/text/Text.html text part] (body text, header, footer, footnote areas, text frames, table cells, draw text).
be sorted. This interface is implemented at each [http://api.openoffice.org/docs/common/ref/com/sun/star/text/Text.html text part] (body text,  
+
header, footer, footnote areas, text frames, table cells, draw text).
+
 
;boolean IsIbid
 
;boolean IsIbid
 
:Determines whether this citation directly follows a citation to the same reference. (ie  the hash key in the text)  
 
:Determines whether this citation directly follows a citation to the same reference. (ie  the hash key in the text)  

Revision as of 02:00, 22 September 2006

Details of the current Bibliographic implementation and API reference documentation is available here.

BibliographyDataField

com :: sun :: star :: text ::

constants group BibliographyDataField

constants group BibliographyDataField

Description

This field needs to be totally rewritten. The old definition was

“These values define parts of bibliographic data. They are used to create a
bibliography in a text document.”

The new definition is:

These values define the characteristics of an individual bibliographic entry. 
It no longer contains the bibliographic data but instead holds a key to the
bibliographic data stored in the bibliographic data file.
string Key
This field contains a hash key which acts as an index to the bibliographic data stored in the biblio-data.xml file in the save package
formattedText CitationString
The formatted citation text, generated by CiteProc, to be displayed. (describe selection process)
formattedText CitationPrefix
The formatted text which the user considers citation prefix.
formattedText CitationSuffix
The formatted text which the user considers citation suffix
formattedText CitationLocation
The formatted text which contains the location details (i.e. page number(s))
string LocationType
The type of location page, chapter, track number (on a CD) etc.
string Location
The number, name, description etc. of the location of the citation.
boolean IsInitial
Determines whether this citation is the first reference (ie first use of the hash key in the text) to the reference within the defined text range. Method: The current API of the Writer provides an interface XTextRangeCompare. With this interface two text ranges (citations are also text ranges) can be sorted. This interface is implemented at each text part (body text, header, footer, footnote areas, text frames, table cells, draw text).
boolean IsIbid
Determines whether this citation directly follows a citation to the same reference. (ie the hash key in the text)
boolean IsIbidSameLocation
Determines whether this citation directly follows a citation to the same reference and location. (ie the hash key, and the same location )
string CitationAuthorName
The author name of the citation
string CitationDate
The date of the citation
booleen ExcludeAuthorName
Determines whether this citation excludes the author name. This option is needed when you have referred to the author's name in the text and do not want it included in the citation. i.e.
Gao Xingjian in his novel 'sole mountain' (1990) explores identity 
and myth in China.
booleen ExcludeDate
Determines whether this citation excludes the date. This option is needed when you have referred to the date in the text and do not want it included in the citation. i.e.
The 1990 novel 'sole mountain' (GaoXingjian) explores identity and 
myth in China.
Personal tools