Custom Paste commands in Dita Map Manager
Post here questions and problems related to oXygen frameworks/document types.
Custom Paste commands in Dita Map Manager
We have a requirement to copy topics from a third party application and paste it to dita map structure in Dita Map Manager.
Could we customize the existing paste, pater after, and paste before command in dita map manager to support the use case?
If those commands are allowed to be customized, could you provide the guidance on how to customize them? what would be the format of the clipboard content if we want to paste the dita topic as topicref in the map structure?
Thanks!
Kehua
Could we customize the existing paste, pater after, and paste before command in dita map manager to support the use case?
If those commands are allowed to be customized, could you provide the guidance on how to customize them? what would be the format of the clipboard content if we want to paste the dita topic as topicref in the map structure?
Thanks!
Kehua
Re: Custom Paste commands in Dita Map Manager
Hi Kehua,
Maybe it would be simpler to customize the context popup menu of a document opened in the DITA Maps Manager and add your own "Insert custom topicrefs" action:
https://www.oxygenxml.com/InstData/Edit ... ustomizer)
You would have access to the current selection:
https://www.oxygenxml.com/InstData/Edit ... s(boolean)
and to the AuthorDocumentController to make changes to the document:
https://www.oxygenxml.com/InstData/Edit ... ntroller()
Another option would be for you to set in the system clipboard a data flavor with this mime type:
containing as content a string with URL-like paths separated by "\n".
Our "Paste" actions should take this flavor, obtain the URL-like paths and insert topicrefs to those URLs.
Regards,
Radu
Maybe it would be simpler to customize the context popup menu of a document opened in the DITA Maps Manager and add your own "Insert custom topicrefs" action:
https://www.oxygenxml.com/InstData/Edit ... ustomizer)
You would have access to the current selection:
https://www.oxygenxml.com/InstData/Edit ... s(boolean)
and to the AuthorDocumentController to make changes to the document:
https://www.oxygenxml.com/InstData/Edit ... ntroller()
Another option would be for you to set in the system clipboard a data flavor with this mime type:
Code: Select all
"text/uri-list;class=java.lang.String"
Our "Paste" actions should take this flavor, obtain the URL-like paths and insert topicrefs to those URLs.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service