Changeset View
Changeset View
Standalone View
Standalone View
plugins/flake/textshape/kotext/KoTextLocator.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 35 | public: | |||
---|---|---|---|---|---|
51 | QString chapter() const; | 51 | QString chapter() const; | ||
52 | /// return the page number on which the locator is placed. | 52 | /// return the page number on which the locator is placed. | ||
53 | int pageNumber() const; | 53 | int pageNumber() const; | ||
54 | /// return the position in the text document at which the locator is inserted. | 54 | /// return the position in the text document at which the locator is inserted. | ||
55 | int indexPosition() const; | 55 | int indexPosition() const; | ||
56 | /// return the word in which the locator is inserted. | 56 | /// return the word in which the locator is inserted. | ||
57 | QString word() const; | 57 | QString word() const; | ||
58 | 58 | | |||
59 | /// Add a text reference that is interrested in knowing when this locator is laid-out in a differen position. | 59 | /// Add a text reference that is interested in knowing when this locator is laid-out in a different position. | ||
60 | void addListener(KoTextReference *reference); | 60 | void addListener(KoTextReference *reference); | ||
61 | /// Remove a reference from the listeners. | 61 | /// Remove a reference from the listeners. | ||
62 | void removeListener(KoTextReference *reference); | 62 | void removeListener(KoTextReference *reference); | ||
63 | 63 | | |||
64 | bool loadOdf(const KoXmlElement &element, KoShapeLoadingContext &context) override; | 64 | bool loadOdf(const KoXmlElement &element, KoShapeLoadingContext &context) override; | ||
65 | void saveOdf(KoShapeSavingContext &context) override; | 65 | void saveOdf(KoShapeSavingContext &context) override; | ||
66 | 66 | | |||
67 | private: | 67 | private: | ||
68 | class Private; | 68 | class Private; | ||
69 | Private * const d; | 69 | Private * const d; | ||
70 | }; | 70 | }; | ||
71 | 71 | | |||
72 | #endif | 72 | #endif |