Mathias wrote

It seems that your coloring got lost. It's not a good idea to use HTML
formatting anyway, marking the code in a way that it is transported in
text only mails should be preferred.
that's right , I will take you advice in the following mails 

Anyway, I wonder which part of the code you are referring to, but the
posted code is small enough to describe it completely.
in facte , the function of the SwClipboardChangeListener::changedContents() and 
Invalidate() in the pre-function  are what I want to know and the 

This code evaluates whether the document is able to paste the provided
content at all ("IsPaste") and if perhaps more than one format is
supported ("IsPasteSpecial"). This information is stored in pView.

Then the sfx2 framework is notified that possibly all UI elements
relating to the "Paste" and "Paste Special" functionality need a state
update, e.g. a disabled "Paste" button now might want to become enabled.
The "Invalidate" calls will not change the button state immediately,
they will trigger an update timer in SfxBindings that will do the
necessary updates some milliseconds later.
now I understand what function of the 
SwClipboardChangeListener::changedContents() is changing some state of current 
document . Is that's right ?





gaopeng
2007-11-05

Reply via email to