[ooo-build-commit] Branch 'ooo/OOO320' - 2 commits - offapi/com sal/osl

Jan Holesovsky kendy at kemper.freedesktop.org
Thu Dec 10 00:51:25 PST 2009


 offapi/com/sun/star/frame/XSessionManagerListener2.idl |   56 +++++++++++++++++
 offapi/com/sun/star/frame/makefile.mk                  |    1 
 sal/osl/unx/file.cxx                                   |    4 -
 sal/osl/w32/file.cxx                                   |    2 
 4 files changed, 62 insertions(+), 1 deletion(-)

New commits:
commit 5992dcb18ecd135b87610d032ffbf0bf9e1c6210
Author: Oliver Bolte <obo at openoffice.org>
Date:   Wed Dec 9 12:24:01 2009 +0000

    CWS-TOOLING: integrate CWS fwk128
    2009-12-03 15:16:35 +0100 mav  r277713 : #i10000# remove unused variable
    2009-12-03 11:37:54 +0100 mav  r277710 : #i105172# allow to request storing of documents from the user on session shutdown
    2009-12-03 11:22:54 +0100 mav  r277709 : #i105172# PL:extend session management
    2009-12-03 11:20:53 +0100 mav  r277708 : #i105172# PL:extend session management
    2009-11-26 15:15:24 +0100 mav  r277660 : #i105172# try to store documents on shutdown
    2009-11-26 15:13:55 +0100 mav  r277658 : #i105172# PL: implement cancelShutdown

diff --git a/offapi/com/sun/star/frame/XSessionManagerListener2.idl b/offapi/com/sun/star/frame/XSessionManagerListener2.idl
new file mode 100644
index 0000000..da3e0b1
--- /dev/null
+++ b/offapi/com/sun/star/frame/XSessionManagerListener2.idl
@@ -0,0 +1,56 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ * 
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: XSessionManagerListener.idl,v $
+ * $Revision: 1.4 $
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org.  If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+#ifndef __com_sun_star_frame_XSessionManagerListener2_idl__
+#define __com_sun_star_frame_XSessionManagerListener2_idl__
+
+#ifndef __com_sun_star_lang_XEventListener_idl__
+#include <com/sun/star/lang/XEventListener.idl>
+#endif
+
+#ifndef __com_sun_star_frame_XSessionManagerListener_idl__
+#include <com/sun/star/frame/XSessionManagerListener.idl>
+#endif
+//=============================================================================
+
+module com {  module sun {  module star {  module frame {
+
+    interface XSessionManagerListener2 : XSessionManagerListener
+    {
+        /** doQuit gets called when the session manager has decided
+        the application should quit. Under these circumstances bringing up
+        further UI will usually be impossible and must be avoided.
+        */
+        [oneway] void doQuit();
+    }; 
+
+}; }; }; };
+
+
+#endif
diff --git a/offapi/com/sun/star/frame/makefile.mk b/offapi/com/sun/star/frame/makefile.mk
index 789a0f6..0d0650a 100644
--- a/offapi/com/sun/star/frame/makefile.mk
+++ b/offapi/com/sun/star/frame/makefile.mk
@@ -142,6 +142,7 @@ IDLFILES=\
     XRecordableDispatch.idl\
     XSessionManagerClient.idl\
     XSessionManagerListener.idl\
+    XSessionManagerListener2.idl\
     XStatusListener.idl\
     XStatusbarController.idl\
     XStorable.idl\
commit 5b485dca447b7498520e2b7d2c04eeb5cbb853e9
Author: Oliver Bolte <obo at openoffice.org>
Date:   Wed Dec 9 08:32:23 2009 +0000

    CWS-TOOLING: integrate CWS fwk129
    2009-12-07 14:19:39 +0100 mba  r277741 : #i106367#: typo again
    2009-12-02 10:32:30 +0100 jsk  r277700 : fwk129: #i105719 - Fixed file size, wording and timing
    2009-11-25 13:25:48 +0100 mav  r277632 : #i107047# let the temporary stream be flushed in time
    2009-11-25 13:17:36 +0100 mav  r277631 : #i105719# switch to temporary file ealier to allow storing to the same location
    2009-11-23 14:47:02 +0100 mav  r277596 : #i105343# no outdated info in the buffer
    2009-11-23 14:09:49 +0100 os  r277595 : #i107064# copy styles in SwDoc::CreateCopy()
    2009-11-23 10:38:29 +0100 mba  r277592 : #i104338#: fix build without Java
    2009-11-20 10:22:11 +0100 cd  r277572 : #i107003# Make toolbar invisible before calling doLazyDelete. This prevents possible crashes in scenarios where a modal dialog is visible.
    2009-11-19 18:30:33 +0100 mav  r277569 : #i107035# let the temporary file be removed after the stream has been closed
    2009-11-19 18:06:21 +0100 mba  r277565 : #i106390#: crash caused by optimization
    2009-11-19 17:58:34 +0100 mba  r277564 : #i106367#: typo prevents correct asian language fallback
    2009-11-19 17:57:16 +0100 mba  r277563 : #i106390#: crash caused by optimization
    2009-11-19 16:35:41 +0100 nn  r277561 : #i106854# get source stream directly from document's storage instead of a temporary SfxMedium
    2009-11-19 12:36:38 +0100 mav  r277558 : #i106854# check the date of the original file

diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index b53fe20..2913bc8 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -466,6 +466,7 @@ oslFileError FileHandle_Impl::readFileAt (
                 oslFileError result = syncFile();
                 if (result != osl_File_E_None)
                     return (result);
+                m_bufptr = -1, m_buflen = 0;
 
                 if (nBytesRequested >= m_bufsiz)
                 {
@@ -535,6 +536,7 @@ oslFileError FileHandle_Impl::writeFileAt (
                 oslFileError result = syncFile();
                 if (result != osl_File_E_None)
                     return (result);
+                m_bufptr = -1, m_buflen = 0;
 
                 if (nBytesToWrite >= m_bufsiz)
                 {
@@ -1009,7 +1011,7 @@ SAL_CALL osl_syncFile(oslFileHandle Handle)
 
     FileHandle_Impl::Guard lock (&(pImpl->m_mutex));
 
-    OSL_FILE_TRACE("osl_syncFile(%d)", pImpl->m_fd);
+    OSL_TRACE("osl_syncFile(%d)", pImpl->m_fd);
     oslFileError result = pImpl->syncFile();
     if (result != osl_File_E_None)
         return (result);
diff --git a/sal/osl/w32/file.cxx b/sal/osl/w32/file.cxx
index 952adfe..e204990 100644
--- a/sal/osl/w32/file.cxx
+++ b/sal/osl/w32/file.cxx
@@ -400,6 +400,7 @@ oslFileError FileHandle_Impl::readFileAt (
                 oslFileError result = syncFile();
                 if (result != osl_File_E_None)
                     return (result);
+                m_bufptr = -1, m_buflen = 0;
 
                 if (nBytesRequested >= m_bufsiz)
                 {
@@ -472,6 +473,7 @@ oslFileError FileHandle_Impl::writeFileAt (
                 oslFileError result = syncFile();
                 if (result != osl_File_E_None)
                     return (result);
+                m_bufptr = -1, m_buflen = 0;
 
                 if (nBytesToWrite >= m_bufsiz)
                 {


More information about the ooo-build-commit mailing list