38 class ITextAttributeListener;
39 class ITextSelectionListener;
40 class RichTextViewPort;
44 typedef ::std::map< AttributeId, AttributeState >
StateCache;
void updateAllAttributes()
updates the cache with the state of all attribute values from the given set, notifies the listener if...
VclPtr< RichTextViewPort > m_pViewport
void enableAttributeNotification(AttributeId _nAttributeId, ITextAttributeListener *_pListener)
enables the callback for a particular attribute
DECL_LINK(OnVScroll, weld::Scrollbar &, void)
virtual void EditEngineStatusChanged(const EditStatus &_rStatus) override
RichTextEngine * m_pEngine
DECL_LINK(OnHScroll, weld::Scrollbar &, void)
ESelection m_aLastKnownSelection
void normalizeScriptDependentAttribute(SvxScriptSetItem &_rScriptSetItem)
normalizes the given item so that the state of script dependent attributes is correct considering the...
void implUpdateAttribute(const AttributeHandlerPool::const_iterator &_pHandler)
bool hasHScrollBar() const
ITextSelectionListener * m_pSelectionListener
bool executeAttribute(const SfxItemSet &_rCurrentAttribs, SfxItemSet &_rNewAttribs, AttributeId _nAttribute, const SfxPoolItem *_pArgument, SvtScriptType _nForScriptType)
executes a toggle of the given attribute
void Draw(OutputDevice *_pDev, const Point &_rPos, const Size &_rSize)
draws the control onto a given output device
::std::map< AttributeId, AttributeState > StateCache
bool windowHasAutomaticLineBreak()
virtual ~RichTextControlImpl()
bool GetHideInactiveSelection() const
std::unique_ptr< EditView > m_pView
void updateAttribute(AttributeId _nAttribute)
updates the cache with the state of the attribute given by which id, notifies the listener if the sta...
void layoutWindow()
re-arranges the view and the scrollbars
VclPtr< Control > m_pAntiImpl
ITextAttributeListener * m_pTextAttrListener
RichTextControlImpl(Control *_pAntiImpl, RichTextEngine *_pEngine, ITextAttributeListener *_pTextAttrListener, ITextSelectionListener *_pSelectionListener)
void implCheckUpdateCache(AttributeId _nAttribute, const AttributeState &_rState)
::std::map< AttributeId, ITextAttributeListener * > AttributeListenerPool
void SetReadOnly(bool _bReadOnly)
bool hasVScrollBar() const
EditView * getView(const GrantAccess &) const
AttributeListenerPool m_aAttributeListeners
void ensureLineBreakSetting()
ensures that our "automatic line break" setting matches the current WinBits of the window
AttributeHandlerPool m_aAttributeHandlers
::std::map< AttributeId, ::rtl::Reference< AttributeHandler > > AttributeHandlerPool
void notifyZoomChanged()
to be called when the zoom of our window changed
AttributeState getAttributeState(AttributeId _nAttributeId) const
retrieves the state of the given attribute from the cache
RichTextEngine * getEngine(const GrantAccess &) const
VclPtr< ScrollAdaptor > m_pVScroll
SvtScriptType getSelectedScriptType() const
StateCache m_aLastKnownStates
DECL_LINK(OnInvalidateAllAttributes, LinkParamNone *, void)
void SetHideInactiveSelection(bool _bHide)
void ensureScrollbars()
hides or shows our scrollbars, according to the current WinBits of the window
bool HandleCommand(const CommandEvent &_rEvent)
handles command events arrived at the anti-impl control
void notifyInitShow()
to be called when the StateChangedType::InitShow event arrives
void notifyStyleChanged()
to be called when the style of our window changed
void disableAttributeNotification(AttributeId _nAttributeId)
disables the change notifications for a particular attribute
vcl::Window * getViewport(const GrantAccess &) const
void SetBackgroundColor()
VclPtr< ScrollAdaptor > m_pHScroll
ListBox is a bit confusing / different from other form components, so here are a few notes:
sal_Int32 AttributeId
the id of an attribute