INTEGRATION: CWS sdk02 (1.1.2); FILE ADDED
2003/05/09 11:44:37 jsc 1.1.2.1: #109045# insert new and remove example zip file
This commit is contained in:
parent
68fcbf0f5c
commit
813f181d3a
1 changed files with 25 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
import com.sun.star.datatransfer.*;
|
||||
import com.sun.star.datatransfer.clipboard.*;
|
||||
|
||||
//--------------------------
|
||||
// A simple clipboard owner
|
||||
//--------------------------
|
||||
|
||||
public class ClipboardOwner implements XClipboardOwner
|
||||
{
|
||||
public void lostOwnership( XClipboard xClipboard, XTransferable xTransferable )
|
||||
{
|
||||
System.out.println("");
|
||||
System.out.println( "Lost clipboard ownership..." );
|
||||
System.out.println("");
|
||||
|
||||
isowner = false;
|
||||
}
|
||||
|
||||
public boolean isClipboardOwner()
|
||||
{
|
||||
return isowner;
|
||||
}
|
||||
|
||||
private boolean isowner = true;
|
||||
}
|
Loading…
Reference in a new issue