@API(type=NOT_EXTENDABLE,
src=PRIVATE)
public class DocbookAccess
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOCBOOK_NS
Docbook namespace.
|
protected static ro.sync.exml.MessageBundle |
messages
The messages resource bundle.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<CIAttribute> |
annotateAttributes(java.util.List<CIAttribute> attributes)
Annotate a list of attributes.
|
static java.lang.String |
chooseLocalLink(AuthorAccess authorAccess,
boolean isXref,
boolean isDocbook5)
Show a dialog to choose an id.
|
static OLinkInfo |
chooseOLink(AuthorAccess authorAccess)
Choose OLink.
|
static java.lang.String |
chooseURLForLink(AuthorAccess authorAccess,
java.lang.String title)
Choose url for link.
|
static void |
editOLink(AuthorAccess authorAccess,
java.lang.String namespace)
Edit OLink.
|
static java.util.List<CIValue> |
filterAttributeValues(java.util.List<CIValue> attributeValues,
WhatPossibleValuesHasAttributeContext context,
java.lang.String documentTypeName)
Propose additional attribute values
|
static void |
insertLocalLink(AuthorAccess authorAccess,
boolean schemaAware)
Create and insert a local link element.
|
static void |
insertOLink(AuthorAccess authorAccess,
java.lang.String namespace)
Insert OLink.
|
static void |
insertXInclude(AuthorAccess authorAccess)
Insert an XInclude fragment.
|
static void |
insertXRef(AuthorAccess authorAccess,
boolean schemaAware)
Insert a xref element.
|
static void |
pasteContentAsLink(AuthorAccess authorAccess)
Paste clipboard content as <link> with @linkend attribute.
|
static void |
pasteContentAsXref(AuthorAccess authorAccess)
Paste clipboard content as <xref> with @linkend attribute.
|
static java.net.URL |
resolveCustomHrefToMasterFile(java.net.URL currentEditorURL,
java.lang.String linkHref,
AuthorAccess authorAccess)
Resolve an IDREF to a master file if possible.
|
static void |
setDocbookAccessCustomizer(ro.sync.ecss.docbook.DocbookAccessCustomizer accessCustomizer) |
protected static final ro.sync.exml.MessageBundle messages
public static final java.lang.String DOCBOOK_NS
public static void setDocbookAccessCustomizer(ro.sync.ecss.docbook.DocbookAccessCustomizer accessCustomizer)
accessCustomizer
- The accessCustomizer to set.public static OLinkInfo chooseOLink(AuthorAccess authorAccess)
authorAccess
- The Author access.null
if the user canceled the operation.public static void insertOLink(AuthorAccess authorAccess, java.lang.String namespace) throws AuthorOperationException
authorAccess
- Author accessnamespace
- NamespaceAuthorOperationException
public static void editOLink(AuthorAccess authorAccess, java.lang.String namespace) throws AuthorOperationException, javax.swing.text.BadLocationException
authorAccess
- Author accessnamespace
- NamespaceAuthorOperationException
javax.swing.text.BadLocationException
public static java.util.List<CIValue> filterAttributeValues(java.util.List<CIValue> attributeValues, WhatPossibleValuesHasAttributeContext context, java.lang.String documentTypeName)
attributeValues
- The attribute valuescontext
- The contextdocumentTypeName
- public static java.util.List<CIAttribute> annotateAttributes(java.util.List<CIAttribute> attributes)
attributes
- The attributes list.public static void insertXInclude(AuthorAccess authorAccess) throws AuthorOperationException
authorAccess
- The author access.AuthorOperationException
public static void insertLocalLink(AuthorAccess authorAccess, boolean schemaAware) throws AuthorOperationException
authorAccess
- The Author access.schemaAware
- true
to insert with schema aware, false
otherwise.AuthorOperationException
public static java.lang.String chooseLocalLink(AuthorAccess authorAccess, boolean isXref, boolean isDocbook5)
authorAccess
- The author access.isXref
- If true
it will be inserted an xref element.isDocbook5
- If true
the current file is Docbook 5.null
if the user canceled the dialog.Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
public static java.lang.String chooseURLForLink(AuthorAccess authorAccess, java.lang.String title)
authorAccess
- The author access.title
- The dialog title.Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
public static void insertXRef(AuthorAccess authorAccess, boolean schemaAware) throws AuthorOperationException
authorAccess
- The Author access.schemaAware
- true
to insert with schema aware, false
otherwise.AuthorOperationException
public static java.net.URL resolveCustomHrefToMasterFile(java.net.URL currentEditorURL, java.lang.String linkHref, AuthorAccess authorAccess)
currentEditorURL
- The current editor URLlinkHref
- The link hrefauthorAccess
- The author accesspublic static void pasteContentAsLink(AuthorAccess authorAccess)
authorAccess
- The author access.public static void pasteContentAsXref(AuthorAccess authorAccess)
authorAccess
- The author access.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.