LibreOffice Module sc (master) 1
|
#include <AccessiblePreviewHeaderCell.hxx>
Public Member Functions | |
ScAccessiblePreviewHeaderCell (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScPreviewShell *pViewShell, const ScAddress &rCellPos, bool bIsColHdr, bool bIsRowHdr, sal_Int32 nIndex) | |
virtual void SAL_CALL | disposing () override |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
===== SfxListener ===================================================== More... | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
===== XInterface ===================================================== More... | |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Any SAL_CALL | getCurrentValue () override |
virtual sal_Bool SAL_CALL | setCurrentValue (const css::uno::Any &aNumber) override |
virtual css::uno::Any SAL_CALL | getMaximumValue () override |
virtual css::uno::Any SAL_CALL | getMinimumValue () override |
virtual css::uno::Any SAL_CALL | getMinimumIncrement () override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleAtPoint (const css::awt::Point &aPoint) override |
virtual void SAL_CALL | grabFocus () override |
virtual sal_Int64 SAL_CALL | getAccessibleChildCount () override |
===== XAccessibleContext ============================================== More... | |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleChild (sal_Int64 i) override |
Return the specified child or NULL if index is invalid. More... | |
virtual sal_Int64 SAL_CALL | getAccessibleIndexInParent () override |
Return this objects index among the parents children. More... | |
virtual sal_Int64 SAL_CALL | getAccessibleStateSet () override |
Return the set of current states. More... | |
virtual OUString SAL_CALL | getImplementationName () override |
===== XServiceInfo ==================================================== More... | |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Returns a list of all supported services. More... | |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
===== XTypeProvider =================================================== More... | |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
Returns an implementation id. More... | |
virtual void SAL_CALL | disposing () override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
===== XAccessibleEventListener ======================================== More... | |
Public Member Functions inherited from ScAccessibleContextBase | |
ScAccessibleContextBase (css::uno::Reference< css::accessibility::XAccessible > xParent, const sal_Int16 aRole) | |
virtual void | Init () |
virtual void SAL_CALL | disposing () override |
bool | isShowing () |
virtual bool | isVisible () |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
===== SfxListener ===================================================== More... | |
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL | getAccessibleContext () override |
===== XAccessible ===================================================== More... | |
virtual sal_Bool SAL_CALL | containsPoint (const css::awt::Point &rPoint) override |
===== XAccessibleComponent ============================================ More... | |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleAtPoint (const css::awt::Point &rPoint) 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 sal_Int64 SAL_CALL | getAccessibleChildCount () override |
===== XAccessibleContext ============================================== More... | |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleChild (sal_Int64 nIndex) override |
Return the specified child or NULL if index is invalid. More... | |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleParent () override |
Return a reference to the parent. More... | |
virtual sal_Int64 SAL_CALL | getAccessibleIndexInParent () override |
Return this objects index among the parents children. More... | |
virtual sal_Int16 SAL_CALL | getAccessibleRole () override |
Return this object's role. More... | |
virtual OUString SAL_CALL | getAccessibleDescription () override |
Return this object's description. More... | |
virtual OUString SAL_CALL | getAccessibleName () override |
Return the object's current name. More... | |
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL | getAccessibleRelationSet () override |
Return NULL to indicate that an empty relation set. More... | |
virtual sal_Int64 SAL_CALL | getAccessibleStateSet () override |
Return the set of current states. More... | |
virtual css::lang::Locale SAL_CALL | getLocale () override |
Return the parents locale or throw exception if this object has no parent yet/anymore. More... | |
virtual void SAL_CALL | addAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override |
===== XAccessibleEventBroadcaster ===================================== More... | |
virtual void SAL_CALL | removeAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
===== XAccessibleEventListener ======================================== More... | |
virtual void SAL_CALL | notifyEvent (const css::accessibility::AccessibleEventObject &aEvent) override |
virtual OUString SAL_CALL | getImplementationName () override |
===== XServiceInfo ==================================================== More... | |
virtual sal_Bool SAL_CALL | supportsService (const OUString &sServiceName) override |
Return whether the specified service is supported by this class. More... | |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Returns a list of all supported services. More... | |
void | CommitChange (const css::accessibility::AccessibleEventObject &rEvent) const |
Calls all Listener to tell they the change. More... | |
void | SetName (const OUString &rName) |
Use this method to set initial Name without notification. More... | |
void | SetDescription (const OUString &rDesc) |
Use this method to set initial Description without notification. More... | |
void | SetParent (const css::uno::Reference< css::accessibility::XAccessible > &rParent) |
Public Member Functions inherited from SfxListener | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Protected Member Functions | |
virtual | ~ScAccessiblePreviewHeaderCell () override |
virtual OUString | createAccessibleDescription () override |
Return this object's description. More... | |
virtual OUString | createAccessibleName () override |
Return the object's current name. More... | |
virtual tools::Rectangle | GetBoundingBoxOnScreen () const override |
Return the object's current bounding box relative to the desktop. More... | |
virtual tools::Rectangle | GetBoundingBox () const override |
Return the object's current bounding box relative to the parent object. More... | |
bool | IsDefunc () const |
Protected Member Functions inherited from ScAccessibleContextBase | |
virtual | ~ScAccessibleContextBase () override |
virtual OUString | createAccessibleDescription () |
Return this object's description. More... | |
virtual OUString | createAccessibleName () |
Return the object's current name. More... | |
virtual tools::Rectangle | GetBoundingBoxOnScreen () const |
Return the object's current bounding box relative to the desktop. More... | |
virtual tools::Rectangle | GetBoundingBox () const |
Return the object's current bounding box relative to the parent object. More... | |
void | CommitFocusGained () const |
Calls all FocusListener to tell they that the focus is gained. More... | |
void | CommitFocusLost () const |
Calls all FocusListener to tell they that the focus is lost. More... | |
bool | IsDefunc () const |
void | IsObjectValid () const |
Protected Member Functions inherited from cppu::ImplHelper1< class Ifc1 > | |
~ImplHelper1 () SAL_NOEXCEPT | |
Private Member Functions | |
bool | IsDefunc (sal_Int64 nParentStates) |
void | CreateTextHelper () |
void | FillTableInfo () const |
Private Attributes | |
ScPreviewShell * | mpViewShell |
std::unique_ptr< accessibility::AccessibleTextHelper > | mxTextHelper |
sal_Int32 | mnIndex |
ScAddress | maCellPos |
bool | mbColumnHeader |
bool | mbRowHeader |
std::unique_ptr< ScPreviewTableInfo > | mpTableInfo |
Additional Inherited Members | |
Protected Attributes inherited from ScAccessibleContextBase | |
css::uno::Reference< css::accessibility::XAccessible > | mxParent |
Reference to the parent object. More... | |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Definition at line 37 of file AccessiblePreviewHeaderCell.hxx.
ScAccessiblePreviewHeaderCell::ScAccessiblePreviewHeaderCell | ( | const css::uno::Reference< css::accessibility::XAccessible > & | rxParent, |
ScPreviewShell * | pViewShell, | ||
const ScAddress & | rCellPos, | ||
bool | bIsColHdr, | ||
bool | bIsRowHdr, | ||
sal_Int32 | nIndex | ||
) |
Definition at line 53 of file AccessiblePreviewHeaderCell.cxx.
References ScPreviewShell::AddAccessibilityObject(), mnIndex, mpViewShell, nIndex, and TABLE_CELL.
|
overrideprotectedvirtual |
Definition at line 68 of file AccessiblePreviewHeaderCell.cxx.
References mpViewShell, and ScPreviewShell::RemoveAccessibilityObject().
|
overridevirtualnoexcept |
Definition at line 116 of file AccessiblePreviewHeaderCell.cxx.
|
overrideprotectedvirtual |
Return this object's description.
css::uno::RuntimeException |
Reimplemented from ScAccessibleContextBase.
Definition at line 337 of file AccessiblePreviewHeaderCell.cxx.
References STR_ACC_HEADERCELL_DESCR.
|
overrideprotectedvirtual |
Return the object's current name.
css::uno::RuntimeException |
name for corner cell?
Reimplemented from ScAccessibleContextBase.
Definition at line 342 of file AccessiblePreviewHeaderCell.cxx.
References ScAddress::Col(), maCellPos, mbColumnHeader, mbRowHeader, ScAddress::Row(), ScColToAlpha(), sName, and STR_ACC_HEADERCELL_NAME.
|
private |
Definition at line 375 of file AccessiblePreviewHeaderCell.cxx.
References ScAccessibleContextBase::getAccessibleName(), maCellPos, mbColumnHeader, mbRowHeader, mpViewShell, and mxTextHelper.
Referenced by getAccessibleAtPoint(), getAccessibleChild(), and getAccessibleChildCount().
|
overridevirtual |
Reimplemented from ScAccessibleContextBase.
Definition at line 63 of file AccessibleContextBase.cxx.
|
overridevirtual |
Reimplemented from ScAccessibleContextBase.
Definition at line 74 of file AccessiblePreviewHeaderCell.cxx.
References ScAccessibleContextBase::disposing(), mpTableInfo, mpViewShell, and ScPreviewShell::RemoveAccessibilityObject().
|
overridevirtual |
===== XAccessibleEventListener ========================================
Reimplemented from ScAccessibleContextBase.
|
private |
Definition at line 388 of file AccessiblePreviewHeaderCell.cxx.
References ScPreviewShell::GetLocationData(), vcl::Window::GetOutputSizePixel(), ScPreviewLocationData::GetTableInfo(), SfxViewShell::GetWindow(), mpTableInfo, and mpViewShell.
Referenced by GetBoundingBox(), and GetBoundingBoxOnScreen().
|
overridevirtual |
Reimplemented from ScAccessibleContextBase.
Definition at line 177 of file AccessiblePreviewHeaderCell.cxx.
References ScAccessibleContextBase::containsPoint(), CreateTextHelper(), ScAccessibleContextBase::IsObjectValid(), and mxTextHelper.
|
overridevirtual |
Return the specified child or NULL if index is invalid.
Reimplemented from ScAccessibleContextBase.
Definition at line 217 of file AccessiblePreviewHeaderCell.cxx.
References CreateTextHelper(), ScAccessibleContextBase::IsObjectValid(), mxTextHelper, and nIndex.
|
overridevirtual |
===== XAccessibleContext ==============================================
Return the number of currently visible children.
Reimplemented from ScAccessibleContextBase.
Definition at line 208 of file AccessiblePreviewHeaderCell.cxx.
References CreateTextHelper(), ScAccessibleContextBase::IsObjectValid(), and mxTextHelper.
|
overridevirtual |
Return this objects index among the parents children.
Reimplemented from ScAccessibleContextBase.
Definition at line 226 of file AccessiblePreviewHeaderCell.cxx.
References mnIndex.
|
overridevirtual |
Return the set of current states.
Reimplemented from ScAccessibleContextBase.
Definition at line 231 of file AccessiblePreviewHeaderCell.cxx.
References ScAccessibleContextBase::getAccessibleParent(), IsDefunc(), ScAccessibleContextBase::isShowing(), and ScAccessibleContextBase::isVisible().
|
overrideprotectedvirtual |
Return the object's current bounding box relative to the parent object.
css::uno::RuntimeException |
Reimplemented from ScAccessibleContextBase.
Definition at line 311 of file AccessiblePreviewHeaderCell.cxx.
References ScAddress::Col(), FillTableInfo(), ScAccessibleContextBase::getAccessibleParent(), tools::Rectangle::Left(), maCellPos, tools::Rectangle::Move(), mpTableInfo, ScPreviewColRowInfo::nPixelEnd, ScPreviewColRowInfo::nPixelStart, ScAddress::Row(), tools::Rectangle::Top(), and VCLRectangle().
|
overrideprotectedvirtual |
Return the object's current bounding box relative to the desktop.
css::uno::RuntimeException |
Reimplemented from ScAccessibleContextBase.
Definition at line 285 of file AccessiblePreviewHeaderCell.cxx.
References ScAddress::Col(), FillTableInfo(), SfxViewShell::GetWindow(), vcl::Window::GetWindowExtentsAbsolute(), tools::Rectangle::Left(), maCellPos, tools::Rectangle::Move(), mpTableInfo, mpViewShell, ScPreviewColRowInfo::nPixelEnd, ScPreviewColRowInfo::nPixelStart, ScAddress::Row(), and tools::Rectangle::Top().
|
overridevirtual |
Definition at line 130 of file AccessiblePreviewHeaderCell.cxx.
References ScAddress::Col(), ScAccessibleContextBase::IsObjectValid(), maCellPos, mbColumnHeader, and ScAddress::Row().
|
overridevirtual |
Returns an implementation id.
Reimplemented from cppu::ImplHelper1< class Ifc1 >.
Definition at line 278 of file AccessiblePreviewHeaderCell.cxx.
|
overridevirtual |
===== XServiceInfo ====================================================
Returns an identifier for the implementation of this object.
Reimplemented from ScAccessibleContextBase.
Definition at line 259 of file AccessiblePreviewHeaderCell.cxx.
|
overridevirtual |
Definition at line 150 of file AccessiblePreviewHeaderCell.cxx.
References ScPreviewShell::GetDocument(), ScAccessibleContextBase::IsObjectValid(), ScDocument::MaxCol(), ScDocument::MaxRow(), mbColumnHeader, and mpViewShell.
|
overridevirtual |
Definition at line 169 of file AccessiblePreviewHeaderCell.cxx.
|
overridevirtual |
Definition at line 164 of file AccessiblePreviewHeaderCell.cxx.
|
overridevirtual |
Returns a list of all supported services.
In this case that is just the AccessibleContext and Accessible service.
Reimplemented from ScAccessibleContextBase.
Definition at line 264 of file AccessiblePreviewHeaderCell.cxx.
References comphelper::concatSequences(), and ScAccessibleContextBase::getSupportedServiceNames().
|
overridevirtual |
===== XTypeProvider ===================================================
Reimplemented from cppu::ImplHelper1< class Ifc1 >.
Definition at line 272 of file AccessiblePreviewHeaderCell.cxx.
References comphelper::concatSequences(), and cppu::ImplHelper1< class Ifc1 >::getTypes().
|
overridevirtual |
Reimplemented from ScAccessibleContextBase.
Definition at line 194 of file AccessiblePreviewHeaderCell.cxx.
References ScAccessibleContextBase::getAccessibleContext(), ScAccessibleContextBase::getAccessibleParent(), and ScAccessibleContextBase::IsObjectValid().
|
inlineprotected |
Definition at line 233 of file AccessibleContextBase.hxx.
Referenced by getAccessibleStateSet().
|
private |
Definition at line 369 of file AccessiblePreviewHeaderCell.cxx.
References ScAccessibleContextBase::getAccessibleParent(), ScAccessibleContextBase::IsDefunc(), and mpViewShell.
|
overridevirtual |
===== SfxListener =====================================================
Reimplemented from ScAccessibleContextBase.
Definition at line 90 of file AccessiblePreviewHeaderCell.cxx.
References SfxHint::GetId(), mpTableInfo, mxTextHelper, nId, and ScAccessibleContextBase::Notify().
|
overridevirtual |
===== XInterface =====================================================
Reimplemented from cppu::ImplHelper1< class Ifc1 >.
Definition at line 110 of file AccessiblePreviewHeaderCell.cxx.
References uno::Any::hasValue(), and cppu::ImplHelper1< class Ifc1 >::queryInterface().
|
overridevirtualnoexcept |
Definition at line 122 of file AccessiblePreviewHeaderCell.cxx.
|
overridevirtual |
Definition at line 144 of file AccessiblePreviewHeaderCell.cxx.
|
private |
Definition at line 117 of file AccessiblePreviewHeaderCell.hxx.
Referenced by createAccessibleName(), CreateTextHelper(), GetBoundingBox(), GetBoundingBoxOnScreen(), and getCurrentValue().
|
private |
Definition at line 118 of file AccessiblePreviewHeaderCell.hxx.
Referenced by createAccessibleName(), CreateTextHelper(), getCurrentValue(), and getMaximumValue().
|
private |
Definition at line 119 of file AccessiblePreviewHeaderCell.hxx.
Referenced by createAccessibleName(), and CreateTextHelper().
|
private |
Definition at line 116 of file AccessiblePreviewHeaderCell.hxx.
Referenced by getAccessibleIndexInParent().
|
mutableprivate |
Definition at line 120 of file AccessiblePreviewHeaderCell.hxx.
Referenced by disposing(), FillTableInfo(), GetBoundingBox(), GetBoundingBoxOnScreen(), and Notify().
|
private |
Definition at line 114 of file AccessiblePreviewHeaderCell.hxx.
Referenced by CreateTextHelper(), disposing(), FillTableInfo(), GetBoundingBoxOnScreen(), getMaximumValue(), IsDefunc(), ScAccessiblePreviewHeaderCell(), and ~ScAccessiblePreviewHeaderCell().
|
private |
Definition at line 115 of file AccessiblePreviewHeaderCell.hxx.
Referenced by CreateTextHelper(), getAccessibleAtPoint(), getAccessibleChild(), getAccessibleChildCount(), and Notify().