[Libreoffice-commits] .: desktop/source

Kohei Yoshida kohei at kemper.freedesktop.org
Wed Feb 16 15:25:21 PST 2011


 desktop/source/app/appsys.cxx                                           |    2 
 desktop/source/app/officeipcthread.cxx                                  |    2 
 desktop/source/deployment/gui/dp_gui_autoscrolledit.cxx                 |    1 
 desktop/source/deployment/gui/dp_gui_dialog2.hxx                        |    1 
 desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx              |    9 --
 desktop/source/deployment/gui/license_dialog.hxx                        |    5 -
 desktop/source/deployment/manager/dp_commandenvironments.cxx            |    5 -
 desktop/source/deployment/misc/dp_update.cxx                            |   16 ----
 desktop/source/deployment/registry/component/dp_component.cxx           |    2 
 desktop/source/deployment/registry/help/dp_help.cxx                     |    7 -
 desktop/source/deployment/registry/package/dp_package.cxx               |    4 -
 desktop/source/deployment/registry/sfwk/dp_sfwk.cxx                     |   37 ----------
 desktop/source/offacc/acceptor.cxx                                      |   12 ---
 desktop/source/registration/com/sun/star/registration/Registration.java |    1 
 desktop/source/so_comp/oemjob.cxx                                       |   34 ---------
 desktop/source/splash/splash.cxx                                        |    2 
 16 files changed, 2 insertions(+), 138 deletions(-)

New commits:
commit c565f964d7dcaef6acd18c89b59850701ce44445
Author: Albert Thuswaldner <albert.thuswaldner at gmail.com>
Date:   Wed Feb 16 18:22:29 2011 -0500

    Translation of German comment.

diff --git a/desktop/source/app/appsys.cxx b/desktop/source/app/appsys.cxx
index 889ff29..06264c3 100644
--- a/desktop/source/app/appsys.cxx
+++ b/desktop/source/app/appsys.cxx
@@ -54,7 +54,7 @@ void FATToVFat_Impl( String& aName )
         HANDLE h = FindFirstFile( U2S(aName).getStr(), &aData );
         if ( h )
         {
-            // FAT-Kurzname in VFAT-Langname wandeln
+            // Change FAT short filename into VFAT long filename
             aObj.removeSegment();
             aObj.insertName( String::CreateFromAscii( aData.cFileName ) );
             aName = aObj.PathToFileName();
diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx
index ceec750..07c0de4 100644
--- a/desktop/source/app/officeipcthread.cxx
+++ b/desktop/source/app/officeipcthread.cxx
@@ -555,7 +555,7 @@ OfficeIPCThread::Status OfficeIPCThread::EnableOfficeIPCThread()
                 return IPC_STATUS_BOOTSTRAP_ERROR;
             }
         }
-        // finaly, write the string onto the pipe
+        // finally, write the string onto the pipe
         aStreamPipe.write( aArguments.GetBuffer(), aArguments.Len() );
         aStreamPipe.write( "\0", 1 );
 
diff --git a/desktop/source/deployment/gui/dp_gui_autoscrolledit.cxx b/desktop/source/deployment/gui/dp_gui_autoscrolledit.cxx
index c00123f..548cdb3 100644
--- a/desktop/source/deployment/gui/dp_gui_autoscrolledit.cxx
+++ b/desktop/source/deployment/gui/dp_gui_autoscrolledit.cxx
@@ -47,7 +47,6 @@ AutoScrollEdit::AutoScrollEdit( Window* pParent, const ResId& rResId )
     ScrollBar*  pScroll = GetVScrollBar();
     if (pScroll)
         pScroll->Hide();
-//    SetLeftMargin( 0 );
     StartListening( *GetTextEngine() );
 }
 
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.hxx b/desktop/source/deployment/gui/dp_gui_dialog2.hxx
index bb8c978..9ca1341 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.hxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.hxx
@@ -222,7 +222,6 @@ public:
     virtual short	Execute();
     virtual void    Resize();
     virtual BOOL	Close();
-//    virtual long    Notify( NotifyEvent& rNEvt );
 
     virtual void    showProgress( bool bStart );
     virtual void    updateProgress( const ::rtl::OUString &rText,
diff --git a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
index d377441..d102a7e 100644
--- a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
+++ b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
@@ -807,12 +807,6 @@ void ExtensionCmdQueue::Thread::execute()
                     break;
                 }
             } 
-            //catch ( deployment::DeploymentException &) 
-            //{   
-            //}
-            //catch ( lang::IllegalArgumentException &) 
-            //{
-            //}
             catch ( ucb::CommandAbortedException & ) 
             {
                 //This exception is thrown when the user clicks cancel on the progressbar.
@@ -874,9 +868,6 @@ void ExtensionCmdQueue::Thread::execute()
             currentCmdEnv->stopProgress();
     }
     //end for
-    //enable all buttons
-//     m_pDialog->m_bAddingExtensions = false;
-//     m_pDialog->updateButtonStates();
 #ifdef WNT
     CoUninitialize();
 #endif
diff --git a/desktop/source/deployment/gui/license_dialog.hxx b/desktop/source/deployment/gui/license_dialog.hxx
index 7e7a859..ec63ffb 100644
--- a/desktop/source/deployment/gui/license_dialog.hxx
+++ b/desktop/source/deployment/gui/license_dialog.hxx
@@ -45,7 +45,6 @@ namespace dp_gui {
 
 class LicenseDialog
     : public ::cppu::WeakImplHelper1<ui::dialogs::XExecutableDialog>
-//                                     task::XJobExecutor>
 {
     Reference<XComponentContext> const m_xComponentContext;
     Reference<awt::XWindow> /* const */ m_parent;
@@ -63,10 +62,6 @@ public:
     virtual void SAL_CALL setTitle( OUString const & title )
         throw (RuntimeException);
     virtual sal_Int16 SAL_CALL execute() throw (RuntimeException);
-
-    //// XJobExecutor
-    //virtual void SAL_CALL trigger( OUString const & event )
-    //    throw (RuntimeException);
 };
 }
 #endif
diff --git a/desktop/source/deployment/manager/dp_commandenvironments.cxx b/desktop/source/deployment/manager/dp_commandenvironments.cxx
index e159382..78448cf 100644
--- a/desktop/source/deployment/manager/dp_commandenvironments.cxx
+++ b/desktop/source/deployment/manager/dp_commandenvironments.cxx
@@ -250,11 +250,6 @@ void NoLicenseCommandEnv::handle(
     handle_(approve, abort, xRequest);
 }
 
-// SilentCheckPrerequisitesCommandEnv::SilentCheckPrerequisitesCommandEnv(
-//     css::uno::Reference< css::task::XInteractionHandler> const & handler):
-//     BaseCommandEnv(handler)
-// {
-// }
 SilentCheckPrerequisitesCommandEnv::SilentCheckPrerequisitesCommandEnv()
 {
 }
diff --git a/desktop/source/deployment/misc/dp_update.cxx b/desktop/source/deployment/misc/dp_update.cxx
index f478a0d..b22c4c5 100644
--- a/desktop/source/deployment/misc/dp_update.cxx
+++ b/desktop/source/deployment/misc/dp_update.cxx
@@ -271,14 +271,6 @@ UPDATE_SOURCE isUpdateUserExtension(
                 retVal = UPDATE_SOURCE_ONLINE;
             
         }
-        //No update for bundled extensions, they are updated only by the setup
-        //else if (bundledVersion.getLength())
-        //{
-        //    int index = determineHighestVersion(
-        //        OUString(), OUString(), bundledVersion, onlineVersion);
-        //    if (index == 3)
-        //        retVal = UPDATE_SOURCE_ONLINE;
-        //}
     }
     else
     {
@@ -317,14 +309,6 @@ UPDATE_SOURCE isUpdateSharedExtension(
         else if (index == 3)
             retVal = UPDATE_SOURCE_ONLINE;
     }
-    //No update for bundled extensions, they are updated only by the setup
-    //else if (bundledVersion.getLength())
-    //{
-    //    int index = determineHighestVersion(
-    //        OUString(), OUString(), bundledVersion, onlineVersion);
-    //    if (index == 3)
-    //        retVal = UPDATE_SOURCE_ONLINE;
-    //}
     return retVal;
 }
 
diff --git a/desktop/source/deployment/registry/component/dp_component.cxx b/desktop/source/deployment/registry/component/dp_component.cxx
index d4cb5dd..bd26a2c 100644
--- a/desktop/source/deployment/registry/component/dp_component.cxx
+++ b/desktop/source/deployment/registry/component/dp_component.cxx
@@ -494,7 +494,6 @@ void BackendImpl::initServiceRdbFiles()
             m_xComponentContext ), UNO_QUERY_THROW );
         m_xCommonRDB->open(
             makeURL( expandUnoRcUrl(getCachePath()), m_commonRDB ),
-//            m_readOnly, !m_readOnly );
             false, true);
     }
     if (m_nativeRDB.getLength() > 0) {
@@ -505,7 +504,6 @@ void BackendImpl::initServiceRdbFiles()
             m_xComponentContext ), UNO_QUERY_THROW );
         m_xNativeRDB->open(
             makeURL( expandUnoRcUrl(getCachePath()), m_nativeRDB ),
-//            m_readOnly, !m_readOnly );
             false, true);
     }
 }
diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx
index c1ab16f..fce2ae0 100644
--- a/desktop/source/deployment/registry/help/dp_help.cxx
+++ b/desktop/source/deployment/registry/help/dp_help.cxx
@@ -236,13 +236,6 @@ BackendImpl::PackageImpl::PackageImpl(
     : Package( myBackend, url, name, name, xPackageType, bRemoved,
                identifier)
 {
-//         if (bRemoved)
-//         {
-//             ::boost::optional<HelpBackendDb::Data> opt =
-//                 getMyBackend()->readDataFromDb(url);
-//             if (opt)
-//                 m_dbData = *opt;
-//         }
 }
 
 // Package
diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx
index 9cbbf83..3444aac 100644
--- a/desktop/source/deployment/registry/package/dp_package.cxx
+++ b/desktop/source/deployment/registry/package/dp_package.cxx
@@ -701,10 +701,6 @@ bool BackendImpl::PackageImpl::checkDependencies(
                 return true;
             else
                 return false;
-                //throw css::deployment::DeploymentException(
-                //    OUSTR("Extension Manager: User declined the license."), 
-                //    static_cast<OWeakObject*>(this), 
-                //    Any( css::deployment::LicenseException(OUSTR("User declined the license."), 0, m_name, sLicense)));
         }
         return true;
     } catch (css::ucb::CommandFailedException&) {
diff --git a/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx b/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
index 87455f5..59b1c9b 100644
--- a/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
+++ b/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
@@ -172,43 +172,6 @@ BackendImpl::BackendImpl(
 {
     if (! transientMode())
     {
-/*
-        if (office_is_running())
-        {
-            Reference<XComponentContext> xContext( getComponentContext() );
-            m_xScriptLibs.set(
-                xContext->getServiceManager()->createInstanceWithContext(
-                    OUSTR("com.sun.star."
-                          "script.ApplicationScriptLibraryContainer"),
-                    xContext ), UNO_QUERY_THROW );
-            m_xDialogLibs.set(
-                xContext->getServiceManager()->createInstanceWithContext(
-                    OUSTR("com.sun.star."
-                          "script.ApplicationDialogLibraryContainer"),
-                    xContext ), UNO_QUERY_THROW );
-        }
-        else
-        {
-            OUString basic_path(
-                m_eContext == CONTEXT_USER
-                ? OUSTR("vnd.sun.star.expand:${$BRAND_BASE_DIR/program/"
-                        SAL_CONFIGFILE("bootstrap")
-                        ":UserInstallation}/user/basic")
-                : OUSTR("vnd.sun.star.expand:${$BRAND_BASE_DIR/program/"
-                        SAL_CONFIGFILE("bootstrap")
-                        ":BaseInstallation}/share/basic") );
-            m_basic_script_libs.reset(
-                new LibraryContainer(
-                    makeURL( basic_path, OUSTR("script.xlc") ),
-                    getMutex(),
-                    getComponentContext() ) );
-            m_dialog_libs.reset(
-                new LibraryContainer(
-                    makeURL( basic_path, OUSTR("dialog.xlc") ),
-                    getMutex(),
-                    getComponentContext() ) );
-        }
-*/
     }
 }
 
diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx
index 7e0bb3f..c33a3b9 100644
--- a/desktop/source/offacc/acceptor.cxx
+++ b/desktop/source/offacc/acceptor.cxx
@@ -286,18 +286,6 @@ Reference<XInterface> SAL_CALL AccInstanceProvider::getInstance (const OUString&
             rInstance = rNamingService;
         }
     }
-    /*
-    else if ( aName.compareToAscii("com.sun.star.ucb.RemoteContentProviderAcceptor" ))
-    {
-        Reference< XMultiServiceFactory > rSMgr = ::comphelper::getProcessServiceFactory();
-        if ( rSMgr.is() ) {
-            try {
-                rInstance = rSMgr->createInstance( sObjectName );
-            }
-            catch (Exception const &) {}
-        }
-    }
-    */
     return rInstance;
 }
 
diff --git a/desktop/source/registration/com/sun/star/registration/Registration.java b/desktop/source/registration/com/sun/star/registration/Registration.java
index 6ac22c7..3a2cad1 100644
--- a/desktop/source/registration/com/sun/star/registration/Registration.java
+++ b/desktop/source/registration/com/sun/star/registration/Registration.java
@@ -315,7 +315,6 @@ public class Registration {
                         out.close();
 
                         int returnCode = con.getResponseCode();
-//                      if (returnCode == HttpURLConnection.HTTP_OK);
                     } catch(java.lang.Exception e) {
                         // IOException and UnknownHostException
                     }
diff --git a/desktop/source/so_comp/oemjob.cxx b/desktop/source/so_comp/oemjob.cxx
index 842dd9c..d06dbfd 100644
--- a/desktop/source/so_comp/oemjob.cxx
+++ b/desktop/source/so_comp/oemjob.cxx
@@ -163,33 +163,6 @@ throw ( RuntimeException )
             } else {
                 // user declined...
                 // terminate.
-                /*
-                Reference< XDesktop > xDesktop( m_xServiceManager->createInstance(
-                    OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.Desktop"))),
-                    UNO_QUERY );
-                xDesktop->terminate();
-                */
-                /*
-                OUString aName;
-                OUString aEnvType;
-                Reference<XFrame> rFrame;
-                Reference<XModel> rModel;
-                Reference<XCloseable> rClose;
-                for (int i=0; i<args.getLength(); i++)
-                {
-                    if (args[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("EnvType")))
-                        args[i].Value >>= aEnvType;
-                    else if (args[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Frame"))) {
-                        args[i].Value >>= rFrame;
-                        rClose = Reference<XCloseable>(rFrame, UNO_QUERY);
-                    }
-                    else if (args[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Model"))) {
-                        args[i].Value >>= rModel;
-                        rClose = Reference<XCloseable>(rModel, UNO_QUERY);
-                    }
-                }
-                if (rClose.is()) rClose->close(sal_True);
-                */
                 bCont = sal_False;
             }
         }
@@ -197,13 +170,6 @@ throw ( RuntimeException )
         // don't try again
         bCont = sal_True;
     }
-    /*
-    NamedValue nv;
-    nv.Name  = OUString(RTL_CONSTASCII_USTRINGPARAM("Deactivate"));
-    nv.Value <<=  bDeactivate;
-    Sequence<NamedValue> s(1);
-    s[0] = nv;
-    */
     Any r;
     r <<= bCont;
     return r;
diff --git a/desktop/source/splash/splash.cxx b/desktop/source/splash/splash.cxx
index c25824d..f0df032 100644
--- a/desktop/source/splash/splash.cxx
+++ b/desktop/source/splash/splash.cxx
@@ -254,9 +254,7 @@ void SplashScreen::updateStatus()
 {
     if (!_bVisible || _bProgressEnd) return;
     if (!_bPaintProgress) _bPaintProgress = sal_True;
-    //_bPaintBitmap=sal_False;
     Paint(Rectangle());
-    //_bPaintBitmap=sal_True;
     Flush();
 }
 


More information about the Libreoffice-commits mailing list