Lines Matching refs:xContext

168     synchronized protected static String GetLocalizedString( XComponentContext xContext, int nID )  in GetLocalizedString()  argument
176 …XNameAccess xNameAccess = GetConfigNameAccess( xContext, "org.openoffice.Office.Custom.WikiExtensi… in GetLocalizedString()
227 synchronized protected static boolean GetShowInBrowserByDefault( XComponentContext xContext ) in GetShowInBrowserByDefault() argument
233 …XNameAccess xAccess = Helper.GetConfigNameAccess( xContext, "org.openoffice.Office.Custom.WikiExte… in GetShowInBrowserByDefault()
245 …synchronized protected static void SetShowInBrowserByDefault( XComponentContext xContext, boolean … in SetShowInBrowserByDefault() argument
251 …XPropertySet xProps = Helper.GetConfigProps( xContext, "org.openoffice.Office.Custom.WikiExtension… in SetShowInBrowserByDefault()
263 …synchronized protected static XPasswordContainer GetPasswordContainer( XComponentContext xContext ) in GetPasswordContainer() argument
266 if ( m_xPasswordContainer == null && xContext != null ) in GetPasswordContainer()
268 XMultiComponentFactory xFactory = xContext.getServiceManager(); in GetPasswordContainer()
272 … xFactory.createInstanceWithContext( "com.sun.star.task.PasswordContainer", xContext ) ); in GetPasswordContainer()
281 …nchronized protected static XInteractionHandler GetInteractionHandler( XComponentContext xContext ) in GetInteractionHandler() argument
284 if ( m_xInteractionHandler == null && xContext != null ) in GetInteractionHandler()
286 XMultiComponentFactory xFactory = xContext.getServiceManager(); in GetInteractionHandler()
290 … xFactory.createInstanceWithContext( "com.sun.star.task.InteractionHandler", xContext ) ); in GetInteractionHandler()
383 protected static XInputStream SaveHTMLTemp( XComponentContext xContext, String sArticle ) in SaveHTMLTemp() argument
387 if ( xContext != null ) in SaveHTMLTemp()
391 …Object oTempFile = xContext.getServiceManager().createInstanceWithContext( "com.sun.star.io.TempFi… in SaveHTMLTemp()
420 protected static String CreateTempFile( XComponentContext xContext ) in CreateTempFile() argument
425 …Object oTempFile = xContext.getServiceManager().createInstanceWithContext( "com.sun.star.io.TempFi… in CreateTempFile()
504 protected static String GetDocServiceName( XComponentContext xContext, XModel xModel ) in GetDocServiceName() argument
507 if ( xModel != null && xContext != null ) in GetDocServiceName()
511 XMultiComponentFactory xFactory = xContext.getServiceManager(); in GetDocServiceName()
515 …ModuleManager = xFactory.createInstanceWithContext( "com.sun.star.frame.ModuleManager", xContext ); in GetDocServiceName()
529 …protected static String GetFilterName( XComponentContext xContext, String aTypeName, String aDocSe… in GetFilterName() argument
532 if ( xContext != null && aTypeName != null && aTypeName.length() != 0 in GetFilterName()
537 …Object oFilterFactory = xContext.getServiceManager().createInstanceWithContext( "com.sun.star.docu… in GetFilterName()
581 protected static XMultiServiceFactory GetConfigurationProvider( XComponentContext xContext ) in GetConfigurationProvider() argument
585 if ( xContext != null ) in GetConfigurationProvider()
587 XMultiComponentFactory xFactory = xContext.getServiceManager(); in GetConfigurationProvider()
588 …xFactory.createInstanceWithContext( "com.sun.star.configuration.ConfigurationProvider", xContext ); in GetConfigurationProvider()
598 …protected static Object GetConfig( XComponentContext xContext, String sNodepath, boolean bWriteAcc… in GetConfig() argument
601 if ( xContext == null || sNodepath == null ) in GetConfig()
610 return GetConfigurationProvider( xContext ).createInstanceWithArguments( in GetConfig()
616 protected static XPropertySet GetConfigProps( XComponentContext xContext, String sNodepath ) in GetConfigProps() argument
619 …PropertySet ) UnoRuntime.queryInterface( XPropertySet.class, GetConfig( xContext, sNodepath, true … in GetConfigProps()
627 …protected static XNameContainer GetConfigNameContainer( XComponentContext xContext, String sNodepa… in GetConfigNameContainer() argument
630 …Container ) UnoRuntime.queryInterface( XNameContainer.class, GetConfig( xContext, sNodepath, true … in GetConfigNameContainer()
637 protected static XNameAccess GetConfigNameAccess( XComponentContext xContext, String sNodepath ) in GetConfigNameAccess() argument
640 … XNameAccess ) UnoRuntime.queryInterface( XNameAccess.class, GetConfig( xContext, sNodepath, false… in GetConfigNameAccess()
647 …cted static void SetConfigurationProxy( HostConfiguration aHostConfig, XComponentContext xContext ) in SetConfigurationProxy() argument
649 if ( aHostConfig == null || xContext == null ) in SetConfigurationProxy()
654 … XNameAccess xNameAccess = GetConfigNameAccess( xContext, "org.openoffice.Inet/Settings" ); in SetConfigurationProxy()
699 protected static void ShowURLInBrowser( XComponentContext xContext, String sURL ) in ShowURLInBrowser() argument
701 if ( xContext != null && sURL != null && sURL.length() > 0 ) in ShowURLInBrowser()
705 … XSystemShellExecute xSystemShell = com.sun.star.system.SystemShellExecute.create( xContext ); in ShowURLInBrowser()
716 …ase aMethod, HostConfiguration aHostConfig, URI aURI, XComponentContext xContext, boolean bSetHost… in ExecuteMethod() argument
719 if ( aMethod != null && aHostConfig != null && aURI != null && xContext != null ) in ExecuteMethod()
724 SetConfigurationProxy( aHostConfig, xContext ); in ExecuteMethod()
729 && AllowUnknownCert( xContext, aURI.getHost() ) ) in ExecuteMethod()
806 …onfiguration Login( URI aMainURL, String sWikiUser, String sWikiPass, XComponentContext xContext ) in Login() argument
811 if ( sWikiUser != null && sWikiPass != null && xContext != null ) in Login()
818 ExecuteMethod( aGetCookie, aNewHostConfig, aURI, xContext, true ); in Login()
841 String[][] pArgs = GetSpecialArgs( xContext, aMainURL.getHost() ); in Login()
847 ExecuteMethod( aPost, aNewHostConfig, aPostURI, xContext, false ); in Login()
859 ExecuteMethod( aPost, aNewHostConfig, aURI, xContext, false ); in Login()
918 …protected static String[] GetPasswordsForURLAndUser( XComponentContext xContext, String sURL, Stri… in GetPasswordsForURLAndUser() argument
924 …if ( xContext != null && sURL != null && sURL.length() > 0 && sUserName != null && sUserName.lengt… in GetPasswordsForURLAndUser()
926 …UrlRecord aRec = GetPasswordContainer( xContext ).findForName( sURL, sUserName, GetInteractionHand… in GetPasswordsForURLAndUser()
940 protected static boolean PasswordStoringIsAllowed( XComponentContext xContext ) in PasswordStoringIsAllowed() argument
945 …dling)UnoRuntime.queryInterface( XMasterPasswordHandling.class, GetPasswordContainer( xContext ) ); in PasswordStoringIsAllowed()
957 …protected static void ShowError( XComponentContext xContext, XDialog xDialog, int nTitleID, int nE… in ShowError() argument
963 ShowError( xContext, xPeer, nTitleID, nErrorID, sArg, bQuery ); in ShowError()
966 …protected static boolean ShowError( XComponentContext xContext, XWindowPeer xParentPeer, int nTitl… in ShowError() argument
970 if ( xContext != null && nErrorID >= 0 && nErrorID < STRINGS_NUM ) in ShowError()
979 sError = GetLocalizedString( xContext, nErrorID ); in ShowError()
983 sTitle = GetLocalizedString( xContext, nTitleID ); in ShowError()
999 XMultiComponentFactory xFactory = xContext.getServiceManager(); in ShowError()
1003 … xFactory.createInstanceWithContext( "com.sun.star.awt.Toolkit", xContext ) ); in ShowError()
1027 bResult = MainThreadDialogExecutor.Execute( xContext, xMB ); in ShowError()
1047 private static boolean AllowUnknownCert( XComponentContext xContext, String aURL ) in AllowUnknownCert() argument
1051 …XNameAccess xNameAccess = GetConfigNameAccess( xContext, "org.openoffice.Office.Custom.WikiExtensi… in AllowUnknownCert()
1067 private static String[][] GetSpecialArgs( XComponentContext xContext, String aURL ) in GetSpecialArgs() argument
1071 …XNameAccess xNameAccess = GetConfigNameAccess( xContext, "org.openoffice.Office.Custom.WikiExtensi… in GetSpecialArgs()
1108 protected static boolean AllowThreadUsage( XComponentContext xContext ) in AllowThreadUsage() argument
1110 if ( xContext != null ) in AllowThreadUsage()
1114 XMultiComponentFactory xFactory = xContext.getServiceManager(); in AllowThreadUsage()
1118 … oCheckCallback = xFactory.createInstanceWithContext( "com.sun.star.awt.AsyncCallback", xContext ); in AllowThreadUsage()