X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-field-impl.h;h=0cae2a368a2bbc1f6157cfb8ade20b53934e6973;hb=26efc210fc636e51a4d3df9ae7fbcc1d2a8bac40;hp=7f0a5d91350ad93aa2646fc9d9eac9d1157bbcd0;hpb=71d09612f906da516226b6d2040d509ab6f5c754;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/text-controls/text-field-impl.h b/dali-toolkit/internal/controls/text-controls/text-field-impl.h index 7f0a5d9..0cae2a3 100755 --- a/dali-toolkit/internal/controls/text-controls/text-field-impl.h +++ b/dali-toolkit/internal/controls/text-controls/text-field-impl.h @@ -31,6 +31,7 @@ #include #include #include +#include namespace Dali { @@ -108,6 +109,8 @@ public: */ void SelectWholeText(); + Text::ControllerPtr getController(); + private: // From Control /** @@ -180,6 +183,21 @@ private: // From Control // From EditableControlInterface /** + * @copydoc Text::ControlInterface::TextInserted() + */ + virtual void TextInserted( unsigned int position, unsigned int length, const std::string &content ); + + /** + * @copydoc Text::ControlInterface::TextDeleted() + */ + virtual void TextDeleted( unsigned int position, unsigned int length, const std::string &content ); + + /** + * @copydoc Text::ControlInterface::CaretMoved() + */ + virtual void CaretMoved( unsigned int position ); + + /** * @copydoc Text::ControlInterface::TextChanged() */ virtual void TextChanged(); @@ -293,6 +311,30 @@ private: // Data int mRenderingBackend; int mExceedPolicy; bool mHasBeenStaged:1; + +protected: + struct AccessibleImpl : public Control::Impl::AccessibleImpl, + public virtual Dali::Accessibility::Text, + public virtual Dali::Accessibility::EditableText + { + using Control::Impl::AccessibleImpl::AccessibleImpl; + + std::string GetName() override; + std::string GetText( size_t startOffset, size_t endOffset ) override; + size_t GetCharacterCount() override; + size_t GetCaretOffset() override; + bool SetCaretOffset(size_t offset) override; + Dali::Accessibility::Range + GetTextAtOffset( size_t offset, + Dali::Accessibility::TextBoundary boundary ) override; + Dali::Accessibility::Range GetSelection( size_t selectionNum ) override; + bool RemoveSelection( size_t selectionNum ) override; + bool SetSelection( size_t selectionNum, size_t startOffset, + size_t endOffset ) override; + bool CopyText( size_t startPosition, size_t endPosition ) override; + bool CutText( size_t startPosition, size_t endPosition ) override; + Dali::Accessibility::States CalculateStates() override; + }; }; } // namespace Internal