55 AccessibleProxyEditSource_Impl(
SdrObject& rObj,
64 std::unique_ptr<SvxEditSource>
Clone()
const override;
66 void UpdateData()
override;
81 AccessibleEmptyEditSource_Impl() {}
86 std::unique_ptr<SvxEditSource>
Clone()
const override {
return nullptr; }
87 void UpdateData()
override {}
88 SfxBroadcaster& GetBroadcaster()
const override {
return *
const_cast<AccessibleEmptyEditSource_Impl*
>(
this); }
91 sal_Int32 GetParagraphCount()
const override {
return 1; }
92 sal_Int32 GetTextLen( sal_Int32 )
const override {
return 0; }
93 OUString GetText(
const ESelection& )
const override {
return OUString(); }
102 void SetParaAttribs( sal_Int32 ,
const SfxItemSet& )
override {}
103 void RemoveAttribs(
const ESelection& )
override {}
104 void GetPortions( sal_Int32 , std::vector<sal_Int32>& )
const override {}
106 OUString GetStyleSheet(sal_Int32 )
const override {
return OUString(); }
107 void SetStyleSheet(sal_Int32 ,
const OUString& )
override {}
109 SfxItemState GetItemState(
const ESelection& , sal_uInt16 )
const override {
return SfxItemState::UNKNOWN; }
110 SfxItemState GetItemState( sal_Int32 , sal_uInt16 )
const override {
return SfxItemState::UNKNOWN; }
112 SfxItemPool* GetPool()
const override {
return nullptr; }
114 void QuickInsertText(
const OUString& ,
const ESelection& )
override {}
117 void QuickInsertLineBreak(
const ESelection& )
override {}
119 const SfxItemSet * GetEmptyItemSetPtr()
override {
return nullptr; }
121 void AppendParagraph()
override {}
122 sal_Int32 AppendTextPortion( sal_Int32 ,
const OUString & ,
const SfxItemSet & )
override {
return 0; }
127 OUString CalcFieldValue(
const SvxFieldItem& , sal_Int32 , sal_Int32 , std::optional<Color>& , std::optional<Color>& , std::optional<FontLineStyle>& )
override
133 bool IsValid()
const override {
return true; }
136 sal_Int32 GetFieldCount( sal_Int32 )
const override {
return 0; }
142 OutputDevice* GetRefDevice()
const override {
return nullptr; }
143 bool GetIndexAtPoint(
const Point&, sal_Int32&, sal_Int32& )
const override {
return false; }
144 bool GetWordIndices( sal_Int32, sal_Int32, sal_Int32&, sal_Int32& )
const override {
return false; }
145 bool GetAttributeRun( sal_Int32&, sal_Int32&, sal_Int32, sal_Int32,
bool )
const override {
return false; }
146 sal_Int32 GetLineCount( sal_Int32 nPara )
const override {
return nPara == 0 ? 1 : 0; }
147 sal_Int32 GetLineLen( sal_Int32, sal_Int32 )
const override {
return 0; }
148 void GetLineBoundaries( sal_Int32 & rStart, sal_Int32 & rEnd, sal_Int32 , sal_Int32 )
const override { rStart = rEnd = 0; }
149 sal_Int32 GetLineNumberAtIndex( sal_Int32 , sal_Int32 )
const override {
return 0; }
161 bool QuickFormatDoc(
bool )
override {
return true; }
162 sal_Int16 GetDepth( sal_Int32 )
const override {
return -1; }
163 bool SetDepth( sal_Int32, sal_Int16 )
override {
return true; }
165 Point LogicToPixel(
const Point& rPoint,
const MapMode& )
const override {
return rPoint; }
166 Point PixelToLogic(
const Point& rPoint,
const MapMode& )
const override {
return rPoint; }
175 AccessibleProxyEditSource_Impl::AccessibleProxyEditSource_Impl(
SdrObject& rObj,
197 std::unique_ptr<SvxEditSource> AccessibleProxyEditSource_Impl::Clone()
const
202 void AccessibleProxyEditSource_Impl::UpdateData()
207 SfxBroadcaster& AccessibleProxyEditSource_Impl::GetBroadcaster()
const
216 AccessibleEmptyEditSource::AccessibleEmptyEditSource(
SdrObject& rObj,
219 mpEditSource( new AccessibleEmptyEditSource_Impl() ),
222 mrViewWindow(rViewWindow),
223 mbEditSourceEmpty( true )
263 ::std::unique_ptr< SvxEditSource > pProxySource(
new AccessibleProxyEditSource_Impl(
mrObj,
mrView,
mrViewWindow) );
306 const SdrHint* pSdrHint = ( rHint.
GetId() == SfxHintId::ThisIsAnSdrHint ?
static_cast<const SdrHint*
>(&rHint) :
nullptr );
317 else if (pSdrHint && pSdrHint->
GetObject()!=
nullptr)
SvxTextEditSource maEditSource
SdrHintKind GetKind() const
const SdrObject * GetObject() const
static SdrItemPool & GetGlobalDrawObjectItemPool()
virtual OutlinerParaObject * GetOutlinerParaObject() const
SdrModel & getSdrModelFromSdrObject() const
void Broadcast(const SfxHint &rHint)
void StartListening(SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
void EndListening(SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
virtual SvxTextForwarder * GetTextForwarder() override
virtual SvxViewForwarder * GetViewForwarder() override
virtual std::unique_ptr< SvxEditSource > Clone() const override
virtual SfxBroadcaster & GetBroadcaster() const override
virtual void UpdateData() override
virtual SvxEditViewForwarder * GetEditViewForwarder(bool bCreate=false) override
Proxy edit source for shapes without text.
const OutputDevice & mrViewWindow
std::unique_ptr< SvxEditSource > mpEditSource
Pointer to edit source implementation.
void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
SfxBroadcaster & GetBroadcaster() const override
void UpdateData() override
virtual ~AccessibleEmptyEditSource() override
SvxViewForwarder * GetViewForwarder() override
void Switch2ProxyEditSource()
std::unique_ptr< SvxEditSource > Clone() const override
SvxTextForwarder * GetTextForwarder() override
SvxEditViewForwarder * GetEditViewForwarder(bool bCreate=false) override
#define LANGUAGE_DONTKNOW
LanguageType GetLanguage(SfxItemSet const &aSet, sal_uInt16 nLangWhichId)
css::uno::Reference< css::animations::XAnimationNode > Clone(const css::uno::Reference< css::animations::XAnimationNode > &xSourceNode, const SdPage *pSource=nullptr, const SdPage *pTarget=nullptr)