Lines Matching refs:star

24 import com.sun.star.uno.UnoRuntime;
25 import com.sun.star.uno.XComponentContext;
26 import com.sun.star.lang.XMultiComponentFactory;
27 import com.sun.star.lang.XMultiServiceFactory;
28 import com.sun.star.uno.AnyConverter;
29 import com.sun.star.lib.uno.helper.WeakBase;
30 import com.sun.star.io.XStream;
31 import com.sun.star.io.XOutputStream;
32 import com.sun.star.io.XInputStream;
33 import com.sun.star.io.XTruncate;
34 import com.sun.star.beans.XPropertySet;
35 import com.sun.star.lang.XComponent;
36 import com.sun.star.document.EventObject;
37 import com.sun.star.embed.VisualRepresentation;
38 import com.sun.star.container.XNameAccess;
41 import com.sun.star.embed.*;
51 implements com.sun.star.embed.XEmbedPersist,
52 com.sun.star.embed.XEmbeddedObject
60 protected com.sun.star.embed.XStorage m_xParentStorage;
61 protected com.sun.star.embed.XStorage m_xOwnStorage;
64 protected com.sun.star.embed.XStorage m_xNewParentStorage;
65 protected com.sun.star.embed.XStorage m_xNewOwnStorage;
73 com.sun.star.embed.VerbDescriptor[] m_pOwnVerbs;
75 com.sun.star.embed.XEmbeddedClient m_xClient;
91 if ( m_nObjectState == com.sun.star.embed.EmbedStates.ACTIVE ) in UpdateSizeAndGetFromActive()
114 …itchOwnPersistence( XStorage xParentStorage, String aEntryName ) throws com.sun.star.io.IOException in SwitchOwnPersistence()
120 …XStorage xOwnStorage = xParentStorage.openStorageElement( aEntryName, com.sun.star.embed.ElementMo… in SwitchOwnPersistence()
123 catch( com.sun.star.uno.RuntimeException e ) in SwitchOwnPersistence()
127 catch( com.sun.star.io.IOException e ) in SwitchOwnPersistence()
131 catch( com.sun.star.uno.Exception e ) in SwitchOwnPersistence()
133 throw new com.sun.star.io.IOException( "Error while switching object storage!" ); in SwitchOwnPersistence()
139 …orage( XStorage xStorage, String aString, Dimension aDimension ) throws com.sun.star.io.IOException in SaveDataToStorage()
144 …XStream xStream = xStorage.openStreamElement( "content.txt", com.sun.star.embed.ElementModes.READW… in SaveDataToStorage()
147 throw new com.sun.star.uno.RuntimeException(); in SaveDataToStorage()
152 throw new com.sun.star.io.IOException(); in SaveDataToStorage()
158 …xStream = xStorage.openStreamElement( "properties.txt", com.sun.star.embed.ElementModes.READWRITE … in SaveDataToStorage()
161 throw new com.sun.star.uno.RuntimeException(); in SaveDataToStorage()
166 throw new com.sun.star.io.IOException(); in SaveDataToStorage()
175 throw new com.sun.star.uno.RuntimeException(); in SaveDataToStorage()
184 catch( com.sun.star.uno.RuntimeException e ) in SaveDataToStorage()
188 catch( com.sun.star.io.IOException e ) in SaveDataToStorage()
192 catch( com.sun.star.uno.Exception e ) in SaveDataToStorage()
194 throw new com.sun.star.io.IOException( "Error while switching object storage!" ); in SaveDataToStorage()
203 …com.sun.star.document.EventObject aEventObject = new com.sun.star.document.EventObject( this, aEvE… in PostEvent()
208 … com.sun.star.document.XEventListener xListener = ( com.sun.star.document.XEventListener ) in PostEvent()
209 … UnoRuntime.queryInterface( com.sun.star.document.XEventListener.class, m_aListeners.get( nInd ) ); in PostEvent()
227 com.sun.star.lang.EventObject aEventObject = new com.sun.star.lang.EventObject( this ); in StateChangeNotification()
232 … com.sun.star.embed.XStateChangeListener xListener = ( com.sun.star.embed.XStateChangeListener ) in StateChangeNotification()
233 …UnoRuntime.queryInterface( com.sun.star.embed.XStateChangeListener.class, m_aListeners.get( nInd )… in StateChangeNotification()
252 …ng ReadStringFromStream( XStorage xStorage, String aStreamName ) throws com.sun.star.io.IOException in ReadStringFromStream()
255 throw new com.sun.star.uno.RuntimeException(); in ReadStringFromStream()
259 …XStream xStream = xStorage.openStreamElement( aStreamName, com.sun.star.embed.ElementModes.READWRI… in ReadStringFromStream()
262 throw new com.sun.star.uno.RuntimeException(); in ReadStringFromStream()
274 throw new com.sun.star.io.IOException(); in ReadStringFromStream()
282 catch( com.sun.star.uno.RuntimeException e ) in ReadStringFromStream()
286 catch( com.sun.star.io.IOException e ) in ReadStringFromStream()
290 catch( com.sun.star.uno.Exception e ) in ReadStringFromStream()
292 throw new com.sun.star.io.IOException( "Error while reading one of object streams!" ); in ReadStringFromStream()
297 protected void ReadSizeFromOwnStorage() throws com.sun.star.io.IOException in ReadSizeFromOwnStorage()
320 com.sun.star.embed.XEmbeddedClient xClient = m_xClient; in CloseFrameRequest()
325 …StateChangeNotification( true, com.sun.star.embed.EmbedStates.ACTIVE, com.sun.star.embed.EmbedStat… in CloseFrameRequest()
329 } catch( com.sun.star.uno.Exception e ){} in CloseFrameRequest()
333 } catch( com.sun.star.uno.Exception e ){} in CloseFrameRequest()
335 m_nObjectState = com.sun.star.embed.EmbedStates.RUNNING; in CloseFrameRequest()
336 StateChangeNotification( false, com.sun.star.embed.EmbedStates.ACTIVE, m_nObjectState ); in CloseFrameRequest()
343 …public void storeOwn() throws com.sun.star.embed.WrongStateException, com.sun.star.io.IOException,… in storeOwn()
346 throw new com.sun.star.lang.DisposedException(); in storeOwn()
349 throw new com.sun.star.embed.WrongStateException(); in storeOwn()
352 if ( m_nObjectState == com.sun.star.embed.EmbedStates.LOADED ) in storeOwn()
356 throw new com.sun.star.io.IOException(); in storeOwn()
361 throw new com.sun.star.uno.RuntimeException(); in storeOwn()
369 public boolean isReadonly() throws com.sun.star.embed.WrongStateException in isReadonly()
375star.beans.PropertyValue[] aMediaArgs, com.sun.star.beans.PropertyValue[] aObjectArgs) throws com.… in reload()
383star.embed.XStorage xStorage, String aEntryName, int nEntryConnectionMode, com.sun.star.beans.Prop… in setPersistentEntry()
386 throw new com.sun.star.lang.DisposedException(); in setPersistentEntry()
389 throw new com.sun.star.lang.IllegalArgumentException(); in setPersistentEntry()
391 … if ( ( m_nObjectState != -1 || nEntryConnectionMode == com.sun.star.embed.EntryInitModes.NO_INIT ) in setPersistentEntry()
392 … && ( m_nObjectState == -1 || nEntryConnectionMode != com.sun.star.embed.EntryInitModes.NO_INIT ) ) in setPersistentEntry()
400 throw new com.sun.star.embed.WrongStateException(); in setPersistentEntry()
405 if ( nEntryConnectionMode == com.sun.star.embed.EntryInitModes.NO_INIT ) in setPersistentEntry()
412 throw new com.sun.star.embed.WrongStateException(); in setPersistentEntry()
415 throw new com.sun.star.embed.WrongStateException(); in setPersistentEntry()
422 if ( nEntryConnectionMode == com.sun.star.embed.EntryInitModes.DEFAULT_INIT ) in setPersistentEntry()
429 throw new com.sun.star.uno.RuntimeException(); in setPersistentEntry()
433 throw new com.sun.star.lang.IllegalArgumentException(); in setPersistentEntry()
435 m_nObjectState = com.sun.star.embed.EmbedStates.LOADED; in setPersistentEntry()
440 m_nObjectState = com.sun.star.embed.EmbedStates.RUNNING; in setPersistentEntry()
444 else if ( nEntryConnectionMode == com.sun.star.embed.EntryInitModes.TRUNCATE_INIT ) in setPersistentEntry()
448 m_nObjectState = com.sun.star.embed.EmbedStates.RUNNING; in setPersistentEntry()
452 throw new com.sun.star.lang.IllegalArgumentException(); in setPersistentEntry()
456star.embed.XStorage xStorage, String aEntryName, com.sun.star.beans.PropertyValue[] aMediaArgs, co… in storeToEntry()
459 throw new com.sun.star.lang.DisposedException(); in storeToEntry()
462 throw new com.sun.star.embed.WrongStateException(); in storeToEntry()
464 if ( m_nObjectState == com.sun.star.embed.EmbedStates.LOADED ) in storeToEntry()
470 com.sun.star.embed.XStorage xSubStorage = in storeToEntry()
472 … com.sun.star.embed.ElementModes.READWRITE | com.sun.star.embed.ElementModes.TRUNCATE ); in storeToEntry()
481star.embed.XStorage xStorage, String aEntryName, com.sun.star.beans.PropertyValue[] aMediaArgs, co… in storeAsEntry()
484 throw new com.sun.star.lang.DisposedException(); in storeAsEntry()
487 throw new com.sun.star.embed.WrongStateException(); in storeAsEntry()
489 com.sun.star.embed.XStorage xSubStorage = null; in storeAsEntry()
491 if ( m_nObjectState == com.sun.star.embed.EmbedStates.LOADED ) in storeAsEntry()
495 … com.sun.star.embed.ElementModes.READWRITE | com.sun.star.embed.ElementModes.NOCREATE ); in storeAsEntry()
503 … com.sun.star.embed.ElementModes.READWRITE | com.sun.star.embed.ElementModes.TRUNCATE ); in storeAsEntry()
516 …ic void saveCompleted(boolean bUseNew) throws com.sun.star.embed.WrongStateException, com.sun.star in saveCompleted()
519 throw new com.sun.star.lang.DisposedException(); in saveCompleted()
522 throw new com.sun.star.embed.WrongStateException(); in saveCompleted()
529 throw new com.sun.star.io.IOException(); in saveCompleted()
542 catch( com.sun.star.uno.RuntimeException e ) in saveCompleted()
553 public boolean hasEntry() throws com.sun.star.embed.WrongStateException in hasEntry()
556 throw new com.sun.star.lang.DisposedException(); in hasEntry()
559 throw new com.sun.star.embed.WrongStateException(); in hasEntry()
568 public String getEntryName() throws com.sun.star.embed.WrongStateException in getEntryName()
571 throw new com.sun.star.lang.DisposedException(); in getEntryName()
574 throw new com.sun.star.embed.WrongStateException(); in getEntryName()
581 …pect, com.sun.star.awt.Size aSize) throws com.sun.star.lang.IllegalArgumentException, com.sun.star in setVisualAreaSize()
584 throw new com.sun.star.lang.DisposedException(); in setVisualAreaSize()
587 throw new com.sun.star.embed.WrongStateException(); in setVisualAreaSize()
589 if ( nAspect == com.sun.star.embed.Aspects.MSOLE_ICON ) in setVisualAreaSize()
591 throw new com.sun.star.embed.WrongStateException(); in setVisualAreaSize()
593 if ( m_nObjectState == com.sun.star.embed.EmbedStates.LOADED ) in setVisualAreaSize()
594 changeState( com.sun.star.embed.EmbedStates.RUNNING ); in setVisualAreaSize()
597 throw new com.sun.star.uno.RuntimeException(); in setVisualAreaSize()
604 …n.star.awt.Size getVisualAreaSize(long nAspect) throws com.sun.star.lang.IllegalArgumentException,… in getVisualAreaSize()
607 throw new com.sun.star.lang.DisposedException(); in getVisualAreaSize()
610 throw new com.sun.star.embed.WrongStateException(); in getVisualAreaSize()
612 if ( nAspect == com.sun.star.embed.Aspects.MSOLE_ICON ) in getVisualAreaSize()
614 throw new com.sun.star.embed.WrongStateException(); in getVisualAreaSize()
616 if ( m_nObjectState == com.sun.star.embed.EmbedStates.LOADED ) in getVisualAreaSize()
617 changeState( com.sun.star.embed.EmbedStates.RUNNING ); in getVisualAreaSize()
621 return new com.sun.star.awt.Size( (int)m_aObjSize.getWidth(), (int)m_aObjSize.getHeight() ); in getVisualAreaSize()
625 …on(long nAspect) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.embed.WrongStateE… in getPreferredVisualRepresentation()
628 throw new com.sun.star.lang.DisposedException(); in getPreferredVisualRepresentation()
631 throw new com.sun.star.embed.WrongStateException(); in getPreferredVisualRepresentation()
633 if ( nAspect == com.sun.star.embed.Aspects.MSOLE_ICON ) in getPreferredVisualRepresentation()
635 throw new com.sun.star.embed.WrongStateException(); in getPreferredVisualRepresentation()
637 if ( m_nObjectState == com.sun.star.embed.EmbedStates.LOADED ) in getPreferredVisualRepresentation()
638 changeState( com.sun.star.embed.EmbedStates.RUNNING ); in getPreferredVisualRepresentation()
643 …aVisRep.Flavor = new com.sun.star.datatransfer.DataFlavor( "image/png", "png", new com.sun.star.un… in getPreferredVisualRepresentation()
648 public int getMapUnit(long nAspect) throws com.sun.star.uno.Exception in getMapUnit()
651 throw new com.sun.star.lang.DisposedException(); in getMapUnit()
654 throw new com.sun.star.embed.WrongStateException(); in getMapUnit()
656 if ( nAspect == com.sun.star.embed.Aspects.MSOLE_ICON ) in getMapUnit()
658 throw new com.sun.star.embed.WrongStateException(); in getMapUnit()
660 return com.sun.star.embed.EmbedMapUnits.PIXEL; in getMapUnit()
668 throw new com.sun.star.lang.DisposedException(); in getClassID()
677 throw new com.sun.star.lang.DisposedException(); in getClassName()
683 …public void setClassInfo(byte[] aClassID, String sClassName) throws com.sun.star.lang.NoSupportExc… in setClassInfo()
685 throw new com.sun.star.lang.NoSupportException(); in setClassInfo()
690 public com.sun.star.util.XCloseable getComponent() in getComponent()
693 throw new com.sun.star.lang.DisposedException(); in getComponent()
701 public void addStateChangeListener(com.sun.star.embed.XStateChangeListener xListener) in addStateChangeListener()
710 public void removeStateChangeListener(com.sun.star.embed.XStateChangeListener xListener) in removeStateChangeListener()
721 public void addEventListener(com.sun.star.document.XEventListener xListener) in addEventListener()
730 public void removeEventListener(com.sun.star.document.XEventListener xListener) in removeEventListener()
741 public void addCloseListener(com.sun.star.util.XCloseListener xListener) in addCloseListener()
750 public void removeCloseListener(com.sun.star.util.XCloseListener xListener) in removeCloseListener()
761 public void close(boolean bDeliverOwnership) throws com.sun.star.util.CloseVetoException in close()
764 throw new com.sun.star.lang.DisposedException(); in close()
766 com.sun.star.lang.EventObject aEventObject = new com.sun.star.lang.EventObject( this ); in close()
774 … com.sun.star.util.XCloseListener xListener = ( com.sun.star.util.XCloseListener ) in close()
775 … UnoRuntime.queryInterface( com.sun.star.document.XEventListener.class, m_aListeners.get( nInd ) ); in close()
780 catch( com.sun.star.util.CloseVetoException e ) in close()
796 … com.sun.star.util.XCloseListener xListener = ( com.sun.star.util.XCloseListener ) in close()
797 … UnoRuntime.queryInterface( com.sun.star.document.XEventListener.class, m_aListeners.get( nInd ) ); in close()
830 …(int nNewState) throws com.sun.star.embed.UnreachableStateException, com.sun.star.embed.WrongState… in changeState()
833 throw new com.sun.star.lang.DisposedException(); in changeState()
836 throw new com.sun.star.embed.WrongStateException(); in changeState()
842 if ( nOldState == com.sun.star.embed.EmbedStates.ACTIVE ) in changeState()
845 throw new com.sun.star.uno.RuntimeException(); in changeState()
852 if ( nNewState != com.sun.star.embed.EmbedStates.LOADED in changeState()
853 && nNewState != com.sun.star.embed.EmbedStates.RUNNING in changeState()
854 && nNewState != com.sun.star.embed.EmbedStates.ACTIVE ) in changeState()
855 throw new com.sun.star.embed.UnreachableStateException(); in changeState()
861 if ( nOldState == com.sun.star.embed.EmbedStates.LOADED ) in changeState()
872 m_nObjectState = com.sun.star.embed.EmbedStates.RUNNING; in changeState()
874 if ( nNewState == com.sun.star.embed.EmbedStates.ACTIVE ) in changeState()
877 throw new com.sun.star.embed.WrongStateException(); in changeState()
886 m_nObjectState = com.sun.star.embed.EmbedStates.ACTIVE; in changeState()
889 else if ( nOldState == com.sun.star.embed.EmbedStates.RUNNING ) in changeState()
891 if ( nNewState == com.sun.star.embed.EmbedStates.LOADED ) in changeState()
901 throw new com.sun.star.uno.RuntimeException(); in changeState()
904 throw new com.sun.star.embed.WrongStateException(); in changeState()
920 if ( nNewState == com.sun.star.embed.EmbedStates.RUNNING ) in changeState()
934 catch( com.sun.star.uno.Exception e ) in changeState()
945 …public int[] getReachableStates() throws com.sun.star.embed.NeedsRunningStateException, com.sun.st… in getReachableStates()
948 throw new com.sun.star.lang.DisposedException(); in getReachableStates()
951 throw new com.sun.star.embed.WrongStateException(); in getReachableStates()
954 pStates[0] = com.sun.star.embed.EmbedStates.LOADED; in getReachableStates()
955 pStates[1] = com.sun.star.embed.EmbedStates.RUNNING; in getReachableStates()
956 pStates[2] = com.sun.star.embed.EmbedStates.ACTIVE; in getReachableStates()
962 public int getCurrentState() throws com.sun.star.embed.WrongStateException in getCurrentState()
965 throw new com.sun.star.lang.DisposedException(); in getCurrentState()
968 throw new com.sun.star.embed.WrongStateException(); in getCurrentState()
974 … com.sun.star.lang.IllegalArgumentException, com.sun.star.embed.WrongStateException, com.sun.star.… in doVerb()
977 throw new com.sun.star.lang.DisposedException(); in doVerb()
980 throw new com.sun.star.embed.WrongStateException(); in doVerb()
982 if ( nVerbID == com.sun.star.embed.EmbedVerbs.MS_OLEVERB_PRIMARY in doVerb()
983 || nVerbID == com.sun.star.embed.EmbedVerbs.MS_OLEVERB_SHOW in doVerb()
984 || nVerbID == com.sun.star.embed.EmbedVerbs.MS_OLEVERB_OPEN ) in doVerb()
985 changeState( com.sun.star.embed.EmbedStates.ACTIVE ); in doVerb()
986 else if ( nVerbID == com.sun.star.embed.EmbedVerbs.MS_OLEVERB_HIDE ) in doVerb()
987 changeState( com.sun.star.embed.EmbedStates.RUNNING ); in doVerb()
991 …public com.sun.star.embed.VerbDescriptor[] getSupportedVerbs() throws com.sun.star.embed.NeedsRunn… in getSupportedVerbs()
994 throw new com.sun.star.lang.DisposedException(); in getSupportedVerbs()
997 throw new com.sun.star.embed.WrongStateException(); in getSupportedVerbs()
1007 throw new com.sun.star.uno.RuntimeException(); in getSupportedVerbs()
1014 throw new com.sun.star.uno.RuntimeException(); in getSupportedVerbs()
1019 throw new com.sun.star.uno.RuntimeException(); in getSupportedVerbs()
1024 …com.sun.star.embed.VerbDescriptor[] pVerbs = new com.sun.star.embed.VerbDescriptor[pVerbShortcuts.… in getSupportedVerbs()
1029 throw new com.sun.star.uno.RuntimeException(); in getSupportedVerbs()
1040 … com.sun.star.embed.VerbDescriptor aVerb = new com.sun.star.embed.VerbDescriptor(); in getSupportedVerbs()
1055 pVerbs[nInd] = new com.sun.star.embed.VerbDescriptor(); in getSupportedVerbs()
1056 pVerbs[nInd].VerbID = com.sun.star.embed.EmbedVerbs.MS_OLEVERB_PRIMARY; in getSupportedVerbs()
1059 … pVerbs[nInd].VerbAttributes = com.sun.star.embed.VerbAttributes.MS_VERBATTR_ONCONTAINERMENU; in getSupportedVerbs()
1066 catch( com.sun.star.uno.Exception e ) in getSupportedVerbs()
1073 return new com.sun.star.embed.VerbDescriptor[0]; in getSupportedVerbs()
1077 …public void setClientSite(com.sun.star.embed.XEmbeddedClient xClient) throws com.sun.star.embed.Wr… in setClientSite()
1080 throw new com.sun.star.lang.DisposedException(); in setClientSite()
1083 throw new com.sun.star.embed.WrongStateException(); in setClientSite()
1089 …public com.sun.star.embed.XEmbeddedClient getClientSite() throws com.sun.star.embed.WrongStateExce… in getClientSite()
1092 throw new com.sun.star.lang.DisposedException(); in getClientSite()
1095 throw new com.sun.star.embed.WrongStateException(); in getClientSite()
1101 public void update() throws com.sun.star.embed.WrongStateException, com.sun.star.uno.Exception in update()
1104 throw new com.sun.star.lang.DisposedException(); in update()
1107 throw new com.sun.star.embed.WrongStateException(); in update()
1113 public void setUpdateMode(int nMode) throws com.sun.star.embed.WrongStateException in setUpdateMode()
1116 throw new com.sun.star.lang.DisposedException(); in setUpdateMode()
1119 throw new com.sun.star.embed.WrongStateException(); in setUpdateMode()
1125 public long getStatus(long nAspect) throws com.sun.star.embed.WrongStateException in getStatus()
1128 throw new com.sun.star.lang.DisposedException(); in getStatus()
1131 throw new com.sun.star.embed.WrongStateException(); in getStatus()
1140 throw new com.sun.star.lang.DisposedException(); in setContainerName()