20#include <com/sun/star/accessibility/AccessibleRole.hpp>
33 =
u"com.sun.star.comp.Writer.SwAccessibleHeaderView";
35 =
u"com.sun.star.comp.Writer.SwAccessibleFooterView";
38 std::shared_ptr<SwAccessibleMap>
const& pInitMap,
42 OUString sArg( OUString::number( pHdFrame->
GetPhyPageNum() ) );
47 std::shared_ptr<SwAccessibleMap>
const& pInitMap,
51 OUString sArg( OUString::number( pFtFrame->
GetPhyPageNum() ) );
66 ? STR_ACCESS_HEADER_DESC
67 : STR_ACCESS_FOOTER_DESC ;
76 if( AccessibleRole::HEADER ==
GetRole() )
89 return { (AccessibleRole::HEADER ==
GetRole())?OUString(
"com.sun.star.text.AccessibleHeaderView"):OUString(
"com.sun.star.text.AccessibleFooterView"),
95 return css::uno::Sequence<sal_Int8>();
103 Reference< XAccessibleComponent > xAccContext (xParent,UNO_QUERY);
106 return xAccContext->getBackground();
constexpr OUStringLiteral sAccessibleServiceName
void SetName(const OUString &rName)
sal_Int16 GetRole() const
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual sal_Int32 SAL_CALL getBackground() override
static OUString GetResource(TranslateId pResId, const OUString *pArg1=nullptr, const OUString *pArg2=nullptr)
OUString GetFormattedPageNumber() const
sal_uInt16 GetPhyPageNum() const
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)