Kaydet (Commit) afccf73c authored tarafından Michael Stahl's avatar Michael Stahl

Revert "WaE: hides overloaded virtual function"

This reverts commit 192edc5e.

The method must be called Notify so the SfxBroadcaster calls it instead
of the base class method that does nothing.
üst bcc3e0e7
......@@ -1402,7 +1402,7 @@ AddressMultiLineEdit::~AddressMultiLineEdit()
EndListening(*GetTextEngine());
}
void AddressMultiLineEdit::NotifyOfHint( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
void AddressMultiLineEdit::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
{
if(rHint.ISA(TextHint) &&
static_cast<const TextHint&>(rHint).GetId() == TEXT_HINT_VIEWSELECTIONCHANGED &&
......
......@@ -168,6 +168,8 @@ class AddressMultiLineEdit : public MultiLineEdit, public SfxListener
Link m_aSelectionLink;
SwCustomizeAddressBlockDialog* m_pParentDialog;
using Window::Notify;
using MultiLineEdit::SetText;
protected:
......@@ -176,7 +178,7 @@ public:
AddressMultiLineEdit(SwCustomizeAddressBlockDialog* pParent, const ResId& rResId);
~AddressMultiLineEdit();
virtual void NotifyOfHint( SfxBroadcaster& rBC, const SfxHint& rHint );
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
void SetSelectionChangedHdl( const Link& rLink ) {m_aSelectionLink = rLink;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment