Changeset View
Changeset View
Standalone View
Standalone View
plugins/flake/textshape/kotext/KoInlineObjectRegistry.h
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 42 | public: | |||
---|---|---|---|---|---|
49 | */ | 49 | */ | ||
50 | static KoInlineObjectRegistry *instance(); | 50 | static KoInlineObjectRegistry *instance(); | ||
51 | 51 | | |||
52 | /** | 52 | /** | ||
53 | * Create a list of actions that can be used to plug into a menu, for example. | 53 | * Create a list of actions that can be used to plug into a menu, for example. | ||
54 | * This method will find all the InlineObjectFactories that are installed in the system and | 54 | * This method will find all the InlineObjectFactories that are installed in the system and | ||
55 | * find out which object they provide. If a factory provides a variable, then all its | 55 | * find out which object they provide. If a factory provides a variable, then all its | ||
56 | * templates will be added to the response. | 56 | * templates will be added to the response. | ||
57 | * Each of thse actions, when executed, will insert the relevant variable in the current text-position. | 57 | * Each of these actions, when executed, will insert the relevant variable in the current text-position. | ||
58 | * The actions assume that the text tool is selected, if that's not the case then they will silently fail. | 58 | * The actions assume that the text tool is selected, if that's not the case then they will silently fail. | ||
59 | * @param host the canvas for which these actions are created. Note that the actions will get these | 59 | * @param host the canvas for which these actions are created. Note that the actions will get these | ||
60 | * actions as a parent (for memory management purposes) as well. | 60 | * actions as a parent (for memory management purposes) as well. | ||
61 | * @see KoInlineTextObjectManager::createInsertVariableActions() | 61 | * @see KoInlineTextObjectManager::createInsertVariableActions() | ||
62 | */ | 62 | */ | ||
63 | QList<QAction*> createInsertVariableActions(KoCanvasBase *host) const; | 63 | QList<QAction*> createInsertVariableActions(KoCanvasBase *host) const; | ||
64 | 64 | | |||
65 | /** | 65 | /** | ||
Show All 16 Lines |