Clipboard Monitor for Quotations
Implement a clipboard monitor so that quotations can be written in external applications and will automatically be inserted as new quotes, if the monitor is activated.
Blueprint information
- Status:
- Complete
- Approver:
- Prunus dulcis
- Priority:
- Medium
- Drafter:
- None
- Direction:
- Approved
- Assignee:
- Prunus dulcis
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Prunus dulcis
- Completed by
- Prunus dulcis
Related branches
Related bugs
Sprints
Whiteboard
Implemented first draft, a toggle button has been implemented into the QuotationEditor
The clipboard monitor looks for FlavorChanged Events in the clipboard and if they are of the flavor text, they are checked for pattern. If the pattern is
numbers - numbers "some text"
this is interpreted as startpage - endpage "quotation content"
If only one number is given, as in
numbers "some text"
startpage equals endpage.
Important is the use of the " as delimiter of the content. If there is no beginning-" directly after the first whitespace after the numbers or no end-" the quote is not recognized by the matcher and nothing happens.
Several quotations can be added to the clipboard at the same time and will be automatically separated and inserted, if following the above pattern scheme.