Issue 117866 - new service to allow simplified access on existing graphic resources
Summary: new service to allow simplified access on existing graphic resources
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC All
: P3 Normal
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-15 10:32 UTC by jsc
Modified: 2017-05-20 11:27 UTC (History)
1 user (show)

See Also:
Issue Type: FEATURE
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jsc 2011-04-15 10:32:56 UTC
Extension developers often want to reuse some existing graphics (often icons) from the existing resources in the office. But without exact knowledge of the often very cryptic file name it is nearly impossible to get access to this resources. A new simple service should help to retrieve filetype icons by mimetypes and general icons by a more human understandable name e.g. 'folder_open", "folder_up" etc.
Comment 1 jsc 2011-04-15 10:36:14 UTC
The service is simplified and makes use of the existing com.sun.star.graphic.GraphicProvider and provides mainly a simplified mapping.

New types:
com.sun.star.ui.ImageProvider (new style service)
com.sun.star.ui.XImageProvider
 - getFileTypeIconByMimeType(String mimetype, short iconsize) -> only 16x16 and 32x32 supported
 - getIconByName(String name, short iconsize) -> iconsise currently not used, always returned 16x16
Comment 2 Oliver-Rainer Wittmann 2012-06-13 12:17:29 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.
Comment 3 Marcus 2017-05-20 11:27:43 UTC
Reset assigne to the default "issues@openoffice.apache.org".