LibreOffice Module editeng (master) 1
|
This class implements the image bullets for the EditEngine/Outliner UAA. More...
#include <AccessibleImageBullet.hxx>
Public Member Functions | |
AccessibleImageBullet (css::uno::Reference< css::accessibility::XAccessible > xParent) | |
Create accessible object for given parent. More... | |
virtual | ~AccessibleImageBullet () override |
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL | getAccessibleContext () override |
virtual sal_Int64 SAL_CALL | getAccessibleChildCount () override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleChild (sal_Int64 i) override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleParent () override |
virtual sal_Int64 SAL_CALL | getAccessibleIndexInParent () override |
virtual sal_Int16 SAL_CALL | getAccessibleRole () override |
virtual OUString SAL_CALL | getAccessibleDescription () override |
virtual OUString SAL_CALL | getAccessibleName () override |
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL | getAccessibleRelationSet () override |
virtual sal_Int64 SAL_CALL | getAccessibleStateSet () override |
virtual css::lang::Locale SAL_CALL | getLocale () override |
virtual void SAL_CALL | addAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override |
virtual void SAL_CALL | removeAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override |
virtual sal_Bool SAL_CALL | containsPoint (const css::awt::Point &aPoint) override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleAtPoint (const css::awt::Point &aPoint) override |
virtual css::awt::Rectangle SAL_CALL | getBounds () override |
virtual css::awt::Point SAL_CALL | getLocation () override |
virtual css::awt::Point SAL_CALL | getLocationOnScreen () override |
virtual css::awt::Size SAL_CALL | getSize () override |
virtual void SAL_CALL | grabFocus () override |
virtual sal_Int32 SAL_CALL | getForeground () override |
virtual sal_Int32 SAL_CALL | getBackground () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &sServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
void | SetIndexInParent (sal_Int32 nIndex) |
Set the current index in the accessibility parent. More... | |
void | SetEEOffset (const Point &rOffset) |
Set the edit engine offset. More... | |
void | SetEditSource (SvxEditSource *pEditSource) |
Set the EditEngine offset. More... | |
void | Dispose () |
Dispose this object. More... | |
void | SetParagraphIndex (sal_Int32 nIndex) |
Set the current paragraph number. More... | |
sal_Int32 | GetParagraphIndex () const |
Query the current paragraph number (0 - nParas-1) More... | |
void | FireEvent (const sal_Int16 nEventId, const css::uno::Any &rNewValue, const css::uno::Any &rOldValue=css::uno::Any()) const |
Calls all Listener objects to tell them the change. Don't hold locks when calling this! More... | |
Private Member Functions | |
AccessibleImageBullet (const AccessibleImageBullet &)=delete | |
AccessibleImageBullet & | operator= (const AccessibleImageBullet &)=delete |
void | SetState (const sal_Int64 nStateId) |
void | UnSetState (const sal_Int64 nStateId) |
SvxEditSource & | GetEditSource () const |
int | getNotifierClientId () const |
SvxTextForwarder & | GetTextForwarder () const |
Query the SvxTextForwarder for EditEngine access. More... | |
SvxViewForwarder & | GetViewForwarder () const |
Query the SvxViewForwarder for EditEngine access. More... | |
css::awt::Rectangle | implGetBounds () |
Private Attributes | |
sal_Int32 | mnParagraphIndex |
sal_Int32 | mnIndexInParent |
SvxEditSource * | mpEditSource |
Point | maEEOffset |
sal_Int64 | mnStateSet = 0 |
css::uno::Reference< css::accessibility::XAccessible > | mxParent |
The shape we're the accessible for (unguarded) More... | |
int | mnNotifierClientId |
Our listeners (guarded by maMutex) More... | |
This class implements the image bullets for the EditEngine/Outliner UAA.
Definition at line 47 of file AccessibleImageBullet.hxx.
accessibility::AccessibleImageBullet::AccessibleImageBullet | ( | css::uno::Reference< css::accessibility::XAccessible > | xParent | ) |
Create accessible object for given parent.
|
overridevirtual |
Definition at line 79 of file AccessibleImageBullet.cxx.
References comphelper::AccessibleEventNotifier::revokeClient().
|
privatedelete |
|
overridevirtual |
Definition at line 170 of file AccessibleImageBullet.cxx.
References comphelper::AccessibleEventNotifier::addEventListener().
|
overridevirtual |
Definition at line 196 of file AccessibleImageBullet.cxx.
References tools::Rectangle::Contains(), and DBG_ASSERT.
void accessibility::AccessibleImageBullet::Dispose | ( | ) |
Dispose this object.
Notifies and deregisters the listeners, drops all references.
Definition at line 364 of file AccessibleImageBullet.cxx.
References mxParent, and comphelper::AccessibleEventNotifier::revokeClientNotifyDisposing().
void accessibility::AccessibleImageBullet::FireEvent | ( | const sal_Int16 | nEventId, |
const css::uno::Any & | rNewValue, | ||
const css::uno::Any & | rOldValue = css::uno::Any() |
||
) | const |
Calls all Listener objects to tell them the change. Don't hold locks when calling this!
Definition at line 405 of file AccessibleImageBullet.cxx.
References comphelper::AccessibleEventNotifier::addEvent(), and aEvent.
|
overridevirtual |
Definition at line 211 of file AccessibleImageBullet.cxx.
|
overridevirtual |
Definition at line 106 of file AccessibleImageBullet.cxx.
|
overridevirtual |
Definition at line 100 of file AccessibleImageBullet.cxx.
|
overridevirtual |
Definition at line 93 of file AccessibleImageBullet.cxx.
|
overridevirtual |
Definition at line 130 of file AccessibleImageBullet.cxx.
References EditResId().
|
overridevirtual |
Definition at line 118 of file AccessibleImageBullet.cxx.
|
overridevirtual |
Definition at line 136 of file AccessibleImageBullet.cxx.
References EditResId().
|
overridevirtual |
Definition at line 112 of file AccessibleImageBullet.cxx.
References mxParent.
|
overridevirtual |
Definition at line 142 of file AccessibleImageBullet.cxx.
|
overridevirtual |
Definition at line 124 of file AccessibleImageBullet.cxx.
|
overridevirtual |
Definition at line 149 of file AccessibleImageBullet.cxx.
|
overridevirtual |
Definition at line 323 of file AccessibleImageBullet.cxx.
References Application::GetSettings(), and Color::SetAlpha().
|
overridevirtual |
Definition at line 218 of file AccessibleImageBullet.cxx.
|
private |
Definition at line 466 of file AccessibleImageBullet.cxx.
|
overridevirtual |
Definition at line 314 of file AccessibleImageBullet.cxx.
References svtools::FONTCOLOR, svtools::ColorConfig::GetColorValue(), and svtools::ColorConfigValue::nColor.
|
overridevirtual |
Definition at line 335 of file AccessibleImageBullet.cxx.
|
overridevirtual |
Definition at line 158 of file AccessibleImageBullet.cxx.
References DBG_ASSERT, GetLanguage(), and LanguageTag::getLocale().
|
overridevirtual |
Definition at line 260 of file AccessibleImageBullet.cxx.
|
overridevirtual |
Definition at line 270 of file AccessibleImageBullet.cxx.
|
inlineprivate |
Definition at line 155 of file AccessibleImageBullet.hxx.
References mnNotifierClientId.
|
inline |
Query the current paragraph number (0 - nParas-1)
Definition at line 140 of file AccessibleImageBullet.hxx.
References mnParagraphIndex.
|
overridevirtual |
Definition at line 296 of file AccessibleImageBullet.cxx.
|
overridevirtual |
Definition at line 347 of file AccessibleImageBullet.cxx.
|
private |
Query the SvxTextForwarder for EditEngine access.
Definition at line 476 of file AccessibleImageBullet.cxx.
References SvxEditSource::GetTextForwarder(), and SvxTextForwarder::IsValid().
|
private |
Query the SvxViewForwarder for EditEngine access.
Definition at line 494 of file AccessibleImageBullet.cxx.
References SvxEditSource::GetViewForwarder(), and SvxViewForwarder::IsValid().
|
overridevirtual |
Definition at line 306 of file AccessibleImageBullet.cxx.
|
private |
Definition at line 224 of file AccessibleImageBullet.cxx.
References EBulletInfo::aBounds, EBulletInfo::bVisible, DBG_ASSERT, EE_PARA_NOT_FOUND, SvxTextForwarder::GetBulletInfo(), SvxTextForwarder::GetMapMode(), SvxTextForwarder::GetParaBounds(), tools::Rectangle::GetSize(), Size::Height(), tools::Rectangle::Left(), tools::Rectangle::Move(), EBulletInfo::nParagraph, EBulletInfo::nType, SVX_NUM_BITMAP, tools::Rectangle::Top(), Size::Width(), Point::X(), and Point::Y().
|
privatedelete |
|
overridevirtual |
Definition at line 177 of file AccessibleImageBullet.cxx.
References nId, comphelper::AccessibleEventNotifier::removeEventListener(), and comphelper::AccessibleEventNotifier::revokeClient().
void accessibility::AccessibleImageBullet::SetEditSource | ( | SvxEditSource * | pEditSource | ) |
Set the EditEngine offset.
Definition at line 388 of file AccessibleImageBullet.cxx.
References Dispose().
void accessibility::AccessibleImageBullet::SetEEOffset | ( | const Point & | rOffset | ) |
Set the edit engine offset.
Definition at line 358 of file AccessibleImageBullet.cxx.
void accessibility::AccessibleImageBullet::SetIndexInParent | ( | sal_Int32 | nIndex | ) |
Set the current index in the accessibility parent.
Definition at line 352 of file AccessibleImageBullet.cxx.
References nIndex.
void accessibility::AccessibleImageBullet::SetParagraphIndex | ( | sal_Int32 | nIndex | ) |
Set the current paragraph number.
Definition at line 436 of file AccessibleImageBullet.cxx.
References mnParagraphIndex, and nIndex.
|
private |
Definition at line 417 of file AccessibleImageBullet.cxx.
|
overridevirtual |
Definition at line 341 of file AccessibleImageBullet.cxx.
References sServiceName, and cppu::supportsService().
|
private |
Definition at line 426 of file AccessibleImageBullet.cxx.
|
private |
Definition at line 187 of file AccessibleImageBullet.hxx.
|
private |
Definition at line 181 of file AccessibleImageBullet.hxx.
|
private |
Our listeners (guarded by maMutex)
Definition at line 196 of file AccessibleImageBullet.hxx.
Referenced by getNotifierClientId().
|
private |
Definition at line 178 of file AccessibleImageBullet.hxx.
Referenced by GetParagraphIndex().
|
private |
Definition at line 190 of file AccessibleImageBullet.hxx.
|
private |
Definition at line 184 of file AccessibleImageBullet.hxx.
|
private |
The shape we're the accessible for (unguarded)
Definition at line 193 of file AccessibleImageBullet.hxx.