From e656ee2d01ddb88a8d6898f2ec229f1fc220ab9c Mon Sep 17 00:00:00 2001
From: Matthias Huetsch
Date: Tue, 27 Oct 2009 16:57:01 +0100
Subject: #i71568# simplified C++ wrapper inline implementation.
---
store/inc/store/store.hxx | 422 ++++++++++++++++++++++++++++++++----------
store/inc/store/store.inl | 454 ----------------------------------------------
2 files changed, 322 insertions(+), 554 deletions(-)
delete mode 100644 store/inc/store/store.inl
diff --git a/store/inc/store/store.hxx b/store/inc/store/store.hxx
index 54f0d44024b8..b6301f41f8b3 100644
--- a/store/inc/store/store.hxx
+++ b/store/inc/store/store.hxx
@@ -31,9 +31,9 @@
#ifndef _STORE_STORE_HXX_
#define _STORE_STORE_HXX_ "$Revision: 1.5 $"
-#include
-#include
-#include
+#include "sal/types.h"
+#include "rtl/ustring.hxx"
+#include "store/store.h"
namespace store
{
@@ -48,86 +48,154 @@ class OStoreStream
public:
/** Construction.
*/
- inline OStoreStream (void) SAL_THROW(());
+ inline OStoreStream (void) SAL_THROW(())
+ : m_hImpl (0)
+ {}
/** Destruction.
*/
- inline ~OStoreStream (void) SAL_THROW(());
+ inline ~OStoreStream (void) SAL_THROW(())
+ {
+ if (m_hImpl)
+ (void) store_releaseHandle (m_hImpl);
+ }
/** Copy construction.
*/
- inline OStoreStream (
- const OStoreStream& rOther) SAL_THROW(());
+ inline OStoreStream (OStoreStream const & rhs) SAL_THROW(())
+ : m_hImpl (rhs.m_hImpl)
+ {
+ if (m_hImpl)
+ (void) store_acquireHandle (m_hImpl);
+ }
/** Assignment.
*/
- inline OStoreStream& operator= (
- const OStoreStream& rOther) SAL_THROW(());
-
+ inline OStoreStream & operator= (OStoreStream const & rhs) SAL_THROW(())
+ {
+ if (rhs.m_hImpl)
+ (void) store_acquireHandle (rhs.m_hImpl);
+ if (m_hImpl)
+ (void) store_releaseHandle (m_hImpl);
+ m_hImpl = rhs.m_hImpl;
+ return *this;
+ }
/** Construction from Stream Handle.
*/
- inline OStoreStream (storeStreamHandle Handle) SAL_THROW(());
+ inline explicit OStoreStream (storeStreamHandle Handle) SAL_THROW(())
+ : m_hImpl (Handle)
+ {
+ if (m_hImpl)
+ (void) store_acquireHandle (m_hImpl);
+ }
/** Conversion into Stream Handle.
*/
- inline operator storeStreamHandle (void) const SAL_THROW(());
+ inline operator storeStreamHandle (void) const SAL_THROW(())
+ {
+ return m_hImpl;
+ }
/** Check for a valid Stream Handle.
@return sal_True if valid, sal_False otherwise.
*/
- inline sal_Bool isValid (void) const SAL_THROW(());
-
+ inline bool isValid (void) const SAL_THROW(())
+ {
+ return (m_hImpl != 0);
+ }
/** Open the stream.
@see store_openStream()
*/
inline storeError create (
- storeFileHandle hFile,
- const rtl::OUString &rPath,
- const rtl::OUString &rName,
- storeAccessMode eMode
- ) SAL_THROW(());
+ storeFileHandle hFile,
+ rtl::OUString const & rPath,
+ rtl::OUString const & rName,
+ storeAccessMode eMode) SAL_THROW(())
+ {
+ if (m_hImpl)
+ {
+ (void) store_releaseHandle (m_hImpl);
+ m_hImpl = 0;
+ }
+ return store_openStream (hFile, rPath.pData, rName.pData, eMode, &m_hImpl);
+ }
/** Close the stream.
@see store_closeStream()
*/
- inline void close (void) SAL_THROW(());
+ inline void close (void) SAL_THROW(())
+ {
+ if (m_hImpl)
+ {
+ (void) store_closeStream (m_hImpl);
+ m_hImpl = 0;
+ }
+ }
/** Read from the stream.
@see store_readStream()
*/
inline storeError readAt (
- sal_uInt32 nOffset,
- void *pBuffer,
- sal_uInt32 nBytes,
- sal_uInt32 &rnDone
- ) SAL_THROW(());
+ sal_uInt32 nOffset,
+ void * pBuffer,
+ sal_uInt32 nBytes,
+ sal_uInt32 & rnDone) SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_readStream (m_hImpl, nOffset, pBuffer, nBytes, &rnDone);
+ }
/** Write to the stream.
@see store_writeStream()
*/
inline storeError writeAt (
- sal_uInt32 nOffset,
- const void *pBuffer,
- sal_uInt32 nBytes,
- sal_uInt32 &rnDone
- ) SAL_THROW(());
+ sal_uInt32 nOffset,
+ void const * pBuffer,
+ sal_uInt32 nBytes,
+ sal_uInt32 & rnDone) SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_writeStream (m_hImpl, nOffset, pBuffer, nBytes, &rnDone);
+ }
/** Flush the stream.
@see store_flushStream()
*/
- inline storeError flush (void) const SAL_THROW(());
+ inline storeError flush (void) const SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_flushStream (m_hImpl);
+ }
/** Get the stream size.
@see store_getStreamSize()
*/
- inline storeError getSize (sal_uInt32 &rnSize) const SAL_THROW(());
+ inline storeError getSize (sal_uInt32 & rnSize) const SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_getStreamSize (m_hImpl, &rnSize);
+ }
/** Set the stream size.
@see store_setStreamSize()
*/
- inline storeError setSize (sal_uInt32 nSize) SAL_THROW(());
+ inline storeError setSize (sal_uInt32 nSize) SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_setStreamSize (m_hImpl, nSize);
+ }
private:
/** Representation.
@@ -145,52 +213,91 @@ class OStoreDirectory
public:
/** Construction.
*/
- inline OStoreDirectory (void) SAL_THROW(());
+ inline OStoreDirectory (void) SAL_THROW(())
+ : m_hImpl (0)
+ {}
/** Destruction.
*/
- inline ~OStoreDirectory (void) SAL_THROW(());
+ inline ~OStoreDirectory (void) SAL_THROW(())
+ {
+ if (m_hImpl)
+ (void) store_releaseHandle (m_hImpl);
+ }
/** Copy construction.
*/
- inline OStoreDirectory (
- const OStoreDirectory& rOther) SAL_THROW(());
+ inline OStoreDirectory (OStoreDirectory const & rhs) SAL_THROW(())
+ : m_hImpl (rhs.m_hImpl)
+ {
+ if (m_hImpl)
+ (void) store_acquireHandle (m_hImpl);
+ }
/** Assignment.
*/
- inline OStoreDirectory& operator= (
- const OStoreDirectory& rOther) SAL_THROW(());
-
+ inline OStoreDirectory & operator= (OStoreDirectory const & rhs) SAL_THROW(())
+ {
+ if (rhs.m_hImpl)
+ (void) store_acquireHandle (rhs.m_hImpl);
+ if (m_hImpl)
+ (void) store_releaseHandle (m_hImpl);
+ m_hImpl = rOther.m_hImpl;
+ return *this;
+ }
/** Construction from Directory Handle.
*/
- inline OStoreDirectory (storeDirectoryHandle Handle) SAL_THROW(());
+ inline explicit OStoreDirectory (storeDirectoryHandle Handle) SAL_THROW(())
+ : m_hImpl (Handle)
+ {
+ if (m_hImpl)
+ (void) store_acquireHandle (m_hImpl);
+ }
/** Conversion into Directory Handle.
*/
- inline operator storeDirectoryHandle (void) const SAL_THROW(());
+ inline operator storeDirectoryHandle(void) const SAL_THROW(())
+ {
+ return m_hImpl;
+ }
/** Check for a valid Directory Handle.
@return sal_True if valid, sal_False otherwise.
*/
- inline sal_Bool isValid (void) const SAL_THROW(());
-
+ inline bool isValid (void) const SAL_THROW(())
+ {
+ return (m_hImpl != 0);
+ }
/** Open the directory.
@see store_openDirectory()
*/
inline storeError create (
- storeFileHandle hFile,
- const rtl::OUString &rPath,
- const rtl::OUString &rName,
- storeAccessMode eMode
- ) SAL_THROW(());
+ storeFileHandle hFile,
+ rtl::OUString const & rPath,
+ rtl::OUString const & rName,
+ storeAccessMode eMode) SAL_THROW(())
+ {
+ if (m_hImpl)
+ {
+ (void) store_releaseHandle (m_hImpl);
+ m_hImpl = 0;
+ }
+ return store_openDirectory (hFile, rPath.pData, rName.pData, eMode, &m_hImpl);
+ }
/** Close the directory.
@see store_closeDirectory()
*/
- inline void close (void) SAL_THROW(());
-
+ inline void close (void) SAL_THROW(())
+ {
+ if (m_hImpl)
+ {
+ (void) store_closeDirectory (m_hImpl);
+ m_hImpl = 0;
+ }
+ }
/** Directory iterator type.
@see first()
@@ -201,12 +308,24 @@ public:
/** Find first directory entry.
@see store_findFirst()
*/
- inline storeError first (iterator& it) SAL_THROW(());
+ inline storeError first (iterator& it) SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_findFirst (m_hImpl, &it);
+ }
/** Find next directory entry.
@see store_findNext()
*/
- inline storeError next (iterator& it) SAL_THROW(());
+ inline storeError next (iterator& it) SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_findNext (m_hImpl, &it);
+ }
/** Directory traversal helper.
@see travel()
@@ -228,7 +347,18 @@ public:
@param rTraveller [in] the traversal callback.
@return store_E_NoMoreFiles upon end of iteration.
*/
- inline storeError travel (traveller& rTraveller) const;
+ inline storeError travel (traveller & rTraveller) const
+ {
+ storeError eErrCode = store_E_InvalidHandle;
+ if (m_hImpl)
+ {
+ iterator it;
+ eErrCode = store_findFirst (m_hImpl, &it);
+ while ((eErrCode == store_E_None) && rTraveller.visit(it))
+ eErrCode = store_findNext (m_hImpl, &it);
+ }
+ return eErrCode;
+ }
private:
/** Representation.
@@ -246,126 +376,220 @@ class OStoreFile
public:
/** Construction.
*/
- inline OStoreFile (void) SAL_THROW(());
+ inline OStoreFile (void) SAL_THROW(())
+ : m_hImpl (0)
+ {}
/** Destruction.
*/
- inline ~OStoreFile (void) SAL_THROW(());
+ inline ~OStoreFile (void) SAL_THROW(())
+ {
+ if (m_hImpl)
+ (void) store_releaseHandle (m_hImpl);
+ }
/** Copy construction.
*/
- inline OStoreFile (const OStoreFile& rOther) SAL_THROW(());
+ inline OStoreFile (OStoreFile const & rhs) SAL_THROW(())
+ : m_hImpl (rhs.m_hImpl)
+ {
+ if (m_hImpl)
+ (void) store_acquireHandle (m_hImpl);
+ }
/** Assignment.
*/
- inline OStoreFile& operator= (const OStoreFile& rOther) SAL_THROW(());
-
+ inline OStoreFile & operator= (OStoreFile const & rhs) SAL_THROW(())
+ {
+ if (rhs.m_hImpl)
+ (void) store_acquireHandle (rhs.m_hImpl);
+ if (m_hImpl)
+ (void) store_releaseHandle (m_hImpl);
+ m_hImpl = rhs.m_hImpl;
+ return *this;
+ }
/** Construction from File Handle.
*/
- inline OStoreFile (storeFileHandle Handle) SAL_THROW(());
+ inline explicit OStoreFile (storeFileHandle Handle) SAL_THROW(())
+ : m_hImpl (Handle)
+ {
+ if (m_hImpl)
+ (void) store_acquireHandle (m_hImpl);
+ }
/** Conversion into File Handle.
*/
- inline operator storeFileHandle (void) const SAL_THROW(());
+ inline operator storeFileHandle (void) const SAL_THROW(())
+ {
+ return m_hImpl;
+ }
/** Check for a valid File Handle.
@return sal_True if valid, sal_False otherwise.
*/
- inline sal_Bool isValid (void) const SAL_THROW(());
-
+ inline bool isValid (void) const SAL_THROW(())
+ {
+ return (m_hImpl != 0);
+ }
/** Open the file.
@see store_openFile()
*/
inline storeError create (
- const rtl::OUString &rFilename,
- storeAccessMode eAccessMode,
- sal_uInt16 nPageSize = STORE_DEFAULT_PAGESIZE
- ) SAL_THROW(());
+ rtl::OUString const & rFilename,
+ storeAccessMode eAccessMode,
+ sal_uInt16 nPageSize = STORE_DEFAULT_PAGESIZE) SAL_THROW(())
+ {
+ if (m_hImpl)
+ {
+ (void) store_releaseHandle (m_hImpl);
+ m_hImpl = 0;
+ }
+ return store_openFile (rFilename.pData, eAccessMode, nPageSize, &m_hImpl);
+ }
/** Open the temporary file in memory.
@see store_createMemoryFile()
*/
inline storeError createInMemory (
- sal_uInt16 nPageSize = STORE_DEFAULT_PAGESIZE
- ) SAL_THROW(());
+ sal_uInt16 nPageSize = STORE_DEFAULT_PAGESIZE) SAL_THROW(())
+ {
+ if (m_hImpl)
+ {
+ (void) store_releaseHandle (m_hImpl);
+ m_hImpl = 0;
+ }
+ return store_createMemoryFile (nPageSize, &m_hImpl);
+ }
/** Close the file.
@see store_closeFile()
*/
- inline void close (void) SAL_THROW(());
+ inline void close (void) SAL_THROW(())
+ {
+ if (m_hImpl)
+ {
+ (void) store_closeFile (m_hImpl);
+ m_hImpl = 0;
+ }
+ }
/** Flush the file.
@see store_flushFile()
*/
- inline storeError flush (void) const SAL_THROW(());
+ inline storeError flush (void) const SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_flushFile (m_hImpl);
+ }
/** Get the number of referers to the file.
@see store_getFileRefererCount()
*/
- inline storeError getRefererCount (
- sal_uInt32 &rnRefCount) const SAL_THROW(());
+ inline storeError getRefererCount (sal_uInt32 & rnRefCount) const SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_getFileRefererCount (m_hImpl, &rnRefCount);
+ }
/** Get the file size.
@see store_getFileSize()
*/
- inline storeError getSize (
- sal_uInt32 &rnSize) const SAL_THROW(());
+ inline storeError getSize (sal_uInt32 & rnSize) const SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+ return store_getFileSize (m_hImpl, &rnSize);
+ }
/** Set attributes of a file entry.
@see store_attrib()
*/
inline storeError attrib (
- const rtl::OUString &rPath,
- const rtl::OUString &rName,
- sal_uInt32 nMask1,
- sal_uInt32 nMask2,
- sal_uInt32 &rnAttrib
- ) SAL_THROW(());
+ rtl::OUString const & rPath,
+ rtl::OUString const & rName,
+ sal_uInt32 nMask1,
+ sal_uInt32 nMask2,
+ sal_uInt32 & rnAttrib) SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_attrib (m_hImpl, rPath.pData, rName.pData, nMask1, nMask2, &rnAttrib);
+ }
/** Set attributes of a file entry.
@see store_attrib()
*/
inline storeError attrib (
- const rtl::OUString &rPath,
- const rtl::OUString &rName,
- sal_uInt32 nMask1,
- sal_uInt32 nMask2
- ) SAL_THROW(());
+ rtl::OUString const & rPath,
+ rtl::OUString const & rName,
+ sal_uInt32 nMask1,
+ sal_uInt32 nMask2) SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_attrib (m_hImpl, rPath.pData, rName.pData, nMask1, nMask2, NULL);
+ }
/** Insert a file entry as 'hard link' to another file entry.
@see store_link()
*/
inline storeError link (
- const rtl::OUString &rSrcPath, const rtl::OUString &rSrcName,
- const rtl::OUString &rDstPath, const rtl::OUString &rDstName
- ) SAL_THROW(());
+ rtl::OUString const & rSrcPath, rtl::OUString const & rSrcName,
+ rtl::OUString const & rDstPath, rtl::OUString const & rDstName) SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_link (
+ m_hImpl, rSrcPath.pData, rSrcName.pData, rDstPath.pData, rDstName.pData);
+ }
/** Insert a file entry as 'symbolic link' to another file entry.
@see store_symlink()
*/
inline storeError symlink (
- const rtl::OUString &rSrcPath, const rtl::OUString &rSrcName,
- const rtl::OUString &rDstPath, const rtl::OUString &rDstName
- ) SAL_THROW(());
+ rtl::OUString const & rSrcPath, rtl::OUString const & rSrcName,
+ rtl::OUString const & rDstPath, rtl::OUString const & rDstName) SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_symlink (m_hImpl, rSrcPath.pData, rSrcName.pData, rDstPath.pData, rDstName.pData);
+ }
/** Rename a file entry.
@see store_rename()
*/
inline storeError rename (
- const rtl::OUString &rSrcPath, const rtl::OUString &rSrcName,
- const rtl::OUString &rDstPath, const rtl::OUString &rDstName
- ) SAL_THROW(());
+ rtl::OUString const & rSrcPath, rtl::OUString const & rSrcName,
+ rtl::OUString const & rDstPath, rtl::OUString const & rDstName) SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_rename (m_hImpl, rSrcPath.pData, rSrcName.pData, rDstPath.pData, rDstName.pData);
+ }
/** Remove a file entry.
@see store_remove()
*/
inline storeError remove (
- const rtl::OUString &rPath,
- const rtl::OUString &rName
- ) SAL_THROW(());
+ rtl::OUString const & rPath, rtl::OUString const & rName) SAL_THROW(())
+ {
+ if (!m_hImpl)
+ return store_E_InvalidHandle;
+
+ return store_remove (m_hImpl, rPath.pData, rName.pData);
+ }
private:
/** Representation.
@@ -379,8 +603,6 @@ private:
*
*======================================================================*/
-#include
-
} // namespace store
#endif /* !_STORE_STORE_HXX_ */
diff --git a/store/inc/store/store.inl b/store/inc/store/store.inl
deleted file mode 100644
index 35aff6dde1e2..000000000000
--- a/store/inc/store/store.inl
+++ /dev/null
@@ -1,454 +0,0 @@
-/*************************************************************************
- *
- * 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: store.inl,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
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#define _STORE_STORE_INL_ "$Revision: 1.4 $"
-
-/*========================================================================
- *
- * OStoreStream implementation.
- *
- *======================================================================*/
-inline OStoreStream::OStoreStream (void) SAL_THROW(())
- : m_hImpl (0)
-{
-}
-
-inline OStoreStream::~OStoreStream (void) SAL_THROW(())
-{
- if (m_hImpl)
- store_releaseHandle (m_hImpl);
-}
-
-inline OStoreStream::OStoreStream (
- const OStoreStream& rOther) SAL_THROW(())
- : m_hImpl (rOther.m_hImpl)
-{
- if (m_hImpl)
- store_acquireHandle (m_hImpl);
-}
-
-inline OStoreStream& OStoreStream::operator= (
- const OStoreStream& rOther) SAL_THROW(())
-{
- if (m_hImpl)
- store_releaseHandle (m_hImpl);
- m_hImpl = rOther.m_hImpl;
- if (m_hImpl)
- store_acquireHandle (m_hImpl);
- return *this;
-}
-
-inline OStoreStream::OStoreStream (
- storeStreamHandle Handle) SAL_THROW(())
- : m_hImpl (Handle)
-{
- if (m_hImpl)
- store_acquireHandle (m_hImpl);
-}
-
-inline OStoreStream::operator storeStreamHandle (void) const SAL_THROW(())
-{
- return m_hImpl;
-}
-
-inline sal_Bool OStoreStream::isValid (void) const SAL_THROW(())
-{
- return (!!m_hImpl);
-}
-
-inline storeError OStoreStream::create (
- storeFileHandle hFile,
- const rtl::OUString &rPath,
- const rtl::OUString &rName,
- storeAccessMode eMode) SAL_THROW(())
-{
- if (m_hImpl)
- {
- store_releaseHandle (m_hImpl);
- m_hImpl = 0;
- }
- return store_openStream (
- hFile, rPath.pData, rName.pData, eMode, &m_hImpl);
-}
-
-inline void OStoreStream::close (void) SAL_THROW(())
-{
- if (m_hImpl)
- {
- store_closeStream (m_hImpl);
- m_hImpl = 0;
- }
-}
-
-inline storeError OStoreStream::readAt (
- sal_uInt32 nOffset,
- void *pBuffer,
- sal_uInt32 nBytes,
- sal_uInt32 &rnDone) SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_readStream (
- m_hImpl, nOffset, pBuffer, nBytes, &rnDone);
-}
-
-inline storeError OStoreStream::writeAt (
- sal_uInt32 nOffset,
- const void *pBuffer,
- sal_uInt32 nBytes,
- sal_uInt32 &rnDone) SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_writeStream (
- m_hImpl, nOffset, pBuffer, nBytes, &rnDone);
-}
-
-inline storeError OStoreStream::flush (void) const SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_flushStream (m_hImpl);
-}
-
-inline storeError OStoreStream::getSize (
- sal_uInt32 &rnSize) const SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_getStreamSize (m_hImpl, &rnSize);
-}
-
-inline storeError OStoreStream::setSize (
- sal_uInt32 nSize) SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_setStreamSize (m_hImpl, nSize);
-}
-
-/*========================================================================
- *
- * OStoreDirectory implementation.
- *
- *======================================================================*/
-inline OStoreDirectory::OStoreDirectory (void) SAL_THROW(())
- : m_hImpl (0)
-{
-}
-
-inline OStoreDirectory::~OStoreDirectory (void) SAL_THROW(())
-{
- if (m_hImpl)
- store_releaseHandle (m_hImpl);
-}
-
-inline OStoreDirectory::OStoreDirectory (
- const OStoreDirectory& rOther) SAL_THROW(())
- : m_hImpl (rOther.m_hImpl)
-{
- if (m_hImpl)
- store_acquireHandle (m_hImpl);
-}
-
-inline OStoreDirectory& OStoreDirectory::operator= (
- const OStoreDirectory& rOther) SAL_THROW(())
-{
- if (m_hImpl)
- store_releaseHandle (m_hImpl);
- m_hImpl = rOther.m_hImpl;
- if (m_hImpl)
- store_acquireHandle (m_hImpl);
- return *this;
-}
-
-inline OStoreDirectory::OStoreDirectory (
- storeDirectoryHandle Handle) SAL_THROW(())
- : m_hImpl (Handle)
-{
- if (m_hImpl)
- store_acquireHandle (m_hImpl);
-}
-
-inline OStoreDirectory::operator storeDirectoryHandle(void) const SAL_THROW(())
-{
- return m_hImpl;
-}
-
-inline sal_Bool OStoreDirectory::isValid (void) const SAL_THROW(())
-{
- return (!!m_hImpl);
-}
-
-inline storeError OStoreDirectory::create (
- storeFileHandle hFile,
- const rtl::OUString &rPath,
- const rtl::OUString &rName,
- storeAccessMode eMode) SAL_THROW(())
-{
- if (m_hImpl)
- {
- store_releaseHandle (m_hImpl);
- m_hImpl = 0;
- }
- return store_openDirectory (
- hFile, rPath.pData, rName.pData, eMode, &m_hImpl);
-}
-
-inline void OStoreDirectory::close (void) SAL_THROW(())
-{
- if (m_hImpl)
- {
- store_closeDirectory (m_hImpl);
- m_hImpl = 0;
- }
-}
-
-inline storeError OStoreDirectory::first (iterator& it) SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_findFirst (m_hImpl, &it);
-}
-
-inline storeError OStoreDirectory::next (iterator& it) SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_findNext (m_hImpl, &it);
-}
-
-inline storeError OStoreDirectory::travel (traveller& rTraveller) const
-{
- storeError eErrCode = store_E_InvalidHandle;
- if (m_hImpl)
- {
- iterator it;
- eErrCode = store_findFirst (m_hImpl, &it);
- while ((eErrCode == store_E_None) && rTraveller.visit(it))
- eErrCode = store_findNext (m_hImpl, &it);
- }
- return eErrCode;
-}
-
-/*========================================================================
- *
- * OStoreFile implementation.
- *
- *======================================================================*/
-inline OStoreFile::OStoreFile (void) SAL_THROW(())
- : m_hImpl (0)
-{
-}
-
-inline OStoreFile::~OStoreFile (void) SAL_THROW(())
-{
- if (m_hImpl)
- store_releaseHandle (m_hImpl);
-}
-
-inline OStoreFile::OStoreFile (
- const OStoreFile& rOther) SAL_THROW(())
- : m_hImpl (rOther.m_hImpl)
-{
- if (m_hImpl)
- store_acquireHandle (m_hImpl);
-}
-
-inline OStoreFile& OStoreFile::operator= (
- const OStoreFile& rOther) SAL_THROW(())
-{
- if (m_hImpl)
- store_releaseHandle (m_hImpl);
- m_hImpl = rOther.m_hImpl;
- if (m_hImpl)
- store_acquireHandle (m_hImpl);
- return *this;
-}
-
-inline OStoreFile::OStoreFile (
- storeFileHandle Handle) SAL_THROW(())
- : m_hImpl (Handle)
-{
- if (m_hImpl)
- store_acquireHandle (m_hImpl);
-}
-
-inline OStoreFile::operator storeFileHandle (void) const SAL_THROW(())
-{
- return m_hImpl;
-}
-
-inline sal_Bool OStoreFile::isValid (void) const SAL_THROW(())
-{
- return (!!m_hImpl);
-}
-
-inline storeError OStoreFile::create (
- const rtl::OUString &rFilename,
- storeAccessMode eAccessMode,
- sal_uInt16 nPageSize) SAL_THROW(())
-{
- if (m_hImpl)
- {
- store_releaseHandle (m_hImpl);
- m_hImpl = 0;
- }
- return store_openFile (rFilename.pData, eAccessMode, nPageSize, &m_hImpl);
-}
-
-inline storeError OStoreFile::createInMemory (
- sal_uInt16 nPageSize) SAL_THROW(())
-{
- if (m_hImpl)
- {
- store_releaseHandle (m_hImpl);
- m_hImpl = 0;
- }
- return store_createMemoryFile (nPageSize, &m_hImpl);
-}
-
-inline void OStoreFile::close (void) SAL_THROW(())
-{
- if (m_hImpl)
- {
- store_closeFile (m_hImpl);
- m_hImpl = 0;
- }
-}
-
-inline storeError OStoreFile::flush (void) const SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_flushFile (m_hImpl);
-}
-
-inline storeError OStoreFile::getRefererCount (
- sal_uInt32 &rnRefCount) const SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_getFileRefererCount (m_hImpl, &rnRefCount);
-}
-
-inline storeError OStoreFile::getSize (
- sal_uInt32 &rnSize) const SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_getFileSize (m_hImpl, &rnSize);
-}
-
-inline storeError OStoreFile::attrib (
- const rtl::OUString &rPath,
- const rtl::OUString &rName,
- sal_uInt32 nMask1,
- sal_uInt32 nMask2,
- sal_uInt32 &rnAttrib) SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_attrib (
- m_hImpl, rPath.pData, rName.pData, nMask1, nMask2, &rnAttrib);
-}
-
-inline storeError OStoreFile::attrib (
- const rtl::OUString &rPath,
- const rtl::OUString &rName,
- sal_uInt32 nMask1,
- sal_uInt32 nMask2) SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_attrib (
- m_hImpl, rPath.pData, rName.pData, nMask1, nMask2, NULL);
-}
-
-inline storeError OStoreFile::link (
- const rtl::OUString &rSrcPath, const rtl::OUString &rSrcName,
- const rtl::OUString &rDstPath, const rtl::OUString &rDstName) SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_link (
- m_hImpl,
- rSrcPath.pData, rSrcName.pData,
- rDstPath.pData, rDstName.pData);
-}
-
-inline storeError OStoreFile::symlink (
- const rtl::OUString &rSrcPath, const rtl::OUString &rSrcName,
- const rtl::OUString &rDstPath, const rtl::OUString &rDstName) SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_symlink (
- m_hImpl,
- rSrcPath.pData, rSrcName.pData,
- rDstPath.pData, rDstName.pData);
-}
-
-inline storeError OStoreFile::rename (
- const rtl::OUString &rSrcPath, const rtl::OUString &rSrcName,
- const rtl::OUString &rDstPath, const rtl::OUString &rDstName) SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_rename (
- m_hImpl,
- rSrcPath.pData, rSrcName.pData,
- rDstPath.pData, rDstName.pData);
-}
-
-inline storeError OStoreFile::remove (
- const rtl::OUString &rPath, const rtl::OUString &rName) SAL_THROW(())
-{
- if (!m_hImpl)
- return store_E_InvalidHandle;
-
- return store_remove (m_hImpl, rPath.pData, rName.pData);
-}
-
--
cgit
From 38370b7cc6371d03cac8132245c1bee5031f758d Mon Sep 17 00:00:00 2001
From: Matthias Huetsch
Date: Thu, 29 Oct 2009 16:00:34 +0100
Subject: #i71568# Remove unused range locking code.
---
store/inc/store/store.hxx | 7 +--
store/source/lockbyte.cxx | 34 ------------
store/source/lockbyte.hxx | 30 -----------
store/source/storbios.cxx | 130 ++++------------------------------------------
store/source/storbios.hxx | 10 ----
store/source/stordata.cxx | 91 ++++----------------------------
store/source/stortree.cxx | 115 ++++------------------------------------
store/workben/t_base.cxx | 11 ----
8 files changed, 33 insertions(+), 395 deletions(-)
diff --git a/store/inc/store/store.hxx b/store/inc/store/store.hxx
index b6301f41f8b3..44540a44cb32 100644
--- a/store/inc/store/store.hxx
+++ b/store/inc/store/store.hxx
@@ -6,9 +6,6 @@
*
* OpenOffice.org - a multi-platform office productivity suite
*
- * $RCSfile: store.hxx,v $
- * $Revision: 1.5 $
- *
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
@@ -29,7 +26,7 @@
************************************************************************/
#ifndef _STORE_STORE_HXX_
-#define _STORE_STORE_HXX_ "$Revision: 1.5 $"
+#define _STORE_STORE_HXX_
#include "sal/types.h"
#include "rtl/ustring.hxx"
@@ -242,7 +239,7 @@ public:
(void) store_acquireHandle (rhs.m_hImpl);
if (m_hImpl)
(void) store_releaseHandle (m_hImpl);
- m_hImpl = rOther.m_hImpl;
+ m_hImpl = rhs.m_hImpl;
return *this;
}
diff --git a/store/source/lockbyte.cxx b/store/source/lockbyte.cxx
index a03628bfb740..551c7c737127 100644
--- a/store/source/lockbyte.cxx
+++ b/store/source/lockbyte.cxx
@@ -156,40 +156,6 @@ storeError ILockBytes::flush()
return flush_Impl();
}
-storeError ILockBytes::lockRange (sal_uInt32 nOffset, sal_uInt32 nBytes)
-{
- OSL_PRECOND(!(nOffset == STORE_PAGE_NULL), "store::ILockBytes::lockRange(): invalid Offset");
- if (nOffset == STORE_PAGE_NULL)
- return store_E_CantSeek;
-
- sal_uInt64 size = nOffset + nBytes;
- if (size > SAL_MAX_UINT32)
- return store_E_CantSeek;
-
-#ifdef STORE_FEATURE_LOCKING
- return lockRange_Impl (nOffset, nBytes);
-#else
- return store_E_None; // E_Unsupported
-#endif /* STORE_FEATURE_LOCKING */
-}
-
-storeError ILockBytes::unlockRange (sal_uInt32 nOffset, sal_uInt32 nBytes)
-{
- OSL_PRECOND(!(nOffset == STORE_PAGE_NULL), "store::ILockBytes::unlockRange(): invalid Offset");
- if (nOffset == STORE_PAGE_NULL)
- return store_E_CantSeek;
-
- sal_uInt64 size = nOffset + nBytes;
- if (size > SAL_MAX_UINT32)
- return store_E_CantSeek;
-
-#ifdef STORE_FEATURE_LOCKING
- return unlockRange_Impl (nOffset, nBytes);
-#else
- return store_E_None; // E_Unsupported
-#endif /* STORE_FEATURE_LOCKING */
-}
-
/*========================================================================
*
* FileLockBytes implementation.
diff --git a/store/source/lockbyte.hxx b/store/source/lockbyte.hxx
index 20a8b0b77073..95f73f289b67 100644
--- a/store/source/lockbyte.hxx
+++ b/store/source/lockbyte.hxx
@@ -128,26 +128,6 @@ public:
*/
storeError flush();
- /**
- @param nOffset [in]
- @param nBytes [in]
- @return store_E_None upon success
- store_E_LockingViolation
- */
- storeError lockRange (
- sal_uInt32 nOffset,
- sal_uInt32 nBytes);
-
- /**
- @param nOffset [in]
- @param nBytes [in]
- @return store_E_None upon success
- store_E_LockingViolation
- */
- storeError unlockRange (
- sal_uInt32 nOffset,
- sal_uInt32 nBytes);
-
private:
/** Implementation (abstract).
*/
@@ -180,16 +160,6 @@ private:
sal_uInt32 nSize) = 0;
virtual storeError flush_Impl() = 0;
-
-#ifdef STORE_FEATURE_LOCKING
- virtual storeError lockRange_Impl (
- sal_uInt32 nOffset,
- sal_uInt32 nBytes) = 0;
-
- virtual storeError unlockRange_Impl (
- sal_uInt32 nOffset,
- sal_uInt32 nBytes) = 0;
-#endif /* STORE_FEATURE_LOCKING */
};
/*========================================================================
diff --git a/store/source/storbios.cxx b/store/source/storbios.cxx
index d1f15dcda247..62852fa3e0cd 100644
--- a/store/source/storbios.cxx
+++ b/store/source/storbios.cxx
@@ -697,22 +697,8 @@ storeError OStorePageBIOS::verify (SuperPage *&rpSuper)
*/
storeError OStorePageBIOS::repair (SuperPage *&rpSuper)
{
- // Acquire Lock.
- storeError eErrCode = acquireLock (0, SuperPage::theSize);
- if (eErrCode != store_E_None)
- return eErrCode;
-
// Verify SuperBlock page (with repair).
- eErrCode = verify (rpSuper);
- if (eErrCode != store_E_None)
- {
- // Failure.
- releaseLock (0, SuperPage::theSize);
- return eErrCode;
- }
-
- // ReleaseLock.
- return releaseLock (0, SuperPage::theSize);
+ return verify (rpSuper);
}
/*
@@ -729,29 +715,16 @@ storeError OStorePageBIOS::create (sal_uInt16 nPageSize)
return store_E_InvalidParameter;
nPageSize = ((nPageSize + STORE_MINIMUM_PAGESIZE - 1) & ~(STORE_MINIMUM_PAGESIZE - 1));
- // Acquire Lock.
- storeError eErrCode = acquireLock (0, nPageSize);
- if (eErrCode != store_E_None)
- return eErrCode;
-
// Allocate SuperBlock page.
delete m_pSuper, m_pSuper = 0;
if ((m_pSuper = new(nPageSize) SuperPage(nPageSize)) == 0)
- {
- // Cleanup and fail.
- releaseLock (0, nPageSize);
return store_E_OutOfMemory;
- }
m_pSuper->guard();
// Create initial page (w/ SuperBlock).
- eErrCode = m_xLockBytes->writeAt (0, m_pSuper, nPageSize);
+ storeError eErrCode = m_xLockBytes->writeAt (0, m_pSuper, nPageSize);
if (eErrCode != store_E_None)
- {
- // Cleanup and fail.
- releaseLock (0, nPageSize);
return eErrCode;
- }
#ifdef STORE_FEATURE_COMMIT
// Commit.
@@ -763,9 +736,7 @@ storeError OStorePageBIOS::create (sal_uInt16 nPageSize)
// Adjust modified state.
m_bModified = (eErrCode != store_E_None);
-
- // Release Lock and finish.
- return releaseLock (0, nPageSize);
+ return eErrCode;
}
/*
@@ -859,36 +830,6 @@ storeError OStorePageBIOS::initialize (
return eErrCode;
}
-/*
- * acquireLock.
- * Low Level: Precond: initialized, exclusive access.
- */
-storeError OStorePageBIOS::acquireLock (
- sal_uInt32 nAddr, sal_uInt32 nSize)
-{
- // Check precond.
- if (!m_xLockBytes.is())
- return store_E_InvalidAccess;
-
- // Acquire Lock.
- return m_xLockBytes->lockRange (nAddr, nSize);
-}
-
-/*
- * releaseLock.
- * Low Level: Precond: initialized, exclusive access.
- */
-storeError OStorePageBIOS::releaseLock (
- sal_uInt32 nAddr, sal_uInt32 nSize)
-{
- // Check precond.
- if (!m_xLockBytes.is())
- return store_E_InvalidAccess;
-
- // Release Lock.
- return m_xLockBytes->unlockRange (nAddr, nSize);
-}
-
/*
* read.
* Low Level: Precond: initialized, exclusive access.
@@ -1034,18 +975,10 @@ storeError OStorePageBIOS::allocate (
if (!m_bWriteable)
return store_E_AccessViolation;
- // Acquire SuperBlock Lock.
- storeError eErrCode = acquireLock (0, SuperPage::theSize);
- if (eErrCode != store_E_None)
- return eErrCode;
-
// Load SuperBlock and require good health.
- eErrCode = verify (m_pSuper);
+ storeError eErrCode = verify (m_pSuper);
if (eErrCode != store_E_None)
- {
- releaseLock (0, SuperPage::theSize);
return eErrCode;
- }
// Check allocation.
if (eAlloc != ALLOCATE_EOF)
@@ -1061,10 +994,7 @@ storeError OStorePageBIOS::allocate (
// Load PageHead.
eErrCode = peek (aPageHead);
if (eErrCode != store_E_None)
- {
- releaseLock (0, SuperPage::theSize);
return eErrCode;
- }
// Verify FreeList head.
OSL_PRECOND(
@@ -1079,9 +1009,6 @@ storeError OStorePageBIOS::allocate (
// Save SuperBlock page.
eErrCode = m_pSuper->save (*this);
- // Release SuperBlock Lock.
- releaseLock (0, SuperPage::theSize);
-
// Recovery: Allocate from EOF.
if (eErrCode == store_E_None)
return allocate (rPage, ALLOCATE_EOF);
@@ -1096,12 +1023,9 @@ storeError OStorePageBIOS::allocate (
// Save page at PageHead location.
eErrCode = saveObjectAt_Impl (rPage, aPageHead.location());
if (eErrCode != store_E_None)
- {
- releaseLock (0, SuperPage::theSize);
return eErrCode;
- }
- // Save SuperBlock page.
+ // Save SuperBlock page and finish.
m_pSuper->m_aSuperTwo.unusedRemove (aListHead);
m_pSuper->m_aSuperOne = m_pSuper->m_aSuperTwo;
@@ -1109,9 +1033,7 @@ storeError OStorePageBIOS::allocate (
OSL_POSTCOND(
eErrCode == store_E_None,
"OStorePageBIOS::allocate(): SuperBlock save failed");
-
- // Release SuperBlock Lock and finish.
- return releaseLock (0, SuperPage::theSize);
+ return eErrCode;
}
}
@@ -1119,10 +1041,7 @@ storeError OStorePageBIOS::allocate (
sal_uInt32 nPhysLen = STORE_PAGE_NULL;
eErrCode = m_xLockBytes->getSize (nPhysLen);
if (eErrCode != store_E_None)
- {
- releaseLock (0, SuperPage::theSize);
return eErrCode;
- }
// Obtain logical EOF.
OStorePageDescriptor aDescr (m_pSuper->m_aSuperTwo.m_aDescr);
@@ -1141,10 +1060,7 @@ storeError OStorePageBIOS::allocate (
// Mark SuperBlock modified.
eErrCode = m_pSuper->modified (*this);
if (eErrCode != store_E_None)
- {
- releaseLock (0, SuperPage::theSize);
return eErrCode;
- }
}
// Resize.
@@ -1153,21 +1069,15 @@ storeError OStorePageBIOS::allocate (
eErrCode = m_xLockBytes->setSize (nPhysLen);
if (eErrCode != store_E_None)
- {
- releaseLock (0, SuperPage::theSize);
return eErrCode;
- }
}
// Save page at logical EOF.
eErrCode = saveObjectAt_Impl (rPage, nLogLen);
if (eErrCode != store_E_None)
- {
- releaseLock (0, SuperPage::theSize);
return eErrCode;
- }
- // Save SuperBlock page.
+ // Save SuperBlock page and finish.
nLogLen += store::ntohs(aDescr.m_nSize);
aDescr.m_nAddr = store::htonl(nLogLen);
@@ -1178,9 +1088,7 @@ storeError OStorePageBIOS::allocate (
OSL_POSTCOND(
eErrCode == store_E_None,
"OStorePageBIOS::allocate(): SuperBlock save failed");
-
- // Release SuperBlock Lock and finish.
- return releaseLock (0, SuperPage::theSize);
+ return eErrCode;
}
/*
@@ -1198,18 +1106,10 @@ storeError OStorePageBIOS::free (OStorePageData & /* rData */, sal_uInt32 nAddr)
if (!m_bWriteable)
return store_E_AccessViolation;
- // Acquire SuperBlock Lock.
- storeError eErrCode = acquireLock (0, SuperPage::theSize);
- if (eErrCode != store_E_None)
- return eErrCode;
-
// Load SuperBlock and require good health.
- eErrCode = verify (m_pSuper);
+ storeError eErrCode = verify (m_pSuper);
if (eErrCode != store_E_None)
- {
- releaseLock (0, SuperPage::theSize);
return eErrCode;
- }
// Load PageHead.
OStorePageData aPageHead(OStorePageData::theSize);
@@ -1217,10 +1117,7 @@ storeError OStorePageBIOS::free (OStorePageData & /* rData */, sal_uInt32 nAddr)
eErrCode = peek (aPageHead);
if (eErrCode != store_E_None)
- {
- releaseLock (0, SuperPage::theSize);
return eErrCode;
- }
// Invalidate cache.
(void) m_xCache->removePageAt (nAddr);
@@ -1234,12 +1131,9 @@ storeError OStorePageBIOS::free (OStorePageData & /* rData */, sal_uInt32 nAddr)
// Save PageHead.
eErrCode = poke (aPageHead);
if (eErrCode != store_E_None)
- {
- releaseLock (0, SuperPage::theSize);
return eErrCode;
- }
- // Save SuperBlock page.
+ // Save SuperBlock page and finish.
m_pSuper->m_aSuperTwo.unusedInsert (aListHead);
m_pSuper->m_aSuperOne = m_pSuper->m_aSuperTwo;
@@ -1247,9 +1141,7 @@ storeError OStorePageBIOS::free (OStorePageData & /* rData */, sal_uInt32 nAddr)
OSL_POSTCOND(
eErrCode == store_E_None,
"OStorePageBIOS::free(): SuperBlock save failed");
-
- // Release SuperBlock Lock and finish.
- return releaseLock (0, SuperPage::theSize);
+ return eErrCode;
}
/*
diff --git a/store/source/storbios.hxx b/store/source/storbios.hxx
index d9a0f982bd3c..d9d91255742b 100644
--- a/store/source/storbios.hxx
+++ b/store/source/storbios.hxx
@@ -83,16 +83,6 @@ public:
return m_xAllocator;
}
- /** acquireLock.
- */
- storeError acquireLock (
- sal_uInt32 nAddr, sal_uInt32 nSize);
-
- /** releaseLock.
- */
- storeError releaseLock (
- sal_uInt32 nAddr, sal_uInt32 nSize);
-
/** read.
*/
storeError read (
diff --git a/store/source/stordata.cxx b/store/source/stordata.cxx
index 29350f8ebfdd..dd0a8f18211f 100644
--- a/store/source/stordata.cxx
+++ b/store/source/stordata.cxx
@@ -436,17 +436,8 @@ storeError OStoreIndirectionPageObject::truncate (
if (!(nSingle < nLimit))
return store_E_InvalidAccess;
- // Save PageDescriptor.
- OStorePageDescriptor aDescr (rPage.m_aDescr);
- aDescr.m_nAddr = store::ntohl(aDescr.m_nAddr);
- aDescr.m_nSize = store::ntohs(aDescr.m_nSize);
-
- // Acquire Lock.
- storeError eErrCode = rBIOS.acquireLock (aDescr.m_nAddr, aDescr.m_nSize);
- if (eErrCode != store_E_None)
- return eErrCode;
-
// Truncate.
+ storeError eErrCode = store_E_None;
for (sal_uInt16 i = nLimit; i > nSingle; i--)
{
// Obtain data page location.
@@ -457,10 +448,7 @@ storeError OStoreIndirectionPageObject::truncate (
OStorePageData aPageHead;
eErrCode = rBIOS.free (aPageHead, nAddr);
if (eErrCode != store_E_None)
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return eErrCode;
- }
// Clear pointer to data page.
rPage.m_pData[i - 1] = STORE_PAGE_NULL;
@@ -473,19 +461,10 @@ storeError OStoreIndirectionPageObject::truncate (
{
// Save this page.
eErrCode = rBIOS.saveObjectAt (*this, location());
- if (eErrCode != store_E_None)
- {
- // Must not happen.
- OSL_TRACE("OStoreIndirectionPageObject::truncate(): save failed");
-
- // Release Lock and Leave.
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
- return eErrCode;
- }
}
- // Release Lock and Leave.
- return rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
+ // Done.
+ return eErrCode;
}
/*
@@ -504,26 +483,14 @@ storeError OStoreIndirectionPageObject::truncate (
if (!((nDouble < nLimit) && (nSingle < nLimit)))
return store_E_InvalidAccess;
- // Save PageDescriptor.
- OStorePageDescriptor aDescr (rPage.m_aDescr);
- aDescr.m_nAddr = store::ntohl(aDescr.m_nAddr);
- aDescr.m_nSize = store::ntohs(aDescr.m_nSize);
-
- // Acquire Lock.
- storeError eErrCode = rBIOS.acquireLock (aDescr.m_nAddr, aDescr.m_nSize);
- if (eErrCode != store_E_None)
- return eErrCode;
-
// Truncate.
+ storeError eErrCode = store_E_None;
for (sal_uInt16 i = nLimit; i > nDouble + 1; i--)
{
// Truncate single indirect page to zero direct pages.
eErrCode = store_truncate_Impl (store::ntohl(rPage.m_pData[i - 1]), 0, rBIOS);
if (eErrCode != store_E_None)
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return eErrCode;
- }
// Clear pointer to single indirect page.
rPage.m_pData[i - 1] = STORE_PAGE_NULL;
@@ -533,10 +500,7 @@ storeError OStoreIndirectionPageObject::truncate (
// Truncate last single indirect page to 'nSingle' direct pages.
eErrCode = store_truncate_Impl (store::ntohl(rPage.m_pData[nDouble]), nSingle, rBIOS);
if (eErrCode != store_E_None)
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return eErrCode;
- }
// Check for complete truncation.
if (nSingle == 0)
@@ -551,19 +515,10 @@ storeError OStoreIndirectionPageObject::truncate (
{
// Save this page.
eErrCode = rBIOS.saveObjectAt (*this, location());
- if (eErrCode != store_E_None)
- {
- // Must not happen.
- OSL_TRACE("OStoreIndirectionPageObject::truncate(): save failed");
-
- // Release Lock and Leave.
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
- return eErrCode;
- }
}
- // Release Lock and Leave.
- return rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
+ // Done.
+ return eErrCode;
}
/*
@@ -583,26 +538,14 @@ storeError OStoreIndirectionPageObject::truncate (
if (!((nTriple < nLimit) && (nDouble < nLimit) && (nSingle < nLimit)))
return store_E_InvalidAccess;
- // Save PageDescriptor.
- OStorePageDescriptor aDescr (rPage.m_aDescr);
- aDescr.m_nAddr = store::ntohl(aDescr.m_nAddr);
- aDescr.m_nSize = store::ntohs(aDescr.m_nSize);
-
- // Acquire Lock.
- storeError eErrCode = rBIOS.acquireLock (aDescr.m_nAddr, aDescr.m_nSize);
- if (eErrCode != store_E_None)
- return eErrCode;
-
// Truncate.
+ storeError eErrCode = store_E_None;
for (sal_uInt16 i = nLimit; i > nTriple + 1; i--)
{
// Truncate double indirect page to zero single indirect pages.
eErrCode = store_truncate_Impl (store::ntohl(rPage.m_pData[i - 1]), 0, 0, rBIOS);
if (eErrCode != store_E_None)
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return eErrCode;
- }
// Clear pointer to double indirect page.
rPage.m_pData[i - 1] = STORE_PAGE_NULL;
@@ -612,10 +555,7 @@ storeError OStoreIndirectionPageObject::truncate (
// Truncate last double indirect page to 'nDouble', 'nSingle' pages.
eErrCode = store_truncate_Impl (store::ntohl(rPage.m_pData[nTriple]), nDouble, nSingle, rBIOS);
if (eErrCode != store_E_None)
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return eErrCode;
- }
// Check for complete truncation.
if ((nDouble + nSingle) == 0)
@@ -630,19 +570,10 @@ storeError OStoreIndirectionPageObject::truncate (
{
// Save this page.
eErrCode = rBIOS.saveObjectAt (*this, location());
- if (eErrCode != store_E_None)
- {
- // Must not happen.
- OSL_TRACE("OStoreIndirectionPageObject::truncate(): save failed");
-
- // Release Lock and Leave.
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
- return eErrCode;
- }
}
- // Release Lock and Leave.
- return rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
+ // Done.
+ return eErrCode;
}
/*========================================================================
@@ -1132,8 +1063,8 @@ storeError OStoreDirectoryPageObject::truncate (
if (nAddr == STORE_PAGE_NULL) continue;
// Free data page.
- OStoreDataPageData aData;
- eErrCode = rBIOS.free (aData, nAddr);
+ OStorePageData aPageHead;
+ eErrCode = rBIOS.free (aPageHead, nAddr);
if (eErrCode != store_E_None)
break;
diff --git a/store/source/stortree.cxx b/store/source/stortree.cxx
index 614b995aba72..3f4f4b21c68b 100644
--- a/store/source/stortree.cxx
+++ b/store/source/stortree.cxx
@@ -205,25 +205,10 @@ storeError OStoreBTreeNodeObject::split (
if (!rxPageL->querySplit())
return store_E_None;
- // Save PageDescriptor.
- OStorePageDescriptor aDescr (xPage->m_aDescr);
- aDescr.m_nAddr = store::ntohl(aDescr.m_nAddr);
- aDescr.m_nSize = store::ntohs(aDescr.m_nSize);
-
- // Acquire Lock.
- storeError eErrCode = rBIOS.acquireLock (aDescr.m_nAddr, aDescr.m_nSize);
- if (eErrCode != store_E_None)
- return eErrCode;
-
- // [Begin PageL Lock (NYI)]
-
// Construct right page.
PageHolderObject< page > xPageR;
if (!xPageR.construct (rBIOS.allocator()))
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return store_E_OutOfMemory;
- }
// Split right page off left page.
xPageR->split (*rxPageL);
@@ -231,12 +216,9 @@ storeError OStoreBTreeNodeObject::split (
// Allocate right page.
self aNodeR (xPageR.get());
- eErrCode = rBIOS.allocate (aNodeR);
+ storeError eErrCode = rBIOS.allocate (aNodeR);
if (eErrCode != store_E_None)
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return eErrCode;
- }
// Truncate left page.
rxPageL->truncate (rxPageL->capacityCount() / 2);
@@ -245,35 +227,14 @@ storeError OStoreBTreeNodeObject::split (
self aNodeL (rxPageL.get());
eErrCode = rBIOS.saveObjectAt (aNodeL, aNodeL.location());
if (eErrCode != store_E_None)
- {
- // Must not happen.
- OSL_TRACE("OStoreBTreeNodeObject::split(): save() failed");
-
- // Release Lock and Leave.
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return eErrCode;
- }
-
- // [End PageL Lock (NYI)]
// Insert right page.
OStorePageLink aLink (xPageR->location());
xPage->insert (nIndexL + 1, T(xPageR->m_pData[0].m_aKey, aLink));
- // Save this page.
- eErrCode = rBIOS.saveObjectAt (*this, location());
- if (eErrCode != store_E_None)
- {
- // Must not happen.
- OSL_TRACE("OStoreBTreeNodeObject::split(): save() failed");
-
- // Release Lock and Leave.
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
- return eErrCode;
- }
-
- // Release Lock and Leave.
- return rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
+ // Save this page and leave.
+ return rBIOS.saveObjectAt (*this, location());
}
/*
@@ -287,43 +248,25 @@ storeError OStoreBTreeNodeObject::remove (
PageHolderObject< page > xImpl (m_xPage);
page & rPage = (*xImpl);
- // Save PageDescriptor.
- OStorePageDescriptor aDescr (rPage.m_aDescr);
- aDescr.m_nAddr = store::ntohl(aDescr.m_nAddr);
- aDescr.m_nSize = store::ntohs(aDescr.m_nSize);
-
- // Acquire Lock.
- storeError eErrCode = rBIOS.acquireLock (aDescr.m_nAddr, aDescr.m_nSize);
- if (eErrCode != store_E_None)
- return eErrCode;
-
// Check depth.
+ storeError eErrCode = store_E_None;
if (rPage.depth())
{
// Check link entry.
T const aEntryL (rPage.m_pData[nIndexL]);
if (!(rEntryL.compare (aEntryL) == T::COMPARE_EQUAL))
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return store_E_InvalidAccess;
- }
// Load link node.
self aNodeL;
eErrCode = rBIOS.loadObjectAt (aNodeL, aEntryL.m_aLink.location());
if (eErrCode != store_E_None)
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return eErrCode;
- }
// Recurse: remove from link node.
eErrCode = aNodeL.remove (0, rEntryL, rBIOS);
if (eErrCode != store_E_None)
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return eErrCode;
- }
// Check resulting link node usage.
PageHolderObject< page > xPageL (aNodeL.get());
@@ -333,10 +276,7 @@ storeError OStoreBTreeNodeObject::remove (
OStorePageData aPageHead;
eErrCode = rBIOS.free (aPageHead, xPageL->location());
if (eErrCode != store_E_None)
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return eErrCode;
- }
// Remove index.
rPage.remove (nIndexL);
@@ -373,10 +313,7 @@ storeError OStoreBTreeNodeObject::remove (
{
// Check leaf entry.
if (!(rEntryL.compare (rPage.m_pData[nIndexL]) == T::COMPARE_EQUAL))
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return store_E_NotExists;
- }
// Save leaf entry.
rEntryL = rPage.m_pData[nIndexL];
@@ -391,19 +328,10 @@ storeError OStoreBTreeNodeObject::remove (
{
// Save this page.
eErrCode = rBIOS.saveObjectAt (*this, location());
- if (eErrCode != store_E_None)
- {
- // Must not happen.
- OSL_TRACE("OStoreBTreeNodeObject::remove(): save() failed");
-
- // Release Lock and Leave.
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
- return eErrCode;
- }
}
- // Release Lock and Leave.
- return rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
+ // Done.
+ return eErrCode;
}
/*========================================================================
@@ -457,33 +385,17 @@ storeError OStoreBTreeRootObject::change (
PageHolderObject< page > xPage (m_xPage);
(void) testInvariant("OStoreBTreeRootObject::change(): enter");
- // Save PageDescriptor.
- OStorePageDescriptor aDescr (xPage->m_aDescr);
- aDescr.m_nAddr = store::ntohl(aDescr.m_nAddr);
- aDescr.m_nSize = store::ntohs(aDescr.m_nSize);
-
// Save root location.
sal_uInt32 const nRootAddr = xPage->location();
- // Acquire Lock.
- storeError eErrCode = rBIOS.acquireLock (aDescr.m_nAddr, aDescr.m_nSize);
- if (eErrCode != store_E_None)
- return eErrCode;
-
// Construct new root.
if (!rxPageL.construct (rBIOS.allocator()))
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return store_E_OutOfMemory;
- }
// Save this as prev root.
- eErrCode = rBIOS.allocate (*this);
+ storeError eErrCode = rBIOS.allocate (*this);
if (eErrCode != store_E_None)
- {
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
return store_E_OutOfMemory;
- }
// Setup new root.
rxPageL->depth (xPage->depth() + 1);
@@ -500,22 +412,13 @@ storeError OStoreBTreeRootObject::change (
// Save this as new root.
eErrCode = rBIOS.saveObjectAt (*this, nRootAddr);
- if (eErrCode != store_E_None)
- {
- // Must not happen.
- OSL_TRACE("OStoreBTreeRootObject::change(): save() failed");
-
- // Release Lock and Leave.
- rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
- return eErrCode;
- }
// Flush for robustness.
(void) rBIOS.flush();
- // Done. Release Lock and Leave.
+ // Done.
(void) testInvariant("OStoreBTreeRootObject::change(): leave");
- return rBIOS.releaseLock (aDescr.m_nAddr, aDescr.m_nSize);
+ return eErrCode;
}
/*
diff --git a/store/workben/t_base.cxx b/store/workben/t_base.cxx
index 593736e4d57b..02d283c7e31e 100644
--- a/store/workben/t_base.cxx
+++ b/store/workben/t_base.cxx
@@ -365,18 +365,7 @@ int SAL_CALL main (int argc, char **argv)
rtl_zeroMemory (pBuffer, sizeof (pBuffer));
rtl_copyMemory (pBuffer, argv[0], rtl_str_getLength(argv[0]) + 1);
- eErrCode = xBIOS->acquireLock (TEST_PAGESIZE, sizeof(pBuffer));
- if (eErrCode != store_E_None)
- return eErrCode;
-
eErrCode = xBIOS->write (TEST_PAGESIZE, pBuffer, sizeof (pBuffer));
- if (eErrCode != store_E_None)
- {
- xBIOS->releaseLock (TEST_PAGESIZE, sizeof(pBuffer));
- return eErrCode;
- }
-
- eErrCode = xBIOS->releaseLock (TEST_PAGESIZE, sizeof(pBuffer));
if (eErrCode != store_E_None)
return eErrCode;
--
cgit
From acad6899db184b7e1d98811118766b9f32273255 Mon Sep 17 00:00:00 2001
From: Matthias Huetsch
Date: Mon, 2 Nov 2009 19:09:43 +0100
Subject: #i71568# Remove unused StateBlock code.
---
store/source/storbios.cxx | 480 ++++++++++------------------------------------
store/source/storbios.hxx | 56 ++----
store/workben/makefile.mk | 6 +-
3 files changed, 119 insertions(+), 423 deletions(-)
diff --git a/store/source/storbios.cxx b/store/source/storbios.cxx
index 62852fa3e0cd..499584b02cd3 100644
--- a/store/source/storbios.cxx
+++ b/store/source/storbios.cxx
@@ -1,35 +1,27 @@
/*************************************************************************
*
- * OpenOffice.org - a multi-platform office productivity suite
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
- * $RCSfile: storbios.cxx,v $
+ * Copyright 2008 by Sun Microsystems, Inc.
*
- * $Revision: 1.1.2.3 $
+ * OpenOffice.org - a multi-platform office productivity suite
*
- * last change: $Author: mhu $ $Date: 2008/10/31 18:28:18 $
+ * This file is part of OpenOffice.org.
*
- * The Contents of this file are made available subject to
- * the terms of GNU Lesser General Public License Version 2.1.
+ * 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).
*
- * GNU Lesser General Public License Version 2.1
- * =============================================
- * Copyright 2005 by Sun Microsystems, Inc.
- * 901 San Antonio Road, Palo Alto, CA 94303, USA
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software Foundation.
- *
- * This library 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 for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ *
+ * for a copy of the LGPLv3 License.
*
************************************************************************/
@@ -91,36 +83,36 @@ struct OStoreSuperBlock
m_aUnused (0)
{}
- OStoreSuperBlock (const OStoreSuperBlock& rOther)
- : m_aGuard (rOther.m_aGuard),
- m_aDescr (rOther.m_aDescr),
- m_nMarked (rOther.m_nMarked),
- m_aMarked (rOther.m_aMarked),
- m_nUnused (rOther.m_nUnused),
- m_aUnused (rOther.m_aUnused)
+ OStoreSuperBlock (const OStoreSuperBlock & rhs)
+ : m_aGuard (rhs.m_aGuard),
+ m_aDescr (rhs.m_aDescr),
+ m_nMarked (rhs.m_nMarked),
+ m_aMarked (rhs.m_aMarked),
+ m_nUnused (rhs.m_nUnused),
+ m_aUnused (rhs.m_aUnused)
{}
- OStoreSuperBlock& operator= (const OStoreSuperBlock& rOther)
+ OStoreSuperBlock& operator= (const OStoreSuperBlock & rhs)
{
- m_aGuard = rOther.m_aGuard;
- m_aDescr = rOther.m_aDescr;
- m_nMarked = rOther.m_nMarked;
- m_aMarked = rOther.m_aMarked;
- m_nUnused = rOther.m_nUnused;
- m_aUnused = rOther.m_aUnused;
+ m_aGuard = rhs.m_aGuard;
+ m_aDescr = rhs.m_aDescr;
+ m_nMarked = rhs.m_nMarked;
+ m_aMarked = rhs.m_aMarked;
+ m_nUnused = rhs.m_nUnused;
+ m_aUnused = rhs.m_aUnused;
return *this;
}
/** Comparison.
*/
- sal_Bool operator== (const OStoreSuperBlock& rOther) const
+ sal_Bool operator== (const OStoreSuperBlock & rhs) const
{
- return ((m_aGuard == rOther.m_aGuard ) &&
- (m_aDescr == rOther.m_aDescr ) &&
- (m_nMarked == rOther.m_nMarked) &&
- (m_aMarked == rOther.m_aMarked) &&
- (m_nUnused == rOther.m_nUnused) &&
- (m_aUnused == rOther.m_aUnused) );
+ return ((m_aGuard == rhs.m_aGuard ) &&
+ (m_aDescr == rhs.m_aDescr ) &&
+ (m_nMarked == rhs.m_nMarked) &&
+ (m_aMarked == rhs.m_aMarked) &&
+ (m_nUnused == rhs.m_nUnused) &&
+ (m_aUnused == rhs.m_aUnused) );
}
/** unused(Count|Head|Insert|Remove|Reset).
@@ -179,74 +171,6 @@ struct OStoreSuperBlock
}
};
-/*========================================================================
- *
- * OStoreStateBlock.
- *
- *======================================================================*/
-struct OStoreStateBlock
-{
- enum StateBits
- {
- STATE_CLEAN = 0,
- STATE_CLOSE_WAIT = 1,
- STATE_FLUSH_WAIT = 2
- };
-
- /** Representation.
- */
- sal_uInt32 m_nState;
-
- /** theSize.
- */
- static const size_t theSize = sizeof(sal_uInt32);
-
- /** Construction.
- */
- OStoreStateBlock()
- : m_nState (store::htonl(STATE_CLEAN))
- {}
-
- /** Operation.
- */
- bool closePending (void) const
- {
- sal_uInt32 nState = store::ntohl(m_nState);
- return ((nState & STATE_CLOSE_WAIT) == STATE_CLOSE_WAIT);
- }
- void closed (void)
- {
- sal_uInt32 nState = store::ntohl(m_nState);
- nState &= ~STATE_CLOSE_WAIT;
- m_nState = store::htonl(nState);
- }
-
- bool flushPending (void) const
- {
- sal_uInt32 nState = store::ntohl(m_nState);
- return ((nState & STATE_FLUSH_WAIT) == STATE_FLUSH_WAIT);
- }
- void flushed (void)
- {
- sal_uInt32 nState = store::ntohl(m_nState);
- nState &= ~STATE_FLUSH_WAIT;
- m_nState = store::htonl(nState);
- }
-
- void modified (void)
- {
- sal_uInt32 nState = store::ntohl(m_nState);
- nState |= (STATE_CLOSE_WAIT | STATE_FLUSH_WAIT);
- m_nState = store::htonl(nState);
- }
- void clean (void)
- {
- sal_uInt32 nState = store::ntohl(m_nState);
- nState &= ~(STATE_CLOSE_WAIT | STATE_FLUSH_WAIT);
- m_nState = store::htonl(nState);
- }
-};
-
/*========================================================================
*
* OStoreSuperBlockPage interface.
@@ -258,17 +182,15 @@ namespace store
struct OStoreSuperBlockPage
{
typedef OStoreSuperBlock SuperBlock;
- typedef OStoreStateBlock StateBlock;
/** Representation.
*/
SuperBlock m_aSuperOne;
SuperBlock m_aSuperTwo;
- StateBlock m_aState;
/** theSize.
*/
- static const size_t theSize = 2 * SuperBlock::theSize + StateBlock::theSize;
+ static const size_t theSize = 2 * SuperBlock::theSize;
static const sal_uInt16 thePageSize = theSize;
STORE_STATIC_ASSERT(STORE_MINIMUM_PAGESIZE >= thePageSize);
@@ -296,8 +218,7 @@ struct OStoreSuperBlockPage
*/
explicit OStoreSuperBlockPage (sal_uInt16 nPageSize = thePageSize)
: m_aSuperOne(nPageSize),
- m_aSuperTwo(nPageSize),
- m_aState()
+ m_aSuperTwo(nPageSize)
{}
/** guard (external representation).
@@ -319,21 +240,6 @@ struct OStoreSuperBlockPage
return rBIOS.write (0, this, theSize);
}
- /** close.
- */
- storeError close (
- OStorePageBIOS &rBIOS);
-
- /** flush.
- */
- storeError flush (
- OStorePageBIOS &rBIOS);
-
- /** modified.
- */
- storeError modified (
- OStorePageBIOS &rBIOS);
-
/** verify (with repair).
*/
storeError verify (
@@ -347,89 +253,44 @@ struct OStoreSuperBlockPage
* OStoreSuperBlockPage implementation.
*
*======================================================================*/
-/*
- * close.
- */
-storeError OStoreSuperBlockPage::close (OStorePageBIOS &rBIOS)
+#if 0 /* NEW */
+SuperBlockPage::unusedHead(PageData & rPageHead) // alloc page, step 1
{
- storeError eErrCode = store_E_None;
- if (m_aState.closePending())
- {
- // Mark as modified.
- m_aState.modified();
-
- // Check access mode.
- if (rBIOS.isWriteable())
- {
- // Save StateBlock.
- StateBlock aState (m_aState);
-
- // Mark as clean.
- aState.clean();
+ L aListHead (m_aSuperTwo.unusedHead());
+ if (aListHead.location() == STORE_PAGE_NULL)
+ return store_E_NotExists;
- // Write behind SuperBlock.
- sal_uInt32 nAddr = 2 * SuperBlock::theSize;
- eErrCode = rBIOS.write (nAddr, &aState, StateBlock::theSize);
- }
-
- // Mark as clean.
- m_aState.clean();
- }
- return eErrCode;
+ rBIOS.read (aListHead.location(), &rPageHead, PageData::theSize);
}
-
-/*
- * flush.
- */
-storeError OStoreSuperBlockPage::flush (OStorePageBIOS &rBIOS)
+SuperBlockPage::unusedPop(sal_uInt32 nAddr) // alloc page, step 2
{
- storeError eErrCode = store_E_None;
- if (m_aState.flushPending())
- {
- // Check access mode.
- if (rBIOS.isWriteable())
- {
- // Save StateBlock.
- StateBlock aState (m_aState);
-
- // Mark as flushed.
- aState.flushed();
+}
+storeError OStoreSuperBlockPage::unusedPush (OStorePageBIOS & rBIOS, sal_uInt32 nAddr)
+{
+ PageData aPageHead (PageData::theSize);
+ eErrCode = rBIOS.read (nAddr, &aPageHead, PageData::theSize);
+ if (eErrCode != store_E_None)
+ return eErrCode;
- // Write behind SuperBlock.
- sal_uInt32 nAddr = 2 * SuperBlock::theSize;
- eErrCode = rBIOS.write (nAddr, &aState, StateBlock::theSize);
- }
+ eErrCode = aPageHead.verify (nAddr);
+ if (eErrCode != store_E_None)
+ return eErrCode;
- // Mark as flushed.
- m_aState.flushed();
- }
- return eErrCode;
-}
+ aPageHead.m_aUnused = m_aSuperTwo.unusedHead();
+ aPageHead.guard (nAddr);
-/*
- * modified.
- */
-storeError OStoreSuperBlockPage::modified (OStorePageBIOS &rBIOS)
-{
- storeError eErrCode = store_E_None;
- if (!m_aState.flushPending())
- {
- // Mark as modified.
- m_aState.modified();
+ eErrCode = rBIOS.write (nAddr, &aPageHead, PageData::theSize);
+ if (eErrCode != store_E_None)
+ return eErrCode;
- // Check access mode.
- if (rBIOS.isWriteable())
- {
- // Save StateBlock.
- StateBlock aState (m_aState);
+ OStorePageLink aListHead (nAddr);
+ m_aSuperTwo.unusedInsert(aListHead);
+ m_aSuperOne = m_aSuperTwo;
+ guard();
- // Write behind SuperBlock.
- sal_uInt32 nAddr = 2 * SuperBlock::theSize;
- eErrCode = rBIOS.write (nAddr, &aState, StateBlock::theSize);
- }
- }
- return eErrCode;
+ return rBIOS.write (0, this, theSize);
}
+#endif /* NEW */
/*
* verify (with repair).
@@ -644,8 +505,7 @@ OStorePageBIOS::AceCache::destroy (OStorePageBIOS::Ace * ace)
OStorePageBIOS::OStorePageBIOS (void)
: m_xLockBytes (NULL),
m_pSuper (NULL),
- m_bModified (sal_False),
- m_bWriteable (sal_False)
+ m_bWriteable (false)
{
}
@@ -678,29 +538,12 @@ storeError OStorePageBIOS::verify (SuperPage *&rpSuper)
delete rpSuper, rpSuper = 0;
return eErrCode;
}
-
- // Check SuperBlock state.
- if (rpSuper->m_aState.closePending())
- OSL_TRACE("OStorePageBIOS::verify(): close pending.\n");
-
- if (rpSuper->m_aState.flushPending())
- OSL_TRACE("OStorePageBIOS::verify(): flush pending.\n");
}
// Verify SuperBlock page (with repair).
return rpSuper->verify (*this);
}
-/*
- * repair (SuperBlock).
- * Internal: Precond: initialized, exclusive access.
- */
-storeError OStorePageBIOS::repair (SuperPage *&rpSuper)
-{
- // Verify SuperBlock page (with repair).
- return verify (rpSuper);
-}
-
/*
* create (SuperBlock).
* Internal: Precond: initialized, exclusive access.
@@ -722,21 +565,7 @@ storeError OStorePageBIOS::create (sal_uInt16 nPageSize)
m_pSuper->guard();
// Create initial page (w/ SuperBlock).
- storeError eErrCode = m_xLockBytes->writeAt (0, m_pSuper, nPageSize);
- if (eErrCode != store_E_None)
- return eErrCode;
-
-#ifdef STORE_FEATURE_COMMIT
- // Commit.
- eErrCode = m_xLockBytes->flush();
- OSL_POSTCOND(
- eErrCode == store_E_None,
- "OStorePageBIOS::create(): flush failed");
-#endif /* STORE_FEATURE_COMMIT */
-
- // Adjust modified state.
- m_bModified = (eErrCode != store_E_None);
- return eErrCode;
+ return write (0, m_pSuper, nPageSize);
}
/*
@@ -764,19 +593,13 @@ storeError OStorePageBIOS::initialize (
// Initialize.
m_xLockBytes = pLockBytes;
- m_bModified = sal_False;
m_bWriteable = (!(eAccessMode == store_AccessReadOnly));
// Check access mode.
- if (eAccessMode == store_AccessReadOnly)
- {
- // Verify SuperBlock page.
- eErrCode = verify (m_pSuper);
- }
- else if (eAccessMode != store_AccessCreate)
+ if (eAccessMode != store_AccessCreate)
{
// Verify (w/ repair) SuperBlock page.
- eErrCode = repair (m_pSuper);
+ eErrCode = verify (m_pSuper);
}
else
{
@@ -785,13 +608,6 @@ storeError OStorePageBIOS::initialize (
if (eErrCode != store_E_None)
return eErrCode;
-#ifdef STORE_FEATURE_COMMIT
- // Commit.
- eErrCode = m_xLockBytes->flush();
- if (eErrCode != store_E_None)
- return eErrCode;
-#endif /* STORE_FEATURE_COMMIT */
-
// Mark as not existing.
eErrCode = store_E_NotExists;
}
@@ -813,9 +629,6 @@ storeError OStorePageBIOS::initialize (
}
if (eErrCode == store_E_None)
{
- // Obtain modified state.
- m_bModified = m_pSuper->m_aState.flushPending();
-
// Obtain page size.
rnPageSize = store::ntohs(m_pSuper->m_aSuperOne.m_aDescr.m_nSize);
@@ -841,7 +654,7 @@ storeError OStorePageBIOS::read (
if (!m_xLockBytes.is())
return store_E_InvalidAccess;
- // Read Page.
+ // Read Data.
return m_xLockBytes->readAt (nAddr, pData, nSize);
}
@@ -858,18 +671,6 @@ storeError OStorePageBIOS::write (
if (!m_bWriteable)
return store_E_AccessViolation;
- // Check modified state.
- if (!m_bModified)
- {
- // Mark as modified.
- m_bModified = sal_True;
-
- // Mark SuperBlock modified.
- storeError eErrCode = m_pSuper->modified (*this);
- if (eErrCode != store_E_None)
- return eErrCode;
- }
-
// Write Data.
return m_xLockBytes->writeAt (nAddr, pData, nSize);
}
@@ -989,10 +790,9 @@ storeError OStorePageBIOS::allocate (
{
// Allocate from FreeList.
OStorePageData aPageHead (OStorePageData::theSize);
- aPageHead.location (aListHead.location());
// Load PageHead.
- eErrCode = peek (aPageHead);
+ eErrCode = peek (aPageHead, aListHead.location());
if (eErrCode != store_E_None)
return eErrCode;
@@ -1037,58 +837,14 @@ storeError OStorePageBIOS::allocate (
}
}
- // Allocate from logical EOF. Determine physical EOF.
- sal_uInt32 nPhysLen = STORE_PAGE_NULL;
- eErrCode = m_xLockBytes->getSize (nPhysLen);
+ // Allocate from EOF. Determine current size.
+ sal_uInt32 nSize = STORE_PAGE_NULL;
+ eErrCode = m_xLockBytes->getSize (nSize);
if (eErrCode != store_E_None)
return eErrCode;
- // Obtain logical EOF.
- OStorePageDescriptor aDescr (m_pSuper->m_aSuperTwo.m_aDescr);
- sal_uInt32 nLogLen = store::ntohl(aDescr.m_nAddr);
- if (nLogLen == 0)
- nLogLen = nPhysLen; /* backward compatibility */
-
- if (!(nLogLen < nPhysLen))
- {
- // Check modified state.
- if (!m_bModified)
- {
- // Mark modified.
- m_bModified = sal_True;
-
- // Mark SuperBlock modified.
- eErrCode = m_pSuper->modified (*this);
- if (eErrCode != store_E_None)
- return eErrCode;
- }
-
- // Resize.
- sal_uInt32 nAlign = SAL_MIN (nPhysLen, STORE_MAXIMUM_PAGESIZE);
- nPhysLen = ((nPhysLen + nAlign) / nAlign) * nAlign;
-
- eErrCode = m_xLockBytes->setSize (nPhysLen);
- if (eErrCode != store_E_None)
- return eErrCode;
- }
-
- // Save page at logical EOF.
- eErrCode = saveObjectAt_Impl (rPage, nLogLen);
- if (eErrCode != store_E_None)
- return eErrCode;
-
- // Save SuperBlock page and finish.
- nLogLen += store::ntohs(aDescr.m_nSize);
- aDescr.m_nAddr = store::htonl(nLogLen);
-
- m_pSuper->m_aSuperTwo.m_aDescr = aDescr;
- m_pSuper->m_aSuperOne = m_pSuper->m_aSuperTwo;
-
- eErrCode = m_pSuper->save (*this);
- OSL_POSTCOND(
- eErrCode == store_E_None,
- "OStorePageBIOS::allocate(): SuperBlock save failed");
- return eErrCode;
+ // Save page at current EOF.
+ return saveObjectAt_Impl (rPage, nSize);
}
/*
@@ -1113,9 +869,7 @@ storeError OStorePageBIOS::free (OStorePageData & /* rData */, sal_uInt32 nAddr)
// Load PageHead.
OStorePageData aPageHead(OStorePageData::theSize);
- aPageHead.location (nAddr);
-
- eErrCode = peek (aPageHead);
+ eErrCode = peek (aPageHead, nAddr);
if (eErrCode != store_E_None)
return eErrCode;
@@ -1129,7 +883,7 @@ storeError OStorePageBIOS::free (OStorePageData & /* rData */, sal_uInt32 nAddr)
aListHead.m_nAddr = aPageHead.m_aDescr.m_nAddr;
// Save PageHead.
- eErrCode = poke (aPageHead);
+ eErrCode = poke (aPageHead, nAddr);
if (eErrCode != store_E_None)
return eErrCode;
@@ -1253,37 +1007,17 @@ storeError OStorePageBIOS::close (void)
#endif /* NEW */
}
- // Check SuperBlock page.
- storeError eErrCode = store_E_None;
- if (m_pSuper)
- {
- // Release SuperBlock page.
- eErrCode = m_pSuper->close (*this);
- delete m_pSuper, m_pSuper = 0;
- }
+ // Release SuperBlock page.
+ delete m_pSuper, m_pSuper = 0;
// Release PageCache.
m_xCache.clear();
- // Check LockBytes.
- if (m_xLockBytes.is())
- {
-#ifdef STORE_FEATURE_COMMIT
- // Commit.
- storeError result = m_xLockBytes->flush();
- if (eErrCode == store_E_None)
- {
- // Previous result(s) okay. Propagate next result.
- eErrCode = result;
- }
-#endif /* STORE_FEATURE_COMMIT */
-
- // Release LockBytes.
- m_xLockBytes.clear();
- }
+ // Release LockBytes.
+ m_xLockBytes.clear();
// Done.
- return eErrCode;
+ return store_E_None;
}
/*
@@ -1299,27 +1033,8 @@ storeError OStorePageBIOS::flush (void)
if (!m_xLockBytes.is())
return store_E_InvalidAccess;
- // Check mode and state.
- storeError eErrCode = store_E_None;
- if (!(m_bWriteable && m_bModified))
- return eErrCode;
-
- // Flush SuperBlock page.
- eErrCode = m_pSuper->flush (*this);
-
- // Flush LockBytes.
- storeError result = m_xLockBytes->flush();
- if (eErrCode == store_E_None)
- {
- // Previous result(s) okay. Propagate next result.
- eErrCode = result;
- }
-
- // Adjust modified state.
- m_bModified = (eErrCode != store_E_None);
-
- // Done.
- return eErrCode;
+ // Flush LockBytes and finish.
+ return m_xLockBytes->flush();
}
/*
@@ -1372,7 +1087,8 @@ storeError OStorePageBIOS::scanBegin (
// Setup Context descriptor.
rCtx.m_aDescr = m_pSuper->m_aSuperOne.m_aDescr;
- rCtx.m_aDescr.m_nAddr = rCtx.m_aDescr.m_nSize; // @@@ ntoh @@@
+ rCtx.m_aDescr.m_nSize = store::ntohs(rCtx.m_aDescr.m_nSize);
+ rCtx.m_aDescr.m_nAddr = rCtx.m_aDescr.m_nSize;
// Setup Context size.
eErrCode = size (rCtx.m_nSize);
@@ -1404,11 +1120,11 @@ storeError OStorePageBIOS::scanNext (
while (rCtx.isValid())
{
// Assign next location.
- aPageHead.location (rCtx.m_aDescr.m_nAddr);
+ sal_uInt32 nAddr = rCtx.m_aDescr.m_nAddr;
rCtx.m_aDescr.m_nAddr += rCtx.m_aDescr.m_nSize;
// Load PageHead.
- storeError eErrCode = peek (aPageHead);
+ storeError eErrCode = peek (aPageHead, nAddr);
if (eErrCode != store_E_None)
continue;
@@ -1421,7 +1137,7 @@ storeError OStorePageBIOS::scanNext (
continue;
// Load page.
- eErrCode = loadObjectAt_Impl (rPage, aPageHead.location());
+ eErrCode = loadObjectAt_Impl (rPage, nAddr);
if (eErrCode != store_E_None)
continue;
@@ -1437,26 +1153,26 @@ storeError OStorePageBIOS::scanNext (
* peek (PageHead).
* Internal: Precond: initialized, readable, exclusive access.
*/
-storeError OStorePageBIOS::peek (OStorePageData &rData)
+storeError OStorePageBIOS::peek (OStorePageData &rData, sal_uInt32 nAddr)
{
// Read PageHead.
- storeError eErrCode = read (rData.location(), &rData, OStorePageData::theSize);
+ storeError eErrCode = read (nAddr, &rData, OStorePageData::theSize);
if (eErrCode != store_E_None)
return eErrCode;
// Verify PageHead.
- return rData.verify();
+ return rData.verify (nAddr);
}
/*
* poke (PageHead).
* Internal: Precond: initialized, writeable, exclusive access.
*/
-storeError OStorePageBIOS::poke (OStorePageData &rData)
+storeError OStorePageBIOS::poke (OStorePageData &rData, sal_uInt32 nAddr)
{
// Guard PageHead.
- rData.guard();
+ rData.guard (nAddr);
// Write PageHead.
- return write (rData.location(), &rData, OStorePageData::theSize);
+ return write (nAddr, &rData, OStorePageData::theSize);
}
diff --git a/store/source/storbios.hxx b/store/source/storbios.hxx
index d9d91255742b..f6e74ee3e19d 100644
--- a/store/source/storbios.hxx
+++ b/store/source/storbios.hxx
@@ -1,40 +1,32 @@
/*************************************************************************
*
- * OpenOffice.org - a multi-platform office productivity suite
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
- * $RCSfile: storbios.hxx,v $
+ * Copyright 2008 by Sun Microsystems, Inc.
*
- * $Revision: 1.1.2.3 $
+ * OpenOffice.org - a multi-platform office productivity suite
*
- * last change: $Author: mhu $ $Date: 2008/10/31 18:28:18 $
+ * This file is part of OpenOffice.org.
*
- * The Contents of this file are made available subject to
- * the terms of GNU Lesser General Public License Version 2.1.
+ * 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).
*
- * GNU Lesser General Public License Version 2.1
- * =============================================
- * Copyright 2005 by Sun Microsystems, Inc.
- * 901 San Antonio Road, Palo Alto, CA 94303, USA
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software Foundation.
- *
- * This library 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 for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ *
+ * for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _STORE_STORBIOS_HXX_
-#define _STORE_STORBIOS_HXX_ "$Revision: 1.1.2.3 $"
+#define _STORE_STORBIOS_HXX_
#include "sal/types.h"
#include "rtl/ref.hxx"
@@ -93,10 +85,6 @@ public:
storeError write (
sal_uInt32 nAddr, const void *pData, sal_uInt32 nSize);
- /** isModified.
- */
- inline bool isModified (void) const;
-
/** isWriteable.
*/
inline bool isWriteable (void) const;
@@ -197,7 +185,6 @@ private:
typedef OStoreSuperBlockPage SuperPage;
SuperPage *m_pSuper;
- bool m_bModified;
bool m_bWriteable;
rtl::Reference< PageData::Allocator > m_xAllocator;
@@ -235,14 +222,13 @@ private:
/** SuperBlock verification and repair.
*/
storeError verify (SuperPage *&rpSuper);
- storeError repair (SuperPage *&rpSuper);
/** Page Maintenance.
*/
storeError peek (
- OStorePageData &rData);
+ OStorePageData &rData, sal_uInt32 nAddr);
storeError poke (
- OStorePageData &rData);
+ OStorePageData &rData, sal_uInt32 nAddr);
storeError loadObjectAt_Impl (
OStorePageObject & rPage, sal_uInt32 nAddr);
@@ -259,10 +245,6 @@ inline OStorePageBIOS::operator osl::Mutex& (void) const
{
return (osl::Mutex&)m_aMutex;
}
-inline bool OStorePageBIOS::isModified (void) const
-{
- return m_bModified;
-}
inline bool OStorePageBIOS::isWriteable (void) const
{
return m_bWriteable;
diff --git a/store/workben/makefile.mk b/store/workben/makefile.mk
index 4b58d26409a0..60f1bb9b2ffe 100644
--- a/store/workben/makefile.mk
+++ b/store/workben/makefile.mk
@@ -6,10 +6,6 @@
#
# OpenOffice.org - a multi-platform office productivity suite
#
-# $RCSfile: makefile.mk,v $
-#
-# $Revision: 1.6 $
-#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
@@ -80,6 +76,7 @@ APP1OBJS= $(OBJ)$/t_file.obj
APP1STDLIBS= $(STOREDBGLIB)
APP1STDLIBS+= $(SALLIB)
APP1DEPN= $(STOREDBGLIB)
+APP1RPATH= UREBIN
APP2TARGET= t_page
APP2OBJS= $(OBJ)$/t_page.obj
@@ -92,6 +89,7 @@ APP3OBJS= $(OBJ)$/t_base.obj
APP3STDLIBS= $(STOREDBGLIB)
APP3STDLIBS+= $(SALLIB)
APP3DEPN= $(STOREDBGLIB)
+APP3RPATH= UREBIN
APP4TARGET= t_store
APP4OBJS= $(OBJ)$/t_store.obj
--
cgit
From 808f375a0048cf5c1dfe9617c08b3361c49ce722 Mon Sep 17 00:00:00 2001
From: Matthias Huetsch
Date: Tue, 10 Nov 2009 15:51:30 +0100
Subject: Revert fix for #i105360#
---
registry/source/keyimpl.cxx | 4 ----
registry/source/regimpl.cxx | 5 -----
2 files changed, 9 deletions(-)
diff --git a/registry/source/keyimpl.cxx b/registry/source/keyimpl.cxx
index 281c8e27cbf0..f8de7e20b148 100644
--- a/registry/source/keyimpl.cxx
+++ b/registry/source/keyimpl.cxx
@@ -365,7 +365,6 @@ RegError ORegKey::setValue(const OUString& valueName, RegValueType vType, RegVal
return REG_SET_VALUE_FAILED;
}
- rValue.flush();
rtl_freeMemory(pBuffer);
return REG_NO_ERROR;
}
@@ -424,7 +423,6 @@ RegError ORegKey::setLongListValue(const OUString& valueName, sal_Int32* pValueL
return REG_SET_VALUE_FAILED;
}
- rValue.flush();
rtl_freeMemory(pBuffer);
return REG_NO_ERROR;
}
@@ -492,7 +490,6 @@ RegError ORegKey::setStringListValue(const OUString& valueName, sal_Char** pValu
return REG_SET_VALUE_FAILED;
}
- rValue.flush();
rtl_freeMemory(pBuffer);
return REG_NO_ERROR;
}
@@ -560,7 +557,6 @@ RegError ORegKey::setUnicodeListValue(const OUString& valueName, sal_Unicode** p
return REG_SET_VALUE_FAILED;
}
- rValue.flush();
rtl_freeMemory(pBuffer);
return REG_NO_ERROR;
}
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx
index 8a4dd8b88ee9..86165b42bd1d 100644
--- a/registry/source/regimpl.cxx
+++ b/registry/source/regimpl.cxx
@@ -550,7 +550,6 @@ RegError ORegistry::closeRegistry()
if (m_file.isValid())
{
closeKey(m_openKeyTable[ROOT]);
- m_file.flush();
m_file.close();
m_isOpen = sal_False;
return REG_NO_ERROR;
@@ -848,7 +847,6 @@ RegError ORegistry::eraseKey(ORegKey* pKey, const OUString& keyName)
{
return REG_DELETE_KEY_FAILED;
}
- sFile.flush();
// set flag deleted !!!
((ORegKey*)hOldKey)->setDeleted(sal_True);
@@ -894,7 +892,6 @@ RegError ORegistry::deleteSubkeysAndValues(ORegKey* pKey)
{
return REG_DELETE_VALUE_FAILED;
}
- ((OStoreFile&)pKey->getStoreFile()).flush();
}
_err = rStoreDir.next(iter);
@@ -1065,7 +1062,6 @@ RegError ORegistry::loadAndSaveValue(ORegKey* pTargetKey,
{
return REG_VALUE_NOT_EXISTS;
}
- pSourceKey->getStoreFile().flush();
pBuffer = (sal_uInt8*)rtl_allocateMemory(VALUE_HEADERSIZE);
@@ -1137,7 +1133,6 @@ RegError ORegistry::loadAndSaveValue(ORegKey* pTargetKey,
rtl_freeMemory(pBuffer);
return REG_INVALID_VALUE;
}
- rTargetFile.flush();
if (rwBytes != nSize)
{
--
cgit
From cb64816b16c382ce18f68a5e4c5b1858d4f6f019 Mon Sep 17 00:00:00 2001
From: Matthias Huetsch
Date: Tue, 10 Nov 2009 15:55:03 +0100
Subject: #i71568# Remove unnecessary flush(), more cleanup.
---
store/source/storbios.cxx | 87 ++++++++++++++++++++++++++++++++---------------
store/source/storpage.cxx | 5 ---
store/source/stortree.cxx | 7 +---
3 files changed, 60 insertions(+), 39 deletions(-)
diff --git a/store/source/storbios.cxx b/store/source/storbios.cxx
index 499584b02cd3..1882c5ab072c 100644
--- a/store/source/storbios.cxx
+++ b/store/source/storbios.cxx
@@ -231,19 +231,16 @@ struct OStoreSuperBlockPage
/** save.
*/
- storeError save (OStorePageBIOS &rBIOS)
+ storeError save (OStorePageBIOS & rBIOS)
{
- // Guard.
- guard();
-
- // Write.
+ m_aSuperOne.guard();
+ m_aSuperTwo = m_aSuperOne;
return rBIOS.write (0, this, theSize);
}
/** verify (with repair).
*/
- storeError verify (
- OStorePageBIOS &rBIOS);
+ storeError verify (OStorePageBIOS & rBIOS);
};
} // namespace store
@@ -254,17 +251,55 @@ struct OStoreSuperBlockPage
*
*======================================================================*/
#if 0 /* NEW */
-SuperBlockPage::unusedHead(PageData & rPageHead) // alloc page, step 1
+/**
+ * alloc page, step 1: get freelist head.
+ */
+storeError SuperBlockPage::unusedHead(OStorePageBIOS & rBIOS, PageData & rPageHead)
{
- L aListHead (m_aSuperTwo.unusedHead());
- if (aListHead.location() == STORE_PAGE_NULL)
- return store_E_NotExists;
+ // Check FreeList.
+ OStorePageLink const aListHead (m_aSuperOne.unusedHead());
+ if (aListHead.location() == 0) // @see SuperBlock::ctor()
+ {
+ rPageHead.location (STORE_PAGE_NULL);
+ return store_E_None;
+ }
+
+ // Load PageHead.
+ eErrCode = rBIOS.read (aListHead.location(), &rPageHead, PageData::theSize);
+
+ eErrCode = rPageHead.verify (aListHead.location());
- rBIOS.read (aListHead.location(), &rPageHead, PageData::theSize);
+ // Verify page is unused.
+ sal_uInt32 const nAddr = rPageHead.m_aUnused.location();
+ OSL_POSTCOND(nAddr != STORE_PAGE_NULL, "store::SuperBlock::unusedHead(): page not free");
+ if (nAddr == STORE_PAGE_NULL)
+ {
+ // Page in use.
+ rPageHead.location (STORE_PAGE_NULL);
+
+ // Recovery: Reset FreeList.
+ m_aSuperOne.unusedReset();
+ return save (rBIOS);
+ }
+ return store_E_None;
}
-SuperBlockPage::unusedPop(sal_uInt32 nAddr) // alloc page, step 2
+
+/**
+ * alloc page, step 2: pop freelist head.
+ */
+SuperBlockPage::unusedPop (OStorePageBIOS & rBIOS, PageData const & rPageHead)
{
+ sal_uInt32 const nAddr = rPageHead.m_aUnused.location();
+ OSL_PRECOND(nAddr != STORE_PAGE_NULL, "store::SuperBlock::unusedPop(): page not free");
+ if (nAddr == STORE_PAGE_NULL)
+ return store_E_CantSeek;
+
+ // Pop from FreeList.
+ OStorePageLink const aListHead (nAddr);
+ m_aSuperOne.unusedRemove (aListHead);
+ return save (rBIOS);
}
+
storeError OStoreSuperBlockPage::unusedPush (OStorePageBIOS & rBIOS, sal_uInt32 nAddr)
{
PageData aPageHead (PageData::theSize);
@@ -276,19 +311,16 @@ storeError OStoreSuperBlockPage::unusedPush (OStorePageBIOS & rBIOS, sal_uInt32
if (eErrCode != store_E_None)
return eErrCode;
- aPageHead.m_aUnused = m_aSuperTwo.unusedHead();
+ aPageHead.m_aUnused = m_aSuperOne.unusedHead();
aPageHead.guard (nAddr);
eErrCode = rBIOS.write (nAddr, &aPageHead, PageData::theSize);
if (eErrCode != store_E_None)
return eErrCode;
- OStorePageLink aListHead (nAddr);
- m_aSuperTwo.unusedInsert(aListHead);
- m_aSuperOne = m_aSuperTwo;
- guard();
-
- return rBIOS.write (0, this, theSize);
+ OStorePageLink const aListHead (nAddr);
+ m_aSuperOne.unusedInsert(aListHead);
+ return save (rBIOS);
}
#endif /* NEW */
@@ -785,7 +817,7 @@ storeError OStorePageBIOS::allocate (
if (eAlloc != ALLOCATE_EOF)
{
// Check FreeList.
- OStorePageLink aListHead (m_pSuper->m_aSuperTwo.unusedHead());
+ OStorePageLink aListHead (m_pSuper->m_aSuperOne.unusedHead());
if (aListHead.location())
{
// Allocate from FreeList.
@@ -803,8 +835,7 @@ storeError OStorePageBIOS::allocate (
if (aPageHead.m_aUnused.location() == STORE_PAGE_NULL)
{
// Recovery: Reset FreeList.
- m_pSuper->m_aSuperTwo.unusedReset();
- m_pSuper->m_aSuperOne = m_pSuper->m_aSuperTwo;
+ m_pSuper->m_aSuperOne.unusedReset();
// Save SuperBlock page.
eErrCode = m_pSuper->save (*this);
@@ -826,8 +857,7 @@ storeError OStorePageBIOS::allocate (
return eErrCode;
// Save SuperBlock page and finish.
- m_pSuper->m_aSuperTwo.unusedRemove (aListHead);
- m_pSuper->m_aSuperOne = m_pSuper->m_aSuperTwo;
+ m_pSuper->m_aSuperOne.unusedRemove (aListHead);
eErrCode = m_pSuper->save (*this);
OSL_POSTCOND(
@@ -877,7 +907,9 @@ storeError OStorePageBIOS::free (OStorePageData & /* rData */, sal_uInt32 nAddr)
(void) m_xCache->removePageAt (nAddr);
// Push onto FreeList.
- OStorePageLink aListHead (m_pSuper->m_aSuperTwo.unusedHead());
+ // return m_pSuper->unusedPush (*this, nAddr); // @@@ NEW @@@
+
+ OStorePageLink aListHead (m_pSuper->m_aSuperOne.unusedHead());
aPageHead.m_aUnused.m_nAddr = aListHead.m_nAddr;
aListHead.m_nAddr = aPageHead.m_aDescr.m_nAddr;
@@ -888,8 +920,7 @@ storeError OStorePageBIOS::free (OStorePageData & /* rData */, sal_uInt32 nAddr)
return eErrCode;
// Save SuperBlock page and finish.
- m_pSuper->m_aSuperTwo.unusedInsert (aListHead);
- m_pSuper->m_aSuperOne = m_pSuper->m_aSuperTwo;
+ m_pSuper->m_aSuperOne.unusedInsert (aListHead);
eErrCode = m_pSuper->save (*this);
OSL_POSTCOND(
diff --git a/store/source/storpage.cxx b/store/source/storpage.cxx
index b112d5bb8fdd..126057457c15 100644
--- a/store/source/storpage.cxx
+++ b/store/source/storpage.cxx
@@ -120,11 +120,6 @@ storeError OStorePageManager::initialize (
// Save RootNode.
eErrCode = base::saveObjectAt (m_aRoot, rnPageSize);
- if (eErrCode != store_E_None)
- return eErrCode;
-
- // Flush for robustness.
- (void) base::flush();
}
// Done.
diff --git a/store/source/stortree.cxx b/store/source/stortree.cxx
index 3f4f4b21c68b..26f06b887b75 100644
--- a/store/source/stortree.cxx
+++ b/store/source/stortree.cxx
@@ -410,13 +410,8 @@ storeError OStoreBTreeRootObject::change (
tmp.swap (m_xPage);
}
- // Save this as new root.
+ // Save this as new root and finish.
eErrCode = rBIOS.saveObjectAt (*this, nRootAddr);
-
- // Flush for robustness.
- (void) rBIOS.flush();
-
- // Done.
(void) testInvariant("OStoreBTreeRootObject::change(): leave");
return eErrCode;
}
--
cgit
From eda892d1027f45c6fafaeb11e6f8406db961b06a Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Fri, 13 Nov 2009 16:03:20 +0100
Subject: #i71568# Simplified block (page) allocation.
---
store/source/storbase.hxx | 17 --
store/source/storbios.cxx | 387 ++++++++++++++++++----------------------------
store/source/storbios.hxx | 25 ++-
store/source/stordata.cxx | 15 +-
store/source/storpage.cxx | 3 +-
store/source/stortree.cxx | 5 +-
6 files changed, 170 insertions(+), 282 deletions(-)
diff --git a/store/source/storbase.hxx b/store/source/storbase.hxx
index 04be2860f691..3331763acf61 100644
--- a/store/source/storbase.hxx
+++ b/store/source/storbase.hxx
@@ -556,13 +556,6 @@ struct PageData
/** guard (external representation).
*/
- void guard()
- {
- sal_uInt32 nCRC32 = 0;
- nCRC32 = rtl_crc32 (nCRC32, &m_aGuard.m_nMagic, sizeof(sal_uInt32));
- nCRC32 = rtl_crc32 (nCRC32, &m_aDescr, theSize - sizeof(G));
- m_aGuard.m_nCRC32 = store::htonl(nCRC32);
- }
void guard (sal_uInt32 nAddr)
{
sal_uInt32 nCRC32 = 0;
@@ -574,16 +567,6 @@ struct PageData
/** verify (external representation).
*/
- storeError verify() const
- {
- sal_uInt32 nCRC32 = 0;
- nCRC32 = rtl_crc32 (nCRC32, &m_aGuard.m_nMagic, sizeof(sal_uInt32));
- nCRC32 = rtl_crc32 (nCRC32, &m_aDescr, theSize - sizeof(G));
- if (m_aGuard.m_nCRC32 != store::htonl(nCRC32))
- return store_E_InvalidChecksum;
- else
- return store_E_None;
- }
storeError verify (sal_uInt32 nAddr) const
{
sal_uInt32 nCRC32 = 0;
diff --git a/store/source/storbios.cxx b/store/source/storbios.cxx
index 1882c5ab072c..9e01c0489d94 100644
--- a/store/source/storbios.cxx
+++ b/store/source/storbios.cxx
@@ -173,13 +173,13 @@ struct OStoreSuperBlock
/*========================================================================
*
- * OStoreSuperBlockPage interface.
+ * SuperBlockPage interface.
*
*======================================================================*/
namespace store
{
-struct OStoreSuperBlockPage
+struct SuperBlockPage
{
typedef OStoreSuperBlock SuperBlock;
@@ -216,28 +216,34 @@ struct OStoreSuperBlockPage
/** Construction.
*/
- explicit OStoreSuperBlockPage (sal_uInt16 nPageSize = thePageSize)
+ explicit SuperBlockPage (sal_uInt16 nPageSize = thePageSize)
: m_aSuperOne(nPageSize),
m_aSuperTwo(nPageSize)
{}
- /** guard (external representation).
- */
- void guard()
- {
- m_aSuperOne.guard();
- m_aSuperTwo.guard();
- }
-
/** save.
*/
- storeError save (OStorePageBIOS & rBIOS)
+ storeError save (OStorePageBIOS & rBIOS, sal_uInt32 nSize = theSize)
{
m_aSuperOne.guard();
m_aSuperTwo = m_aSuperOne;
- return rBIOS.write (0, this, theSize);
+ return rBIOS.write (0, this, nSize);
}
+ /** Page allocation.
+ */
+ storeError unusedHead (
+ OStorePageBIOS & rBIOS,
+ PageData & rPageHead);
+
+ storeError unusedPop (
+ OStorePageBIOS & rBIOS,
+ PageData const & rPageHead);
+
+ storeError unusedPush (
+ OStorePageBIOS & rBIOS,
+ sal_uInt32 nAddr);
+
/** verify (with repair).
*/
storeError verify (OStorePageBIOS & rBIOS);
@@ -247,27 +253,35 @@ struct OStoreSuperBlockPage
/*========================================================================
*
- * OStoreSuperBlockPage implementation.
+ * SuperBlockPage implementation.
*
*======================================================================*/
-#if 0 /* NEW */
-/**
- * alloc page, step 1: get freelist head.
+/*
+ * unusedHead(): get freelist head (alloc page, step 1).
*/
-storeError SuperBlockPage::unusedHead(OStorePageBIOS & rBIOS, PageData & rPageHead)
+storeError SuperBlockPage::unusedHead (OStorePageBIOS & rBIOS, PageData & rPageHead)
{
- // Check FreeList.
+ storeError eErrCode = verify (rBIOS);
+ if (eErrCode != store_E_None)
+ return eErrCode;
+
+ // Check freelist head.
OStorePageLink const aListHead (m_aSuperOne.unusedHead());
- if (aListHead.location() == 0) // @see SuperBlock::ctor()
+ if (aListHead.location() == 0)
{
+ // Freelist empty, see SuperBlock::ctor().
rPageHead.location (STORE_PAGE_NULL);
return store_E_None;
}
// Load PageHead.
eErrCode = rBIOS.read (aListHead.location(), &rPageHead, PageData::theSize);
+ if (eErrCode != store_E_None)
+ return eErrCode;
eErrCode = rPageHead.verify (aListHead.location());
+ if (eErrCode != store_E_None)
+ return eErrCode;
// Verify page is unused.
sal_uInt32 const nAddr = rPageHead.m_aUnused.location();
@@ -277,17 +291,17 @@ storeError SuperBlockPage::unusedHead(OStorePageBIOS & rBIOS, PageData & rPageHe
// Page in use.
rPageHead.location (STORE_PAGE_NULL);
- // Recovery: Reset FreeList.
+ // Recovery: Reset freelist to empty.
m_aSuperOne.unusedReset();
- return save (rBIOS);
+ eErrCode = save (rBIOS);
}
- return store_E_None;
+ return eErrCode;
}
-/**
- * alloc page, step 2: pop freelist head.
+/*
+ * unusedPop(): pop freelist head (alloc page, step 2).
*/
-SuperBlockPage::unusedPop (OStorePageBIOS & rBIOS, PageData const & rPageHead)
+storeError SuperBlockPage::unusedPop (OStorePageBIOS & rBIOS, PageData const & rPageHead)
{
sal_uInt32 const nAddr = rPageHead.m_aUnused.location();
OSL_PRECOND(nAddr != STORE_PAGE_NULL, "store::SuperBlock::unusedPop(): page not free");
@@ -300,9 +314,16 @@ SuperBlockPage::unusedPop (OStorePageBIOS & rBIOS, PageData const & rPageHead)
return save (rBIOS);
}
-storeError OStoreSuperBlockPage::unusedPush (OStorePageBIOS & rBIOS, sal_uInt32 nAddr)
+/*
+ * unusedPush(): push new freelist head.
+ */
+storeError SuperBlockPage::unusedPush (OStorePageBIOS & rBIOS, sal_uInt32 nAddr)
{
- PageData aPageHead (PageData::theSize);
+ storeError eErrCode = verify (rBIOS);
+ if (eErrCode != store_E_None)
+ return eErrCode;
+
+ PageData aPageHead;
eErrCode = rBIOS.read (nAddr, &aPageHead, PageData::theSize);
if (eErrCode != store_E_None)
return eErrCode;
@@ -322,12 +343,11 @@ storeError OStoreSuperBlockPage::unusedPush (OStorePageBIOS & rBIOS, sal_uInt32
m_aSuperOne.unusedInsert(aListHead);
return save (rBIOS);
}
-#endif /* NEW */
/*
* verify (with repair).
*/
-storeError OStoreSuperBlockPage::verify (OStorePageBIOS &rBIOS)
+storeError SuperBlockPage::verify (OStorePageBIOS & rBIOS)
{
// Verify 1st copy.
storeError eErrCode = m_aSuperOne.verify();
@@ -546,58 +566,7 @@ OStorePageBIOS::OStorePageBIOS (void)
*/
OStorePageBIOS::~OStorePageBIOS (void)
{
- OStorePageBIOS::close();
-}
-
-/*
- * verify (SuperBlock with repair).
- * Internal: Precond: initialized, exclusive access.
- */
-storeError OStorePageBIOS::verify (SuperPage *&rpSuper)
-{
- // Check SuperBlock page allocation.
- if (rpSuper == 0)
- {
- // Allocate.
- if ((rpSuper = new SuperPage()) == 0)
- return store_E_OutOfMemory;
-
- // Load (w/o verification).
- storeError eErrCode = read (0, rpSuper, SuperPage::theSize);
- if (eErrCode != store_E_None)
- {
- // Cleanup and fail.
- delete rpSuper, rpSuper = 0;
- return eErrCode;
- }
- }
-
- // Verify SuperBlock page (with repair).
- return rpSuper->verify (*this);
-}
-
-/*
- * create (SuperBlock).
- * Internal: Precond: initialized, exclusive access.
- */
-storeError OStorePageBIOS::create (sal_uInt16 nPageSize)
-{
- // Check (internal) precond.
- OSL_PRECOND(m_xLockBytes.is(), "store::PageBIOS::create(): contract violation");
-
- // Check PageSize.
- if ((STORE_MINIMUM_PAGESIZE > nPageSize) || (nPageSize > STORE_MAXIMUM_PAGESIZE))
- return store_E_InvalidParameter;
- nPageSize = ((nPageSize + STORE_MINIMUM_PAGESIZE - 1) & ~(STORE_MINIMUM_PAGESIZE - 1));
-
- // Allocate SuperBlock page.
- delete m_pSuper, m_pSuper = 0;
- if ((m_pSuper = new(nPageSize) SuperPage(nPageSize)) == 0)
- return store_E_OutOfMemory;
- m_pSuper->guard();
-
- // Create initial page (w/ SuperBlock).
- return write (0, m_pSuper, nPageSize);
+ cleanup_Impl();
}
/*
@@ -612,26 +581,48 @@ storeError OStorePageBIOS::initialize (
// Acquire exclusive access.
osl::MutexGuard aGuard (m_aMutex);
- // Check arguments.
- storeError eErrCode = store_E_InvalidParameter;
- if (!pLockBytes)
- return eErrCode;
+ // Initialize.
+ storeError eErrCode = initialize_Impl (pLockBytes, eAccessMode, rnPageSize);
+ if (eErrCode != store_E_None)
+ {
+ // Cleanup.
+ cleanup_Impl();
+ }
+ return eErrCode;
+}
+/*
+ * initialize_Impl.
+ * Internal: Precond: exclusive access.
+ */
+storeError OStorePageBIOS::initialize_Impl (
+ ILockBytes * pLockBytes,
+ storeAccessMode eAccessMode,
+ sal_uInt16 & rnPageSize)
+{
// Cleanup.
-#if 0 /* OLD */
- __STORE_DELETEZ (m_pAcl); /* @@@ */
-#endif /* OLD */
- delete m_pSuper, m_pSuper = 0;
+ cleanup_Impl();
// Initialize.
m_xLockBytes = pLockBytes;
- m_bWriteable = (!(eAccessMode == store_AccessReadOnly));
+ if (!m_xLockBytes.is())
+ return store_E_InvalidParameter;
+ m_bWriteable = (eAccessMode != store_AccessReadOnly);
// Check access mode.
+ storeError eErrCode = store_E_None;
if (eAccessMode != store_AccessCreate)
{
- // Verify (w/ repair) SuperBlock page.
- eErrCode = verify (m_pSuper);
+ // Load SuperBlock page.
+ if ((m_pSuper = new SuperBlockPage()) == 0)
+ return store_E_OutOfMemory;
+
+ eErrCode = read (0, m_pSuper, SuperBlockPage::theSize);
+ if (eErrCode == store_E_None)
+ {
+ // Verify SuperBlock page (with repair).
+ eErrCode = m_pSuper->verify (*this);
+ }
}
else
{
@@ -656,8 +647,15 @@ storeError OStorePageBIOS::initialize (
if (eAccessMode == store_AccessReadWrite)
return store_E_NotExists;
- // Create SuperBlock page.
- eErrCode = create (rnPageSize);
+ // Check PageSize.
+ if ((STORE_MINIMUM_PAGESIZE > rnPageSize) || (rnPageSize > STORE_MAXIMUM_PAGESIZE))
+ return store_E_InvalidParameter;
+ rnPageSize = ((rnPageSize + STORE_MINIMUM_PAGESIZE - 1) & ~(STORE_MINIMUM_PAGESIZE - 1));
+
+ // Create initial page (w/ SuperBlock).
+ if ((m_pSuper = new(rnPageSize) SuperBlockPage(rnPageSize)) == 0)
+ return store_E_OutOfMemory;
+ eErrCode = m_pSuper->save (*this, rnPageSize);
}
if (eErrCode == store_E_None)
{
@@ -675,6 +673,38 @@ storeError OStorePageBIOS::initialize (
return eErrCode;
}
+/*
+ * cleanup_Impl.
+ * Internal: Precond: exclusive access.
+ */
+void OStorePageBIOS::cleanup_Impl()
+{
+ // Check referer count.
+ if (m_ace_head.m_used > 0)
+ {
+ // Report remaining referer count.
+ OSL_TRACE("store::PageBIOS::cleanup_Impl(): referer count: %d\n", m_ace_head.m_used);
+ for (Ace * ace = m_ace_head.m_next; ace != &m_ace_head; ace = m_ace_head.m_next)
+ {
+ m_ace_head.m_used -= ace->m_used;
+ AceCache::get().destroy (ace);
+ }
+ OSL_ENSURE(m_ace_head.m_used == 0, "store::PageBIOS::cleanup_Impl(): logic error");
+ }
+
+ // Release SuperBlock page.
+ delete m_pSuper, m_pSuper = 0;
+
+ // Release PageCache.
+ m_xCache.clear();
+
+ // Release PageAllocator.
+ m_xAllocator.clear();
+
+ // Release LockBytes.
+ m_xLockBytes.clear();
+}
+
/*
* read.
* Low Level: Precond: initialized, exclusive access.
@@ -808,62 +838,26 @@ storeError OStorePageBIOS::allocate (
if (!m_bWriteable)
return store_E_AccessViolation;
- // Load SuperBlock and require good health.
- storeError eErrCode = verify (m_pSuper);
- if (eErrCode != store_E_None)
- return eErrCode;
-
- // Check allocation.
+ // Check allocation type.
+ storeError eErrCode = store_E_None;
if (eAlloc != ALLOCATE_EOF)
{
- // Check FreeList.
- OStorePageLink aListHead (m_pSuper->m_aSuperOne.unusedHead());
- if (aListHead.location())
- {
- // Allocate from FreeList.
- OStorePageData aPageHead (OStorePageData::theSize);
-
- // Load PageHead.
- eErrCode = peek (aPageHead, aListHead.location());
- if (eErrCode != store_E_None)
- return eErrCode;
-
- // Verify FreeList head.
- OSL_PRECOND(
- aPageHead.m_aUnused.m_nAddr != STORE_PAGE_NULL,
- "OStorePageBIOS::allocate(): page not free");
- if (aPageHead.m_aUnused.location() == STORE_PAGE_NULL)
- {
- // Recovery: Reset FreeList.
- m_pSuper->m_aSuperOne.unusedReset();
-
- // Save SuperBlock page.
- eErrCode = m_pSuper->save (*this);
-
- // Recovery: Allocate from EOF.
- if (eErrCode == store_E_None)
- return allocate (rPage, ALLOCATE_EOF);
- else
- return store_E_Unknown;
- }
-
- // Pop from FreeList.
- aListHead = aPageHead.m_aUnused.location();
- rPage.get()->m_aUnused = STORE_PAGE_NULL;
+ // Try freelist head.
+ PageData aPageHead;
+ eErrCode = m_pSuper->unusedHead (*this, aPageHead);
+ if (eErrCode != store_E_None)
+ return eErrCode;
- // Save page at PageHead location.
- eErrCode = saveObjectAt_Impl (rPage, aPageHead.location());
+ sal_uInt32 const nAddr = aPageHead.location();
+ if (nAddr != STORE_PAGE_NULL)
+ {
+ // Save page.
+ eErrCode = saveObjectAt_Impl (rPage, nAddr);
if (eErrCode != store_E_None)
return eErrCode;
- // Save SuperBlock page and finish.
- m_pSuper->m_aSuperOne.unusedRemove (aListHead);
-
- eErrCode = m_pSuper->save (*this);
- OSL_POSTCOND(
- eErrCode == store_E_None,
- "OStorePageBIOS::allocate(): SuperBlock save failed");
- return eErrCode;
+ // Pop freelist head and finish.
+ return m_pSuper->unusedPop (*this, aPageHead);
}
}
@@ -881,7 +875,7 @@ storeError OStorePageBIOS::allocate (
* free.
* Precond: initialized, writeable.
*/
-storeError OStorePageBIOS::free (OStorePageData & /* rData */, sal_uInt32 nAddr)
+storeError OStorePageBIOS::free (sal_uInt32 nAddr)
{
// Acquire exclusive access.
osl::MutexGuard aGuard (m_aMutex);
@@ -892,41 +886,11 @@ storeError OStorePageBIOS::free (OStorePageData & /* rData */, sal_uInt32 nAddr)
if (!m_bWriteable)
return store_E_AccessViolation;
- // Load SuperBlock and require good health.
- storeError eErrCode = verify (m_pSuper);
- if (eErrCode != store_E_None)
- return eErrCode;
-
- // Load PageHead.
- OStorePageData aPageHead(OStorePageData::theSize);
- eErrCode = peek (aPageHead, nAddr);
- if (eErrCode != store_E_None)
- return eErrCode;
-
// Invalidate cache.
(void) m_xCache->removePageAt (nAddr);
- // Push onto FreeList.
- // return m_pSuper->unusedPush (*this, nAddr); // @@@ NEW @@@
-
- OStorePageLink aListHead (m_pSuper->m_aSuperOne.unusedHead());
-
- aPageHead.m_aUnused.m_nAddr = aListHead.m_nAddr;
- aListHead.m_nAddr = aPageHead.m_aDescr.m_nAddr;
-
- // Save PageHead.
- eErrCode = poke (aPageHead, nAddr);
- if (eErrCode != store_E_None)
- return eErrCode;
-
- // Save SuperBlock page and finish.
- m_pSuper->m_aSuperOne.unusedInsert (aListHead);
-
- eErrCode = m_pSuper->save (*this);
- OSL_POSTCOND(
- eErrCode == store_E_None,
- "OStorePageBIOS::free(): SuperBlock save failed");
- return eErrCode;
+ // Push onto freelist.
+ return m_pSuper->unusedPush (*this, nAddr);
}
/*
@@ -1018,34 +982,13 @@ storeError OStorePageBIOS::saveObjectAt_Impl (OStorePageObject & rPage, sal_uInt
* close.
* Precond: none.
*/
-storeError OStorePageBIOS::close (void)
+storeError OStorePageBIOS::close()
{
// Acquire exclusive access.
osl::MutexGuard aGuard (m_aMutex);
- // Check referer count.
- if (m_ace_head.m_used > 0)
- {
- // Report remaining referer count.
- OSL_TRACE("store::PageBIOS::close(): referer count: %d\n", m_ace_head.m_used);
-#if 1 /* NEW */
- for (Ace * ace = m_ace_head.m_next; ace != &m_ace_head; ace = m_ace_head.m_next)
- {
- m_ace_head.m_used -= ace->m_used;
- AceCache::get().destroy (ace);
- }
- OSL_ENSURE(m_ace_head.m_used == 0, "store::PageBIOS::close(): logic error");
-#endif /* NEW */
- }
-
- // Release SuperBlock page.
- delete m_pSuper, m_pSuper = 0;
-
- // Release PageCache.
- m_xCache.clear();
-
- // Release LockBytes.
- m_xLockBytes.clear();
+ // Cleanup.
+ cleanup_Impl();
// Done.
return store_E_None;
@@ -1108,7 +1051,7 @@ storeError OStorePageBIOS::scanBegin (
return store_E_InvalidAccess;
// Check SuperBlock page.
- storeError eErrCode = verify (m_pSuper);
+ storeError eErrCode = m_pSuper->verify (*this);
if (eErrCode != store_E_None)
{
// Damaged. Determine page size (NYI).
@@ -1145,7 +1088,7 @@ storeError OStorePageBIOS::scanNext (
return store_E_InvalidAccess;
// Setup PageHead.
- OStorePageData aPageHead (OStorePageData::theSize);
+ PageData aPageHead;
// Check context.
while (rCtx.isValid())
@@ -1154,11 +1097,15 @@ storeError OStorePageBIOS::scanNext (
sal_uInt32 nAddr = rCtx.m_aDescr.m_nAddr;
rCtx.m_aDescr.m_nAddr += rCtx.m_aDescr.m_nSize;
- // Load PageHead.
- storeError eErrCode = peek (aPageHead, nAddr);
+ // Read PageHead.
+ storeError eErrCode = read (nAddr, &aPageHead, PageData::theSize);
if (eErrCode != store_E_None)
continue;
+ // Verify PageHead.
+ eErrCode = aPageHead.verify (nAddr);
+ continue;
+
// Check PageHead Magic number.
if (aPageHead.m_aGuard.m_nMagic != rCtx.m_nMagic)
continue;
@@ -1179,31 +1126,3 @@ storeError OStorePageBIOS::scanNext (
// Done.
return store_E_CantSeek;
}
-
-/*
- * peek (PageHead).
- * Internal: Precond: initialized, readable, exclusive access.
- */
-storeError OStorePageBIOS::peek (OStorePageData &rData, sal_uInt32 nAddr)
-{
- // Read PageHead.
- storeError eErrCode = read (nAddr, &rData, OStorePageData::theSize);
- if (eErrCode != store_E_None)
- return eErrCode;
-
- // Verify PageHead.
- return rData.verify (nAddr);
-}
-
-/*
- * poke (PageHead).
- * Internal: Precond: initialized, writeable, exclusive access.
- */
-storeError OStorePageBIOS::poke (OStorePageData &rData, sal_uInt32 nAddr)
-{
- // Guard PageHead.
- rData.guard (nAddr);
-
- // Write PageHead.
- return write (nAddr, &rData, OStorePageData::theSize);
-}
diff --git a/store/source/storbios.hxx b/store/source/storbios.hxx
index f6e74ee3e19d..ef95d2f8376e 100644
--- a/store/source/storbios.hxx
+++ b/store/source/storbios.hxx
@@ -46,7 +46,7 @@
namespace store
{
-struct OStoreSuperBlockPage;
+struct SuperBlockPage;
class OStorePageBIOS : public store::OStoreObject
{
@@ -115,8 +115,7 @@ public:
storeError allocate (
OStorePageObject& rPage, Allocation eAllocation = ALLOCATE_FIRST);
- storeError free (
- OStorePageData & /* rData */, sal_uInt32 nAddr);
+ storeError free (sal_uInt32 nAddr);
/** Page I/O.
*/
@@ -182,8 +181,7 @@ private:
rtl::Reference m_xLockBytes;
osl::Mutex m_aMutex;
- typedef OStoreSuperBlockPage SuperPage;
- SuperPage *m_pSuper;
+ SuperBlockPage * m_pSuper;
bool m_bWriteable;
@@ -215,21 +213,16 @@ private:
class AceCache;
- /** create (SuperBlock).
- */
- storeError create (sal_uInt16 nPageSize);
-
- /** SuperBlock verification and repair.
+ /** Initialization.
*/
- storeError verify (SuperPage *&rpSuper);
+ storeError initialize_Impl (
+ ILockBytes * pLockBytes,
+ storeAccessMode eAccessMode,
+ sal_uInt16 & rnPageSize);
+ void cleanup_Impl();
/** Page Maintenance.
*/
- storeError peek (
- OStorePageData &rData, sal_uInt32 nAddr);
- storeError poke (
- OStorePageData &rData, sal_uInt32 nAddr);
-
storeError loadObjectAt_Impl (
OStorePageObject & rPage, sal_uInt32 nAddr);
storeError saveObjectAt_Impl (
diff --git a/store/source/stordata.cxx b/store/source/stordata.cxx
index dd0a8f18211f..91d789a2cb0d 100644
--- a/store/source/stordata.cxx
+++ b/store/source/stordata.cxx
@@ -98,8 +98,7 @@ static storeError store_truncate_Impl (
if (nSingle == 0)
{
// Free single indirect page.
- OStorePageData aPageHead;
- eErrCode = rBIOS.free (aPageHead, nAddr);
+ eErrCode = rBIOS.free (nAddr);
if (eErrCode != store_E_None)
return eErrCode;
}
@@ -138,8 +137,7 @@ static storeError store_truncate_Impl (
if ((nDouble + nSingle) == 0)
{
// Free double indirect page.
- OStorePageData aPageHead;
- eErrCode = rBIOS.free (aPageHead, nAddr);
+ eErrCode = rBIOS.free (nAddr);
if (eErrCode != store_E_None)
return eErrCode;
}
@@ -174,8 +172,7 @@ static storeError store_truncate_Impl (
if ((nTriple + nDouble + nSingle) == 0)
{
// Free triple indirect page.
- OStorePageData aPageHead;
- eErrCode = rBIOS.free (aPageHead, nAddr);
+ eErrCode = rBIOS.free (nAddr);
if (eErrCode != store_E_None)
return eErrCode;
}
@@ -445,8 +442,7 @@ storeError OStoreIndirectionPageObject::truncate (
if (nAddr != STORE_PAGE_NULL)
{
// Free data page.
- OStorePageData aPageHead;
- eErrCode = rBIOS.free (aPageHead, nAddr);
+ eErrCode = rBIOS.free (nAddr);
if (eErrCode != store_E_None)
return eErrCode;
@@ -1063,8 +1059,7 @@ storeError OStoreDirectoryPageObject::truncate (
if (nAddr == STORE_PAGE_NULL) continue;
// Free data page.
- OStorePageData aPageHead;
- eErrCode = rBIOS.free (aPageHead, nAddr);
+ eErrCode = rBIOS.free (nAddr);
if (eErrCode != store_E_None)
break;
diff --git a/store/source/storpage.cxx b/store/source/storpage.cxx
index 126057457c15..992931828080 100644
--- a/store/source/storpage.cxx
+++ b/store/source/storpage.cxx
@@ -855,8 +855,7 @@ storeError OStorePageManager::remove (const OStorePageKey &rKey)
eErrCode = base::releasePage (aDescr, store_AccessReadWrite);
// Release and free directory page.
- OStorePageData aPageHead;
- eErrCode = base::free (aPageHead, aPage.location());
+ eErrCode = base::free (aPage.location());
}
// Remove entry.
diff --git a/store/source/stortree.cxx b/store/source/stortree.cxx
index 26f06b887b75..d96216654732 100644
--- a/store/source/stortree.cxx
+++ b/store/source/stortree.cxx
@@ -273,8 +273,7 @@ storeError OStoreBTreeNodeObject::remove (
if (xPageL->usageCount() == 0)
{
// Free empty link node.
- OStorePageData aPageHead;
- eErrCode = rBIOS.free (aPageHead, xPageL->location());
+ eErrCode = rBIOS.free (xPageL->location());
if (eErrCode != store_E_None)
return eErrCode;
@@ -298,7 +297,7 @@ storeError OStoreBTreeNodeObject::remove (
{
rPageL.merge (rPageR);
- eErrCode = rBIOS.free (aPageHead, rPageR.location());
+ eErrCode = rBIOS.free (rPageR.location());
}
}
}
--
cgit
From 28f980a35906e83675b0a4601db0660eb00390b8 Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Fri, 13 Nov 2009 16:09:43 +0100
Subject: Fixed copyright headers.
---
store/source/lockbyte.cxx | 40 ++++++++++++++++------------------------
store/source/lockbyte.hxx | 42 +++++++++++++++++-------------------------
store/source/object.hxx | 42 +++++++++++++++++-------------------------
store/source/storbase.cxx | 40 ++++++++++++++++------------------------
store/source/stordir.cxx | 40 ++++++++++++++++------------------------
store/source/stordir.hxx | 42 +++++++++++++++++-------------------------
6 files changed, 99 insertions(+), 147 deletions(-)
diff --git a/store/source/lockbyte.cxx b/store/source/lockbyte.cxx
index 551c7c737127..9f77e9a65959 100644
--- a/store/source/lockbyte.cxx
+++ b/store/source/lockbyte.cxx
@@ -1,35 +1,27 @@
/*************************************************************************
*
- * OpenOffice.org - a multi-platform office productivity suite
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
- * $RCSfile: lockbyte.cxx,v $
+ * Copyright 2008 by Sun Microsystems, Inc.
*
- * $Revision: 1.1.2.4 $
+ * OpenOffice.org - a multi-platform office productivity suite
*
- * last change: $Author: mhu $ $Date: 2008/11/25 15:44:56 $
+ * This file is part of OpenOffice.org.
*
- * The Contents of this file are made available subject to
- * the terms of GNU Lesser General Public License Version 2.1.
+ * 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).
*
- * GNU Lesser General Public License Version 2.1
- * =============================================
- * Copyright 2005 by Sun Microsystems, Inc.
- * 901 San Antonio Road, Palo Alto, CA 94303, USA
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software Foundation.
- *
- * This library 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 for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ *
+ * for a copy of the LGPLv3 License.
*
************************************************************************/
diff --git a/store/source/lockbyte.hxx b/store/source/lockbyte.hxx
index 95f73f289b67..fb481afe09eb 100644
--- a/store/source/lockbyte.hxx
+++ b/store/source/lockbyte.hxx
@@ -1,40 +1,32 @@
/*************************************************************************
*
- * OpenOffice.org - a multi-platform office productivity suite
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
- * $RCSfile: lockbyte.hxx,v $
+ * Copyright 2008 by Sun Microsystems, Inc.
*
- * $Revision: 1.1.2.1 $
+ * OpenOffice.org - a multi-platform office productivity suite
*
- * last change: $Author: mhu $ $Date: 2008/09/18 16:10:50 $
+ * This file is part of OpenOffice.org.
*
- * The Contents of this file are made available subject to
- * the terms of GNU Lesser General Public License Version 2.1.
+ * 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).
*
- * GNU Lesser General Public License Version 2.1
- * =============================================
- * Copyright 2005 by Sun Microsystems, Inc.
- * 901 San Antonio Road, Palo Alto, CA 94303, USA
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software Foundation.
- *
- * This library 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 for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ *
+ * for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _STORE_LOCKBYTE_HXX_
-#define _STORE_LOCKBYTE_HXX_ "$Revision: 1.1.2.1 $"
+#define _STORE_LOCKBYTE_HXX_
#ifndef _SAL_TYPES_H_
#include "sal/types.h"
diff --git a/store/source/object.hxx b/store/source/object.hxx
index bc2a9bbcffe8..294eb797f5fb 100644
--- a/store/source/object.hxx
+++ b/store/source/object.hxx
@@ -1,40 +1,32 @@
/*************************************************************************
*
- * OpenOffice.org - a multi-platform office productivity suite
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
- * $RCSfile: object.hxx,v $
+ * Copyright 2008 by Sun Microsystems, Inc.
*
- * $Revision: 1.1.2.1 $
+ * OpenOffice.org - a multi-platform office productivity suite
*
- * last change: $Author: mhu $ $Date: 2008/09/18 16:10:51 $
+ * This file is part of OpenOffice.org.
*
- * The Contents of this file are made available subject to
- * the terms of GNU Lesser General Public License Version 2.1.
+ * 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).
*
- * GNU Lesser General Public License Version 2.1
- * =============================================
- * Copyright 2005 by Sun Microsystems, Inc.
- * 901 San Antonio Road, Palo Alto, CA 94303, USA
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software Foundation.
- *
- * This library 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 for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ *
+ * for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _STORE_OBJECT_HXX_
-#define _STORE_OBJECT_HXX_ "$Revision: 1.1.2.1 $"
+#define _STORE_OBJECT_HXX_
#ifndef _SAL_TYPES_H_
#include "sal/types.h"
diff --git a/store/source/storbase.cxx b/store/source/storbase.cxx
index 747b70df393a..c9ef8f3029ac 100644
--- a/store/source/storbase.cxx
+++ b/store/source/storbase.cxx
@@ -1,35 +1,27 @@
/*************************************************************************
*
- * OpenOffice.org - a multi-platform office productivity suite
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
- * $RCSfile: storbase.cxx,v $
+ * Copyright 2008 by Sun Microsystems, Inc.
*
- * $Revision: 1.12.8.4 $
+ * OpenOffice.org - a multi-platform office productivity suite
*
- * last change: $Author: mhu $ $Date: 2008/10/31 18:28:18 $
+ * This file is part of OpenOffice.org.
*
- * The Contents of this file are made available subject to
- * the terms of GNU Lesser General Public License Version 2.1.
+ * 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).
*
- * GNU Lesser General Public License Version 2.1
- * =============================================
- * Copyright 2005 by Sun Microsystems, Inc.
- * 901 San Antonio Road, Palo Alto, CA 94303, USA
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software Foundation.
- *
- * This library 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 for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ *
+ * for a copy of the LGPLv3 License.
*
************************************************************************/
diff --git a/store/source/stordir.cxx b/store/source/stordir.cxx
index 0269e9cb51f1..3f25f98ca7b9 100644
--- a/store/source/stordir.cxx
+++ b/store/source/stordir.cxx
@@ -1,35 +1,27 @@
/*************************************************************************
*
- * OpenOffice.org - a multi-platform office productivity suite
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
- * $RCSfile: stordir.cxx,v $
+ * Copyright 2008 by Sun Microsystems, Inc.
*
- * $Revision: 1.1.2.2 $
+ * OpenOffice.org - a multi-platform office productivity suite
*
- * last change: $Author: mhu $ $Date: 2008/10/17 16:30:17 $
+ * This file is part of OpenOffice.org.
*
- * The Contents of this file are made available subject to
- * the terms of GNU Lesser General Public License Version 2.1.
+ * 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).
*
- * GNU Lesser General Public License Version 2.1
- * =============================================
- * Copyright 2005 by Sun Microsystems, Inc.
- * 901 San Antonio Road, Palo Alto, CA 94303, USA
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software Foundation.
- *
- * This library 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 for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ *
+ * for a copy of the LGPLv3 License.
*
************************************************************************/
diff --git a/store/source/stordir.hxx b/store/source/stordir.hxx
index acfbf36af8d6..5f5bab54ade4 100644
--- a/store/source/stordir.hxx
+++ b/store/source/stordir.hxx
@@ -1,40 +1,32 @@
/*************************************************************************
*
- * OpenOffice.org - a multi-platform office productivity suite
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
- * $RCSfile: stordir.hxx,v $
+ * Copyright 2008 by Sun Microsystems, Inc.
*
- * $Revision: 1.1.2.2 $
+ * OpenOffice.org - a multi-platform office productivity suite
*
- * last change: $Author: mhu $ $Date: 2008/10/17 16:30:17 $
+ * This file is part of OpenOffice.org.
*
- * The Contents of this file are made available subject to
- * the terms of GNU Lesser General Public License Version 2.1.
+ * 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).
*
- * GNU Lesser General Public License Version 2.1
- * =============================================
- * Copyright 2005 by Sun Microsystems, Inc.
- * 901 San Antonio Road, Palo Alto, CA 94303, USA
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software Foundation.
- *
- * This library 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 for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ *
+ * for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _STORE_STORDIR_HXX_
-#define _STORE_STORDIR_HXX_ "$Revision: 1.1.2.2 $"
+#define _STORE_STORDIR_HXX_
#ifndef _SAL_TYPES_H_
#include
--
cgit
From 4fc902003376e5f05bfd83d99d240ce54444272e Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Wed, 9 Dec 2009 19:34:40 +0100
Subject: Fixed copyright header.
---
store/source/stordata.hxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/store/source/stordata.hxx b/store/source/stordata.hxx
index 1b6c74c371fd..40a7827f830b 100644
--- a/store/source/stordata.hxx
+++ b/store/source/stordata.hxx
@@ -6,9 +6,6 @@
*
* OpenOffice.org - a multi-platform office productivity suite
*
- * $RCSfile: stordata.hxx,v $
- * $Revision: 1.6 $
- *
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
@@ -29,7 +26,7 @@
************************************************************************/
#ifndef _STORE_STORDATA_HXX_
-#define _STORE_STORDATA_HXX_ "$Revision: 1.6.8.2 $"
+#define _STORE_STORDATA_HXX_
#include "sal/types.h"
#include "sal/macros.h"
--
cgit
From 16c8ed5d372109c177c5989bf6498e6f209b1515 Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Wed, 9 Dec 2009 19:37:00 +0100
Subject: #i105343# Fixed osl_writeFile() to invalidate flushed buffer.
---
sal/osl/unx/file.cxx | 4 +++-
sal/osl/w32/file.cxx | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 8e7d76cda614..e02485cdf4ce 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 34deba2293da..60c51cfb3a73 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)
{
--
cgit
From 5b209afe5c5b511b29deaa6029c088afdc30160b Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Wed, 16 Jun 2010 16:46:19 +0200
Subject: Added enclosing classname to FixedMemPool diagnosis.
---
sal/rtl/source/alloc_cache.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sal/rtl/source/alloc_cache.c b/sal/rtl/source/alloc_cache.c
index 4e2c030fb3a6..629d19224522 100644
--- a/sal/rtl/source/alloc_cache.c
+++ b/sal/rtl/source/alloc_cache.c
@@ -965,11 +965,16 @@ rtl_cache_deactivate (
rtl_cache_type * cache
)
{
+ int active = 1;
+
/* remove from cache list */
RTL_MEMORY_LOCK_ACQUIRE(&(g_cache_list.m_lock));
+ active = QUEUE_STARTED_NAMED(cache, cache_) == 0;
QUEUE_REMOVE_NAMED(cache, cache_);
RTL_MEMORY_LOCK_RELEASE(&(g_cache_list.m_lock));
+ OSL_PRECOND(active, "rtl_cache_deactivate(): orphaned cache.");
+
/* cleanup magazine layer */
if (cache->m_magazine_cache != 0)
{
--
cgit
From f3de0f63df974b9ca01817d46d5fc8c831f72918 Mon Sep 17 00:00:00 2001
From: Juergen Schmidt
Date: Fri, 1 Oct 2010 14:20:45 +0200
Subject: jsc340: i14847: clean up cmdline help fo devtools
---
codemaker/source/bonobowrappermaker/corbaoptions.cxx | 3 +--
codemaker/source/cppumaker/cppuoptions.cxx | 5 ++---
codemaker/source/cunomaker/cunooptions.cxx | 5 ++---
codemaker/source/idlmaker/idloptions.cxx | 5 ++---
codemaker/source/javamaker/javaoptions.cxx | 5 ++---
cpputools/source/regcomplazy/regcomplazy.cxx | 1 +
cpputools/source/registercomponent/registercomponent.cxx | 4 ++--
idlc/source/options.cxx | 4 ++--
registry/tools/checksingleton.cxx | 4 ++--
registry/tools/regcompare.cxx | 4 ++--
10 files changed, 18 insertions(+), 22 deletions(-)
diff --git a/codemaker/source/bonobowrappermaker/corbaoptions.cxx b/codemaker/source/bonobowrappermaker/corbaoptions.cxx
index 3c644b6ff4dd..1bb75810031a 100644
--- a/codemaker/source/bonobowrappermaker/corbaoptions.cxx
+++ b/codemaker/source/bonobowrappermaker/corbaoptions.cxx
@@ -247,9 +247,8 @@ OString CorbaOptions::prepareHelp()
OString CorbaOptions::prepareVersion()
{
- OString version("\nSun Microsystems (R) ");
+ OString version(m_program);
version += m_program + " Version 2.0\n\n";
-
return version;
}
diff --git a/codemaker/source/cppumaker/cppuoptions.cxx b/codemaker/source/cppumaker/cppuoptions.cxx
index 1bc398391c9d..20ed3683a8bc 100644
--- a/codemaker/source/cppumaker/cppuoptions.cxx
+++ b/codemaker/source/cppumaker/cppuoptions.cxx
@@ -346,9 +346,8 @@ OString CppuOptions::prepareHelp()
OString CppuOptions::prepareVersion()
{
- OString version("\nSun Microsystems (R) ");
- version += m_program + " Version 2.0\n\n";
-
+ OString version(m_program);
+ version += " Version 2.0\n\n";
return version;
}
diff --git a/codemaker/source/cunomaker/cunooptions.cxx b/codemaker/source/cunomaker/cunooptions.cxx
index 50a1223d004f..909ab3edc8dd 100644
--- a/codemaker/source/cunomaker/cunooptions.cxx
+++ b/codemaker/source/cunomaker/cunooptions.cxx
@@ -321,9 +321,8 @@ OString CunoOptions::prepareHelp()
OString CunoOptions::prepareVersion()
{
- OString version("\nSun Microsystems (R) ");
- version += m_program + " Version 1.0\n\n";
-
+ OString version(m_program);
+ version += " Version 1.0\n\n";
return version;
}
diff --git a/codemaker/source/idlmaker/idloptions.cxx b/codemaker/source/idlmaker/idloptions.cxx
index 306e43293223..e495f555e5cb 100644
--- a/codemaker/source/idlmaker/idloptions.cxx
+++ b/codemaker/source/idlmaker/idloptions.cxx
@@ -242,9 +242,8 @@ OString IdlOptions::prepareHelp()
OString IdlOptions::prepareVersion()
{
- OString version("\nSun Microsystems (R) ");
- version += m_program + " Version 2.0\n\n";
-
+ OString version(m_program);
+ version += " Version 2.0\n\n";
return version;
}
diff --git a/codemaker/source/javamaker/javaoptions.cxx b/codemaker/source/javamaker/javaoptions.cxx
index 24b9b1509cfc..5daedef06089 100644
--- a/codemaker/source/javamaker/javaoptions.cxx
+++ b/codemaker/source/javamaker/javaoptions.cxx
@@ -290,9 +290,8 @@ OString JavaOptions::prepareHelp()
OString JavaOptions::prepareVersion()
{
- OString version("\nSun Microsystems (R) ");
- version += m_program + " Version 2.0\n\n";
-
+ OString version(m_program);
+ version += " Version 2.0\n\n";
return version;
}
diff --git a/cpputools/source/regcomplazy/regcomplazy.cxx b/cpputools/source/regcomplazy/regcomplazy.cxx
index 13c09c8d1c94..76a833b6dd58 100755
--- a/cpputools/source/regcomplazy/regcomplazy.cxx
+++ b/cpputools/source/regcomplazy/regcomplazy.cxx
@@ -277,6 +277,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
serviceKey.closeKey();
rootKey.closeKey();
pReg->close();
+ delete pReg;
return 0;
}
diff --git a/cpputools/source/registercomponent/registercomponent.cxx b/cpputools/source/registercomponent/registercomponent.cxx
index c487d95c59a5..f13fae54c508 100644
--- a/cpputools/source/registercomponent/registercomponent.cxx
+++ b/cpputools/source/registercomponent/registercomponent.cxx
@@ -575,7 +575,7 @@ void DoIt::operator() (const OUString & url) throw()
if ( ! _bSilent )
{
- fprintf(stderr, "register component '%s' in registry '%s' succesful!\n", sUrl.getStr(), _sRegName.getStr());
+ fprintf(stderr, "register component '%s' in registry '%s' successful!\n", sUrl.getStr(), _sRegName.getStr());
}
}
@@ -604,7 +604,7 @@ void DoIt::operator() (const OUString & url) throw()
if (bRet)
{
if ( ! _bSilent )
- fprintf(stderr, "revoke component '%s' from registry '%s' succesful!\n", sUrl.getStr(), _sRegName.getStr());
+ fprintf(stderr, "revoke component '%s' from registry '%s' successful!\n", sUrl.getStr(), _sRegName.getStr());
}
else
{
diff --git a/idlc/source/options.cxx b/idlc/source/options.cxx
index c90bce43b3bc..a115a2262fe1 100644
--- a/idlc/source/options.cxx
+++ b/idlc/source/options.cxx
@@ -343,8 +343,8 @@ OString Options::prepareHelp()
OString Options::prepareVersion()
{
- OString version("\nSun Microsystems (R) ");
- version += m_program + " Version 1.1\n\n";
+ OString version(m_program);
+ version += " Version 1.1\n\n";
return version;
}
diff --git a/registry/tools/checksingleton.cxx b/registry/tools/checksingleton.cxx
index 4353721ad0b0..75ea3ec7958a 100644
--- a/registry/tools/checksingleton.cxx
+++ b/registry/tools/checksingleton.cxx
@@ -311,8 +311,8 @@ OString Options::prepareHelp()
OString Options::prepareVersion()
{
- OString version("\nSun Microsystems (R) ");
- version += m_program + " Version 1.0\n\n";
+ OString version(m_program);
+ version += " Version 1.0\n\n";
return version;
}
diff --git a/registry/tools/regcompare.cxx b/registry/tools/regcompare.cxx
index 4e95d884de30..d4bbe8c21ee2 100644
--- a/registry/tools/regcompare.cxx
+++ b/registry/tools/regcompare.cxx
@@ -405,8 +405,8 @@ OString Options::prepareHelp()
OString Options::prepareVersion()
{
- OString version("\nSun Microsystems (R) ");
- version += m_program + " Version 1.0\n\n";
+ OString version(m_program);
+ version += " Version 1.0\n\n";
return version;
}
--
cgit
From 0d62b806f5a473ae1670405f9d88b10cbedf8dcc Mon Sep 17 00:00:00 2001
From: Juergen Schmidt
Date: Tue, 2 Nov 2010 10:46:09 +0100
Subject: jsc340: i115337: cleanup since tags
---
.../star/accessibility/XAccessibleMultiLineText.idl | 2 +-
.../com/sun/star/animations/XAnimationListener.idl | 2 +-
offapi/com/sun/star/awt/EnhancedMouseEvent.idl | 2 +-
offapi/com/sun/star/awt/UnoControlButtonModel.idl | 12 ++++++------
offapi/com/sun/star/awt/UnoControlCheckBoxModel.idl | 8 ++++----
offapi/com/sun/star/awt/UnoControlComboBoxModel.idl | 4 ++--
offapi/com/sun/star/awt/UnoControlContainerModel.idl | 2 +-
.../sun/star/awt/UnoControlCurrencyFieldModel.idl | 10 +++++-----
offapi/com/sun/star/awt/UnoControlDateFieldModel.idl | 12 ++++++------
offapi/com/sun/star/awt/UnoControlDialogModel.idl | 6 +++---
offapi/com/sun/star/awt/UnoControlEditModel.idl | 14 +++++++-------
.../com/sun/star/awt/UnoControlFileControlModel.idl | 6 +++---
.../sun/star/awt/UnoControlFixedHyperlinkModel.idl | 4 ++--
offapi/com/sun/star/awt/UnoControlFixedTextModel.idl | 4 ++--
.../sun/star/awt/UnoControlFormattedFieldModel.idl | 10 +++++-----
.../com/sun/star/awt/UnoControlImageControlModel.idl | 2 +-
offapi/com/sun/star/awt/UnoControlListBoxModel.idl | 2 +-
.../com/sun/star/awt/UnoControlNumericFieldModel.idl | 10 +++++-----
.../com/sun/star/awt/UnoControlPatternFieldModel.idl | 6 +++---
.../com/sun/star/awt/UnoControlProgressBarModel.idl | 2 +-
.../com/sun/star/awt/UnoControlRadioButtonModel.idl | 8 ++++----
offapi/com/sun/star/awt/UnoControlScrollBarModel.idl | 12 ++++++------
.../com/sun/star/awt/UnoControlSpinButtonModel.idl | 2 +-
offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl | 12 ++++++------
.../com/sun/star/awt/XEnhancedMouseClickHandler.idl | 2 +-
.../com/sun/star/awt/grid/DefaultGridColumnModel.idl | 2 +-
.../com/sun/star/awt/grid/DefaultGridDataModel.idl | 2 +-
offapi/com/sun/star/awt/grid/GridColumn.idl | 2 +-
offapi/com/sun/star/awt/grid/GridColumnEvent.idl | 2 +-
.../sun/star/awt/grid/GridInvalidDataException.idl | 2 +-
.../sun/star/awt/grid/GridInvalidModelException.idl | 2 +-
offapi/com/sun/star/awt/grid/UnoControlGrid.idl | 2 +-
offapi/com/sun/star/awt/grid/UnoControlGridModel.idl | 2 +-
offapi/com/sun/star/awt/grid/XGridColumn.idl | 2 +-
offapi/com/sun/star/awt/grid/XGridColumnListener.idl | 2 +-
offapi/com/sun/star/awt/grid/XGridColumnModel.idl | 2 +-
offapi/com/sun/star/awt/grid/XGridControl.idl | 2 +-
offapi/com/sun/star/awt/grid/XGridDataListener.idl | 2 +-
offapi/com/sun/star/awt/grid/XGridDataModel.idl | 2 +-
.../com/sun/star/configuration/DefaultProvider.idl | 4 ++--
offapi/com/sun/star/configuration/Update.idl | 2 +-
offapi/com/sun/star/configuration/XUpdate.idl | 2 +-
.../configuration/backend/InteractionHandler.idl | 2 +-
offapi/com/sun/star/configuration/backend/Layer.idl | 2 +-
.../sun/star/configuration/backend/LayerFilter.idl | 2 +-
.../configuration/backend/MergeRecoveryRequest.idl | 2 +-
offapi/com/sun/star/configuration/backend/Schema.idl | 2 +-
.../backend/StratumCreationException.idl | 2 +-
.../com/sun/star/deployment/DeploymentException.idl | 2 +-
offapi/com/sun/star/deployment/ExtensionManager.idl | 2 +-
.../star/deployment/ExtensionRemovedException.idl | 2 +-
.../deployment/InvalidRemovedParameterException.idl | 2 +-
.../sun/star/deployment/PackageRegistryBackend.idl | 2 +-
offapi/com/sun/star/deployment/PlatformException.idl | 2 +-
offapi/com/sun/star/deployment/XExtensionManager.idl | 2 +-
offapi/com/sun/star/deployment/XPackage.idl | 4 ++--
offapi/com/sun/star/deployment/XPackageManager.idl | 2 +-
.../sun/star/deployment/XPackageManagerFactory.idl | 2 +-
offapi/com/sun/star/deployment/XPackageRegistry.idl | 2 +-
offapi/com/sun/star/deployment/XPackageTypeInfo.idl | 2 +-
.../sun/star/deployment/thePackageManagerFactory.idl | 2 +-
.../sun/star/deployment/ui/PackageManagerDialog.idl | 2 +-
.../sun/star/deployment/ui/UpdateRequiredDialog.idl | 2 +-
.../CorruptedFilterConfigurationException.idl | 2 +-
offapi/com/sun/star/document/DocumentEvent.idl | 2 +-
.../sun/star/document/XDocumentEventBroadcaster.idl | 2 +-
.../com/sun/star/document/XDocumentEventListener.idl | 2 +-
offapi/com/sun/star/document/XMLBasicExporter.idl | 2 +-
offapi/com/sun/star/document/XMLBasicImporter.idl | 2 +-
.../com/sun/star/document/XMLOasisBasicExporter.idl | 2 +-
.../com/sun/star/document/XMLOasisBasicImporter.idl | 2 +-
offapi/com/sun/star/form/FormComponent.idl | 2 +-
offapi/com/sun/star/form/component/GridControl.idl | 2 +-
.../DefaultFormComponentInspectorModel.idl | 4 ++--
offapi/com/sun/star/form/runtime/FeatureState.idl | 2 +-
offapi/com/sun/star/form/runtime/FilterEvent.idl | 2 +-
offapi/com/sun/star/form/runtime/FormFeature.idl | 2 +-
offapi/com/sun/star/form/runtime/FormOperations.idl | 2 +-
.../sun/star/form/runtime/XFeatureInvalidation.idl | 2 +-
.../com/sun/star/form/runtime/XFilterController.idl | 2 +-
.../star/form/runtime/XFilterControllerListener.idl | 2 +-
offapi/com/sun/star/form/runtime/XFormController.idl | 2 +-
offapi/com/sun/star/form/runtime/XFormOperations.idl | 2 +-
offapi/com/sun/star/frame/CommandGroup.idl | 2 +-
offapi/com/sun/star/frame/DispatchInformation.idl | 2 +-
offapi/com/sun/star/frame/Frame.idl | 2 +-
offapi/com/sun/star/frame/LayoutManager.idl | 2 +-
offapi/com/sun/star/frame/LayoutManagerEvents.idl | 2 +-
offapi/com/sun/star/frame/ModuleManager.idl | 2 +-
offapi/com/sun/star/frame/PopupMenuController.idl | 2 +-
.../sun/star/frame/PopupMenuControllerFactory.idl | 2 +-
offapi/com/sun/star/frame/StatusbarController.idl | 2 +-
.../sun/star/frame/StatusbarControllerFactory.idl | 2 +-
offapi/com/sun/star/frame/ToolbarController.idl | 2 +-
.../TransientDocumentsDocumentContentFactory.idl | 2 +-
offapi/com/sun/star/frame/UnknownModuleException.idl | 2 +-
.../sun/star/frame/XDispatchInformationProvider.idl | 2 +-
offapi/com/sun/star/frame/XInplaceLayout.idl | 2 +-
offapi/com/sun/star/frame/XLayoutManager.idl | 2 +-
.../star/frame/XLayoutManagerEventBroadcaster.idl | 2 +-
offapi/com/sun/star/frame/XLayoutManagerListener.idl | 2 +-
offapi/com/sun/star/frame/XMenuBarAcceptor.idl | 2 +-
.../com/sun/star/frame/XMenuBarMergingAcceptor.idl | 2 +-
offapi/com/sun/star/frame/XModule.idl | 2 +-
offapi/com/sun/star/frame/XModuleManager.idl | 2 +-
offapi/com/sun/star/frame/XPopupMenuController.idl | 2 +-
offapi/com/sun/star/frame/XStatusbarController.idl | 2 +-
offapi/com/sun/star/frame/XSubToolbarController.idl | 2 +-
offapi/com/sun/star/frame/XSynchronousDispatch.idl | 2 +-
offapi/com/sun/star/frame/XToolbarController.idl | 2 +-
.../sun/star/frame/XToolbarControllerListener.idl | 2 +-
.../XTransientDocumentsDocumentContentFactory.idl | 2 +-
offapi/com/sun/star/geometry/AffineMatrix2D.idl | 2 +-
offapi/com/sun/star/geometry/AffineMatrix3D.idl | 2 +-
offapi/com/sun/star/geometry/EllipticalArc.idl | 2 +-
.../com/sun/star/geometry/IntegerBezierSegment2D.idl | 2 +-
offapi/com/sun/star/geometry/IntegerPoint2D.idl | 2 +-
offapi/com/sun/star/geometry/IntegerRectangle2D.idl | 2 +-
offapi/com/sun/star/geometry/IntegerSize2D.idl | 2 +-
offapi/com/sun/star/geometry/Matrix2D.idl | 2 +-
offapi/com/sun/star/geometry/RealBezierSegment2D.idl | 2 +-
offapi/com/sun/star/geometry/RealPoint2D.idl | 2 +-
offapi/com/sun/star/geometry/RealRectangle2D.idl | 2 +-
offapi/com/sun/star/geometry/RealRectangle3D.idl | 2 +-
offapi/com/sun/star/geometry/RealSize2D.idl | 2 +-
offapi/com/sun/star/geometry/XMapping2D.idl | 2 +-
offapi/com/sun/star/i18n/TextConversionOption.idl | 2 +-
.../sun/star/linguistic2/ConversionDictionary.idl | 2 +-
.../star/linguistic2/ConversionDictionaryType.idl | 2 +-
.../sun/star/linguistic2/ConversionPropertyType.idl | 2 +-
.../sun/star/linguistic2/XConversionPropertyType.idl | 2 +-
offapi/com/sun/star/mail/MailAttachment.idl | 2 +-
offapi/com/sun/star/mail/MailException.idl | 2 +-
offapi/com/sun/star/mail/MailMessage.idl | 2 +-
offapi/com/sun/star/mail/MailServer.idl | 2 +-
offapi/com/sun/star/mail/MailServiceProvider.idl | 2 +-
offapi/com/sun/star/mail/MailServiceType.idl | 2 +-
.../sun/star/mail/NoMailServiceProviderException.idl | 2 +-
.../star/mail/NoMailTransportProviderException.idl | 2 +-
.../sun/star/mail/SendMailMessageFailedException.idl | 2 +-
offapi/com/sun/star/mail/XAuthenticator.idl | 2 +-
offapi/com/sun/star/mail/XConnectionListener.idl | 2 +-
offapi/com/sun/star/mail/XMailMessage.idl | 2 +-
offapi/com/sun/star/mail/XMailServer.idl | 2 +-
offapi/com/sun/star/mail/XMailService.idl | 2 +-
offapi/com/sun/star/mail/XMailServiceProvider.idl | 2 +-
offapi/com/sun/star/mail/XSmtpService.idl | 2 +-
.../com/sun/star/rendering/AnimationAttributes.idl | 2 +-
offapi/com/sun/star/rendering/AnimationRepeat.idl | 2 +-
offapi/com/sun/star/rendering/CanvasFactory.idl | 2 +-
offapi/com/sun/star/rendering/Caret.idl | 2 +-
offapi/com/sun/star/rendering/CompositeOperation.idl | 2 +-
offapi/com/sun/star/rendering/EmphasisMark.idl | 2 +-
offapi/com/sun/star/rendering/FillRule.idl | 2 +-
.../sun/star/rendering/FloatingPointBitmapFormat.idl | 2 +-
.../sun/star/rendering/FloatingPointBitmapLayout.idl | 2 +-
offapi/com/sun/star/rendering/FontInfo.idl | 2 +-
offapi/com/sun/star/rendering/FontMetrics.idl | 2 +-
offapi/com/sun/star/rendering/FontRequest.idl | 2 +-
.../com/sun/star/rendering/IntegerBitmapLayout.idl | 2 +-
offapi/com/sun/star/rendering/InterpolationMode.idl | 2 +-
offapi/com/sun/star/rendering/PathCapType.idl | 2 +-
offapi/com/sun/star/rendering/PathJoinType.idl | 2 +-
offapi/com/sun/star/rendering/RenderState.idl | 2 +-
offapi/com/sun/star/rendering/RenderingIntent.idl | 2 +-
offapi/com/sun/star/rendering/RepaintResult.idl | 2 +-
offapi/com/sun/star/rendering/StringContext.idl | 2 +-
offapi/com/sun/star/rendering/TextDirection.idl | 2 +-
offapi/com/sun/star/rendering/TextHit.idl | 2 +-
offapi/com/sun/star/rendering/Texture.idl | 2 +-
offapi/com/sun/star/rendering/TexturingMode.idl | 2 +-
offapi/com/sun/star/rendering/ViewState.idl | 2 +-
.../rendering/VolatileContentDestroyedException.idl | 2 +-
offapi/com/sun/star/rendering/XAnimatedSprite.idl | 2 +-
offapi/com/sun/star/rendering/XAnimation.idl | 2 +-
.../com/sun/star/rendering/XBezierPolyPolygon2D.idl | 2 +-
offapi/com/sun/star/rendering/XBitmap.idl | 2 +-
offapi/com/sun/star/rendering/XBitmapCanvas.idl | 2 +-
offapi/com/sun/star/rendering/XBitmapPalette.idl | 2 +-
offapi/com/sun/star/rendering/XBufferController.idl | 2 +-
offapi/com/sun/star/rendering/XCachedPrimitive.idl | 2 +-
offapi/com/sun/star/rendering/XCanvas.idl | 2 +-
offapi/com/sun/star/rendering/XIntegerBitmap.idl | 2 +-
offapi/com/sun/star/rendering/XLinePolyPolygon2D.idl | 2 +-
offapi/com/sun/star/rendering/XPolyPolygon2D.idl | 2 +-
offapi/com/sun/star/rendering/XTextLayout.idl | 2 +-
offapi/com/sun/star/report/XReportControlFormat.idl | 2 +-
.../com/sun/star/resource/OfficeResourceLoader.idl | 2 +-
offapi/com/sun/star/script/browse/BrowseNode.idl | 2 +-
.../com/sun/star/script/browse/BrowseNodeFactory.idl | 4 ++--
offapi/com/sun/star/sdb/DatabaseContext.idl | 2 +-
offapi/com/sun/star/sdb/DatabaseDocument.idl | 2 +-
offapi/com/sun/star/sdb/DocumentSaveRequest.idl | 2 +-
offapi/com/sun/star/sdb/OfficeDatabaseDocument.idl | 2 +-
offapi/com/sun/star/sdb/XDatabaseRegistrations.idl | 2 +-
.../sun/star/sdb/XDatabaseRegistrationsListener.idl | 2 +-
offapi/com/sun/star/sdb/XInteractionDocumentSave.idl | 2 +-
.../com/sun/star/sdb/application/DatabaseObject.idl | 2 +-
.../sun/star/sdb/application/XDatabaseDocumentUI.idl | 2 +-
.../sun/star/sdb/application/XTableUIProvider.idl | 2 +-
offapi/com/sun/star/sdbc/DataType.idl | 2 +-
offapi/com/sun/star/security/SerialNumberAdapter.idl | 2 +-
offapi/com/sun/star/sheet/ActivationEvent.idl | 2 +-
offapi/com/sun/star/sheet/CellAreaLink.idl | 2 +-
offapi/com/sun/star/sheet/DataPilotDescriptor.idl | 6 +++---
offapi/com/sun/star/sheet/DataPilotItem.idl | 2 +-
.../com/sun/star/sheet/DataPilotOutputRangeType.idl | 2 +-
offapi/com/sun/star/sheet/DataPilotSource.idl | 6 +++---
offapi/com/sun/star/sheet/DataPilotSourceMember.idl | 2 +-
offapi/com/sun/star/sheet/DataPilotTable.idl | 2 +-
.../com/sun/star/sheet/DataPilotTableHeaderData.idl | 2 +-
.../sun/star/sheet/DataPilotTablePositionData.idl | 2 +-
.../sun/star/sheet/DataPilotTablePositionType.idl | 2 +-
.../com/sun/star/sheet/DataPilotTableResultData.idl | 2 +-
.../com/sun/star/sheet/DatabaseImportDescriptor.idl | 4 ++--
offapi/com/sun/star/sheet/DatabaseRange.idl | 4 ++--
offapi/com/sun/star/sheet/ExternalDocLink.idl | 2 +-
offapi/com/sun/star/sheet/ExternalDocLinks.idl | 2 +-
offapi/com/sun/star/sheet/ExternalSheetCache.idl | 2 +-
offapi/com/sun/star/sheet/SheetCell.idl | 2 +-
offapi/com/sun/star/sheet/SheetCellRange.idl | 2 +-
offapi/com/sun/star/sheet/TablePageStyle.idl | 4 ++--
offapi/com/sun/star/sheet/XActivationBroadcaster.idl | 2 +-
.../com/sun/star/sheet/XActivationEventListener.idl | 2 +-
offapi/com/sun/star/sheet/XDataPilotTable2.idl | 2 +-
offapi/com/sun/star/sheet/XDrillDownDataSupplier.idl | 2 +-
.../star/sheet/XEnhancedMouseClickBroadcaster.idl | 2 +-
offapi/com/sun/star/sheet/XExternalDocLink.idl | 2 +-
offapi/com/sun/star/sheet/XExternalDocLinks.idl | 2 +-
offapi/com/sun/star/sheet/XExternalSheetCache.idl | 2 +-
offapi/com/sun/star/sheet/XScenarioEnhanced.idl | 2 +-
offapi/com/sun/star/smarttags/SmartTagAction.idl | 2 +-
offapi/com/sun/star/smarttags/SmartTagRecognizer.idl | 2 +-
.../sun/star/smarttags/SmartTagRecognizerMode.idl | 2 +-
offapi/com/sun/star/smarttags/XSmartTagAction.idl | 2 +-
.../com/sun/star/smarttags/XSmartTagRecognizer.idl | 2 +-
offapi/com/sun/star/style/CharacterProperties.idl | 2 +-
offapi/com/sun/star/style/NumberingType.idl | 2 +-
offapi/com/sun/star/text/BaseFrameProperties.idl | 2 +-
offapi/com/sun/star/text/Cell.idl | 2 +-
offapi/com/sun/star/text/DocumentSettings.idl | 8 ++++----
offapi/com/sun/star/text/FootnoteSettings.idl | 2 +-
offapi/com/sun/star/text/GenericTextDocument.idl | 18 ++++++++++++------
offapi/com/sun/star/text/LineNumberingProperties.idl | 2 +-
offapi/com/sun/star/text/Paragraph.idl | 2 +-
offapi/com/sun/star/text/PositionLayoutDir.idl | 2 +-
offapi/com/sun/star/text/RelOrientation.idl | 2 +-
offapi/com/sun/star/text/Shape.idl | 10 +++++-----
offapi/com/sun/star/text/TextMarkupType.idl | 2 +-
offapi/com/sun/star/text/TextPortion.idl | 2 +-
offapi/com/sun/star/text/TextTableRow.idl | 2 +-
offapi/com/sun/star/text/ViewSettings.idl | 20 ++++++++++----------
offapi/com/sun/star/text/XTextMarkup.idl | 2 +-
offapi/com/sun/star/text/fieldmaster/Database.idl | 4 ++--
offapi/com/sun/star/text/textfield/DatabaseName.idl | 4 ++--
.../com/sun/star/text/textfield/DatabaseNextSet.idl | 4 ++--
.../sun/star/text/textfield/DatabaseNumberOfSet.idl | 4 ++--
.../sun/star/text/textfield/DatabaseSetNumber.idl | 4 ++--
.../star/ucb/TransientDocumentsContentProvider.idl | 2 +-
.../star/ucb/TransientDocumentsDocumentContent.idl | 2 +-
.../sun/star/ucb/TransientDocumentsFolderContent.idl | 2 +-
.../sun/star/ucb/TransientDocumentsRootContent.idl | 2 +-
.../sun/star/ucb/TransientDocumentsStreamContent.idl | 2 +-
offapi/com/sun/star/ui/ConfigurableUIElement.idl | 2 +-
offapi/com/sun/star/ui/ConfigurationEvent.idl | 2 +-
offapi/com/sun/star/ui/DockingArea.idl | 2 +-
.../sun/star/ui/GlobalAcceleratorConfiguration.idl | 2 +-
offapi/com/sun/star/ui/ImageType.idl | 2 +-
offapi/com/sun/star/ui/ItemDescriptor.idl | 2 +-
offapi/com/sun/star/ui/ItemStyle.idl | 2 +-
offapi/com/sun/star/ui/ItemType.idl | 2 +-
.../com/sun/star/ui/ModuleUICategoryDescription.idl | 2 +-
.../com/sun/star/ui/ModuleUICommandDescription.idl | 2 +-
.../com/sun/star/ui/ModuleUIConfigurationManager.idl | 2 +-
.../star/ui/ModuleUIConfigurationManagerSupplier.idl | 2 +-
.../sun/star/ui/ModuleWindowStateConfiguration.idl | 2 +-
offapi/com/sun/star/ui/UICategoryDescription.idl | 2 +-
offapi/com/sun/star/ui/UICommandDescription.idl | 2 +-
offapi/com/sun/star/ui/UIConfigurationManager.idl | 2 +-
offapi/com/sun/star/ui/UIElement.idl | 2 +-
offapi/com/sun/star/ui/UIElementFactory.idl | 2 +-
offapi/com/sun/star/ui/UIElementFactoryManager.idl | 2 +-
offapi/com/sun/star/ui/UIElementSettings.idl | 2 +-
offapi/com/sun/star/ui/UIElementType.idl | 2 +-
offapi/com/sun/star/ui/WindowContentFactory.idl | 2 +-
offapi/com/sun/star/ui/WindowStateConfiguration.idl | 2 +-
offapi/com/sun/star/ui/XAcceleratorConfiguration.idl | 2 +-
offapi/com/sun/star/ui/XDockingAreaAcceptor.idl | 2 +-
.../sun/star/ui/XModuleUIConfigurationManager.idl | 2 +-
.../ui/XModuleUIConfigurationManagerSupplier.idl | 2 +-
offapi/com/sun/star/ui/XUIConfiguration.idl | 2 +-
offapi/com/sun/star/ui/XUIConfigurationListener.idl | 2 +-
offapi/com/sun/star/ui/XUIConfigurationManager.idl | 2 +-
.../sun/star/ui/XUIConfigurationManagerSupplier.idl | 2 +-
.../com/sun/star/ui/XUIConfigurationPersistence.idl | 2 +-
offapi/com/sun/star/ui/XUIConfigurationStorage.idl | 2 +-
offapi/com/sun/star/ui/XUIElementFactory.idl | 2 +-
.../sun/star/ui/XUIElementFactoryRegistration.idl | 2 +-
offapi/com/sun/star/ui/XUIElementSettings.idl | 2 +-
offapi/com/sun/star/ui/XUIFunctionListener.idl | 2 +-
offapi/com/sun/star/util/Endianness.idl | 2 +-
.../sun/star/util/OfficeInstallationDirectories.idl | 2 +-
.../sun/star/util/XOfficeInstallationDirectories.idl | 2 +-
offapi/com/sun/star/xml/dom/XNode.idl | 2 +-
304 files changed, 400 insertions(+), 394 deletions(-)
diff --git a/offapi/com/sun/star/accessibility/XAccessibleMultiLineText.idl b/offapi/com/sun/star/accessibility/XAccessibleMultiLineText.idl
index 95afd25a634d..645925c312f6 100644
--- a/offapi/com/sun/star/accessibility/XAccessibleMultiLineText.idl
+++ b/offapi/com/sun/star/accessibility/XAccessibleMultiLineText.idl
@@ -47,7 +47,7 @@ module com { module sun { module star { module accessibility {
XAccessibleText interface and extents it with a notion
of line numbers
- @since OOo 3.0.0
+ @since OOo 3.0
*/
/// not yet published
diff --git a/offapi/com/sun/star/animations/XAnimationListener.idl b/offapi/com/sun/star/animations/XAnimationListener.idl
index 1a71cae3457b..d1f4f453ee60 100644
--- a/offapi/com/sun/star/animations/XAnimationListener.idl
+++ b/offapi/com/sun/star/animations/XAnimationListener.idl
@@ -43,7 +43,7 @@
/** makes it possible to register listeners, which are called whenever
an animation event occurs.
- @since #i71351#
+ @since OOo 3.0
*/
interface XAnimationListener : ::com::sun::star::lang::XEventListener
{
diff --git a/offapi/com/sun/star/awt/EnhancedMouseEvent.idl b/offapi/com/sun/star/awt/EnhancedMouseEvent.idl
index f866397e0613..99f0ee3c8b01 100644
--- a/offapi/com/sun/star/awt/EnhancedMouseEvent.idl
+++ b/offapi/com/sun/star/awt/EnhancedMouseEvent.idl
@@ -42,7 +42,7 @@
@see MouseEvent
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published struct EnhancedMouseEvent: com::sun::star::awt::MouseEvent
diff --git a/offapi/com/sun/star/awt/UnoControlButtonModel.idl b/offapi/com/sun/star/awt/UnoControlButtonModel.idl
index bbcf7000157e..8b1b7bee2052 100644
--- a/offapi/com/sun/star/awt/UnoControlButtonModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlButtonModel.idl
@@ -95,7 +95,7 @@ published service UnoControlButtonModel
If set to , the focus is preserved when the user operates the button control with
the mouse.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean FocusOnClick;
@@ -183,7 +183,7 @@ published service UnoControlButtonModel
/** specifies that the text may be displayed on more than one line.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean MultiLine;
@@ -208,7 +208,7 @@ published service UnoControlButtonModel
set to , the button is repeatedly pressed while you hold
down the mouse button.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean Repeat;
@@ -222,7 +222,7 @@ published service UnoControlButtonModel
mouse button and to press it again. The delay between two such triggers
is specified with this property.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long RepeatDelay;
@@ -261,7 +261,7 @@ published service UnoControlButtonModel
The default for this property is , which means the button behaves like a usual
push button.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean Toggle;
@@ -269,7 +269,7 @@ published service UnoControlButtonModel
/** specifies the vertical alignment of the text in the control.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
diff --git a/offapi/com/sun/star/awt/UnoControlCheckBoxModel.idl b/offapi/com/sun/star/awt/UnoControlCheckBoxModel.idl
index 7870f03f4aec..e6eb9754175d 100644
--- a/offapi/com/sun/star/awt/UnoControlCheckBoxModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlCheckBoxModel.idl
@@ -65,7 +65,7 @@ published service UnoControlCheckBoxModel
2: right
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] short Align;
@@ -155,7 +155,7 @@ published service UnoControlCheckBoxModel
/** specifies that the text may be displayed on more than one line.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean MultiLine;
@@ -205,7 +205,7 @@ published service UnoControlCheckBoxModel
/** specifies the vertical alignment of the text in the control.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
@@ -218,7 +218,7 @@ published service UnoControlCheckBoxModel
@see com::sun::star::awt::VisualEffect
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] short VisualEffect;
diff --git a/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl b/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl
index eedd7b78c346..c332d19c989a 100644
--- a/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl
@@ -96,7 +96,7 @@ published service UnoControlComboBoxModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
@@ -149,7 +149,7 @@ published service UnoControlComboBoxModel
/** specifies whether the selection in the control should be hidden when
the control is not active (focused).
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean HideInactiveSelection;
diff --git a/offapi/com/sun/star/awt/UnoControlContainerModel.idl b/offapi/com/sun/star/awt/UnoControlContainerModel.idl
index 9fda3791781f..1fa71bcf1b7c 100644
--- a/offapi/com/sun/star/awt/UnoControlContainerModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlContainerModel.idl
@@ -79,7 +79,7 @@ published service UnoControlContainerModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
diff --git a/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl b/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl
index 1789e23fff32..b9ee632dad73 100644
--- a/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl
@@ -80,7 +80,7 @@ published service UnoControlCurrencyFieldModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
@@ -139,7 +139,7 @@ published service UnoControlCurrencyFieldModel
/** specifies whether the selection in the control should be hidden when
the control is not active (focused).
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean HideInactiveSelection;
@@ -167,7 +167,7 @@ published service UnoControlCurrencyFieldModel
/** specifies whether the mouse should show repeating behaviour, i.e.
repeatedly trigger an action when keeping pressed.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean Repeat;
@@ -181,7 +181,7 @@ published service UnoControlCurrencyFieldModel
mouse button and to press it again. The delay between two such triggers
is specified with this property.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long RepeatDelay;
@@ -267,7 +267,7 @@ published service UnoControlCurrencyFieldModel
/** specifies the vertical alignment of the text in the control.
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
[optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
};
diff --git a/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl b/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl
index 193f1a325b72..d134d0fc450c 100644
--- a/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl
@@ -80,7 +80,7 @@ published service UnoControlDateFieldModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
@@ -180,7 +180,7 @@ published service UnoControlDateFieldModel
/** specifies whether the selection in the control should be hidden when
the control is not active (focused).
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean HideInactiveSelection;
@@ -201,7 +201,7 @@ published service UnoControlDateFieldModel
/** specifies whether the mouse should show repeating behaviour, i.e.
repeatedly trigger an action when keeping pressed.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean Repeat;
@@ -215,7 +215,7 @@ published service UnoControlDateFieldModel
mouse button and to press it again. The delay between two such triggers
is specified with this property.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long RepeatDelay;
@@ -241,7 +241,7 @@ published service UnoControlDateFieldModel
/** specifies the text displayed in the control.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] string Text;
@@ -279,7 +279,7 @@ published service UnoControlDateFieldModel
/** specifies the vertical alignment of the text in the control.
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
[optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
};
diff --git a/offapi/com/sun/star/awt/UnoControlDialogModel.idl b/offapi/com/sun/star/awt/UnoControlDialogModel.idl
index ff6188e5276e..f8970413cdd3 100644
--- a/offapi/com/sun/star/awt/UnoControlDialogModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlDialogModel.idl
@@ -161,7 +161,7 @@ published service UnoControlDialogModel
/** If set to true the dialog will have the desktop as parent.
- @since OOo 2.3.0
+ @since OOo 2.3
*/
[optional, property] boolean DesktopAsParent;
@@ -169,7 +169,7 @@ published service UnoControlDialogModel
background image.
@see Graphic
- @since OOo 2.4.0
+ @since OOo 2.4
*/
[optional, property] string ImageURL;
@@ -184,7 +184,7 @@ published service UnoControlDialogModel
to an empty string.
- @since OOo 2.4.0
+ @since OOo 2.4
*/
[optional, property, transient] com::sun::star::graphic::XGraphic Graphic;
diff --git a/offapi/com/sun/star/awt/UnoControlEditModel.idl b/offapi/com/sun/star/awt/UnoControlEditModel.idl
index 2cd7a55725f5..dffbae58da48 100644
--- a/offapi/com/sun/star/awt/UnoControlEditModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlEditModel.idl
@@ -72,7 +72,7 @@ published service UnoControlEditModel
/** If set to true an horizontal scrollbar will be added automaticly
when needed.
- @since OOo 2.3.0
+ @since OOo 2.3
*/
[optional, property] boolean AutoHScroll;
@@ -81,7 +81,7 @@ published service UnoControlEditModel
/** If set to true an vertical scrollbar will be added automaticly
when needed.
- @since OOo 2.3.0
+ @since OOo 2.3
*/
[optional, property] boolean AutoVScroll;
@@ -110,7 +110,7 @@ published service UnoControlEditModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
@@ -170,7 +170,7 @@ published service UnoControlEditModel
/** specifies whether the selection in the control should be hidden when
the control is not active (focused).
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean HideInactiveSelection;
@@ -196,7 +196,7 @@ published service UnoControlEditModel
No matter which line end format is used in this new text then, usual control implementations
should recognize all line end formats and display them properly.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] short LineEndFormat;
@@ -218,7 +218,7 @@ published service UnoControlEditModel
/** specifies whether the control paints it background or not.
- @since OOo 2.3.0
+ @since OOo 2.3
*/
[optional, property] boolean PaintTransparent;
@@ -279,7 +279,7 @@ published service UnoControlEditModel
/** specifies the vertical alignment of the text in the control.
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
[optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
};
diff --git a/offapi/com/sun/star/awt/UnoControlFileControlModel.idl b/offapi/com/sun/star/awt/UnoControlFileControlModel.idl
index e609a51512ae..cec080c3fcb2 100644
--- a/offapi/com/sun/star/awt/UnoControlFileControlModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlFileControlModel.idl
@@ -80,7 +80,7 @@ published service UnoControlFileControlModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
@@ -127,7 +127,7 @@ published service UnoControlFileControlModel
/** specifies whether the selection in the control should be hidden when
the control is not active (focused).
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean HideInactiveSelection;
@@ -173,7 +173,7 @@ published service UnoControlFileControlModel
/** specifies the vertical alignment of the text in the control.
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
[optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
};
diff --git a/offapi/com/sun/star/awt/UnoControlFixedHyperlinkModel.idl b/offapi/com/sun/star/awt/UnoControlFixedHyperlinkModel.idl
index 8d5938d21f6f..e4a6bd3dbd58 100644
--- a/offapi/com/sun/star/awt/UnoControlFixedHyperlinkModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlFixedHyperlinkModel.idl
@@ -93,7 +93,7 @@ service UnoControlFixedHyperlinkModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
@@ -175,7 +175,7 @@ service UnoControlFixedHyperlinkModel
/** specifies the vertical alignment of the text in the control.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
};
diff --git a/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl b/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl
index b6981556a8f4..84e8311fbc32 100644
--- a/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl
@@ -93,7 +93,7 @@ published service UnoControlFixedTextModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
@@ -169,7 +169,7 @@ published service UnoControlFixedTextModel
/** specifies the vertical alignment of the text in the control.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
diff --git a/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl b/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl
index 9ada06455b1e..0f61b6910b7d 100644
--- a/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl
@@ -96,7 +96,7 @@ published service UnoControlFormattedFieldModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
@@ -196,7 +196,7 @@ published service UnoControlFormattedFieldModel
/** specifies whether the selection in the control should be hidden when
the control is not active (focused).
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean HideInactiveSelection;
@@ -226,7 +226,7 @@ published service UnoControlFormattedFieldModel
/** specifies whether the mouse should show repeating behaviour, i.e.
repeatedly trigger an action when keeping pressed.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean Repeat;
@@ -240,7 +240,7 @@ published service UnoControlFormattedFieldModel
mouse button and to press it again. The delay between two such triggers
is specified with this property.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long RepeatDelay;
@@ -312,7 +312,7 @@ published service UnoControlFormattedFieldModel
/** specifies the vertical alignment of the text in the control.
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
[optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
};
diff --git a/offapi/com/sun/star/awt/UnoControlImageControlModel.idl b/offapi/com/sun/star/awt/UnoControlImageControlModel.idl
index aadf3074fcbe..7e6dfa8641be 100644
--- a/offapi/com/sun/star/awt/UnoControlImageControlModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlImageControlModel.idl
@@ -75,7 +75,7 @@ published service UnoControlImageControlModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
diff --git a/offapi/com/sun/star/awt/UnoControlListBoxModel.idl b/offapi/com/sun/star/awt/UnoControlListBoxModel.idl
index 1ecf338bf095..3a9ea516c257 100644
--- a/offapi/com/sun/star/awt/UnoControlListBoxModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlListBoxModel.idl
@@ -91,7 +91,7 @@ published service UnoControlListBoxModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
diff --git a/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl b/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl
index fd3b4c0877bb..5b019d7f82c5 100644
--- a/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl
@@ -80,7 +80,7 @@ published service UnoControlNumericFieldModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
@@ -133,7 +133,7 @@ published service UnoControlNumericFieldModel
/** specifies whether the selection in the control should be hidden when
the control is not active (focused).
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean HideInactiveSelection;
@@ -155,7 +155,7 @@ published service UnoControlNumericFieldModel
/** specifies whether the mouse should show repeating behaviour, i.e.
repeatedly trigger an action when keeping pressed.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean Repeat;
@@ -169,7 +169,7 @@ published service UnoControlNumericFieldModel
mouse button and to press it again. The delay between two such triggers
is specified with this property.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long RepeatDelay;
@@ -255,7 +255,7 @@ published service UnoControlNumericFieldModel
/** specifies the vertical alignment of the text in the control.
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
[optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
};
diff --git a/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl b/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl
index 8b4b6ccf601c..2f9f09fd5b3f 100644
--- a/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl
@@ -80,7 +80,7 @@ published service UnoControlPatternFieldModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
@@ -133,7 +133,7 @@ published service UnoControlPatternFieldModel
/** specifies whether the selection in the control should be hidden when
the control is not active (focused).
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean HideInactiveSelection;
@@ -214,7 +214,7 @@ published service UnoControlPatternFieldModel
/** specifies the vertical alignment of the text in the control.
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
[optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
};
diff --git a/offapi/com/sun/star/awt/UnoControlProgressBarModel.idl b/offapi/com/sun/star/awt/UnoControlProgressBarModel.idl
index 1ffb7ace534a..3d54d391e3db 100644
--- a/offapi/com/sun/star/awt/UnoControlProgressBarModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlProgressBarModel.idl
@@ -73,7 +73,7 @@ published service UnoControlProgressBarModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
diff --git a/offapi/com/sun/star/awt/UnoControlRadioButtonModel.idl b/offapi/com/sun/star/awt/UnoControlRadioButtonModel.idl
index 6676e98e7e6e..cd8568f956ea 100644
--- a/offapi/com/sun/star/awt/UnoControlRadioButtonModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlRadioButtonModel.idl
@@ -66,7 +66,7 @@ published service UnoControlRadioButtonModel
2: right
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] short Align;
@@ -156,7 +156,7 @@ published service UnoControlRadioButtonModel
/** specifies that the text may be displayed on more than one line.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean MultiLine;
@@ -199,7 +199,7 @@ published service UnoControlRadioButtonModel
/** specifies the vertical alignment of the text in the control.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
@@ -212,7 +212,7 @@ published service UnoControlRadioButtonModel
@see com::sun::star::awt::VisualEffect
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] short VisualEffect;
diff --git a/offapi/com/sun/star/awt/UnoControlScrollBarModel.idl b/offapi/com/sun/star/awt/UnoControlScrollBarModel.idl
index 3a190405430f..d81e25e369f7 100644
--- a/offapi/com/sun/star/awt/UnoControlScrollBarModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlScrollBarModel.idl
@@ -52,7 +52,7 @@ published service UnoControlScrollBarModel
/** specifies the RGB color to be used for the control.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] com::sun::star::util::Color BackgroundColor;
@@ -81,7 +81,7 @@ published service UnoControlScrollBarModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
@@ -118,7 +118,7 @@ published service UnoControlScrollBarModel
means, that the window is only updated after the user has
released the mouse button.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean LiveScroll;
@@ -144,7 +144,7 @@ published service UnoControlScrollBarModel
mouse button and to press it again. The delay between two such triggers
is specified with this property.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long RepeatDelay;
@@ -174,7 +174,7 @@ published service UnoControlScrollBarModel
/** specifies the RGB color to be used when painting symbols which are
part of the control's appearance, such as the arrow buttons.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] com::sun::star::util::Color SymbolColor;
@@ -182,7 +182,7 @@ published service UnoControlScrollBarModel
/** specifies that the control can be reached with the TAB key.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean Tabstop;
diff --git a/offapi/com/sun/star/awt/UnoControlSpinButtonModel.idl b/offapi/com/sun/star/awt/UnoControlSpinButtonModel.idl
index cb55a369a15d..c2e4eca935e1 100644
--- a/offapi/com/sun/star/awt/UnoControlSpinButtonModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlSpinButtonModel.idl
@@ -76,7 +76,7 @@ service UnoControlSpinButtonModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
diff --git a/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl b/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl
index 2673e152bb00..ba62cca41c7f 100644
--- a/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl
@@ -80,7 +80,7 @@ published service UnoControlTimeFieldModel
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
@@ -127,7 +127,7 @@ published service UnoControlTimeFieldModel
/** specifies whether the selection in the control should be hidden when
the control is not active (focused).
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean HideInactiveSelection;
@@ -148,7 +148,7 @@ published service UnoControlTimeFieldModel
/** specifies whether the mouse should show repeating behaviour, i.e.
repeatedly trigger an action when keeping pressed.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean Repeat;
@@ -162,7 +162,7 @@ published service UnoControlTimeFieldModel
mouse button and to press it again. The delay between two such triggers
is specified with this property.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long RepeatDelay;
@@ -188,7 +188,7 @@ published service UnoControlTimeFieldModel
/** specifies the text displayed in the control.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] string Text;
@@ -259,7 +259,7 @@ published service UnoControlTimeFieldModel
/** specifies the vertical alignment of the text in the control.
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
[optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
};
diff --git a/offapi/com/sun/star/awt/XEnhancedMouseClickHandler.idl b/offapi/com/sun/star/awt/XEnhancedMouseClickHandler.idl
index 547bab7c6efc..64dde0ed9390 100644
--- a/offapi/com/sun/star/awt/XEnhancedMouseClickHandler.idl
+++ b/offapi/com/sun/star/awt/XEnhancedMouseClickHandler.idl
@@ -44,7 +44,7 @@ module com { module sun { module star { module awt {
/** makes it possible to receive enhanced events from the mouse.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published interface XEnhancedMouseClickHandler: ::com::sun::star::lang::XEventListener
diff --git a/offapi/com/sun/star/awt/grid/DefaultGridColumnModel.idl b/offapi/com/sun/star/awt/grid/DefaultGridColumnModel.idl
index db69a6b5d842..36e41d9384f9 100644
--- a/offapi/com/sun/star/awt/grid/DefaultGridColumnModel.idl
+++ b/offapi/com/sun/star/awt/grid/DefaultGridColumnModel.idl
@@ -38,7 +38,7 @@
//=============================================================================
/** If you do not want to implement the XGridColumnModel yourself, use this service.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
service DefaultGridColumnModel
{
diff --git a/offapi/com/sun/star/awt/grid/DefaultGridDataModel.idl b/offapi/com/sun/star/awt/grid/DefaultGridDataModel.idl
index c487afc79b49..b61455d7ebf1 100644
--- a/offapi/com/sun/star/awt/grid/DefaultGridDataModel.idl
+++ b/offapi/com/sun/star/awt/grid/DefaultGridDataModel.idl
@@ -39,7 +39,7 @@
/** If you do not want to implement the XGridDataModel yourself, use this service.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
service DefaultGridDataModel
{
diff --git a/offapi/com/sun/star/awt/grid/GridColumn.idl b/offapi/com/sun/star/awt/grid/GridColumn.idl
index a87aef84f7d3..383ff37eb673 100644
--- a/offapi/com/sun/star/awt/grid/GridColumn.idl
+++ b/offapi/com/sun/star/awt/grid/GridColumn.idl
@@ -39,7 +39,7 @@
/** Represents a column as used by the DefaultGridColumnModel
- @since OOo 3.3.0
+ @since OOo 3.3
*/
service GridColumn
{
diff --git a/offapi/com/sun/star/awt/grid/GridColumnEvent.idl b/offapi/com/sun/star/awt/grid/GridColumnEvent.idl
index caab721185a5..263356b33e10 100644
--- a/offapi/com/sun/star/awt/grid/GridColumnEvent.idl
+++ b/offapi/com/sun/star/awt/grid/GridColumnEvent.idl
@@ -38,7 +38,7 @@ module com { module sun { module star { module awt { module grid {
//=============================================================================
/** An event used by a XGridColumn to notify changes in the column.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
struct GridColumnEvent: com::sun::star::lang::EventObject
{
diff --git a/offapi/com/sun/star/awt/grid/GridInvalidDataException.idl b/offapi/com/sun/star/awt/grid/GridInvalidDataException.idl
index af1f90dfdc8b..ab180207a187 100644
--- a/offapi/com/sun/star/awt/grid/GridInvalidDataException.idl
+++ b/offapi/com/sun/star/awt/grid/GridInvalidDataException.idl
@@ -44,7 +44,7 @@ module com { module sun { module star { module awt { module grid {
/** Exception is thrown to indicate that set data is invalid, e.g. type of data is unknown
or data count doesn't match with column count.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
exception GridInvalidDataException : com::sun::star::uno::RuntimeException
{
diff --git a/offapi/com/sun/star/awt/grid/GridInvalidModelException.idl b/offapi/com/sun/star/awt/grid/GridInvalidModelException.idl
index 9d96daf624bb..791f691f20c6 100644
--- a/offapi/com/sun/star/awt/grid/GridInvalidModelException.idl
+++ b/offapi/com/sun/star/awt/grid/GridInvalidModelException.idl
@@ -43,7 +43,7 @@ module com { module sun { module star { module awt { module grid {
/** Exception is thrown when data or column model isn't set.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
exception GridInvalidModelException : com::sun::star::uno::RuntimeException
{
diff --git a/offapi/com/sun/star/awt/grid/UnoControlGrid.idl b/offapi/com/sun/star/awt/grid/UnoControlGrid.idl
index 542c27085dcb..5141e8a52cce 100644
--- a/offapi/com/sun/star/awt/grid/UnoControlGrid.idl
+++ b/offapi/com/sun/star/awt/grid/UnoControlGrid.idl
@@ -66,7 +66,7 @@
The XGridSelection interface provides a bunch of methods to set and get selection for the grid control.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
service UnoControlGrid
{
diff --git a/offapi/com/sun/star/awt/grid/UnoControlGridModel.idl b/offapi/com/sun/star/awt/grid/UnoControlGridModel.idl
index 7eea49624045..0c2a8ae7ee35 100644
--- a/offapi/com/sun/star/awt/grid/UnoControlGridModel.idl
+++ b/offapi/com/sun/star/awt/grid/UnoControlGridModel.idl
@@ -51,7 +51,7 @@ module com { module sun { module star { module awt { module grid {
/** specifies the standard model of a UnoControlGridModel.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
service UnoControlGridModel
{
diff --git a/offapi/com/sun/star/awt/grid/XGridColumn.idl b/offapi/com/sun/star/awt/grid/XGridColumn.idl
index d217ff5d4ac6..541cd2f692d1 100644
--- a/offapi/com/sun/star/awt/grid/XGridColumn.idl
+++ b/offapi/com/sun/star/awt/grid/XGridColumn.idl
@@ -41,7 +41,7 @@ module com { module sun { module star { module awt { module grid {
//=============================================================================
/** The XGridColumn defines the properties and behavior of a column in a grid control
- @since OOo 3.3.0
+ @since OOo 3.3
*/
interface XGridColumn
{
diff --git a/offapi/com/sun/star/awt/grid/XGridColumnListener.idl b/offapi/com/sun/star/awt/grid/XGridColumnListener.idl
index 8a2d044f33d5..b68084731972 100644
--- a/offapi/com/sun/star/awt/grid/XGridColumnListener.idl
+++ b/offapi/com/sun/star/awt/grid/XGridColumnListener.idl
@@ -47,7 +47,7 @@ module com { module sun { module star { module awt { module grid {
Usually you must not implement this interface yourself, but you must notify it correctly if
you implement the XGridColumnModel yourself
.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
interface XGridColumnListener
{
diff --git a/offapi/com/sun/star/awt/grid/XGridColumnModel.idl b/offapi/com/sun/star/awt/grid/XGridColumnModel.idl
index 86e77680cd95..73c05aa3a416 100644
--- a/offapi/com/sun/star/awt/grid/XGridColumnModel.idl
+++ b/offapi/com/sun/star/awt/grid/XGridColumnModel.idl
@@ -44,7 +44,7 @@ module com { module sun { module star { module awt { module grid {
If you do not need your own model implementation, you can also use the DefaultGridColumnModel.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
interface XGridColumnModel
{
diff --git a/offapi/com/sun/star/awt/grid/XGridControl.idl b/offapi/com/sun/star/awt/grid/XGridControl.idl
index 5019a571663b..0b428f3e1a3b 100644
--- a/offapi/com/sun/star/awt/grid/XGridControl.idl
+++ b/offapi/com/sun/star/awt/grid/XGridControl.idl
@@ -42,7 +42,7 @@ module com { module sun { module star { module awt { module grid {
@see UnoControlGrid
- @since OOo 3.3.0
+ @since OOo 3.3
*/
interface XGridControl: XGridSelection
{
diff --git a/offapi/com/sun/star/awt/grid/XGridDataListener.idl b/offapi/com/sun/star/awt/grid/XGridDataListener.idl
index d6d0d930b331..e1190341a612 100644
--- a/offapi/com/sun/star/awt/grid/XGridDataListener.idl
+++ b/offapi/com/sun/star/awt/grid/XGridDataListener.idl
@@ -47,7 +47,7 @@ module com { module sun { module star { module awt { module grid {
Usually you must not implement this interface yourself, but you must notify it correctly if
you implement the XGridDataModel yourself
.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
interface XGridDataListener: com::sun::star::lang::XEventListener
{
diff --git a/offapi/com/sun/star/awt/grid/XGridDataModel.idl b/offapi/com/sun/star/awt/grid/XGridDataModel.idl
index 5cc4085807e1..ae4bc2cd3cc6 100644
--- a/offapi/com/sun/star/awt/grid/XGridDataModel.idl
+++ b/offapi/com/sun/star/awt/grid/XGridDataModel.idl
@@ -43,7 +43,7 @@ module com { module sun { module star { module awt { module grid {
If you do not need your own model implementation, you can also use the DefaultGridDataModel.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
interface XGridDataModel: ::com::sun::star::lang::XComponent
{
diff --git a/offapi/com/sun/star/configuration/DefaultProvider.idl b/offapi/com/sun/star/configuration/DefaultProvider.idl
index b41bdeec33a5..0fc09a078acc 100644
--- a/offapi/com/sun/star/configuration/DefaultProvider.idl
+++ b/offapi/com/sun/star/configuration/DefaultProvider.idl
@@ -78,14 +78,14 @@ published service DefaultProvider
/** Enable setting/getting locale for Provider
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional] interface com::sun::star::lang::XLocalizable;
/** Property to enable/disable asynchronous write-back from in-memory cache to backend(s)
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional,property] boolean EnableAsync;
diff --git a/offapi/com/sun/star/configuration/Update.idl b/offapi/com/sun/star/configuration/Update.idl
index 790a4bb40235..8cd52a1c1a77 100644
--- a/offapi/com/sun/star/configuration/Update.idl
+++ b/offapi/com/sun/star/configuration/Update.idl
@@ -36,7 +36,7 @@ module com { module sun { module star { module configuration {
This singleton is unpublished and unstable.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
singleton Update: XUpdate;
diff --git a/offapi/com/sun/star/configuration/XUpdate.idl b/offapi/com/sun/star/configuration/XUpdate.idl
index c3316ea5dc45..16455528fc48 100644
--- a/offapi/com/sun/star/configuration/XUpdate.idl
+++ b/offapi/com/sun/star/configuration/XUpdate.idl
@@ -36,7 +36,7 @@ module com { module sun { module star { module configuration {
- @since OOo 2.0.0
+ @since OOo 2.0
@see com::sun::star::task::InteractionHandler
*/
diff --git a/offapi/com/sun/star/configuration/backend/Layer.idl b/offapi/com/sun/star/configuration/backend/Layer.idl
index 8b9429810b15..545bddad641e 100644
--- a/offapi/com/sun/star/configuration/backend/Layer.idl
+++ b/offapi/com/sun/star/configuration/backend/Layer.idl
@@ -102,7 +102,7 @@ published service Layer
/**
The URL of the layer data.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[property,optional,readonly] string URL ;
diff --git a/offapi/com/sun/star/configuration/backend/LayerFilter.idl b/offapi/com/sun/star/configuration/backend/LayerFilter.idl
index ec5a209aa8ac..357b5ba6b2e7 100644
--- a/offapi/com/sun/star/configuration/backend/LayerFilter.idl
+++ b/offapi/com/sun/star/configuration/backend/LayerFilter.idl
@@ -54,7 +54,7 @@ module com { module sun { module star { module configuration { module backend {
@see com::sun::star::configuration::backend::DataImporter
Service that supports applying a LayerFilter to imported data.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published service LayerFilter
{
diff --git a/offapi/com/sun/star/configuration/backend/MergeRecoveryRequest.idl b/offapi/com/sun/star/configuration/backend/MergeRecoveryRequest.idl
index c5d44ac4b7bf..133fc8080e66 100644
--- a/offapi/com/sun/star/configuration/backend/MergeRecoveryRequest.idl
+++ b/offapi/com/sun/star/configuration/backend/MergeRecoveryRequest.idl
@@ -40,7 +40,7 @@ module com { module sun { module star { module configuration { module backend {
/** is passed to an InteractionHandler when merging fails due to
invalid layer data or access problems.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
exception MergeRecoveryRequest: ::com::sun::star::uno::Exception
{
diff --git a/offapi/com/sun/star/configuration/backend/Schema.idl b/offapi/com/sun/star/configuration/backend/Schema.idl
index 873f7c464b15..61150a60435a 100644
--- a/offapi/com/sun/star/configuration/backend/Schema.idl
+++ b/offapi/com/sun/star/configuration/backend/Schema.idl
@@ -72,7 +72,7 @@ published service Schema
/**
The URL of the layer data.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[property,optional,readonly] string URL ;
diff --git a/offapi/com/sun/star/configuration/backend/StratumCreationException.idl b/offapi/com/sun/star/configuration/backend/StratumCreationException.idl
index f425118de937..825c81a254ef 100644
--- a/offapi/com/sun/star/configuration/backend/StratumCreationException.idl
+++ b/offapi/com/sun/star/configuration/backend/StratumCreationException.idl
@@ -39,7 +39,7 @@ module com { module sun { module star { module configuration { module backend {
/** is passed to an InteractionHandler when creating a stratum backend fails.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
exception StratumCreationException : BackendSetupException
{
diff --git a/offapi/com/sun/star/deployment/DeploymentException.idl b/offapi/com/sun/star/deployment/DeploymentException.idl
index 3c07d803a48a..fd40cf0e8aec 100644
--- a/offapi/com/sun/star/deployment/DeploymentException.idl
+++ b/offapi/com/sun/star/deployment/DeploymentException.idl
@@ -35,7 +35,7 @@ module com { module sun { module star { module deployment {
/** A DeploymentException reflects a deployment error.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
exception DeploymentException : com::sun::star::uno::Exception
{
diff --git a/offapi/com/sun/star/deployment/ExtensionManager.idl b/offapi/com/sun/star/deployment/ExtensionManager.idl
index 1911ce04dd81..4494da1a9d0f 100644
--- a/offapi/com/sun/star/deployment/ExtensionManager.idl
+++ b/offapi/com/sun/star/deployment/ExtensionManager.idl
@@ -40,7 +40,7 @@ module com { module sun { module star { module deployment {
/singletons/com.sun.star.deployment.ExtensionManager
.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
singleton ExtensionManager : XExtensionManager;
diff --git a/offapi/com/sun/star/deployment/ExtensionRemovedException.idl b/offapi/com/sun/star/deployment/ExtensionRemovedException.idl
index 1cd400e248d6..0d0e06c96977 100644
--- a/offapi/com/sun/star/deployment/ExtensionRemovedException.idl
+++ b/offapi/com/sun/star/deployment/ExtensionRemovedException.idl
@@ -39,7 +39,7 @@ interface XPackage;
because the extension was removed. XPackage::isRemoved will
return true on that object.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
exception ExtensionRemovedException: com::sun::star::uno::Exception {
diff --git a/offapi/com/sun/star/deployment/InvalidRemovedParameterException.idl b/offapi/com/sun/star/deployment/InvalidRemovedParameterException.idl
index 0f0407b0e989..79599b7fb53b 100644
--- a/offapi/com/sun/star/deployment/InvalidRemovedParameterException.idl
+++ b/offapi/com/sun/star/deployment/InvalidRemovedParameterException.idl
@@ -39,7 +39,7 @@ interface XPackage;
called with a different value for the removed parameter and that
the XPackage object created by that call still exist.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
exception InvalidRemovedParameterException: com::sun::star::uno::Exception {
/** the value of the removed parameter which was used in
diff --git a/offapi/com/sun/star/deployment/PackageRegistryBackend.idl b/offapi/com/sun/star/deployment/PackageRegistryBackend.idl
index 0ac85465284b..ee76030eb54b 100644
--- a/offapi/com/sun/star/deployment/PackageRegistryBackend.idl
+++ b/offapi/com/sun/star/deployment/PackageRegistryBackend.idl
@@ -40,7 +40,7 @@ module com { module sun { module star { module deployment {
are related to a XPackageManager instance.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service PackageRegistryBackend : XPackageRegistry
{
diff --git a/offapi/com/sun/star/deployment/PlatformException.idl b/offapi/com/sun/star/deployment/PlatformException.idl
index fca14c2f2c6a..c67b204a59fb 100644
--- a/offapi/com/sun/star/deployment/PlatformException.idl
+++ b/offapi/com/sun/star/deployment/PlatformException.idl
@@ -36,7 +36,7 @@ module com { module sun { module star { module deployment {
/** A DeploymentException indicates that the current platform
is not supported.
- @since OOo 3.0.0
+ @since OOo 3.0
*/
exception PlatformException : com::sun::star::uno::Exception
{
diff --git a/offapi/com/sun/star/deployment/XExtensionManager.idl b/offapi/com/sun/star/deployment/XExtensionManager.idl
index b807df54af65..27f7acb23e6b 100644
--- a/offapi/com/sun/star/deployment/XExtensionManager.idl
+++ b/offapi/com/sun/star/deployment/XExtensionManager.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module deployment {
in the user, shared and bundled repository.
@see ExtensionManager
- @since OOo 3.3.0
+ @since OOo 3.3
*/
interface XExtensionManager
{
diff --git a/offapi/com/sun/star/deployment/XPackage.idl b/offapi/com/sun/star/deployment/XPackage.idl
index 9709b579bc2e..fbc02a27d073 100644
--- a/offapi/com/sun/star/deployment/XPackage.idl
+++ b/offapi/com/sun/star/deployment/XPackage.idl
@@ -49,7 +49,7 @@ module com { module sun { module star { module deployment {
/** Objects of this interface reflect a bound package and are issued by a
PackageRegistryBackend.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XPackage
{
@@ -100,7 +100,7 @@ interface XPackage
After updateing the OpenOffice.org, some dependencies for packages might
no longer be satisfied.
- @since OOo 3.2.0
+ @since OOo 3.2
@param xCmdEnv
command environment for error handling and other interaction.
diff --git a/offapi/com/sun/star/deployment/XPackageManager.idl b/offapi/com/sun/star/deployment/XPackageManager.idl
index da329bb9367f..5ece66a87392 100644
--- a/offapi/com/sun/star/deployment/XPackageManager.idl
+++ b/offapi/com/sun/star/deployment/XPackageManager.idl
@@ -67,7 +67,7 @@ module com { module sun { module star { module deployment {
@see thePackageManagerFactory
- @since OOo 2.0.0
+ @since OOo 2.0
@deprecated
Use XExtensionManager.
*/
diff --git a/offapi/com/sun/star/deployment/XPackageManagerFactory.idl b/offapi/com/sun/star/deployment/XPackageManagerFactory.idl
index 4b5b7183ba47..f7e67543f4cd 100644
--- a/offapi/com/sun/star/deployment/XPackageManagerFactory.idl
+++ b/offapi/com/sun/star/deployment/XPackageManagerFactory.idl
@@ -44,7 +44,7 @@ module com { module sun { module star { module deployment {
exclusively.
- @since OOo 2.0.0
+ @since OOo 2.0
@deprecated
Use XExtensionManager.
*/
diff --git a/offapi/com/sun/star/deployment/XPackageRegistry.idl b/offapi/com/sun/star/deployment/XPackageRegistry.idl
index c84f37625ec5..cd0418164923 100644
--- a/offapi/com/sun/star/deployment/XPackageRegistry.idl
+++ b/offapi/com/sun/star/deployment/XPackageRegistry.idl
@@ -38,7 +38,7 @@ module com { module sun { module star { module deployment {
/** Interface to bind an UNO package.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XPackageRegistry
{
diff --git a/offapi/com/sun/star/deployment/XPackageTypeInfo.idl b/offapi/com/sun/star/deployment/XPackageTypeInfo.idl
index 7252f73d200b..9ba54160ade9 100644
--- a/offapi/com/sun/star/deployment/XPackageTypeInfo.idl
+++ b/offapi/com/sun/star/deployment/XPackageTypeInfo.idl
@@ -35,7 +35,7 @@ module com { module sun { module star { module deployment {
/** Objects of this interface provide information about a package's type.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XPackageTypeInfo
{
diff --git a/offapi/com/sun/star/deployment/thePackageManagerFactory.idl b/offapi/com/sun/star/deployment/thePackageManagerFactory.idl
index 85e95acea598..a0fbd4a35b7a 100644
--- a/offapi/com/sun/star/deployment/thePackageManagerFactory.idl
+++ b/offapi/com/sun/star/deployment/thePackageManagerFactory.idl
@@ -42,7 +42,7 @@ module com { module sun { module star { module deployment {
.
- @since OOo 2.0.0
+ @since OOo 2.0
@deprecated
Use XExtensionManager.
*/
diff --git a/offapi/com/sun/star/deployment/ui/PackageManagerDialog.idl b/offapi/com/sun/star/deployment/ui/PackageManagerDialog.idl
index 0f2b58d941f9..dc635ebb6347 100644
--- a/offapi/com/sun/star/deployment/ui/PackageManagerDialog.idl
+++ b/offapi/com/sun/star/deployment/ui/PackageManagerDialog.idl
@@ -38,7 +38,7 @@ module com { module sun { module star { module deployment { module ui {
packages of the user and shared installation as well as currently open
documents.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service PackageManagerDialog : com::sun::star::ui::dialogs::XAsynchronousExecutableDialog
{
diff --git a/offapi/com/sun/star/deployment/ui/UpdateRequiredDialog.idl b/offapi/com/sun/star/deployment/ui/UpdateRequiredDialog.idl
index 35b314b74f92..6e475539bab9 100644
--- a/offapi/com/sun/star/deployment/ui/UpdateRequiredDialog.idl
+++ b/offapi/com/sun/star/deployment/ui/UpdateRequiredDialog.idl
@@ -36,7 +36,7 @@ module com { module sun { module star { module deployment { module ui {
/** The UpdateRequiredDialog is used to show a list of extensions not compatible with this office version.
- @since OOo 3.2.0
+ @since OOo 3.2
*/
service UpdateRequiredDialog : com::sun::star::ui::dialogs::XExecutableDialog
{
diff --git a/offapi/com/sun/star/document/CorruptedFilterConfigurationException.idl b/offapi/com/sun/star/document/CorruptedFilterConfigurationException.idl
index af7116b085ea..e3fbf81c7223 100644
--- a/offapi/com/sun/star/document/CorruptedFilterConfigurationException.idl
+++ b/offapi/com/sun/star/document/CorruptedFilterConfigurationException.idl
@@ -41,7 +41,7 @@ module com { module sun { module star { module document {
/** This exception is thrown in case the global filter configuration
does not exists or contains corrupted data.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published exception CorruptedFilterConfigurationException : ::com::sun::star::uno::RuntimeException
{
diff --git a/offapi/com/sun/star/document/DocumentEvent.idl b/offapi/com/sun/star/document/DocumentEvent.idl
index 1ec7f599ad6a..caa717a8217a 100644
--- a/offapi/com/sun/star/document/DocumentEvent.idl
+++ b/offapi/com/sun/star/document/DocumentEvent.idl
@@ -49,7 +49,7 @@ module com { module sun { module star { module document {
anymore.
@see XDocumentEventBroadcaster
- @since OpenOffice.org 3.1
+ @since OOo 3.1
*/
struct DocumentEvent : ::com::sun::star::lang::EventObject
{
diff --git a/offapi/com/sun/star/document/XDocumentEventBroadcaster.idl b/offapi/com/sun/star/document/XDocumentEventBroadcaster.idl
index 845660d9db7b..bd7bbf52722c 100644
--- a/offapi/com/sun/star/document/XDocumentEventBroadcaster.idl
+++ b/offapi/com/sun/star/document/XDocumentEventBroadcaster.idl
@@ -58,7 +58,7 @@ interface XDocumentEventListener;
anymore.
@see DocumentEvent
- @since OpenOffice.org 3.1
+ @since OOo 3.1
*/
interface XDocumentEventBroadcaster
{
diff --git a/offapi/com/sun/star/document/XDocumentEventListener.idl b/offapi/com/sun/star/document/XDocumentEventListener.idl
index 207286df8b79..2fa8e1583f1a 100644
--- a/offapi/com/sun/star/document/XDocumentEventListener.idl
+++ b/offapi/com/sun/star/document/XDocumentEventListener.idl
@@ -47,7 +47,7 @@ module com { module sun { module star { module document {
anymore.
@see XDocumentEventBroadcaster
- @since OpenOffice.org 3.1
+ @since OOo 3.1
*/
interface XDocumentEventListener : ::com::sun::star::lang::XEventListener
{
diff --git a/offapi/com/sun/star/document/XMLBasicExporter.idl b/offapi/com/sun/star/document/XMLBasicExporter.idl
index 4e11911e3181..7766282276dd 100644
--- a/offapi/com/sun/star/document/XMLBasicExporter.idl
+++ b/offapi/com/sun/star/document/XMLBasicExporter.idl
@@ -53,7 +53,7 @@ module com { module sun { module star { module document {
from which the data should be exported. After that, the export is started
by calling the XFilter::filter method.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published service XMLBasicExporter
{
diff --git a/offapi/com/sun/star/document/XMLBasicImporter.idl b/offapi/com/sun/star/document/XMLBasicImporter.idl
index 38f3bf3ff086..74b789c954ed 100644
--- a/offapi/com/sun/star/document/XMLBasicImporter.idl
+++ b/offapi/com/sun/star/document/XMLBasicImporter.idl
@@ -50,7 +50,7 @@ module com { module sun { module star { module document {
The XDocumentHandler
interface is used to stream the XML data into the filter.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published service XMLBasicImporter
{
diff --git a/offapi/com/sun/star/document/XMLOasisBasicExporter.idl b/offapi/com/sun/star/document/XMLOasisBasicExporter.idl
index 8c59e34f4301..b5817e99e8ee 100644
--- a/offapi/com/sun/star/document/XMLOasisBasicExporter.idl
+++ b/offapi/com/sun/star/document/XMLOasisBasicExporter.idl
@@ -53,7 +53,7 @@ module com { module sun { module star { module document {
from which the data should be exported. After that, the export is started
by calling the XFilter::filter method.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published service XMLOasisBasicExporter
{
diff --git a/offapi/com/sun/star/document/XMLOasisBasicImporter.idl b/offapi/com/sun/star/document/XMLOasisBasicImporter.idl
index c0aadd8c4941..c77c6395a9be 100644
--- a/offapi/com/sun/star/document/XMLOasisBasicImporter.idl
+++ b/offapi/com/sun/star/document/XMLOasisBasicImporter.idl
@@ -50,7 +50,7 @@ module com { module sun { module star { module document {
The XDocumentHandler
interface is used to stream the XML data into the filter.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published service XMLOasisBasicImporter
{
diff --git a/offapi/com/sun/star/form/FormComponent.idl b/offapi/com/sun/star/form/FormComponent.idl
index 27bae9588631..489f97e66795 100644
--- a/offapi/com/sun/star/form/FormComponent.idl
+++ b/offapi/com/sun/star/form/FormComponent.idl
@@ -104,7 +104,7 @@ published service FormComponent
will always be set, even if you do not specify it in the
XPropertyContainer::addProperty call.
- @since OpenOffice.org 2.3.0
+ @since OOo 2.3
*/
[optional] service com::sun::star::beans::PropertyBag;
diff --git a/offapi/com/sun/star/form/component/GridControl.idl b/offapi/com/sun/star/form/component/GridControl.idl
index f3077ec037ac..b39dc67e9fef 100644
--- a/offapi/com/sun/star/form/component/GridControl.idl
+++ b/offapi/com/sun/star/form/component/GridControl.idl
@@ -162,7 +162,7 @@ published service GridControl
Not every border style (see Border) may support coloring.
For instance, usually a border with 3D effect will ignore the BorderColor setting.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long BorderColor;
diff --git a/offapi/com/sun/star/form/inspection/DefaultFormComponentInspectorModel.idl b/offapi/com/sun/star/form/inspection/DefaultFormComponentInspectorModel.idl
index b743fe4be85b..11140ee20476 100644
--- a/offapi/com/sun/star/form/inspection/DefaultFormComponentInspectorModel.idl
+++ b/offapi/com/sun/star/form/inspection/DefaultFormComponentInspectorModel.idl
@@ -62,7 +62,7 @@ service DefaultFormComponentInspectorModel : com::sun::star::inspection::XObject
/** creates a default DefaultFormComponentInspectorModel, providing factories for all
handlers listed above.
- @since OOo 2.2.0
+ @since OOo 2.2
*/
createDefault();
@@ -85,7 +85,7 @@ service DefaultFormComponentInspectorModel : com::sun::star::inspection::XObject
@see XObjectInspectorModel::MinHelpTextLines
@see XObjectInspectorModel::MaxHelpTextLines
- @since OOo 2.2.0
+ @since OOo 2.2
*/
createWithHelpSection(
[in] long minHelpTextLines,
diff --git a/offapi/com/sun/star/form/runtime/FeatureState.idl b/offapi/com/sun/star/form/runtime/FeatureState.idl
index 996aff1e8076..f50c8d36ce05 100644
--- a/offapi/com/sun/star/form/runtime/FeatureState.idl
+++ b/offapi/com/sun/star/form/runtime/FeatureState.idl
@@ -37,7 +37,7 @@ module com { module sun { module star { module form { module runtime {
@see XFormOperations
- @since OpenOffice.org 2.2.0
+ @since OOo 2.2
*/
struct FeatureState
{
diff --git a/offapi/com/sun/star/form/runtime/FilterEvent.idl b/offapi/com/sun/star/form/runtime/FilterEvent.idl
index b7cc035113cb..f58b9e101e6f 100644
--- a/offapi/com/sun/star/form/runtime/FilterEvent.idl
+++ b/offapi/com/sun/star/form/runtime/FilterEvent.idl
@@ -39,7 +39,7 @@ module com { module sun { module star { module form { module runtime {
@see XFilterController
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
struct FilterEvent : ::com::sun::star::lang::EventObject
{
diff --git a/offapi/com/sun/star/form/runtime/FormFeature.idl b/offapi/com/sun/star/form/runtime/FormFeature.idl
index 57ebcc8ef7b7..13045b0f6bb9 100644
--- a/offapi/com/sun/star/form/runtime/FormFeature.idl
+++ b/offapi/com/sun/star/form/runtime/FormFeature.idl
@@ -37,7 +37,7 @@ module com { module sun { module star { module form { module runtime {
/** specifies the operations on a user interface form, as supported by the
XFormOperations interface.
- @since OpenOffice.org 2.2.0
+ @since OOo 2.2
*/
constants FormFeature
{
diff --git a/offapi/com/sun/star/form/runtime/FormOperations.idl b/offapi/com/sun/star/form/runtime/FormOperations.idl
index aa4b7e825c8c..c96844ded821 100644
--- a/offapi/com/sun/star/form/runtime/FormOperations.idl
+++ b/offapi/com/sun/star/form/runtime/FormOperations.idl
@@ -50,7 +50,7 @@ module com { module sun { module star { module form { module runtime {
/** encapsulates operations on a database form which has a UI representation,
and is interacting with the user.
- @since OpenOffice.org 2.2.0
+ @since OOo 2.2
*/
service FormOperations : XFormOperations
{
diff --git a/offapi/com/sun/star/form/runtime/XFeatureInvalidation.idl b/offapi/com/sun/star/form/runtime/XFeatureInvalidation.idl
index b435e64a6d81..0f1ca0df7578 100644
--- a/offapi/com/sun/star/form/runtime/XFeatureInvalidation.idl
+++ b/offapi/com/sun/star/form/runtime/XFeatureInvalidation.idl
@@ -43,7 +43,7 @@ module com { module sun { module star { module form { module runtime {
@see XFormOperations
- @since OpenOffice.org 2.2.0
+ @since OOo 2.2
*/
interface XFeatureInvalidation
{
diff --git a/offapi/com/sun/star/form/runtime/XFilterController.idl b/offapi/com/sun/star/form/runtime/XFilterController.idl
index 8f3fded592d9..e1c3f0f69fee 100644
--- a/offapi/com/sun/star/form/runtime/XFilterController.idl
+++ b/offapi/com/sun/star/form/runtime/XFilterController.idl
@@ -73,7 +73,7 @@ interface XFilterControllerListener;
@see com::sun::star::sdb::XSingleSelectQueryAnalyzer::getStructuredFilter
@see com::sun::star::sdb::SQLFilterOperator
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
interface XFilterController
{
diff --git a/offapi/com/sun/star/form/runtime/XFilterControllerListener.idl b/offapi/com/sun/star/form/runtime/XFilterControllerListener.idl
index c737f9b24c70..86068c745640 100644
--- a/offapi/com/sun/star/form/runtime/XFilterControllerListener.idl
+++ b/offapi/com/sun/star/form/runtime/XFilterControllerListener.idl
@@ -38,7 +38,7 @@ module com { module sun { module star { module form { module runtime {
/** is implemented by components listening for events fired by an XFilterController.
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
interface XFilterControllerListener : ::com::sun::star::lang::XEventListener
{
diff --git a/offapi/com/sun/star/form/runtime/XFormController.idl b/offapi/com/sun/star/form/runtime/XFormController.idl
index 983b0bd61f07..482c66f06262 100644
--- a/offapi/com/sun/star/form/runtime/XFormController.idl
+++ b/offapi/com/sun/star/form/runtime/XFormController.idl
@@ -248,7 +248,7 @@ interface XFormControllerContext;
@see ::com::sun::star::form::binding::BindableControlModel
@see ::com::sun::star::sdb::DataSource::Settings
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
interface XFormController
{
diff --git a/offapi/com/sun/star/form/runtime/XFormOperations.idl b/offapi/com/sun/star/form/runtime/XFormOperations.idl
index f6f040ccc199..9775fb87e64a 100644
--- a/offapi/com/sun/star/form/runtime/XFormOperations.idl
+++ b/offapi/com/sun/star/form/runtime/XFormOperations.idl
@@ -93,7 +93,7 @@ interface XFeatureInvalidation;
@see FormFeature
- @since OpenOffice.org 2.2.0
+ @since OOo 2.2
*/
interface XFormOperations : ::com::sun::star::lang::XComponent
{
diff --git a/offapi/com/sun/star/frame/CommandGroup.idl b/offapi/com/sun/star/frame/CommandGroup.idl
index d8058379922e..6cad9c9c4f88 100644
--- a/offapi/com/sun/star/frame/CommandGroup.idl
+++ b/offapi/com/sun/star/frame/CommandGroup.idl
@@ -37,7 +37,7 @@ module com { module sun { module star { module frame {
@see XDispatchInformationProvider
@see Controller
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published constants CommandGroup
{
diff --git a/offapi/com/sun/star/frame/DispatchInformation.idl b/offapi/com/sun/star/frame/DispatchInformation.idl
index 49789f003b8a..861699f018e7 100644
--- a/offapi/com/sun/star/frame/DispatchInformation.idl
+++ b/offapi/com/sun/star/frame/DispatchInformation.idl
@@ -41,7 +41,7 @@ module com { module sun { module star { module frame {
@see XDispatchInformationProvider
@see Controller
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published struct DispatchInformation
{
diff --git a/offapi/com/sun/star/frame/Frame.idl b/offapi/com/sun/star/frame/Frame.idl
index 2111775c9948..27ae448134dd 100644
--- a/offapi/com/sun/star/frame/Frame.idl
+++ b/offapi/com/sun/star/frame/Frame.idl
@@ -127,7 +127,7 @@ published service Frame
//-------------------------------------------------------------------------
/** provides information about supported commands
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional] interface XDispatchInformationProvider;
diff --git a/offapi/com/sun/star/frame/LayoutManager.idl b/offapi/com/sun/star/frame/LayoutManager.idl
index 7a2f25f39d20..e54df74e59d3 100644
--- a/offapi/com/sun/star/frame/LayoutManager.idl
+++ b/offapi/com/sun/star/frame/LayoutManager.idl
@@ -72,7 +72,7 @@
the size and position of those user interface elements.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service LayoutManager
diff --git a/offapi/com/sun/star/frame/LayoutManagerEvents.idl b/offapi/com/sun/star/frame/LayoutManagerEvents.idl
index 8a7bafcf9880..3a41716d9b61 100644
--- a/offapi/com/sun/star/frame/LayoutManagerEvents.idl
+++ b/offapi/com/sun/star/frame/LayoutManagerEvents.idl
@@ -40,7 +40,7 @@ module com { module sun { module star { module frame {
@see com::sun::star::frame::LayoutManager
@see com::sun::star::frame::XLayoutManagerEventBroadcaster
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants LayoutManagerEvents
{
diff --git a/offapi/com/sun/star/frame/ModuleManager.idl b/offapi/com/sun/star/frame/ModuleManager.idl
index 4b8c1cb8723a..7a102da72bef 100644
--- a/offapi/com/sun/star/frame/ModuleManager.idl
+++ b/offapi/com/sun/star/frame/ModuleManager.idl
@@ -48,7 +48,7 @@ module com { module sun { module star { module frame {
of office modules.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service ModuleManager
diff --git a/offapi/com/sun/star/frame/PopupMenuController.idl b/offapi/com/sun/star/frame/PopupMenuController.idl
index 0d24f19e6cd5..eab60de2fd2c 100644
--- a/offapi/com/sun/star/frame/PopupMenuController.idl
+++ b/offapi/com/sun/star/frame/PopupMenuController.idl
@@ -65,7 +65,7 @@ module com { module sun { module star { module frame {
worked on. This list gets changes consistently during a work session.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service PopupMenuController
diff --git a/offapi/com/sun/star/frame/PopupMenuControllerFactory.idl b/offapi/com/sun/star/frame/PopupMenuControllerFactory.idl
index b0d6d71bb1bd..4bf62ffb1efa 100644
--- a/offapi/com/sun/star/frame/PopupMenuControllerFactory.idl
+++ b/offapi/com/sun/star/frame/PopupMenuControllerFactory.idl
@@ -50,7 +50,7 @@ module com { module sun { module star { module frame {
it contains a registered command URL.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service PopupMenuControllerFactory
diff --git a/offapi/com/sun/star/frame/StatusbarController.idl b/offapi/com/sun/star/frame/StatusbarController.idl
index 861c4364e1f0..9331f95b1816 100644
--- a/offapi/com/sun/star/frame/StatusbarController.idl
+++ b/offapi/com/sun/star/frame/StatusbarController.idl
@@ -64,7 +64,7 @@
@see com::sun::star::frame::XDispatchProvider
@see com::sun::star::frame::XStatusbarController
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service StatusbarController
diff --git a/offapi/com/sun/star/frame/StatusbarControllerFactory.idl b/offapi/com/sun/star/frame/StatusbarControllerFactory.idl
index 01d26117f1c1..dd2b756c319a 100644
--- a/offapi/com/sun/star/frame/StatusbarControllerFactory.idl
+++ b/offapi/com/sun/star/frame/StatusbarControllerFactory.idl
@@ -51,7 +51,7 @@ module com { module sun { module star { module frame {
if it contains a registered command URL.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service StatusbarControllerFactory
diff --git a/offapi/com/sun/star/frame/ToolbarController.idl b/offapi/com/sun/star/frame/ToolbarController.idl
index 674b35af4e6c..8f49b0ae17ea 100644
--- a/offapi/com/sun/star/frame/ToolbarController.idl
+++ b/offapi/com/sun/star/frame/ToolbarController.idl
@@ -67,7 +67,7 @@
@see com::sun::star::frame::XDispatchProvider
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service ToolbarController
diff --git a/offapi/com/sun/star/frame/TransientDocumentsDocumentContentFactory.idl b/offapi/com/sun/star/frame/TransientDocumentsDocumentContentFactory.idl
index 326981516522..0f982fa0f4cb 100644
--- a/offapi/com/sun/star/frame/TransientDocumentsDocumentContentFactory.idl
+++ b/offapi/com/sun/star/frame/TransientDocumentsDocumentContentFactory.idl
@@ -39,7 +39,7 @@ module com { module sun { module star { module frame {
/** specifies a factory for
TransientDocumentsDocumentContents.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service TransientDocumentsDocumentContentFactory
{
diff --git a/offapi/com/sun/star/frame/UnknownModuleException.idl b/offapi/com/sun/star/frame/UnknownModuleException.idl
index c1c9aad21d8a..9b3169c1dcbe 100644
--- a/offapi/com/sun/star/frame/UnknownModuleException.idl
+++ b/offapi/com/sun/star/frame/UnknownModuleException.idl
@@ -40,7 +40,7 @@ module com { module sun { module star { module frame {
* module could not be classified or does not have
* a valid configuration.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
exception UnknownModuleException : ::com::sun::star::uno::Exception
{
diff --git a/offapi/com/sun/star/frame/XDispatchInformationProvider.idl b/offapi/com/sun/star/frame/XDispatchInformationProvider.idl
index 3bf6886ba17b..a7f50d78c79c 100644
--- a/offapi/com/sun/star/frame/XDispatchInformationProvider.idl
+++ b/offapi/com/sun/star/frame/XDispatchInformationProvider.idl
@@ -56,7 +56,7 @@ module com { module sun { module star { module frame {
@see Frame
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published interface XDispatchInformationProvider: com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/frame/XInplaceLayout.idl b/offapi/com/sun/star/frame/XInplaceLayout.idl
index 71344418bda3..fa2d8944f878 100644
--- a/offapi/com/sun/star/frame/XInplaceLayout.idl
+++ b/offapi/com/sun/star/frame/XInplaceLayout.idl
@@ -43,7 +43,7 @@ module com { module sun { module star { module frame {
@deprecated
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XInplaceLayout : com::sun::star::uno::XInterface
diff --git a/offapi/com/sun/star/frame/XLayoutManager.idl b/offapi/com/sun/star/frame/XLayoutManager.idl
index 5699fe00687b..1801140d2965 100644
--- a/offapi/com/sun/star/frame/XLayoutManager.idl
+++ b/offapi/com/sun/star/frame/XLayoutManager.idl
@@ -95,7 +95,7 @@ module com { module sun { module star { module frame {
@see com::sun::star::frame::XFrame
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XLayoutManager : com::sun::star::uno::XInterface
diff --git a/offapi/com/sun/star/frame/XLayoutManagerEventBroadcaster.idl b/offapi/com/sun/star/frame/XLayoutManagerEventBroadcaster.idl
index b79827dd4b3e..fc7636e21e56 100644
--- a/offapi/com/sun/star/frame/XLayoutManagerEventBroadcaster.idl
+++ b/offapi/com/sun/star/frame/XLayoutManagerEventBroadcaster.idl
@@ -40,7 +40,7 @@
@see ::com::sun::star::frame::LayoutManager
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XLayoutManagerEventBroadcaster : com::sun::star::uno::XInterface
diff --git a/offapi/com/sun/star/frame/XLayoutManagerListener.idl b/offapi/com/sun/star/frame/XLayoutManagerListener.idl
index 593ba510c08c..1a1cd9266917 100644
--- a/offapi/com/sun/star/frame/XLayoutManagerListener.idl
+++ b/offapi/com/sun/star/frame/XLayoutManagerListener.idl
@@ -47,7 +47,7 @@ module com { module sun { module star { module frame {
@see ::com::sun::star::frame::LayoutManager
@see ::com::sun::star::frame::LayoutManagerEvents
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XLayoutManagerListener : com::sun::star::lang::XEventListener
{
diff --git a/offapi/com/sun/star/frame/XMenuBarAcceptor.idl b/offapi/com/sun/star/frame/XMenuBarAcceptor.idl
index 7eec81bb5308..a5c2f54676d8 100644
--- a/offapi/com/sun/star/frame/XMenuBarAcceptor.idl
+++ b/offapi/com/sun/star/frame/XMenuBarAcceptor.idl
@@ -46,7 +46,7 @@ module com { module sun { module star { module frame {
@deprecated
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XMenuBarAcceptor : com::sun::star::uno::XInterface
diff --git a/offapi/com/sun/star/frame/XMenuBarMergingAcceptor.idl b/offapi/com/sun/star/frame/XMenuBarMergingAcceptor.idl
index b7c6a1b13c19..500c069006ee 100644
--- a/offapi/com/sun/star/frame/XMenuBarMergingAcceptor.idl
+++ b/offapi/com/sun/star/frame/XMenuBarMergingAcceptor.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module frame {
/** provides functions to set and remove a merged menu bar for inplace
editing.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XMenuBarMergingAcceptor : com::sun::star::uno::XInterface
diff --git a/offapi/com/sun/star/frame/XModule.idl b/offapi/com/sun/star/frame/XModule.idl
index c302892d5df5..26b2d4cf5f0e 100644
--- a/offapi/com/sun/star/frame/XModule.idl
+++ b/offapi/com/sun/star/frame/XModule.idl
@@ -58,7 +58,7 @@ module com { module sun { module star { module frame {
@see XModuleManager
- @since OOo 2.3.0
+ @since OOo 2.3
*/
interface XModule : com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/frame/XModuleManager.idl b/offapi/com/sun/star/frame/XModuleManager.idl
index 7c8527c84d73..0e1d8b8fe00e 100644
--- a/offapi/com/sun/star/frame/XModuleManager.idl
+++ b/offapi/com/sun/star/frame/XModuleManager.idl
@@ -47,7 +47,7 @@ module com { module sun { module star { module frame {
//===============================================
/** can be used to identify office modules.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XModuleManager : com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/frame/XPopupMenuController.idl b/offapi/com/sun/star/frame/XPopupMenuController.idl
index ffc7db109f4a..cf65f41f8038 100644
--- a/offapi/com/sun/star/frame/XPopupMenuController.idl
+++ b/offapi/com/sun/star/frame/XPopupMenuController.idl
@@ -48,7 +48,7 @@ module com { module sun { module star { module frame {
briefs the controller whenever the popup menu gets activated by a user.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XPopupMenuController : com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/frame/XStatusbarController.idl b/offapi/com/sun/star/frame/XStatusbarController.idl
index d9e035ad03bc..5ded8dc55c1a 100644
--- a/offapi/com/sun/star/frame/XStatusbarController.idl
+++ b/offapi/com/sun/star/frame/XStatusbarController.idl
@@ -62,7 +62,7 @@ module com { module sun { module star { module frame {
@see com::sun::star::frame::XDispatchProvider
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XStatusbarController : ::com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/frame/XSubToolbarController.idl b/offapi/com/sun/star/frame/XSubToolbarController.idl
index e0de8b9b8e2f..a9614e5ba04a 100644
--- a/offapi/com/sun/star/frame/XSubToolbarController.idl
+++ b/offapi/com/sun/star/frame/XSubToolbarController.idl
@@ -47,7 +47,7 @@
@see com::sun::star::frame::ToolbarController
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XSubToolbarController : com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/frame/XSynchronousDispatch.idl b/offapi/com/sun/star/frame/XSynchronousDispatch.idl
index b016e42932a3..7357bc209513 100644
--- a/offapi/com/sun/star/frame/XSynchronousDispatch.idl
+++ b/offapi/com/sun/star/frame/XSynchronousDispatch.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module frame {
//=============================================================================
/** additional interfaces for dispatch objects: allow to execute with return value
- @since OOo 2.0.0
+ @since OOo 2.0
@see XDispatch
*/
published interface XSynchronousDispatch: com::sun::star::uno::XInterface
diff --git a/offapi/com/sun/star/frame/XToolbarController.idl b/offapi/com/sun/star/frame/XToolbarController.idl
index 1ca2c8fa9278..07bf0bbd9ec2 100644
--- a/offapi/com/sun/star/frame/XToolbarController.idl
+++ b/offapi/com/sun/star/frame/XToolbarController.idl
@@ -53,7 +53,7 @@
@see com::sun::star::frame::XDispatchProvider
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XToolbarController : com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/frame/XToolbarControllerListener.idl b/offapi/com/sun/star/frame/XToolbarControllerListener.idl
index 6450d8ef910e..63b7b6ae4cca 100644
--- a/offapi/com/sun/star/frame/XToolbarControllerListener.idl
+++ b/offapi/com/sun/star/frame/XToolbarControllerListener.idl
@@ -36,7 +36,7 @@
@see com::sun::star::frame::ToolbarController
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XToolbarControllerListener : com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/frame/XTransientDocumentsDocumentContentFactory.idl b/offapi/com/sun/star/frame/XTransientDocumentsDocumentContentFactory.idl
index ec3259b4ad06..9fc7172fd203 100644
--- a/offapi/com/sun/star/frame/XTransientDocumentsDocumentContentFactory.idl
+++ b/offapi/com/sun/star/frame/XTransientDocumentsDocumentContentFactory.idl
@@ -56,7 +56,7 @@ module com { module sun { module star { module frame {
@see com::sun::star::document::OfficeDocument
@see com::sun::star::ucb::TransientDocumentsDocumentContent
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XTransientDocumentsDocumentContentFactory : com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/geometry/AffineMatrix2D.idl b/offapi/com/sun/star/geometry/AffineMatrix2D.idl
index ad122bc7ebeb..2a6c65459c4d 100644
--- a/offapi/com/sun/star/geometry/AffineMatrix2D.idl
+++ b/offapi/com/sun/star/geometry/AffineMatrix2D.idl
@@ -65,7 +65,7 @@ module com { module sun { module star { module geometry {
printer, Then, the total transformation matrix and the device
resolution determine the actual measurement unit.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct AffineMatrix2D
{
diff --git a/offapi/com/sun/star/geometry/AffineMatrix3D.idl b/offapi/com/sun/star/geometry/AffineMatrix3D.idl
index 945fccc1880c..a7d9f9b5b000 100644
--- a/offapi/com/sun/star/geometry/AffineMatrix3D.idl
+++ b/offapi/com/sun/star/geometry/AffineMatrix3D.idl
@@ -67,7 +67,7 @@ module com { module sun { module star { module geometry {
Only then the total transformation matrix (oncluding projection to 2D)
and the device resolution determine the actual measurement unit in 3D.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct AffineMatrix3D
{
diff --git a/offapi/com/sun/star/geometry/EllipticalArc.idl b/offapi/com/sun/star/geometry/EllipticalArc.idl
index 620cbead640a..3dff5ced8c9b 100644
--- a/offapi/com/sun/star/geometry/EllipticalArc.idl
+++ b/offapi/com/sun/star/geometry/EllipticalArc.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module geometry {
constrains. Thus, there are two flags indicating which one of those
ellipses should be taken.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct EllipticalArc
{
diff --git a/offapi/com/sun/star/geometry/IntegerBezierSegment2D.idl b/offapi/com/sun/star/geometry/IntegerBezierSegment2D.idl
index f26418aaf5c4..3ed8334178b4 100644
--- a/offapi/com/sun/star/geometry/IntegerBezierSegment2D.idl
+++ b/offapi/com/sun/star/geometry/IntegerBezierSegment2D.idl
@@ -41,7 +41,7 @@ module com { module sun { module star { module geometry {
ignored.
@see com.sun.star.rendering.XBezierPolyPolygon2D
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct IntegerBezierSegment2D
{
diff --git a/offapi/com/sun/star/geometry/IntegerPoint2D.idl b/offapi/com/sun/star/geometry/IntegerPoint2D.idl
index 2b1e0d83efa6..ce2d60ab51a7 100644
--- a/offapi/com/sun/star/geometry/IntegerPoint2D.idl
+++ b/offapi/com/sun/star/geometry/IntegerPoint2D.idl
@@ -34,7 +34,7 @@ module com { module sun { module star { module geometry {
This structure contains x and y integer-valued coordinates of a
two-dimensional point.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct IntegerPoint2D
{
diff --git a/offapi/com/sun/star/geometry/IntegerRectangle2D.idl b/offapi/com/sun/star/geometry/IntegerRectangle2D.idl
index 289c3f081665..a9dc994717bb 100644
--- a/offapi/com/sun/star/geometry/IntegerRectangle2D.idl
+++ b/offapi/com/sun/star/geometry/IntegerRectangle2D.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module geometry {
/** This structure contains the necessary information for a
two-dimensional rectangle.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct IntegerRectangle2D
{
diff --git a/offapi/com/sun/star/geometry/IntegerSize2D.idl b/offapi/com/sun/star/geometry/IntegerSize2D.idl
index 3c8b665fedc3..cf3e1a215adb 100644
--- a/offapi/com/sun/star/geometry/IntegerSize2D.idl
+++ b/offapi/com/sun/star/geometry/IntegerSize2D.idl
@@ -33,7 +33,7 @@ module com { module sun { module star { module geometry {
The data is stored integer-valued.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct IntegerSize2D
{
diff --git a/offapi/com/sun/star/geometry/Matrix2D.idl b/offapi/com/sun/star/geometry/Matrix2D.idl
index 4d2bacb24e2f..d0e8bf357f2a 100644
--- a/offapi/com/sun/star/geometry/Matrix2D.idl
+++ b/offapi/com/sun/star/geometry/Matrix2D.idl
@@ -68,7 +68,7 @@ module com { module sun { module star { module geometry {
printer. Then, the total transformation matrix and the device
resolution determine the actual measurement unit.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct Matrix2D
{
diff --git a/offapi/com/sun/star/geometry/RealBezierSegment2D.idl b/offapi/com/sun/star/geometry/RealBezierSegment2D.idl
index 97a9772fb006..6ec7e1b8b83d 100644
--- a/offapi/com/sun/star/geometry/RealBezierSegment2D.idl
+++ b/offapi/com/sun/star/geometry/RealBezierSegment2D.idl
@@ -41,7 +41,7 @@ module com { module sun { module star { module geometry {
ignored.
@see com.sun.star.rendering.XBezierPolyPolygon2D
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct RealBezierSegment2D
{
diff --git a/offapi/com/sun/star/geometry/RealPoint2D.idl b/offapi/com/sun/star/geometry/RealPoint2D.idl
index 8c0e594aa5e6..1ac34b7a380e 100644
--- a/offapi/com/sun/star/geometry/RealPoint2D.idl
+++ b/offapi/com/sun/star/geometry/RealPoint2D.idl
@@ -34,7 +34,7 @@ module com { module sun { module star { module geometry {
This structure contains x and y real-valued coordinates of a
two-dimensional point.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct RealPoint2D
{
diff --git a/offapi/com/sun/star/geometry/RealRectangle2D.idl b/offapi/com/sun/star/geometry/RealRectangle2D.idl
index b12ead639200..39cd783f3c08 100644
--- a/offapi/com/sun/star/geometry/RealRectangle2D.idl
+++ b/offapi/com/sun/star/geometry/RealRectangle2D.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module geometry {
/** This structure contains the necessary information for a
two-dimensional rectangle.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct RealRectangle2D
{
diff --git a/offapi/com/sun/star/geometry/RealRectangle3D.idl b/offapi/com/sun/star/geometry/RealRectangle3D.idl
index 826c73c27679..4265ae3088ae 100644
--- a/offapi/com/sun/star/geometry/RealRectangle3D.idl
+++ b/offapi/com/sun/star/geometry/RealRectangle3D.idl
@@ -32,7 +32,7 @@ module com { module sun { module star { module geometry {
/** This structure contains the necessary information for a
three-dimensional cube.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct RealRectangle3D
{
diff --git a/offapi/com/sun/star/geometry/RealSize2D.idl b/offapi/com/sun/star/geometry/RealSize2D.idl
index 5ed2fc8a34c3..dab80a5c7deb 100644
--- a/offapi/com/sun/star/geometry/RealSize2D.idl
+++ b/offapi/com/sun/star/geometry/RealSize2D.idl
@@ -33,7 +33,7 @@ module com { module sun { module star { module geometry {
The data is stored real-valued.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct RealSize2D
{
diff --git a/offapi/com/sun/star/geometry/XMapping2D.idl b/offapi/com/sun/star/geometry/XMapping2D.idl
index bf435389582a..1d2465d91f8e 100644
--- a/offapi/com/sun/star/geometry/XMapping2D.idl
+++ b/offapi/com/sun/star/geometry/XMapping2D.idl
@@ -48,7 +48,7 @@ module com { module sun { module star { module geometry {
pair of real numbers there must be another pair that is mapped
upon them.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XMapping2D : ::com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/i18n/TextConversionOption.idl b/offapi/com/sun/star/i18n/TextConversionOption.idl
index 8f70cfb08bac..d21e3e3151e1 100644
--- a/offapi/com/sun/star/i18n/TextConversionOption.idl
+++ b/offapi/com/sun/star/i18n/TextConversionOption.idl
@@ -59,7 +59,7 @@ published constants TextConversionOption
/** Use Taiwan, HongKong SAR, and Macao SAR character variants for
Simplified to Traditionary Chinese conversion
- @since OOo 2.0.0
+ @since OOo 2.0
*/
const long USE_CHARACTER_VARIANTS = 2; // (1 << 1)
};
diff --git a/offapi/com/sun/star/linguistic2/ConversionDictionary.idl b/offapi/com/sun/star/linguistic2/ConversionDictionary.idl
index ab242d2c40f6..b501478f8ebd 100644
--- a/offapi/com/sun/star/linguistic2/ConversionDictionary.idl
+++ b/offapi/com/sun/star/linguistic2/ConversionDictionary.idl
@@ -69,7 +69,7 @@ published service ConversionDictionary
[optional] interface com::sun::star::util::XFlushable;
/**
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional] interface com::sun::star::linguistic2::XConversionPropertyType;
};
diff --git a/offapi/com/sun/star/linguistic2/ConversionDictionaryType.idl b/offapi/com/sun/star/linguistic2/ConversionDictionaryType.idl
index cf5d93d49f73..cd06ee9bc5ee 100644
--- a/offapi/com/sun/star/linguistic2/ConversionDictionaryType.idl
+++ b/offapi/com/sun/star/linguistic2/ConversionDictionaryType.idl
@@ -44,7 +44,7 @@ constants ConversionDictionaryType
/** Dictionary type for the conversion between Simplified and Traditionary Chinese
- @since OOo 2.0.0
+ @since OOo 2.0
*/
const short SCHINESE_TCHINESE = 2;
};
diff --git a/offapi/com/sun/star/linguistic2/ConversionPropertyType.idl b/offapi/com/sun/star/linguistic2/ConversionPropertyType.idl
index e0e2e37357fe..424ece6e23d6 100644
--- a/offapi/com/sun/star/linguistic2/ConversionPropertyType.idl
+++ b/offapi/com/sun/star/linguistic2/ConversionPropertyType.idl
@@ -37,7 +37,7 @@ module com { module sun { module star { module linguistic2 {
@see com::sun::star::linguistic2::XConversionDictionary
@see com::sun::star::linguistic2::XConversionPropertyType
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants ConversionPropertyType
{
diff --git a/offapi/com/sun/star/linguistic2/XConversionPropertyType.idl b/offapi/com/sun/star/linguistic2/XConversionPropertyType.idl
index 0a847f046e78..7dcccf3d05f8 100644
--- a/offapi/com/sun/star/linguistic2/XConversionPropertyType.idl
+++ b/offapi/com/sun/star/linguistic2/XConversionPropertyType.idl
@@ -56,7 +56,7 @@ module com { module sun { module star { module linguistic2 {
@see com::sun::star::linguistic2::XConversionDictionary
@see com::sun::star::linguistic2::ConversionPropertyType
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published interface XConversionPropertyType : com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/mail/MailAttachment.idl b/offapi/com/sun/star/mail/MailAttachment.idl
index a30aadfa0304..ef45f157ac31 100644
--- a/offapi/com/sun/star/mail/MailAttachment.idl
+++ b/offapi/com/sun/star/mail/MailAttachment.idl
@@ -39,7 +39,7 @@ module com { module sun { module star { module mail {
@see ::com::sun::star::mail::XMailMessage
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct MailAttachment
{
diff --git a/offapi/com/sun/star/mail/MailException.idl b/offapi/com/sun/star/mail/MailException.idl
index 5f5bfff11f81..2022c2aee483 100644
--- a/offapi/com/sun/star/mail/MailException.idl
+++ b/offapi/com/sun/star/mail/MailException.idl
@@ -38,7 +38,7 @@ module com { module sun { module star { module mail {
An MailException is the base of all mail related
exceptions.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
exception MailException: com::sun::star::uno::Exception
{
diff --git a/offapi/com/sun/star/mail/MailMessage.idl b/offapi/com/sun/star/mail/MailMessage.idl
index 2112865d00f8..71dea28cb36c 100644
--- a/offapi/com/sun/star/mail/MailMessage.idl
+++ b/offapi/com/sun/star/mail/MailMessage.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module mail {
interface XMailMessage;
/**
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service MailMessage: XMailMessage
{
diff --git a/offapi/com/sun/star/mail/MailServer.idl b/offapi/com/sun/star/mail/MailServer.idl
index f6b448946eb4..2ae7afc016bf 100644
--- a/offapi/com/sun/star/mail/MailServer.idl
+++ b/offapi/com/sun/star/mail/MailServer.idl
@@ -37,7 +37,7 @@ module com { module sun { module star { module mail {
interface XMailServer;
/**
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service MailServer: XMailServer
{
diff --git a/offapi/com/sun/star/mail/MailServiceProvider.idl b/offapi/com/sun/star/mail/MailServiceProvider.idl
index af48d9e9b3e7..0645d9556e66 100644
--- a/offapi/com/sun/star/mail/MailServiceProvider.idl
+++ b/offapi/com/sun/star/mail/MailServiceProvider.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module mail {
interface XMailService;
/**
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service MailServiceProvider: XMailServiceProvider
{
diff --git a/offapi/com/sun/star/mail/MailServiceType.idl b/offapi/com/sun/star/mail/MailServiceType.idl
index 94aa985a06c2..ecb960b3ed12 100644
--- a/offapi/com/sun/star/mail/MailServiceType.idl
+++ b/offapi/com/sun/star/mail/MailServiceType.idl
@@ -31,7 +31,7 @@
module com { module sun { module star { module mail {
/**
- @since OOo 2.0.0
+ @since OOo 2.0
*/
enum MailServiceType
{
diff --git a/offapi/com/sun/star/mail/NoMailServiceProviderException.idl b/offapi/com/sun/star/mail/NoMailServiceProviderException.idl
index a8e3d52396b9..f1a2074d66ea 100644
--- a/offapi/com/sun/star/mail/NoMailServiceProviderException.idl
+++ b/offapi/com/sun/star/mail/NoMailServiceProviderException.idl
@@ -41,7 +41,7 @@ module com { module sun { module star { module mail {
@see com::sun::star::mail::MailService
- @since OOo 2.0.0
+ @since OOo 2.0
*/
exception NoMailServiceProviderException: com::sun::star::mail::MailException
{
diff --git a/offapi/com/sun/star/mail/NoMailTransportProviderException.idl b/offapi/com/sun/star/mail/NoMailTransportProviderException.idl
index 3cad64b8f900..fa275ed7f7f2 100644
--- a/offapi/com/sun/star/mail/NoMailTransportProviderException.idl
+++ b/offapi/com/sun/star/mail/NoMailTransportProviderException.idl
@@ -41,7 +41,7 @@ module com { module sun { module star { module mail {
@see com::sun::star::mail::MailServer
- @since OOo 2.0.0
+ @since OOo 2.0
*/
exception NoMailTransportProviderException: com::sun::star::mail::MailException
{
diff --git a/offapi/com/sun/star/mail/SendMailMessageFailedException.idl b/offapi/com/sun/star/mail/SendMailMessageFailedException.idl
index 8987bf587596..91a6cb29b5d8 100644
--- a/offapi/com/sun/star/mail/SendMailMessageFailedException.idl
+++ b/offapi/com/sun/star/mail/SendMailMessageFailedException.idl
@@ -42,7 +42,7 @@ module com { module sun { module star { module mail {
@see com::sun::star::mail::XMailServer
- @since OOo 2.0.0
+ @since OOo 2.0
*/
exception SendMailMessageFailedException: com::sun::star::mail::MailException
{
diff --git a/offapi/com/sun/star/mail/XAuthenticator.idl b/offapi/com/sun/star/mail/XAuthenticator.idl
index 564ad4e484f1..6ae813a161ef 100644
--- a/offapi/com/sun/star/mail/XAuthenticator.idl
+++ b/offapi/com/sun/star/mail/XAuthenticator.idl
@@ -40,7 +40,7 @@ module com { module sun { module star { module mail {
An implementation of this interface may for instance show a
dialog to query the user for the necessary data.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XAuthenticator: ::com::sun::star::uno::XInterface {
diff --git a/offapi/com/sun/star/mail/XConnectionListener.idl b/offapi/com/sun/star/mail/XConnectionListener.idl
index 5ca8511f7c97..cd5153f5e96e 100644
--- a/offapi/com/sun/star/mail/XConnectionListener.idl
+++ b/offapi/com/sun/star/mail/XConnectionListener.idl
@@ -43,7 +43,7 @@ module com { module sun { module star { module mail {
@see com::sun::star::mail::XMailServer
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XConnectionListener: ::com::sun::star::lang::XEventListener {
diff --git a/offapi/com/sun/star/mail/XMailMessage.idl b/offapi/com/sun/star/mail/XMailMessage.idl
index b87ea1ca6c5c..abc3017297d7 100644
--- a/offapi/com/sun/star/mail/XMailMessage.idl
+++ b/offapi/com/sun/star/mail/XMailMessage.idl
@@ -47,7 +47,7 @@ module com { module sun { module star { module mail {
@see com::sun::star::mail::XMailServer
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XMailMessage: ::com::sun::star::uno::XInterface {
diff --git a/offapi/com/sun/star/mail/XMailServer.idl b/offapi/com/sun/star/mail/XMailServer.idl
index 8d0ad232ed61..401a13424566 100644
--- a/offapi/com/sun/star/mail/XMailServer.idl
+++ b/offapi/com/sun/star/mail/XMailServer.idl
@@ -95,7 +95,7 @@ module com { module sun { module star { module mail {
@see com::sun::star::mail::XMailMessage
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XMailServer: ::com::sun::star::uno::XInterface {
diff --git a/offapi/com/sun/star/mail/XMailService.idl b/offapi/com/sun/star/mail/XMailService.idl
index cc8ba05e0703..f06937b79d57 100644
--- a/offapi/com/sun/star/mail/XMailService.idl
+++ b/offapi/com/sun/star/mail/XMailService.idl
@@ -82,7 +82,7 @@ module com { module sun { module star { module mail {
/**
Represents a mail server abstraction.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XMailService: ::com::sun::star::uno::XInterface {
diff --git a/offapi/com/sun/star/mail/XMailServiceProvider.idl b/offapi/com/sun/star/mail/XMailServiceProvider.idl
index 5f389a57ee58..5430a45fced0 100644
--- a/offapi/com/sun/star/mail/XMailServiceProvider.idl
+++ b/offapi/com/sun/star/mail/XMailServiceProvider.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module mail {
/**
A factory for creating different mail services.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XMailServiceProvider: ::com::sun::star::uno::XInterface {
diff --git a/offapi/com/sun/star/mail/XSmtpService.idl b/offapi/com/sun/star/mail/XSmtpService.idl
index 278e9ebe85f1..9ffec785bf09 100644
--- a/offapi/com/sun/star/mail/XSmtpService.idl
+++ b/offapi/com/sun/star/mail/XSmtpService.idl
@@ -64,7 +64,7 @@ module com { module sun { module star { module mail {
@see com::sun::star::mail::XMailService
@see com::sun::star::mail::XMailMessage
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XSmtpService: ::com::sun::star::mail::XMailService {
diff --git a/offapi/com/sun/star/rendering/AnimationAttributes.idl b/offapi/com/sun/star/rendering/AnimationAttributes.idl
index e1d2f1a1eeb5..330ec3d75b30 100644
--- a/offapi/com/sun/star/rendering/AnimationAttributes.idl
+++ b/offapi/com/sun/star/rendering/AnimationAttributes.idl
@@ -35,7 +35,7 @@ module com { module sun { module star { module rendering {
/** This structure contains attributes needed to run an animation.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct AnimationAttributes
{
diff --git a/offapi/com/sun/star/rendering/AnimationRepeat.idl b/offapi/com/sun/star/rendering/AnimationRepeat.idl
index 8bde41c46b99..2f72a6b69fbc 100644
--- a/offapi/com/sun/star/rendering/AnimationRepeat.idl
+++ b/offapi/com/sun/star/rendering/AnimationRepeat.idl
@@ -35,7 +35,7 @@ module com { module sun { module star { module rendering {
animation is driven through, thus defining the possible repeat
modes.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants AnimationRepeat
{
diff --git a/offapi/com/sun/star/rendering/CanvasFactory.idl b/offapi/com/sun/star/rendering/CanvasFactory.idl
index d735dc368855..7935d5f30b1a 100644
--- a/offapi/com/sun/star/rendering/CanvasFactory.idl
+++ b/offapi/com/sun/star/rendering/CanvasFactory.idl
@@ -49,7 +49,7 @@ module com { module sun { module star { module rendering {
a service name to try first.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service CanvasFactory : com::sun::star::lang::XMultiComponentFactory;
diff --git a/offapi/com/sun/star/rendering/Caret.idl b/offapi/com/sun/star/rendering/Caret.idl
index 7d04213987ee..8d8999160ac2 100644
--- a/offapi/com/sun/star/rendering/Caret.idl
+++ b/offapi/com/sun/star/rendering/Caret.idl
@@ -34,7 +34,7 @@ module com { module sun { module star { module rendering {
This structure is used from the XTextLayout interface
to transport information regarding a text caret.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct Caret
{
diff --git a/offapi/com/sun/star/rendering/CompositeOperation.idl b/offapi/com/sun/star/rendering/CompositeOperation.idl
index 0c1c4448ee05..169e7af6517c 100644
--- a/offapi/com/sun/star/rendering/CompositeOperation.idl
+++ b/offapi/com/sun/star/rendering/CompositeOperation.idl
@@ -44,7 +44,7 @@ module com { module sun { module star { module rendering {
different composite modes (wherein Aa and Ab denote source and
destination alpha, respectively).
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants CompositeOperation
{
diff --git a/offapi/com/sun/star/rendering/EmphasisMark.idl b/offapi/com/sun/star/rendering/EmphasisMark.idl
index be0847a0dcd2..fe9d3d683f55 100644
--- a/offapi/com/sun/star/rendering/EmphasisMark.idl
+++ b/offapi/com/sun/star/rendering/EmphasisMark.idl
@@ -34,7 +34,7 @@ module com { module sun { module star { module rendering {
These constants control the automatic rendering of emphasis marks
for a given font.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants EmphasisMark
{
diff --git a/offapi/com/sun/star/rendering/FillRule.idl b/offapi/com/sun/star/rendering/FillRule.idl
index ff0aab58ab9a..ffea263b4bb3 100644
--- a/offapi/com/sun/star/rendering/FillRule.idl
+++ b/offapi/com/sun/star/rendering/FillRule.idl
@@ -32,7 +32,7 @@ module com { module sun { module star { module rendering {
/** Determines which algorithm to use when determining inside and
outside of filled poly-polygons.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
enum FillRule
{
diff --git a/offapi/com/sun/star/rendering/FloatingPointBitmapFormat.idl b/offapi/com/sun/star/rendering/FloatingPointBitmapFormat.idl
index 7fd0a972f56f..0c10b65ff572 100644
--- a/offapi/com/sun/star/rendering/FloatingPointBitmapFormat.idl
+++ b/offapi/com/sun/star/rendering/FloatingPointBitmapFormat.idl
@@ -31,7 +31,7 @@ module com { module sun { module star { module rendering {
/** This structure describes format of a floating point bitmap.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants FloatingPointBitmapFormat
{
diff --git a/offapi/com/sun/star/rendering/FloatingPointBitmapLayout.idl b/offapi/com/sun/star/rendering/FloatingPointBitmapLayout.idl
index bef73dc7fc35..714a20e8bf3e 100644
--- a/offapi/com/sun/star/rendering/FloatingPointBitmapLayout.idl
+++ b/offapi/com/sun/star/rendering/FloatingPointBitmapLayout.idl
@@ -42,7 +42,7 @@ module com { module sun { module star { module rendering {
This structure collects all necessary information to describe the
memory layout of a bitmap having floating point color channels
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct FloatingPointBitmapLayout
{
diff --git a/offapi/com/sun/star/rendering/FontInfo.idl b/offapi/com/sun/star/rendering/FontInfo.idl
index 1492168d45bc..ed2beaba1c5b 100644
--- a/offapi/com/sun/star/rendering/FontInfo.idl
+++ b/offapi/com/sun/star/rendering/FontInfo.idl
@@ -40,7 +40,7 @@ module com { module sun { module star { module rendering {
/** This structure provides information about a specific font.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct FontInfo
{
diff --git a/offapi/com/sun/star/rendering/FontMetrics.idl b/offapi/com/sun/star/rendering/FontMetrics.idl
index 3339c17d9bdd..71b8f9d3dce6 100644
--- a/offapi/com/sun/star/rendering/FontMetrics.idl
+++ b/offapi/com/sun/star/rendering/FontMetrics.idl
@@ -49,7 +49,7 @@ module com { module sun { module star { module rendering {
underlying font technology, actual device output might be off by
up to one device pixel from the transformed metrics.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct FontMetrics
{
diff --git a/offapi/com/sun/star/rendering/FontRequest.idl b/offapi/com/sun/star/rendering/FontRequest.idl
index a39871968297..b9da5f1425d4 100644
--- a/offapi/com/sun/star/rendering/FontRequest.idl
+++ b/offapi/com/sun/star/rendering/FontRequest.idl
@@ -48,7 +48,7 @@ module com { module sun { module star { module rendering {
FontInfo::StyleName empty, if font selection
should only happen via the PANOSE description.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct FontRequest
{
diff --git a/offapi/com/sun/star/rendering/IntegerBitmapLayout.idl b/offapi/com/sun/star/rendering/IntegerBitmapLayout.idl
index 45787bc206e7..fae628f0d9b6 100644
--- a/offapi/com/sun/star/rendering/IntegerBitmapLayout.idl
+++ b/offapi/com/sun/star/rendering/IntegerBitmapLayout.idl
@@ -42,7 +42,7 @@ module com { module sun { module star { module rendering {
This structure collects all necessary information to describe the
memory layout of a bitmap having integer color channels
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct IntegerBitmapLayout
{
diff --git a/offapi/com/sun/star/rendering/InterpolationMode.idl b/offapi/com/sun/star/rendering/InterpolationMode.idl
index 01dc1e14c9a2..00fc8e7e4cd0 100644
--- a/offapi/com/sun/star/rendering/InterpolationMode.idl
+++ b/offapi/com/sun/star/rendering/InterpolationMode.idl
@@ -36,7 +36,7 @@ module com { module sun { module star { module rendering {
takes place between two consecutive frames of a discrete animation
sequence.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants InterpolationMode
{
diff --git a/offapi/com/sun/star/rendering/PathCapType.idl b/offapi/com/sun/star/rendering/PathCapType.idl
index e436eaa738db..e72f9a24dff2 100644
--- a/offapi/com/sun/star/rendering/PathCapType.idl
+++ b/offapi/com/sun/star/rendering/PathCapType.idl
@@ -36,7 +36,7 @@ module com { module sun { module star { module rendering {
different shapes (which are, of course, only visible for strokes
wider than one device pixel).
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants PathCapType
{
diff --git a/offapi/com/sun/star/rendering/PathJoinType.idl b/offapi/com/sun/star/rendering/PathJoinType.idl
index b2fc8d31d747..99e2fad61bb4 100644
--- a/offapi/com/sun/star/rendering/PathJoinType.idl
+++ b/offapi/com/sun/star/rendering/PathJoinType.idl
@@ -35,7 +35,7 @@ module com { module sun { module star { module rendering {
several different shapes (which are of course only visible for
strokes wider than one device pixel).
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants PathJoinType
{
diff --git a/offapi/com/sun/star/rendering/RenderState.idl b/offapi/com/sun/star/rendering/RenderState.idl
index 7ba8d8e35536..ecb5b169d3a3 100644
--- a/offapi/com/sun/star/rendering/RenderState.idl
+++ b/offapi/com/sun/star/rendering/RenderState.idl
@@ -45,7 +45,7 @@ interface XPolyPolygon2D;
state, i.e. the common setup required to render each individual
XCanvas primitive.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct RenderState
{
diff --git a/offapi/com/sun/star/rendering/RenderingIntent.idl b/offapi/com/sun/star/rendering/RenderingIntent.idl
index 51ed8a96767b..25ebd6046cc1 100644
--- a/offapi/com/sun/star/rendering/RenderingIntent.idl
+++ b/offapi/com/sun/star/rendering/RenderingIntent.idl
@@ -36,7 +36,7 @@ module com { module sun { module star { module rendering {
href="http://en.wikipedia.org/wiki/Rendering_intent">Wikipedia
for a thorough explanation.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants RenderingIntent
{
diff --git a/offapi/com/sun/star/rendering/RepaintResult.idl b/offapi/com/sun/star/rendering/RepaintResult.idl
index 9e221b3ff504..8b66654150fa 100644
--- a/offapi/com/sun/star/rendering/RepaintResult.idl
+++ b/offapi/com/sun/star/rendering/RepaintResult.idl
@@ -32,7 +32,7 @@ module com { module sun { module star { module rendering {
/** These constants specify the result of the
XCachedPrimitive render operation.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants RepaintResult
{
diff --git a/offapi/com/sun/star/rendering/StringContext.idl b/offapi/com/sun/star/rendering/StringContext.idl
index 54c4b5868e98..3f9c833ceb74 100644
--- a/offapi/com/sun/star/rendering/StringContext.idl
+++ b/offapi/com/sun/star/rendering/StringContext.idl
@@ -36,7 +36,7 @@ module com { module sun { module star { module rendering {
here, because in several languages, glyph selection is context
dependent.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct StringContext
{
diff --git a/offapi/com/sun/star/rendering/TextDirection.idl b/offapi/com/sun/star/rendering/TextDirection.idl
index 33eea1fd4036..cec5d680be0f 100644
--- a/offapi/com/sun/star/rendering/TextDirection.idl
+++ b/offapi/com/sun/star/rendering/TextDirection.idl
@@ -33,7 +33,7 @@ module com { module sun { module star { module rendering {
This also changes the interpretation of the start point.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants TextDirection
{
diff --git a/offapi/com/sun/star/rendering/TextHit.idl b/offapi/com/sun/star/rendering/TextHit.idl
index 7451086d57a3..2b0c5305b925 100644
--- a/offapi/com/sun/star/rendering/TextHit.idl
+++ b/offapi/com/sun/star/rendering/TextHit.idl
@@ -34,7 +34,7 @@ module com { module sun { module star { module rendering {
This structure is used from the XTextLayout interface
to transport information regarding hit tests.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct TextHit
{
diff --git a/offapi/com/sun/star/rendering/Texture.idl b/offapi/com/sun/star/rendering/Texture.idl
index a8eacf515c76..ea033b3e21a8 100644
--- a/offapi/com/sun/star/rendering/Texture.idl
+++ b/offapi/com/sun/star/rendering/Texture.idl
@@ -51,7 +51,7 @@ interface XParametricPolyPolygon2D;
as the hatch and the gradient. The transformation member can then
be used to scale the complete texture as it fits suit.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct Texture
{
diff --git a/offapi/com/sun/star/rendering/TexturingMode.idl b/offapi/com/sun/star/rendering/TexturingMode.idl
index b44a78eae6ce..10ca7679caa5 100644
--- a/offapi/com/sun/star/rendering/TexturingMode.idl
+++ b/offapi/com/sun/star/rendering/TexturingMode.idl
@@ -32,7 +32,7 @@ module com { module sun { module star { module rendering {
/** Enumeration of possible values to spread a texture across a
primitive.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants TexturingMode
{
diff --git a/offapi/com/sun/star/rendering/ViewState.idl b/offapi/com/sun/star/rendering/ViewState.idl
index b0ed7b62d3b5..fe4de1fc17bf 100644
--- a/offapi/com/sun/star/rendering/ViewState.idl
+++ b/offapi/com/sun/star/rendering/ViewState.idl
@@ -41,7 +41,7 @@ interface XPolyPolygon2D;
i.e. the invariant setup used when painting a whole view of
something.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
struct ViewState
{
diff --git a/offapi/com/sun/star/rendering/VolatileContentDestroyedException.idl b/offapi/com/sun/star/rendering/VolatileContentDestroyedException.idl
index 23e0531f876f..718444f91a25 100644
--- a/offapi/com/sun/star/rendering/VolatileContentDestroyedException.idl
+++ b/offapi/com/sun/star/rendering/VolatileContentDestroyedException.idl
@@ -38,7 +38,7 @@ module com { module sun { module star { module rendering {
When accessing or rendering XVolatileBitmap data, that has
been invalidated by the system, this exception will be thrown.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
exception VolatileContentDestroyedException : ::com::sun::star::uno::Exception
{
diff --git a/offapi/com/sun/star/rendering/XAnimatedSprite.idl b/offapi/com/sun/star/rendering/XAnimatedSprite.idl
index 6824b36e4f07..aa10e68f9ae1 100644
--- a/offapi/com/sun/star/rendering/XAnimatedSprite.idl
+++ b/offapi/com/sun/star/rendering/XAnimatedSprite.idl
@@ -54,7 +54,7 @@ module com { module sun { module star { module rendering {
This interface can be used to control an animated sprite object on
an XSpriteCanvas. Sprites are moving, animated objects.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XAnimatedSprite : XSprite
{
diff --git a/offapi/com/sun/star/rendering/XAnimation.idl b/offapi/com/sun/star/rendering/XAnimation.idl
index 004f350ef564..8dd196bb7b6e 100644
--- a/offapi/com/sun/star/rendering/XAnimation.idl
+++ b/offapi/com/sun/star/rendering/XAnimation.idl
@@ -58,7 +58,7 @@ module com { module sun { module star { module rendering {
is used by the XCanvas interface to render generic
animations.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XAnimation : ::com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/rendering/XBezierPolyPolygon2D.idl b/offapi/com/sun/star/rendering/XBezierPolyPolygon2D.idl
index 973d33e8dfd1..8d245d1c00a2 100644
--- a/offapi/com/sun/star/rendering/XBezierPolyPolygon2D.idl
+++ b/offapi/com/sun/star/rendering/XBezierPolyPolygon2D.idl
@@ -54,7 +54,7 @@ module com { module sun { module star { module rendering {
By convention, a RealBezierSegment2D is a straight
line segment, if all three contained points are strictly equal.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XBitmap : ::com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/rendering/XBitmapCanvas.idl b/offapi/com/sun/star/rendering/XBitmapCanvas.idl
index b87be2ae8394..fed3cd4238dc 100644
--- a/offapi/com/sun/star/rendering/XBitmapCanvas.idl
+++ b/offapi/com/sun/star/rendering/XBitmapCanvas.idl
@@ -59,7 +59,7 @@ module com { module sun { module star { module rendering {
bitmapped canvases, where additional methods for accessing and
moving of bitmap content are provided.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XBitmapCanvas : XCanvas
{
diff --git a/offapi/com/sun/star/rendering/XBitmapPalette.idl b/offapi/com/sun/star/rendering/XBitmapPalette.idl
index b89bc8221cd0..f36629285d9a 100644
--- a/offapi/com/sun/star/rendering/XBitmapPalette.idl
+++ b/offapi/com/sun/star/rendering/XBitmapPalette.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module rendering {
/** Interface to access the palette of a color-indexed bitmap.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XBitmapPalette : ::com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/rendering/XBufferController.idl b/offapi/com/sun/star/rendering/XBufferController.idl
index d4222e263aac..93bfea9158f3 100644
--- a/offapi/com/sun/star/rendering/XBufferController.idl
+++ b/offapi/com/sun/star/rendering/XBufferController.idl
@@ -42,7 +42,7 @@ module com { module sun { module star { module rendering {
This interface provides methods to enable and control
double/multi-buffering facilities on screen devices.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XBufferController : ::com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/rendering/XCachedPrimitive.idl b/offapi/com/sun/star/rendering/XCachedPrimitive.idl
index c24a74df3135..9793374ad913 100644
--- a/offapi/com/sun/star/rendering/XCachedPrimitive.idl
+++ b/offapi/com/sun/star/rendering/XCachedPrimitive.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module rendering {
This interface provides a method to quickly redraw some
XCanvas primitives, using cached data.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XCachedPrimitive : ::com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/rendering/XCanvas.idl b/offapi/com/sun/star/rendering/XCanvas.idl
index e88de735ce7c..e731e535d3c9 100644
--- a/offapi/com/sun/star/rendering/XCanvas.idl
+++ b/offapi/com/sun/star/rendering/XCanvas.idl
@@ -148,7 +148,7 @@ interface XTextLayout;
getDevice() call) - they will then internally
optimize to the underlying graphics subsystem.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XCanvas : ::com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/rendering/XIntegerBitmap.idl b/offapi/com/sun/star/rendering/XIntegerBitmap.idl
index c56d46d948c1..b416d30debd1 100644
--- a/offapi/com/sun/star/rendering/XIntegerBitmap.idl
+++ b/offapi/com/sun/star/rendering/XIntegerBitmap.idl
@@ -52,7 +52,7 @@ module com { module sun { module star { module rendering {
/** This is a specialized interface for bitmaps having integer color
channels.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XIntegerBitmap : XIntegerReadOnlyBitmap
{
diff --git a/offapi/com/sun/star/rendering/XLinePolyPolygon2D.idl b/offapi/com/sun/star/rendering/XLinePolyPolygon2D.idl
index a44e1d4fa7dd..bbd2606297ba 100644
--- a/offapi/com/sun/star/rendering/XLinePolyPolygon2D.idl
+++ b/offapi/com/sun/star/rendering/XLinePolyPolygon2D.idl
@@ -44,7 +44,7 @@ module com { module sun { module star { module rendering {
/** Specialized interface for a 2D poly-polygon containing only straight line segments.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XLinePolyPolygon2D : XPolyPolygon2D
{
diff --git a/offapi/com/sun/star/rendering/XPolyPolygon2D.idl b/offapi/com/sun/star/rendering/XPolyPolygon2D.idl
index 47b61210d3fd..dc99fabee053 100644
--- a/offapi/com/sun/star/rendering/XPolyPolygon2D.idl
+++ b/offapi/com/sun/star/rendering/XPolyPolygon2D.idl
@@ -47,7 +47,7 @@ module com { module sun { module star { module rendering {
/** Generic interface for poly-polygons in 2D.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XPolyPolygon2D : ::com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/rendering/XTextLayout.idl b/offapi/com/sun/star/rendering/XTextLayout.idl
index e4e2d2e76eca..062a1c86a4ba 100644
--- a/offapi/com/sun/star/rendering/XTextLayout.idl
+++ b/offapi/com/sun/star/rendering/XTextLayout.idl
@@ -90,7 +90,7 @@ interface XPolyPolygon2D;
might be off by up to one device pixel from the transformed
metrics.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XTextLayout : ::com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/report/XReportControlFormat.idl b/offapi/com/sun/star/report/XReportControlFormat.idl
index 608b1e7aa5f4..672ff99549e7 100644
--- a/offapi/com/sun/star/report/XReportControlFormat.idl
+++ b/offapi/com/sun/star/report/XReportControlFormat.idl
@@ -143,7 +143,7 @@ interface XReportControlFormat
/** If this optional property is , then the characters are invisible.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[attribute,bound] boolean CharHidden
{
diff --git a/offapi/com/sun/star/resource/OfficeResourceLoader.idl b/offapi/com/sun/star/resource/OfficeResourceLoader.idl
index 7930a34e5571..20178ca533e7 100644
--- a/offapi/com/sun/star/resource/OfficeResourceLoader.idl
+++ b/offapi/com/sun/star/resource/OfficeResourceLoader.idl
@@ -70,7 +70,7 @@ module com { module sun { module star { module resource {
OpenOffice.org build), you are strongly discouraged from using the OfficeResoureLoader
service in a component which targets more than one particular OpenOffice.org build.
- @since OpenOffice.org 2.0.3
+ @since OOo 2.0.3
*/
singleton OfficeResourceLoader : XResourceBundleLoader;
diff --git a/offapi/com/sun/star/script/browse/BrowseNode.idl b/offapi/com/sun/star/script/browse/BrowseNode.idl
index fa209b84efa1..502f16f5799a 100755
--- a/offapi/com/sun/star/script/browse/BrowseNode.idl
+++ b/offapi/com/sun/star/script/browse/BrowseNode.idl
@@ -46,7 +46,7 @@ module com {
XBrowseNode interface. XInvocation is an optional interface that is used
to execute macros, or to create/delete/rename macros or macro containers.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service BrowseNode
{
diff --git a/offapi/com/sun/star/script/browse/BrowseNodeFactory.idl b/offapi/com/sun/star/script/browse/BrowseNodeFactory.idl
index b54d8e7e6137..92897a44080a 100755
--- a/offapi/com/sun/star/script/browse/BrowseNodeFactory.idl
+++ b/offapi/com/sun/star/script/browse/BrowseNodeFactory.idl
@@ -37,7 +37,7 @@ module com { module sun { module star { module script { module browse {
/**
This service is used to create Root XBrowseNodes.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service BrowseNodeFactory
{
@@ -52,7 +52,7 @@ service BrowseNodeFactory
/singletons/com.sun.star.script.theBrowseNodeFactory
- @since OOo 2.0.0
+ @since OOo 2.0
*/
singleton theBrowseNodeFactory
{
diff --git a/offapi/com/sun/star/sdb/DatabaseContext.idl b/offapi/com/sun/star/sdb/DatabaseContext.idl
index d2e660058e70..ac990e02c709 100644
--- a/offapi/com/sun/star/sdb/DatabaseContext.idl
+++ b/offapi/com/sun/star/sdb/DatabaseContext.idl
@@ -96,7 +96,7 @@ published service DatabaseContext
are maintained, so if possible at all, you should use this interface, instead of modifying or
querying the configuration data directly.
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
[optional] interface XDatabaseRegistrations;
};
diff --git a/offapi/com/sun/star/sdb/DatabaseDocument.idl b/offapi/com/sun/star/sdb/DatabaseDocument.idl
index b7a626579ec5..6690c2929de4 100644
--- a/offapi/com/sun/star/sdb/DatabaseDocument.idl
+++ b/offapi/com/sun/star/sdb/DatabaseDocument.idl
@@ -43,7 +43,7 @@
module com { module sun { module star { module sdb {
/** specifies a link to a document associated with a database document
- @since OOo 2.0.0
+ @since OOo 2.0
@deprecated
*/
published service DatabaseDocument
diff --git a/offapi/com/sun/star/sdb/DocumentSaveRequest.idl b/offapi/com/sun/star/sdb/DocumentSaveRequest.idl
index f3a90b4f467f..a2a579fc47ac 100644
--- a/offapi/com/sun/star/sdb/DocumentSaveRequest.idl
+++ b/offapi/com/sun/star/sdb/DocumentSaveRequest.idl
@@ -44,7 +44,7 @@
Usually thrown if someone tries to save a document which hasn't a name yet.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
exception DocumentSaveRequest: com::sun::star::task::ClassifiedInteractionRequest
{
diff --git a/offapi/com/sun/star/sdb/OfficeDatabaseDocument.idl b/offapi/com/sun/star/sdb/OfficeDatabaseDocument.idl
index afbf45b192bb..1d12f2dca011 100644
--- a/offapi/com/sun/star/sdb/OfficeDatabaseDocument.idl
+++ b/offapi/com/sun/star/sdb/OfficeDatabaseDocument.idl
@@ -63,7 +63,7 @@ module com { module sun { module star { module sdb {
@see com::sun::star::sdb::XOfficeDatabaseDocument
@see com::sun::star::document::OfficeDocument
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service OfficeDatabaseDocument
{
diff --git a/offapi/com/sun/star/sdb/XDatabaseRegistrations.idl b/offapi/com/sun/star/sdb/XDatabaseRegistrations.idl
index 81f878d2441d..8151e7e22de9 100644
--- a/offapi/com/sun/star/sdb/XDatabaseRegistrations.idl
+++ b/offapi/com/sun/star/sdb/XDatabaseRegistrations.idl
@@ -47,7 +47,7 @@ interface XDatabaseRegistrationsListener;
if possible at all, use this interface, instead of modifying or querying the configuration
data directly.
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
interface XDatabaseRegistrations
{
diff --git a/offapi/com/sun/star/sdb/XDatabaseRegistrationsListener.idl b/offapi/com/sun/star/sdb/XDatabaseRegistrationsListener.idl
index 57135f8de012..9ba6c6e6df9a 100644
--- a/offapi/com/sun/star/sdb/XDatabaseRegistrationsListener.idl
+++ b/offapi/com/sun/star/sdb/XDatabaseRegistrationsListener.idl
@@ -41,7 +41,7 @@ module com { module sun { module star { module sdb {
@see XDatabaseRegistrations
- @since OpenOffice.org 3.3
+ @since OOo 3.3
*/
interface XDatabaseRegistrationsListener : ::com::sun::star::lang::XEventListener
{
diff --git a/offapi/com/sun/star/sdb/XInteractionDocumentSave.idl b/offapi/com/sun/star/sdb/XInteractionDocumentSave.idl
index e4de2af39d98..4d89d66a6ca4 100644
--- a/offapi/com/sun/star/sdb/XInteractionDocumentSave.idl
+++ b/offapi/com/sun/star/sdb/XInteractionDocumentSave.idl
@@ -43,7 +43,7 @@ module com { module sun { module star { module sdb {
This continuation is typically used in conjunction with a
DocumentSaveRequest.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XInteractionDocumentSave: com::sun::star::task::XInteractionContinuation
{
diff --git a/offapi/com/sun/star/sdb/application/DatabaseObject.idl b/offapi/com/sun/star/sdb/application/DatabaseObject.idl
index 3239d69a58f4..46f9f95a7500 100644
--- a/offapi/com/sun/star/sdb/application/DatabaseObject.idl
+++ b/offapi/com/sun/star/sdb/application/DatabaseObject.idl
@@ -40,7 +40,7 @@ module com { module sun { module star { module sdb { module application {
/** denotes different objects within a database document
- @since OOo 2.2.0
+ @since OOo 2.2
@see DatabaseObjectContainer
*/
diff --git a/offapi/com/sun/star/sdb/application/XDatabaseDocumentUI.idl b/offapi/com/sun/star/sdb/application/XDatabaseDocumentUI.idl
index 7c14255045e1..088ed540897c 100644
--- a/offapi/com/sun/star/sdb/application/XDatabaseDocumentUI.idl
+++ b/offapi/com/sun/star/sdb/application/XDatabaseDocumentUI.idl
@@ -52,7 +52,7 @@ module com { module sun { module star { module sdb { module application {
@see com::sun::star::frame::Controller
@see com::sun::star::sdb::DatabaseDocument
- @since OOo 2.2.0
+ @since OOo 2.2
*/
interface XDatabaseDocumentUI
{
diff --git a/offapi/com/sun/star/sdb/application/XTableUIProvider.idl b/offapi/com/sun/star/sdb/application/XTableUIProvider.idl
index ec31ace643aa..85333795d8d2 100644
--- a/offapi/com/sun/star/sdb/application/XTableUIProvider.idl
+++ b/offapi/com/sun/star/sdb/application/XTableUIProvider.idl
@@ -45,7 +45,7 @@ interface XDatabaseDocumentUI;
@see com::sun::star::sdb::Connection
- @since OOo 2.2.0
+ @since OOo 2.2
*/
interface XTableUIProvider
{
diff --git a/offapi/com/sun/star/sdbc/DataType.idl b/offapi/com/sun/star/sdbc/DataType.idl
index 2d07982530f6..9d3bb20e5c7b 100644
--- a/offapi/com/sun/star/sdbc/DataType.idl
+++ b/offapi/com/sun/star/sdbc/DataType.idl
@@ -133,7 +133,7 @@ published constants DataType
/** identifies the generic SQL type
* BOOLEAN.
*
- * @since OOo 2.0.0
+ * @since OOo 2.0
*/
const long BOOLEAN = 16;
};
diff --git a/offapi/com/sun/star/security/SerialNumberAdapter.idl b/offapi/com/sun/star/security/SerialNumberAdapter.idl
index 258426fe3f1b..adeb0ca71079 100644
--- a/offapi/com/sun/star/security/SerialNumberAdapter.idl
+++ b/offapi/com/sun/star/security/SerialNumberAdapter.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module security {
An implementation of this service enables the conversion of certificate
serial number to and from a string
- @since OOo 3.1.0
+ @since OOo 3.1
*/
service SerialNumberAdapter : XSerialNumberAdapter;
diff --git a/offapi/com/sun/star/sheet/ActivationEvent.idl b/offapi/com/sun/star/sheet/ActivationEvent.idl
index 481b4cca723a..f53c3509874b 100644
--- a/offapi/com/sun/star/sheet/ActivationEvent.idl
+++ b/offapi/com/sun/star/sheet/ActivationEvent.idl
@@ -44,7 +44,7 @@
/** describes a change of the active sheet. The new active sheet is given
with this event.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published struct ActivationEvent: com::sun::star::lang::EventObject
diff --git a/offapi/com/sun/star/sheet/CellAreaLink.idl b/offapi/com/sun/star/sheet/CellAreaLink.idl
index 75c0a4d810b1..90e51f941eb8 100644
--- a/offapi/com/sun/star/sheet/CellAreaLink.idl
+++ b/offapi/com/sun/star/sheet/CellAreaLink.idl
@@ -106,7 +106,7 @@ published service CellAreaLink
/** specifies the time between two refresh actions in seconds.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long RefreshPeriod;
diff --git a/offapi/com/sun/star/sheet/DataPilotDescriptor.idl b/offapi/com/sun/star/sheet/DataPilotDescriptor.idl
index 992afdef5ed9..939ff469b674 100644
--- a/offapi/com/sun/star/sheet/DataPilotDescriptor.idl
+++ b/offapi/com/sun/star/sheet/DataPilotDescriptor.idl
@@ -80,7 +80,7 @@ published service DataPilotDescriptor
/** specifies parameters to create the data pilot table from a database.
@see DatabaseImportDescriptor
- @since OOo 3.3.0
+ @since OOo 3.3
*/
[optional, property] sequence< com::sun::star::beans::PropertyValue > ImportDescriptor;
@@ -90,7 +90,7 @@ published service DataPilotDescriptor
/** specifies the name of a DataPilotSource implementation
for the data pilot table.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
[optional, property] string SourceServiceName;
@@ -100,7 +100,7 @@ published service DataPilotDescriptor
/** specifies arguments that are passed to the implementation named by
SourceServiceName.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
[optional, property] sequence< com::sun::star::beans::PropertyValue > ServiceArguments;
diff --git a/offapi/com/sun/star/sheet/DataPilotItem.idl b/offapi/com/sun/star/sheet/DataPilotItem.idl
index 54f21820ed25..84be9bdc879a 100644
--- a/offapi/com/sun/star/sheet/DataPilotItem.idl
+++ b/offapi/com/sun/star/sheet/DataPilotItem.idl
@@ -77,7 +77,7 @@ service DataPilotItem
/** specifies the item's position in its field if sorting is manual.
- @since OOo 2.4.0
+ @since OOo 2.4
*/
[optional, property] long Position;
};
diff --git a/offapi/com/sun/star/sheet/DataPilotOutputRangeType.idl b/offapi/com/sun/star/sheet/DataPilotOutputRangeType.idl
index 7bb0bbbc9438..ffd9d274db97 100644
--- a/offapi/com/sun/star/sheet/DataPilotOutputRangeType.idl
+++ b/offapi/com/sun/star/sheet/DataPilotOutputRangeType.idl
@@ -40,7 +40,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::XDataPilotTable2
- @since OOo 3.0.0
+ @since OOo 3.0
*/
constants DataPilotOutputRangeType
{
diff --git a/offapi/com/sun/star/sheet/DataPilotSource.idl b/offapi/com/sun/star/sheet/DataPilotSource.idl
index d96bd6d1ba76..3629d48fd756 100644
--- a/offapi/com/sun/star/sheet/DataPilotSource.idl
+++ b/offapi/com/sun/star/sheet/DataPilotSource.idl
@@ -100,7 +100,7 @@ published service DataPilotSource
/** specifies the number of row fields.
- @since OOo 3.0.0
+ @since OOo 3.0
*/
[readonly, property, optional] long RowFieldCount;
@@ -108,7 +108,7 @@ published service DataPilotSource
/** specifies the number of column fields.
- @since OOo 3.0.0
+ @since OOo 3.0
*/
[readonly, property, optional] long ColumnFieldCount;
@@ -116,7 +116,7 @@ published service DataPilotSource
/** specifies the number of data fields.
- @since OOo 3.0.0
+ @since OOo 3.0
*/
[readonly, property, optional] long DataFieldCount;
};
diff --git a/offapi/com/sun/star/sheet/DataPilotSourceMember.idl b/offapi/com/sun/star/sheet/DataPilotSourceMember.idl
index 754fc955c30a..c83f1031e57a 100644
--- a/offapi/com/sun/star/sheet/DataPilotSourceMember.idl
+++ b/offapi/com/sun/star/sheet/DataPilotSourceMember.idl
@@ -86,7 +86,7 @@ published service DataPilotSourceMember
/** specifies the member's position in its hierarchy level if sorting
is manual.
- @since OOo 2.4.0
+ @since OOo 2.4
*/
[optional, property] boolean Position;
};
diff --git a/offapi/com/sun/star/sheet/DataPilotTable.idl b/offapi/com/sun/star/sheet/DataPilotTable.idl
index c2385c46e5fa..19c5b143a952 100644
--- a/offapi/com/sun/star/sheet/DataPilotTable.idl
+++ b/offapi/com/sun/star/sheet/DataPilotTable.idl
@@ -66,7 +66,7 @@ published service DataPilotTable
/** allows notification of modifications to the data pilot table.
- @since OOo 3.3.0
+ @since OOo 3.3
*/
[optional] interface com::sun::star::util::XModifyBroadcaster;
diff --git a/offapi/com/sun/star/sheet/DataPilotTableHeaderData.idl b/offapi/com/sun/star/sheet/DataPilotTableHeaderData.idl
index c98e4bbc2820..670b47db4f6a 100644
--- a/offapi/com/sun/star/sheet/DataPilotTableHeaderData.idl
+++ b/offapi/com/sun/star/sheet/DataPilotTableHeaderData.idl
@@ -51,7 +51,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::DataPilotFieldFilter
@see com::sun::star::sheet::DataResult
- @since OOo 3.0.0
+ @since OOo 3.0
*/
struct DataPilotTableHeaderData
{
diff --git a/offapi/com/sun/star/sheet/DataPilotTablePositionData.idl b/offapi/com/sun/star/sheet/DataPilotTablePositionData.idl
index aa97b0dba922..203990299c89 100644
--- a/offapi/com/sun/star/sheet/DataPilotTablePositionData.idl
+++ b/offapi/com/sun/star/sheet/DataPilotTablePositionData.idl
@@ -48,7 +48,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::DataPiotTableResultData
@see com::sun::star::sheet::DataPiotTableHeaderData
- @since OOo 3.0.0
+ @since OOo 3.0
*/
struct DataPilotTablePositionData
{
diff --git a/offapi/com/sun/star/sheet/DataPilotTablePositionType.idl b/offapi/com/sun/star/sheet/DataPilotTablePositionType.idl
index 8ef568079f12..f9b254921c6f 100644
--- a/offapi/com/sun/star/sheet/DataPilotTablePositionType.idl
+++ b/offapi/com/sun/star/sheet/DataPilotTablePositionType.idl
@@ -38,7 +38,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::DataPilotTableResultData
@see com::sun::star::sheet::DataPilotTableHeaderData
- @since OOo 3.0.0
+ @since OOo 3.0
*/
constants DataPilotTablePositionType
{
diff --git a/offapi/com/sun/star/sheet/DataPilotTableResultData.idl b/offapi/com/sun/star/sheet/DataPilotTableResultData.idl
index b0adfdfa4e3d..ff8f7064d537 100644
--- a/offapi/com/sun/star/sheet/DataPilotTableResultData.idl
+++ b/offapi/com/sun/star/sheet/DataPilotTableResultData.idl
@@ -47,7 +47,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::DataPilotFieldFilter
@see com::sun::star::sheet::DataResult
- @since OOo 3.0.0
+ @since OOo 3.0
*/
struct DataPilotTableResultData
{
diff --git a/offapi/com/sun/star/sheet/DatabaseImportDescriptor.idl b/offapi/com/sun/star/sheet/DatabaseImportDescriptor.idl
index eab5d41f3adf..0044b8801a03 100644
--- a/offapi/com/sun/star/sheet/DatabaseImportDescriptor.idl
+++ b/offapi/com/sun/star/sheet/DatabaseImportDescriptor.idl
@@ -72,7 +72,7 @@ published service DatabaseImportDescriptor
/** specifies whether the SQL statement is given directly to the database
or is parsed before.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean IsNative;
@@ -80,7 +80,7 @@ published service DatabaseImportDescriptor
//-------------------------------------------------------------------------
/** indicates a connection URL, which locates a database driver.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] string ConnectionResource;
diff --git a/offapi/com/sun/star/sheet/DatabaseRange.idl b/offapi/com/sun/star/sheet/DatabaseRange.idl
index ef8ddb62e508..09ea307c1b90 100644
--- a/offapi/com/sun/star/sheet/DatabaseRange.idl
+++ b/offapi/com/sun/star/sheet/DatabaseRange.idl
@@ -134,7 +134,7 @@ published service DatabaseRange
/** specifies the time between two refresh actions in seconds.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] long RefreshPeriod;
@@ -142,7 +142,7 @@ published service DatabaseRange
/** specifies whether the imported data is only a selection of the database.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean FromSelection;
diff --git a/offapi/com/sun/star/sheet/ExternalDocLink.idl b/offapi/com/sun/star/sheet/ExternalDocLink.idl
index 357b0b4812ba..2c9842daa50e 100644
--- a/offapi/com/sun/star/sheet/ExternalDocLink.idl
+++ b/offapi/com/sun/star/sheet/ExternalDocLink.idl
@@ -41,7 +41,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::XExternalDocLink
- @since OOo 3.1.0
+ @since OOo 3.1
*/
service ExternalDocLink : XExternalDocLink
{
diff --git a/offapi/com/sun/star/sheet/ExternalDocLinks.idl b/offapi/com/sun/star/sheet/ExternalDocLinks.idl
index f0f216a0caf9..5f05d8666315 100644
--- a/offapi/com/sun/star/sheet/ExternalDocLinks.idl
+++ b/offapi/com/sun/star/sheet/ExternalDocLinks.idl
@@ -41,7 +41,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::ExternalDocLink
@see com::sun::star::sheet::XExternalDocLinks
- @since OOo 3.1.0
+ @since OOo 3.1
*/
service ExternalDocLinks : XExternalDocLinks
{
diff --git a/offapi/com/sun/star/sheet/ExternalSheetCache.idl b/offapi/com/sun/star/sheet/ExternalSheetCache.idl
index 93652a6058f7..aabfb37d69da 100644
--- a/offapi/com/sun/star/sheet/ExternalSheetCache.idl
+++ b/offapi/com/sun/star/sheet/ExternalSheetCache.idl
@@ -41,7 +41,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::ExternalDocLink
@see com::sun::star::sheet::XExternalSheetCache
- @since OOo 3.1.0
+ @since OOo 3.1
*/
service ExternalSheetCache : XExternalSheetCache
{
diff --git a/offapi/com/sun/star/sheet/SheetCell.idl b/offapi/com/sun/star/sheet/SheetCell.idl
index ecde3d5c3594..3e9f8066a059 100644
--- a/offapi/com/sun/star/sheet/SheetCell.idl
+++ b/offapi/com/sun/star/sheet/SheetCell.idl
@@ -241,7 +241,7 @@ published service SheetCell
/**
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional] interface com::sun::star::util::XModifyBroadcaster;
diff --git a/offapi/com/sun/star/sheet/SheetCellRange.idl b/offapi/com/sun/star/sheet/SheetCellRange.idl
index b87d52b7f0c4..d6b42ffa7cef 100644
--- a/offapi/com/sun/star/sheet/SheetCellRange.idl
+++ b/offapi/com/sun/star/sheet/SheetCellRange.idl
@@ -350,7 +350,7 @@ published service SheetCellRange
/**
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional] interface com::sun::star::util::XModifyBroadcaster;
diff --git a/offapi/com/sun/star/sheet/TablePageStyle.idl b/offapi/com/sun/star/sheet/TablePageStyle.idl
index 6673fb80f9de..686fb113d62c 100644
--- a/offapi/com/sun/star/sheet/TablePageStyle.idl
+++ b/offapi/com/sun/star/sheet/TablePageStyle.idl
@@ -197,7 +197,7 @@ published service TablePageStyle
/** contains the number of horizontal pages the sheet will printed on.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[property, optional] short ScaleToPagesX;
@@ -206,7 +206,7 @@ published service TablePageStyle
/** contains the number of vertical pages the sheet will printed on.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[property, optional] short ScaleToPagesY;
diff --git a/offapi/com/sun/star/sheet/XActivationBroadcaster.idl b/offapi/com/sun/star/sheet/XActivationBroadcaster.idl
index 7c57ab280508..e49a97e21d33 100644
--- a/offapi/com/sun/star/sheet/XActivationBroadcaster.idl
+++ b/offapi/com/sun/star/sheet/XActivationBroadcaster.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module sheet {
/** provides methods to add and remove XActivationEventListener
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published interface XActivationBroadcaster: com::sun::star::uno::XInterface
diff --git a/offapi/com/sun/star/sheet/XActivationEventListener.idl b/offapi/com/sun/star/sheet/XActivationEventListener.idl
index ede31cf591d0..7a129c0ae5df 100644
--- a/offapi/com/sun/star/sheet/XActivationEventListener.idl
+++ b/offapi/com/sun/star/sheet/XActivationEventListener.idl
@@ -60,7 +60,7 @@ published interface XActivationEventListener: com::sun::star::lang::XEventListen
@see ActivationEvent
@see XSpreadsheetViewEventProvieder
- @since OOo 2.0.0
+ @since OOo 2.0
*/
void activeSpreadsheetChanged( [in] com::sun::star::sheet::ActivationEvent aEvent );
diff --git a/offapi/com/sun/star/sheet/XDataPilotTable2.idl b/offapi/com/sun/star/sheet/XDataPilotTable2.idl
index df7ec30041a8..a0fbd5934e8d 100644
--- a/offapi/com/sun/star/sheet/XDataPilotTable2.idl
+++ b/offapi/com/sun/star/sheet/XDataPilotTable2.idl
@@ -65,7 +65,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::XDataPilotTable
- @since OOo 3.0.0
+ @since OOo 3.0
*/
interface XDataPilotTable2: com::sun::star::sheet::XDataPilotTable
{
diff --git a/offapi/com/sun/star/sheet/XDrillDownDataSupplier.idl b/offapi/com/sun/star/sheet/XDrillDownDataSupplier.idl
index ec5e6e2cb9c7..f63d99a65aa1 100644
--- a/offapi/com/sun/star/sheet/XDrillDownDataSupplier.idl
+++ b/offapi/com/sun/star/sheet/XDrillDownDataSupplier.idl
@@ -57,7 +57,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::DataPilotSource
- @since OOo 3.0.0
+ @since OOo 3.0
*/
interface XDrillDownDataSupplier: com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/sheet/XEnhancedMouseClickBroadcaster.idl b/offapi/com/sun/star/sheet/XEnhancedMouseClickBroadcaster.idl
index 58461f90296a..16de0542a669 100644
--- a/offapi/com/sun/star/sheet/XEnhancedMouseClickBroadcaster.idl
+++ b/offapi/com/sun/star/sheet/XEnhancedMouseClickBroadcaster.idl
@@ -45,7 +45,7 @@ module com { module sun { module star { module sheet {
/** provides methods to add and remove EnhancedMouseClickHandler
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published interface XEnhancedMouseClickBroadcaster: com::sun::star::uno::XInterface
diff --git a/offapi/com/sun/star/sheet/XExternalDocLink.idl b/offapi/com/sun/star/sheet/XExternalDocLink.idl
index 1a9662dbeed7..80b249e7d520 100644
--- a/offapi/com/sun/star/sheet/XExternalDocLink.idl
+++ b/offapi/com/sun/star/sheet/XExternalDocLink.idl
@@ -41,7 +41,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::ExternalDocLink
- @since OOo 3.1.0
+ @since OOo 3.1
*/
interface XExternalDocLink
{
diff --git a/offapi/com/sun/star/sheet/XExternalDocLinks.idl b/offapi/com/sun/star/sheet/XExternalDocLinks.idl
index 642b3c57eb14..0f9085ad7149 100644
--- a/offapi/com/sun/star/sheet/XExternalDocLinks.idl
+++ b/offapi/com/sun/star/sheet/XExternalDocLinks.idl
@@ -39,7 +39,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::ExternalDocLinks
- @since OOo 3.1.0
+ @since OOo 3.1
*/
interface XExternalDocLinks
{
diff --git a/offapi/com/sun/star/sheet/XExternalSheetCache.idl b/offapi/com/sun/star/sheet/XExternalSheetCache.idl
index 23827d7a04e2..89a1f70fb390 100644
--- a/offapi/com/sun/star/sheet/XExternalSheetCache.idl
+++ b/offapi/com/sun/star/sheet/XExternalSheetCache.idl
@@ -36,7 +36,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::ExternalSheetCache
- @since OOo 3.1.0
+ @since OOo 3.1
*/
interface XExternalSheetCache
{
diff --git a/offapi/com/sun/star/sheet/XScenarioEnhanced.idl b/offapi/com/sun/star/sheet/XScenarioEnhanced.idl
index cd4b895f1258..e61f6103e3b9 100644
--- a/offapi/com/sun/star/sheet/XScenarioEnhanced.idl
+++ b/offapi/com/sun/star/sheet/XScenarioEnhanced.idl
@@ -50,7 +50,7 @@ module com { module sun { module star { module sheet {
@see com::sun::star::sheet::XScenario
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XScenarioEnhanced: com::sun::star::uno::XInterface
diff --git a/offapi/com/sun/star/smarttags/SmartTagAction.idl b/offapi/com/sun/star/smarttags/SmartTagAction.idl
index a07c93eb5385..73c28ee87e07 100644
--- a/offapi/com/sun/star/smarttags/SmartTagAction.idl
+++ b/offapi/com/sun/star/smarttags/SmartTagAction.idl
@@ -46,7 +46,7 @@ module com { module sun { module star { module smarttags {
that can be performed for a smart tag which has been recognized
by a SmartTagRecognizer service.
- @since OOo 2.3.0
+ @since OOo 2.3
*/
service SmartTagAction : XSmartTagAction {};
diff --git a/offapi/com/sun/star/smarttags/SmartTagRecognizer.idl b/offapi/com/sun/star/smarttags/SmartTagRecognizer.idl
index 60223c89d4ac..e77cbe1bd87f 100644
--- a/offapi/com/sun/star/smarttags/SmartTagRecognizer.idl
+++ b/offapi/com/sun/star/smarttags/SmartTagRecognizer.idl
@@ -47,7 +47,7 @@ module com { module sun { module star { module smarttags {
associated with specific actions which are defined by
implementations of the SmartTagAction service.
- @since OOo 2.3.0
+ @since OOo 2.3
*/
service SmartTagRecognizer : XSmartTagRecognizer {};
diff --git a/offapi/com/sun/star/smarttags/SmartTagRecognizerMode.idl b/offapi/com/sun/star/smarttags/SmartTagRecognizerMode.idl
index b72034a64cb7..c4624cad3058 100644
--- a/offapi/com/sun/star/smarttags/SmartTagRecognizerMode.idl
+++ b/offapi/com/sun/star/smarttags/SmartTagRecognizerMode.idl
@@ -37,7 +37,7 @@
/** specifies the which type of text is passed to
XSmartTagRecognizer::recognize()
- @since OOo 2.3.0
+ @since OOo 2.3
*/
enum SmartTagRecognizerMode
diff --git a/offapi/com/sun/star/smarttags/XSmartTagAction.idl b/offapi/com/sun/star/smarttags/XSmartTagAction.idl
index 271dd84b0d19..696f7cdccfc0 100644
--- a/offapi/com/sun/star/smarttags/XSmartTagAction.idl
+++ b/offapi/com/sun/star/smarttags/XSmartTagAction.idl
@@ -64,7 +64,7 @@ module com { module sun { module star { module smarttags {
/** provides access to smart tag actions.
- @since OOo 2.3.0
+ @since OOo 2.3
*/
interface XSmartTagAction: com::sun::star::lang::XInitialization
diff --git a/offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl b/offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl
index c84d75878a8b..9c51e4a5ad0e 100644
--- a/offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl
+++ b/offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl
@@ -65,7 +65,7 @@ module com { module sun { module star { module smarttags {
/**
provides access to a smart tag recognizer.
- @since OOo 2.3.0
+ @since OOo 2.3
*/
interface XSmartTagRecognizer: com::sun::star::lang::XInitialization
diff --git a/offapi/com/sun/star/style/CharacterProperties.idl b/offapi/com/sun/star/style/CharacterProperties.idl
index 6c6bf3d99a7b..fb6556b508ae 100644
--- a/offapi/com/sun/star/style/CharacterProperties.idl
+++ b/offapi/com/sun/star/style/CharacterProperties.idl
@@ -428,7 +428,7 @@ published service CharacterProperties
/** If this optional property is , then the characters are invisible.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean CharHidden;
diff --git a/offapi/com/sun/star/style/NumberingType.idl b/offapi/com/sun/star/style/NumberingType.idl
index 25094b1ed677..21196a8cafb0 100644
--- a/offapi/com/sun/star/style/NumberingType.idl
+++ b/offapi/com/sun/star/style/NumberingType.idl
@@ -226,7 +226,7 @@ published constants NumberingType
//-------------------------------------------------------------------------
/** Numbering in Hebrew alphabet letters
- @since OOo 2.0.0
+ @since OOo 2.0
*/
const short CHARS_HEBREW = 33;
diff --git a/offapi/com/sun/star/text/BaseFrameProperties.idl b/offapi/com/sun/star/text/BaseFrameProperties.idl
index e6ede2e36349..cac2ea15296b 100644
--- a/offapi/com/sun/star/text/BaseFrameProperties.idl
+++ b/offapi/com/sun/star/text/BaseFrameProperties.idl
@@ -335,7 +335,7 @@ published service BaseFrameProperties
of the shape, if the text document setting ConsiderTextWrapOnObjPos
is . Valid values are given by WrapInfluenceOnPosition
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] short WrapInfluenceOnPosition;
diff --git a/offapi/com/sun/star/text/Cell.idl b/offapi/com/sun/star/text/Cell.idl
index 7669f10afa34..f1161117e8b2 100644
--- a/offapi/com/sun/star/text/Cell.idl
+++ b/offapi/com/sun/star/text/Cell.idl
@@ -93,7 +93,7 @@ service Cell
CellProtection: non-functional implementation.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
service com::sun::star::table::CellProperties;
diff --git a/offapi/com/sun/star/text/DocumentSettings.idl b/offapi/com/sun/star/text/DocumentSettings.idl
index 3ab98fdd2ddc..23cc0fb2df65 100644
--- a/offapi/com/sun/star/text/DocumentSettings.idl
+++ b/offapi/com/sun/star/text/DocumentSettings.idl
@@ -139,7 +139,7 @@ published service DocumentSettings
a proportional line spacing is only applied below a text line and
it's always added to the paragraph spacing between two paragraphs.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean UseFormerLineSpacing;
// ------------------------------------------------------------
@@ -156,7 +156,7 @@ published service DocumentSettings
the spacing of the last paragraph respectively table of a table
cell isn't added at the bottom of this table cell.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean AddParaSpacingToTableCells;
// ------------------------------------------------------------
@@ -174,7 +174,7 @@ published service DocumentSettings
its vertical position, doesn't include the lower spacing and the
line spacing of the previous paragraph.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean UseFormerObjectPositioning;
@@ -191,7 +191,7 @@ published service DocumentSettings
If (default value), the former object positioning
algorithm (known from OpenOffice.org 1.1) is applied.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean ConsiderTextWrapOnObjPos;
diff --git a/offapi/com/sun/star/text/FootnoteSettings.idl b/offapi/com/sun/star/text/FootnoteSettings.idl
index e11354bd1b7c..42c6cc20d52f 100644
--- a/offapi/com/sun/star/text/FootnoteSettings.idl
+++ b/offapi/com/sun/star/text/FootnoteSettings.idl
@@ -126,7 +126,7 @@ published service FootnoteSettings
/** contains the name of the character style that is used
for footnote/endnote anchor in the text.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] string AnchorCharStyleName;
diff --git a/offapi/com/sun/star/text/GenericTextDocument.idl b/offapi/com/sun/star/text/GenericTextDocument.idl
index c1562b5ddf49..7a7e06ce5f34 100644
--- a/offapi/com/sun/star/text/GenericTextDocument.idl
+++ b/offapi/com/sun/star/text/GenericTextDocument.idl
@@ -179,22 +179,28 @@ published service GenericTextDocument
[optional] interface com::sun::star::style::XStyleFamiliesSupplier;
- /// @since OOo 1.1.2
+ /** @since OOo 1.1.2
+ */
[optional] interface com::sun::star::text::XBookmarksSupplier;
- /// @since OOo 1.1.2
+ /** @since OOo 1.1.2
+ */
[optional] interface com::sun::star::text::XDocumentIndexesSupplier;
- /// @since OOo 1.1.2
+ /** @since OOo 1.1.2
+ */
[optional] interface com::sun::star::text::XTextFieldsSupplier;
- /// @since OOo 1.1.2
+ /** @since OOo 1.1.2
+ */
[optional] interface com::sun::star::text::XTextFramesSupplier;
- /// @since OOo 1.1.2
+ /** @since OOo 1.1.2
+ */
[optional] interface com::sun::star::text::XTextSectionsSupplier;
- /// @since OOo 1.1.2
+ /** @since OOo 1.1.2
+ */
[optional] interface com::sun::star::util::XNumberFormatsSupplier;
//-------------------------------------------------------------------------
diff --git a/offapi/com/sun/star/text/LineNumberingProperties.idl b/offapi/com/sun/star/text/LineNumberingProperties.idl
index 5a965b100963..b91d82dbc1bb 100644
--- a/offapi/com/sun/star/text/LineNumberingProperties.idl
+++ b/offapi/com/sun/star/text/LineNumberingProperties.idl
@@ -103,7 +103,7 @@ published service LineNumberingProperties
If set to the line numbering will be continous.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean RestartAtEachPage;
diff --git a/offapi/com/sun/star/text/Paragraph.idl b/offapi/com/sun/star/text/Paragraph.idl
index 4c8330eb1f06..ee75fed06ca6 100644
--- a/offapi/com/sun/star/text/Paragraph.idl
+++ b/offapi/com/sun/star/text/Paragraph.idl
@@ -142,7 +142,7 @@ published service Paragraph
interface com::sun::star::container::XEnumerationAccess;
/** gives access to a sequence of properties.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional] interface ::com::sun::star::beans::XTolerantMultiPropertySet;
};
diff --git a/offapi/com/sun/star/text/PositionLayoutDir.idl b/offapi/com/sun/star/text/PositionLayoutDir.idl
index 72e420876171..359318dbf831 100644
--- a/offapi/com/sun/star/text/PositionLayoutDir.idl
+++ b/offapi/com/sun/star/text/PositionLayoutDir.idl
@@ -37,7 +37,7 @@
/** These values specify the layout direction, in which the position attributes
of a shape are given
- @since OOo 2.0.0
+ @since OOo 2.0
*/
constants PositionLayoutDir
{
diff --git a/offapi/com/sun/star/text/RelOrientation.idl b/offapi/com/sun/star/text/RelOrientation.idl
index eb30a465a1f6..f0e6e2c1e98a 100644
--- a/offapi/com/sun/star/text/RelOrientation.idl
+++ b/offapi/com/sun/star/text/RelOrientation.idl
@@ -108,7 +108,7 @@ published constants RelOrientation
/** at the top of the text line, only sensible for vertical orientation.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
const short TEXT_LINE = 9;
diff --git a/offapi/com/sun/star/text/Shape.idl b/offapi/com/sun/star/text/Shape.idl
index 43d64efcf9c9..a7fe22ae5935 100644
--- a/offapi/com/sun/star/text/Shape.idl
+++ b/offapi/com/sun/star/text/Shape.idl
@@ -184,7 +184,7 @@ published service Shape
of the shape, if the text document setting ConsiderTextWrapOnObjPos
is . Valid values are given by WrapInfluenceOnPosition
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] short WrapInfluenceOnPosition;
@@ -197,7 +197,7 @@ published service Shape
transformation property of the included service com::sun::star::drawing::Shape
converted to the horizontal left-to-right layout.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, readonly, property] com::sun::star::drawing::HomogenMatrix3 TransformationInHoriL2R;
//-------------------------------------------------------------------------
@@ -206,7 +206,7 @@ published service Shape
Valid values are given by PositionLayoutDir
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] short PositionLayoutDir;
//-------------------------------------------------------------------------
@@ -218,7 +218,7 @@ published service Shape
start position property of the included service com::sun::star::drawing::Shape
converted to the horizontal left-to-right layout.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, readonly, property] com::sun::star::awt::Point StartPositionInHoriL2R;
//-------------------------------------------------------------------------
@@ -230,7 +230,7 @@ published service Shape
end position property of the included service com::sun::star::drawing::Shape
converted to the horizontal left-to-right layout.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, readonly, property] com::sun::star::awt::Point EndPositionInHoriL2R;
};
diff --git a/offapi/com/sun/star/text/TextMarkupType.idl b/offapi/com/sun/star/text/TextMarkupType.idl
index 5137d47d217f..3698799be8e4 100644
--- a/offapi/com/sun/star/text/TextMarkupType.idl
+++ b/offapi/com/sun/star/text/TextMarkupType.idl
@@ -39,7 +39,7 @@ module com { module sun { module star { module text {
These constants are used with
XTextMarkup::commitTextMarkup()
- @since OOo 2.3.0
+ @since OOo 2.3
*/
constants TextMarkupType
diff --git a/offapi/com/sun/star/text/TextPortion.idl b/offapi/com/sun/star/text/TextPortion.idl
index 6c23d9fa1655..3bfc745d97da 100644
--- a/offapi/com/sun/star/text/TextPortion.idl
+++ b/offapi/com/sun/star/text/TextPortion.idl
@@ -85,7 +85,7 @@ published service TextPortion
//-------------------------------------------------------------------------
/** gives access to a sequence of properties.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional]
interface ::com::sun::star::beans::XTolerantMultiPropertySet;
diff --git a/offapi/com/sun/star/text/TextTableRow.idl b/offapi/com/sun/star/text/TextTableRow.idl
index 1d5947a051a9..b1eca1467b89 100644
--- a/offapi/com/sun/star/text/TextTableRow.idl
+++ b/offapi/com/sun/star/text/TextTableRow.idl
@@ -111,7 +111,7 @@ published service TextTableRow
/** If , the row is allowed to be split at page or column breaks.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property, maybevoid] boolean IsSplitAllowed;
diff --git a/offapi/com/sun/star/text/ViewSettings.idl b/offapi/com/sun/star/text/ViewSettings.idl
index 007a8f1e617d..102ab0c1dc1c 100644
--- a/offapi/com/sun/star/text/ViewSettings.idl
+++ b/offapi/com/sun/star/text/ViewSettings.idl
@@ -260,7 +260,7 @@ published service ViewSettings
//-------------------------------------------------------------------------
/** Specifies whether to display the grid or not
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean IsRasterVisible;
@@ -268,7 +268,7 @@ published service ViewSettings
/** Specifies whether to move frames, drawing elements, and form
functions only between grid points.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
[optional, property] boolean IsSnapToRaster;
@@ -278,7 +278,7 @@ published service ViewSettings
The value must be greater or equal to 0, and the application
may enforce an upper bound for the value.
- @since OOo 2.0.0
+ @since OOo 2.0
@throws com::sun::star::lang::IllegalArgumentException
if the value is out of bounds.
*/
@@ -290,7 +290,7 @@ published service ViewSettings
The value must be greater or equal to 0, and the application
may enforce an upper bound for the value.
- @since OOo 2.0.0
+ @since OOo 2.0
@throws com::sun::star::lang::IllegalArgumentException
if the value is out of bounds.
*/
@@ -303,7 +303,7 @@ published service ViewSettings
The value must be greater than 0. The application
may enforce more restricting bounds for the value.
- @since OOo 2.0.0
+ @since OOo 2.0
@throws com::sun::star::lang::IllegalArgumentException
if the value is out of bounds.
*/
@@ -316,7 +316,7 @@ published service ViewSettings
The value must be greater than 0. The application
may enforce more restricting bounds for the value.
- @since OOo 2.0.0
+ @since OOo 2.0
@throws com::sun::star::lang::IllegalArgumentException
if the value is out of bounds.
*/
@@ -325,7 +325,7 @@ published service ViewSettings
//-------------------------------------------------------------------------
/** If this property is , hidden characters are displayed
- @since OOo 3.0.0
+ @since OOo 3.0
*/
[optional, property] boolean ShowHiddenCharacters;
//-------------------------------------------------------------------------
@@ -334,7 +334,7 @@ published service ViewSettings
This option controls the use of the settings ShowHiddenCharacters,
ShowTabstops, ShowSpaces, ShowBreaks and ShowParaBreaks
This type supersedes XSingletonTypeDescription, which only
supports obsolete, service-based singletons.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XSingletonTypeDescription2: XSingletonTypeDescription {
/**
diff --git a/udkapi/com/sun/star/reflection/XStructTypeDescription.idl b/udkapi/com/sun/star/reflection/XStructTypeDescription.idl
index 69063323874c..6635492179c9 100644
--- a/udkapi/com/sun/star/reflection/XStructTypeDescription.idl
+++ b/udkapi/com/sun/star/reflection/XStructTypeDescription.idl
@@ -66,7 +66,7 @@ interface XTypeDescription;
sequence.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
interface XStructTypeDescription: XCompoundTypeDescription {
/**
diff --git a/udkapi/com/sun/star/script/BasicErrorException.idl b/udkapi/com/sun/star/script/BasicErrorException.idl
index 63a91b8e6373..7b627a993700 100644
--- a/udkapi/com/sun/star/script/BasicErrorException.idl
+++ b/udkapi/com/sun/star/script/BasicErrorException.idl
@@ -40,7 +40,7 @@ module com { module sun { module star { module script {
/** is thrown in order to transport an error to Basic.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published exception BasicErrorException: com::sun::star::uno::Exception
{
diff --git a/udkapi/com/sun/star/uri/ExternalUriReferenceTranslator.idl b/udkapi/com/sun/star/uri/ExternalUriReferenceTranslator.idl
index 3ed909101441..ba649a09551f 100644
--- a/udkapi/com/sun/star/uri/ExternalUriReferenceTranslator.idl
+++ b/udkapi/com/sun/star/uri/ExternalUriReferenceTranslator.idl
@@ -35,7 +35,7 @@ published interface XExternalUriReferenceTranslator;
/**
translates between external and internal URI references.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published service ExternalUriReferenceTranslator:
XExternalUriReferenceTranslator;
diff --git a/udkapi/com/sun/star/uri/RelativeUriExcessParentSegments.idl b/udkapi/com/sun/star/uri/RelativeUriExcessParentSegments.idl
index 6d65648b7950..00b30462b60a 100644
--- a/udkapi/com/sun/star/uri/RelativeUriExcessParentSegments.idl
+++ b/udkapi/com/sun/star/uri/RelativeUriExcessParentSegments.idl
@@ -37,7 +37,7 @@ module com { module sun { module star { module uri {
@see com::sun::star::uri::XUriReferenceFactory::makeAbsolute
for a method that uses this enumeration.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published enum RelativeUriExcessParentSegments {
/**
diff --git a/udkapi/com/sun/star/uri/UriReferenceFactory.idl b/udkapi/com/sun/star/uri/UriReferenceFactory.idl
index 678258d75ce0..c01d9eadac12 100644
--- a/udkapi/com/sun/star/uri/UriReferenceFactory.idl
+++ b/udkapi/com/sun/star/uri/UriReferenceFactory.idl
@@ -68,7 +68,7 @@ published interface XUriReferenceFactory;
service does not support
XUriSchemeParser.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published service UriReferenceFactory: XUriReferenceFactory;
diff --git a/udkapi/com/sun/star/uri/UriSchemeParser_vndDOTsunDOTstarDOTscript.idl b/udkapi/com/sun/star/uri/UriSchemeParser_vndDOTsunDOTstarDOTscript.idl
index 50da8154e43a..c071ce6addac 100644
--- a/udkapi/com/sun/star/uri/UriSchemeParser_vndDOTsunDOTstarDOTscript.idl
+++ b/udkapi/com/sun/star/uri/UriSchemeParser_vndDOTsunDOTstarDOTscript.idl
@@ -48,7 +48,7 @@ published interface XUriSchemeParser;
Rather, it should be used indirectly through the
UriReferenceFactory service.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published service UriSchemeParser_vndDOTsunDOTstarDOTscript: XUriSchemeParser
{};
diff --git a/udkapi/com/sun/star/uri/VndSunStarPkgUrlReferenceFactory.idl b/udkapi/com/sun/star/uri/VndSunStarPkgUrlReferenceFactory.idl
index f652851cf280..9edd29a6c702 100644
--- a/udkapi/com/sun/star/uri/VndSunStarPkgUrlReferenceFactory.idl
+++ b/udkapi/com/sun/star/uri/VndSunStarPkgUrlReferenceFactory.idl
@@ -35,7 +35,7 @@ published interface XVndSunStarPkgUrlReferenceFactory;
/**
creates “vnd.sun.star.pkg” URL references.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published service VndSunStarPkgUrlReferenceFactory:
XVndSunStarPkgUrlReferenceFactory;
diff --git a/udkapi/com/sun/star/uri/XExternalUriReferenceTranslator.idl b/udkapi/com/sun/star/uri/XExternalUriReferenceTranslator.idl
index 3dc6b8bfca77..d97c677ebd36 100644
--- a/udkapi/com/sun/star/uri/XExternalUriReferenceTranslator.idl
+++ b/udkapi/com/sun/star/uri/XExternalUriReferenceTranslator.idl
@@ -54,7 +54,7 @@ module com { module sun { module star { module uri {
references (that do not include a scheme) are left unmodified by the
translation process.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published interface XExternalUriReferenceTranslator {
/**
diff --git a/udkapi/com/sun/star/uri/XUriReference.idl b/udkapi/com/sun/star/uri/XUriReference.idl
index 79ad88f47a1c..eccd19164248 100644
--- a/udkapi/com/sun/star/uri/XUriReference.idl
+++ b/udkapi/com/sun/star/uri/XUriReference.idl
@@ -47,7 +47,7 @@ module com { module sun { module star { module uri {
XUriReference and additional,
scheme-specific interfaces.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published interface XUriReference: com::sun::star::uno::XInterface {
/**
diff --git a/udkapi/com/sun/star/uri/XUriReferenceFactory.idl b/udkapi/com/sun/star/uri/XUriReferenceFactory.idl
index bd62235b985d..a7bc1514f98c 100644
--- a/udkapi/com/sun/star/uri/XUriReferenceFactory.idl
+++ b/udkapi/com/sun/star/uri/XUriReferenceFactory.idl
@@ -40,7 +40,7 @@ module com { module sun { module star { module uri {
See RFC 2396 for a
description of URI references and related terms.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published interface XUriReferenceFactory: com::sun::star::uno::XInterface {
/**
diff --git a/udkapi/com/sun/star/uri/XUriSchemeParser.idl b/udkapi/com/sun/star/uri/XUriSchemeParser.idl
index 61a8173d9ab4..a267b38b4329 100644
--- a/udkapi/com/sun/star/uri/XUriSchemeParser.idl
+++ b/udkapi/com/sun/star/uri/XUriSchemeParser.idl
@@ -39,7 +39,7 @@ module com { module sun { module star { module uri {
See RFC 2396 for a
description of URIs and related terms.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published interface XUriSchemeParser: com::sun::star::uno::XInterface {
/**
diff --git a/udkapi/com/sun/star/uri/XVndSunStarPkgUrlReferenceFactory.idl b/udkapi/com/sun/star/uri/XVndSunStarPkgUrlReferenceFactory.idl
index e6db55f9905b..179253b8de78 100644
--- a/udkapi/com/sun/star/uri/XVndSunStarPkgUrlReferenceFactory.idl
+++ b/udkapi/com/sun/star/uri/XVndSunStarPkgUrlReferenceFactory.idl
@@ -37,7 +37,7 @@ published interface XUriReference;
/**
creates “vnd.sun.star.pkg” URL references.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published interface XVndSunStarPkgUrlReferenceFactory {
/**
diff --git a/udkapi/com/sun/star/uri/XVndSunStarScriptUrl.idl b/udkapi/com/sun/star/uri/XVndSunStarScriptUrl.idl
index 753ed90b1cef..ceae7926f04d 100644
--- a/udkapi/com/sun/star/uri/XVndSunStarScriptUrl.idl
+++ b/udkapi/com/sun/star/uri/XVndSunStarScriptUrl.idl
@@ -61,7 +61,7 @@ module com { module sun { module star { module uri {
without considering case folding or normalization. There may be multiple
parameters with equal keys.
- @since OOo 2.0.0
+ @since OOo 2.0
*/
published interface XVndSunStarScriptUrl: com::sun::star::uno::XInterface {
/**
--
cgit
From 1ba335d36a40933c3ab53f3cea5c7a178e8c9d6b Mon Sep 17 00:00:00 2001
From: Juergen Schmidt
Date: Tue, 9 Nov 2010 15:23:28 +0100
Subject: jsc340: i114887: cleanup of old not used draft types
---
offapi/prj/build.lst | 3 +--
offapi/prj/d.lst | 8 --------
offapi/type_reference/typelibrary_history.txt | 3 +++
offapi/type_reference/types.rdb | Bin 7307264 -> 7307264 bytes
offapi/util/makefile.mk | 1 -
unoil/util/makefile.mk | 2 +-
6 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/offapi/prj/build.lst b/offapi/prj/build.lst
index bc6dda566031..b18c83a99141 100644
--- a/offapi/prj/build.lst
+++ b/offapi/prj/build.lst
@@ -105,5 +105,4 @@ oa offapi\com\sun\star\geometry nmake - all oa_geometry NULL
oa offapi\com\sun\star\rendering nmake - all oa_rendering oa_geometry NULL
oa offapi\com\sun\star\rdf nmake - all oa_rdf oa_datatransfer oa_text NULL
oa offapi\com\sun\star\office nmake - all oa_office oa_text NULL
-oa offapi\drafts\com\sun\star\form nmake - all oa_drafts_form NULL
-oa offapi\util nmake - all oa_util oa_auth oa_awt oa_awttree oa_awtgrid oa_chart oa_chart2 oa_chart2_data oa_config oa_configbootstrap oa_configbackend oa_configbackend_xml oa_datatrans_clip oa_datatrans_dnd oa_datatransfer oa_docu oa_draw oa_draw_framework oa_embed oa_fcomp oa_finsp oa_fcontr oa_fieldmaster oa_form oa_xforms oa_formula oa_frame oa_i18n oa_inst oa_ldap oa_ling2 oa_logging oa_mail oa_media oa_mozilla oa_packages oa_manifest oa_zippackage oa_plug oa_pres oa_animations oa_putil oa_resrc oa_sax oa_xml_input oa_scan oa_sdb oa_sdbtools oa_sdbapp oa_sdbc oa_sdbcx oa_setup oa_sheet oa_style oa_svg oa_sync oa_sync2 oa_system oa_table oa_task oa_text oa_textfield oa_docinfo oa_ucb oa_view oa_xml oa_xml_dom oa_xml_xpath oa_xml_views oa_xml_events oa_image oa_xsd oa_inspection oa_ui oa_ui_dialogs oa_accessibility oa_form_binding oa_form_validation oa_form_submission oa_fruntime oa_geometry oa_rendering oa_sfprovider oa_sfbrowse oa_drafts_form oa_deployment oa_deploymenttest oa_deployment_ui oa_frame_status oa_gallery oa_graphic oa_security oa_crypto_sax oa_crypto oa_csax oa_wrapper oa_script oa_script_vba oa_smarttags oa_report oa_reportins oa_reportmeta oa_rdf oa_oooimprovement oa_office oa_prestextfield oa_starme NULL
+oa offapi\util nmake - all oa_util oa_auth oa_awt oa_awttree oa_awtgrid oa_chart oa_chart2 oa_chart2_data oa_config oa_configbootstrap oa_configbackend oa_configbackend_xml oa_datatrans_clip oa_datatrans_dnd oa_datatransfer oa_docu oa_draw oa_draw_framework oa_embed oa_fcomp oa_finsp oa_fcontr oa_fieldmaster oa_form oa_xforms oa_formula oa_frame oa_i18n oa_inst oa_ldap oa_ling2 oa_logging oa_mail oa_media oa_mozilla oa_packages oa_manifest oa_zippackage oa_plug oa_pres oa_animations oa_putil oa_resrc oa_sax oa_xml_input oa_scan oa_sdb oa_sdbtools oa_sdbapp oa_sdbc oa_sdbcx oa_setup oa_sheet oa_style oa_svg oa_sync oa_sync2 oa_system oa_table oa_task oa_text oa_textfield oa_docinfo oa_ucb oa_view oa_xml oa_xml_dom oa_xml_xpath oa_xml_views oa_xml_events oa_image oa_xsd oa_inspection oa_ui oa_ui_dialogs oa_accessibility oa_form_binding oa_form_validation oa_form_submission oa_fruntime oa_geometry oa_rendering oa_sfprovider oa_sfbrowse oa_deployment oa_deploymenttest oa_deployment_ui oa_frame_status oa_gallery oa_graphic oa_security oa_crypto_sax oa_crypto oa_csax oa_wrapper oa_script oa_script_vba oa_smarttags oa_report oa_reportins oa_reportmeta oa_rdf oa_oooimprovement oa_office oa_prestextfield oa_starme NULL
diff --git a/offapi/prj/d.lst b/offapi/prj/d.lst
index 764521f3e944..249601f1af04 100644
--- a/offapi/prj/d.lst
+++ b/offapi/prj/d.lst
@@ -109,12 +109,6 @@ mkdir: %COMMON_DEST%\idl%_EXT%\com\sun\star\xml\sax
mkdir: %COMMON_DEST%\idl%_EXT%\com\sun\star\xml\wrapper
mkdir: %COMMON_DEST%\idl%_EXT%\com\sun\star\xml\xpath
mkdir: %COMMON_DEST%\idl%_EXT%\com\sun\star\xsd
-mkdir: %COMMON_DEST%\idl%_EXT%\drafts
-mkdir: %COMMON_DEST%\idl%_EXT%\drafts\com
-mkdir: %COMMON_DEST%\idl%_EXT%\drafts\com\sun
-mkdir: %COMMON_DEST%\idl%_EXT%\drafts\com\sun\star
-mkdir: %COMMON_DEST%\idl%_EXT%\drafts\com\sun\star\form
-
..\%__SRC%\ucr\offapi.db %_DEST%\bin%_EXT%\offapi.rdb
..\%__SRC%\ucrdoc\offapi_doc.db %_DEST%\bin%_EXT%\offapi_doc.rdb
@@ -226,5 +220,3 @@ mkdir: %COMMON_DEST%\idl%_EXT%\drafts\com\sun\star\form
..\com\sun\star\xml\wrapper\*.idl %COMMON_DEST%\idl%_EXT%\com\sun\star\xml\wrapper
..\com\sun\star\xml\xpath\*.idl %COMMON_DEST%\idl%_EXT%\com\sun\star\xml\xpath
..\com\sun\star\xsd\*.idl %COMMON_DEST%\idl%_EXT%\com\sun\star\xsd
-
-..\drafts\com\sun\star\form\*.idl %COMMON_DEST%\idl%_EXT%\drafts\com\sun\star\form
diff --git a/offapi/type_reference/typelibrary_history.txt b/offapi/type_reference/typelibrary_history.txt
index 7dcd438d5517..9e80c05158db 100644
--- a/offapi/type_reference/typelibrary_history.txt
+++ b/offapi/type_reference/typelibrary_history.txt
@@ -158,3 +158,6 @@
Update reference type library with the version of OOo 3.2.1. The new
reference type library is taken from the release source tree OOO320 m19.
+11/09/10 (JSC): TaskID=i114887
+ remove drafts module from reference rdb. The odl drafts type are not used
+ and i cleaned up the module and the type library.
diff --git a/offapi/type_reference/types.rdb b/offapi/type_reference/types.rdb
index 6d9f761331f4..016304b1c626 100644
Binary files a/offapi/type_reference/types.rdb and b/offapi/type_reference/types.rdb differ
diff --git a/offapi/util/makefile.mk b/offapi/util/makefile.mk
index 016180d7765c..7fa6a7ff3956 100644
--- a/offapi/util/makefile.mk
+++ b/offapi/util/makefile.mk
@@ -132,7 +132,6 @@ UNOIDLDBFILES= \
$(UCR)$/cssgallery.db \
$(UCR)$/cssxsd.db \
$(UCR)$/cssinspection.db \
- $(UCR)$/dcssform.db \
$(UCR)$/xsec-security.db \
$(UCR)$/xsec-crypto.db \
$(UCR)$/xsec-csax.db \
diff --git a/unoil/util/makefile.mk b/unoil/util/makefile.mk
index f5d8125b81f8..c2bd22ef2733 100644
--- a/unoil/util/makefile.mk
+++ b/unoil/util/makefile.mk
@@ -35,7 +35,7 @@ TARGET = unoil
MAXLINELENGTH = 100000
-JARCLASSDIRS = com drafts
+JARCLASSDIRS = com
JARTARGET = $(TARGET).jar
JARCOMPRESS = TRUE
--
cgit
From b15f7fcbde3db69e60f9a9ccabb4ae1b7c5f8dee Mon Sep 17 00:00:00 2001
From: Juergen Schmidt
Date: Mon, 15 Nov 2010 13:38:30 +0100
Subject: jsc340: i114887: remove old not used draft types
---
.../sun/star/form/IncompatibleTypesException.idl | 57 ------------
offapi/drafts/com/sun/star/form/ListEntryEvent.idl | 77 ---------------
offapi/drafts/com/sun/star/form/XBindableValue.idl | 81 ----------------
.../com/sun/star/form/XListEntryListener.idl | 92 ------------------
offapi/drafts/com/sun/star/form/XListEntrySink.idl | 71 --------------
.../drafts/com/sun/star/form/XListEntrySource.idl | 103 ---------------------
offapi/drafts/com/sun/star/form/XValueBinding.idl | 101 --------------------
offapi/drafts/com/sun/star/form/makefile.mk | 52 -----------
registry/tools/makefile.mk | 10 +-
9 files changed, 9 insertions(+), 635 deletions(-)
delete mode 100644 offapi/drafts/com/sun/star/form/IncompatibleTypesException.idl
delete mode 100644 offapi/drafts/com/sun/star/form/ListEntryEvent.idl
delete mode 100644 offapi/drafts/com/sun/star/form/XBindableValue.idl
delete mode 100644 offapi/drafts/com/sun/star/form/XListEntryListener.idl
delete mode 100644 offapi/drafts/com/sun/star/form/XListEntrySink.idl
delete mode 100644 offapi/drafts/com/sun/star/form/XListEntrySource.idl
delete mode 100644 offapi/drafts/com/sun/star/form/XValueBinding.idl
delete mode 100644 offapi/drafts/com/sun/star/form/makefile.mk
diff --git a/offapi/drafts/com/sun/star/form/IncompatibleTypesException.idl b/offapi/drafts/com/sun/star/form/IncompatibleTypesException.idl
deleted file mode 100644
index ec784aa7c2bb..000000000000
--- a/offapi/drafts/com/sun/star/form/IncompatibleTypesException.idl
+++ /dev/null
@@ -1,57 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * 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
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef __drafts_com_sun_star_form_IncompatibleTypesException_idl__
-#define __drafts_com_sun_star_form_IncompatibleTypesException_idl__
-
-#ifndef __com_sun_star_uno_Exception_idl__
-#include
-#endif
-
-
-//=============================================================================
-
-module drafts { module com { module sun { module star { module form {
-
-//=============================================================================
-
-/** thrown to indicate that the types of an XValueBinding and
- an XBindableValue are incompatible
-
- @deprecated
- This exception is superseeded by IncompatibleTypesException
-*/
-exception IncompatibleTypesException: com::sun::star::uno::Exception
-{
-};
-
-//=============================================================================
-
-}; }; }; }; };
-
-//=============================================================================
-
-#endif
diff --git a/offapi/drafts/com/sun/star/form/ListEntryEvent.idl b/offapi/drafts/com/sun/star/form/ListEntryEvent.idl
deleted file mode 100644
index 9f7b8443f7da..000000000000
--- a/offapi/drafts/com/sun/star/form/ListEntryEvent.idl
+++ /dev/null
@@ -1,77 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * 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
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef __drafts_com_sun_star_form_ListEntryEvent_idl__
-#define __drafts_com_sun_star_form_ListEntryEvent_idl__
-
-#ifndef __com_sun_star_lang_EventObject_idl__
-#include
-#endif
-
-//=============================================================================
-
-module drafts { module com { module sun { module star { module form {
-
-//=============================================================================
-
-/** specifies the event which is notified when a change in a string entry
- list occured
-
- @see XListEntrySource
- @see XListEntryListener
-
- @deprecated
- This structure is superseeded by ListEntryEvent
-*/
-struct ListEntryEvent : com::sun::star::lang::EventObject
-{
- /** denotes the position where a change occured.
-
-
The concrete semantics of the value depends on the concrete
- event being notified.
- */
- long Position;
-
- /** denotes the number of changed entries, in case a change of
- an entry range is being notified.
- */
- long Count;
-
- /** denotes the changed entries
-
-
The concrete semantics of the value depends on the concrete
- event being notified.
- */
- sequence< string >
- Entries;
-};
-
-//=============================================================================
-
-}; }; }; }; };
-
-#endif
diff --git a/offapi/drafts/com/sun/star/form/XBindableValue.idl b/offapi/drafts/com/sun/star/form/XBindableValue.idl
deleted file mode 100644
index fafb1edda83d..000000000000
--- a/offapi/drafts/com/sun/star/form/XBindableValue.idl
+++ /dev/null
@@ -1,81 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * 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
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef __drafts_com_sun_star_form_XBindableValue_idl__
-#define __drafts_com_sun_star_form_XBindableValue_idl__
-
-#ifndef __com_sun_star_uno_XInterface_idl__
-#include
-#endif
-#ifndef __drafts_com_sun_star_form_IncompatibleTypesException_idl__
-#include
-#endif
-
-//=============================================================================
-
-module drafts { module com { module sun { module star { module form {
-
-interface XValueBinding;
-
-//=============================================================================
-
-/** specifies support for being bound to an external value
-
- @see XValueBinding
-
- @deprecated
- This interface is superseeded by XBindableValue
-*/
-interface XBindableValue : com::sun::star::uno::XInterface
-{
- /** sets an external instance which controls the value of the component
-
-
Any previously active binding will be revoked. There can be only one!
-
- @param XValueBinding
- the new binding which is to be used by the component. May be ,
- in this case only the current binding is revoked.
-
- @throws IncompatibleTypesException
- if the new binding (provided it's not ) supports only types
- which are incompatible with the types of the bindable component.
- */
- void setValueBinding( [in] XValueBinding aBinding )
- raises ( IncompatibleTypesException );
-
- /** retrieves the external instance which currently controls the value of the
- component
- */
- XValueBinding
- getValueBinding( );
-};
-
-//=============================================================================
-
-}; }; }; }; };
-
-#endif
diff --git a/offapi/drafts/com/sun/star/form/XListEntryListener.idl b/offapi/drafts/com/sun/star/form/XListEntryListener.idl
deleted file mode 100644
index e9e49d799d26..000000000000
--- a/offapi/drafts/com/sun/star/form/XListEntryListener.idl
+++ /dev/null
@@ -1,92 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * 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
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef __drafts_com_sun_star_form_XListEntryListener_idl__
-#define __drafts_com_sun_star_form_XListEntryListener_idl__
-
-#ifndef __com_sun_star_lang_XEventListener_idl__
-#include
-#endif
-#ifndef __drafts_com_sun_star_form_ListEntryEvent_idl__
-#include
-#endif
-
-//=============================================================================
-
-module drafts { module com { module sun { module star { module form {
-
-//=============================================================================
-
-/** specifies a listener for changes in a string entry list
-
- @deprecated
- This interface is superseeded by XListEntryListener
-*/
-interface XListEntryListener : com::sun::star::lang::XEventListener
-{
- /** notifies the listener that a single entry in the list has change
-
- @param Source
- is the event describing the change. The ListEntryEvent::Position
- member denotes the position of the changed entry, the first (and only) element
- of the ListEntryEvent::Entries member denotes the new string
- */
- void entryChanged( [in] ListEntryEvent Source );
-
- /** notifies the listener that a range of entries has been inserted into the list
-
- @param Source
- is the event describing the change. The ListEntryEvent::Position
- member denotes the position of the first inserted entry, the
- ListEntryEvent::Entries member contains the strings which have
- been inserted.
- */
- void entryRangeInserted( [in] ListEntryEvent Source );
-
- /** notifies the listener that a range of entries has been removed from the list
-
- @param Source
- is the event describing the change. The ListEntryEvent::Position
- member denotes the position of the first removed entry, the
- ListEntryEvent::Count member the number of removed entries.
- */
- void entryRangeRemoved( [in] ListEntryEvent Source );
-
- /** notifies the listener that all entries of the list have changed.
-
-
The listener should retrieve the complete new list by calling the
- XListEntrySource::getAllListEntries method of the event source
- (which is denoted by EventObject::Source).
- */
- void allEntriesChanged( [in] com::sun::star::lang::EventObject Source );
-};
-
-//=============================================================================
-
-}; }; }; }; };
-
-#endif
diff --git a/offapi/drafts/com/sun/star/form/XListEntrySink.idl b/offapi/drafts/com/sun/star/form/XListEntrySink.idl
deleted file mode 100644
index 3cd163189c1d..000000000000
--- a/offapi/drafts/com/sun/star/form/XListEntrySink.idl
+++ /dev/null
@@ -1,71 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * 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
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef __drafts_com_sun_star_form_XListEntrySink_idl__
-#define __drafts_com_sun_star_form_XListEntrySink_idl__
-
-#ifndef __com_sun_star_uno_XInterface_idl__
-#include
-#endif
-
-//=============================================================================
-
-module drafts { module com { module sun { module star { module form {
-
-interface XListEntrySource;
-
-//=============================================================================
-
-/** specifies support for indirect manipulation of of a string list
-
- @deprecated
- This interface is superseeded by XListEntrySink
-*/
-interface XListEntrySink : com::sun::star::uno::XInterface
-{
- /** sets the new source for the list entries of the component
-
-
The list represented by this component will be cleared, and initially
- filled with the entries from the new list source.
-
- @param Source
- the new source for the list entries. May be , in this
- case, the current source is revoked.
- */
- void setListEntrySource( [in] XListEntrySource Source );
-
- /** retrieves the current source for the list entries of the component.
- */
- XListEntrySource
- getListEntrySource( );
-};
-
-//=============================================================================
-
-}; }; }; }; };
-
-#endif
diff --git a/offapi/drafts/com/sun/star/form/XListEntrySource.idl b/offapi/drafts/com/sun/star/form/XListEntrySource.idl
deleted file mode 100644
index 095b8a703d5a..000000000000
--- a/offapi/drafts/com/sun/star/form/XListEntrySource.idl
+++ /dev/null
@@ -1,103 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * 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
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef __drafts_com_sun_star_form_XListEntrySource_idl__
-#define __drafts_com_sun_star_form_XListEntrySource_idl__
-
-#ifndef __com_sun_star_uno_XInterface_idl__
-#include
-#endif
-#ifndef __com_sun_star_lang_NullPointerException_idl__
-#include
-#endif
-#ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__
-#include
-#endif
-
-//=============================================================================
-
-module drafts { module com { module sun { module star { module form {
-
-interface XListEntryListener;
-
-//=============================================================================
-
-/** specifies a source of string list entries
-
-
The interface supports foreign components which actively retrieve list entries,
- as well as components which want to passively being notified of changes in the list.
-
- @see XListEntrySink
-
- @deprecated
- This interface is superseeded by XListEntrySource
-*/
-interface XListEntrySource : com::sun::star::uno::XInterface
-{
- /** retrieves the number of entries in the list
- */
- long getListEntryCount( );
-
- /** provides access to a single list entry
-
- @throws IndexOutOfBoundsException
- if the given position does not denote a valid index in the list
-
- @see getListEntryCount
- */
- string getListEntry( [in] long Position )
- raises( com::sun::star::lang::IndexOutOfBoundsException );
-
- /** provides access to the entirety of all list entries
- */
- sequence< string >
- getAllListEntries( );
-
- /** adds a listener which will be notified about changes in the list
- reflected by the component.
-
- @throws NullPointerException
- if the given listener is
- */
- void addListEntryListener( [in] XListEntryListener Listener )
- raises( com::sun::star::lang::NullPointerException );
-
- /** revokes the given listener from the list of components which will
- be notfiied about changes in the entry list.
-
- @throws NullPointerException
- if the given listener is
- */
- void removeListEntryListener( [in] XListEntryListener Listener )
- raises( com::sun::star::lang::NullPointerException );
-};
-
-//=============================================================================
-
-}; }; }; }; };
-
-#endif
diff --git a/offapi/drafts/com/sun/star/form/XValueBinding.idl b/offapi/drafts/com/sun/star/form/XValueBinding.idl
deleted file mode 100644
index a62c164ebfce..000000000000
--- a/offapi/drafts/com/sun/star/form/XValueBinding.idl
+++ /dev/null
@@ -1,101 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * 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
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef __drafts_com_sun_star_form_XValueBinding_idl__
-#define __drafts_com_sun_star_form_XValueBinding_idl__
-
-#ifndef __com_sun_star_uno_XInterface_idl__
-#include
-#endif
-#ifndef __com_sun_star_lang_NoSupportException_idl__
-#include
-#endif
-#ifndef __drafts_com_sun_star_form_IncompatibleTypesException_idl__
-#include
-#endif
-
-//=============================================================================
-
-module drafts { module com { module sun { module star { module form {
-
-//=============================================================================
-
-/** specifies a binding to a value which can be read and written.
-
- @deprecated
- This interface is superseeded by XValueBinding
-*/
-interface XValueBinding : com::sun::star::uno::XInterface
-{
- //-------------------------------------------------------------------------
- /** determines the types which are supported by this binding for value exchange
-
- @see supportsType
- */
- sequence< type >
- getSupportedValueTypes( );
-
- /** determines whether a given type is supported by this binding for value exchange
-
-
Calling this method is equal to calling getSupportedValueTypes,
- and looking up the given type in the resulting type sequence.
-
- @see getSupportedValueTypes
- */
- boolean supportsType( [in] type aType );
-
- /** retrieves the current value
-
- @throws IncompatibleTypesException
- if the requested value type is not supported by the binding
- @see getSupportedValueTypes
- @see supportsType
- */
- any getValue( [in] type aType )
- raises( IncompatibleTypesException );
-
- /** sets the current value
-
- @throws IncompatibleTypesException
- if the given value type is not supported by the binding
- @throws NoSupportException
- if the value currently cannot be changed (e.g. because it's readonly),
- or if the binding in general does not support write access to it's binding
-
- @see getSupportedValueTypes
- @see supportsType
- @see ValueBinding
- */
- void setValue( [in] any aValue )
- raises( IncompatibleTypesException, com::sun::star::lang::NoSupportException );
-};
-
-//=============================================================================
-
-}; }; }; }; };
-
-#endif
diff --git a/offapi/drafts/com/sun/star/form/makefile.mk b/offapi/drafts/com/sun/star/form/makefile.mk
deleted file mode 100644
index c5f68e0fe2b5..000000000000
--- a/offapi/drafts/com/sun/star/form/makefile.mk
+++ /dev/null
@@ -1,52 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2000, 2010 Oracle and/or its affiliates.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# 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
-#
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-PRJ=..$/..$/..$/..$/..
-
-PRJNAME=offapi
-
-TARGET=dcssform
-PACKAGE=drafts$/com$/sun$/star$/form
-
-# --- Settings -----------------------------------------------------
-.INCLUDE : $(PRJ)$/util$/makefile.pmk
-
-# ------------------------------------------------------------------------
-
-IDLFILES=\
- IncompatibleTypesException.idl \
- ListEntryEvent.idl \
- XBindableValue.idl \
- XValueBinding.idl \
- XListEntrySink.idl \
- XListEntrySource.idl \
- XListEntryListener.idl \
-
-# ------------------------------------------------------------------
-
-.INCLUDE : target.mk
-.INCLUDE : $(PRJ)$/util$/target.pmk
diff --git a/registry/tools/makefile.mk b/registry/tools/makefile.mk
index bb7d448b86e6..1f0f75f0ecbc 100644
--- a/registry/tools/makefile.mk
+++ b/registry/tools/makefile.mk
@@ -75,6 +75,14 @@ APP4STDLIBS=\
$(SALHELPERLIB) \
$(REGLIB)
-OBJFILES = $(APP1OBJS) $(APP2OBJS) $(APP3OBJS) $(APP4OBJS)
+APP5TARGET= rdbedit
+APP5OBJS= $(OBJ)$/rdbedit.obj
+
+APP5STDLIBS=\
+ $(SALLIB) \
+ $(SALHELPERLIB) \
+ $(REGLIB)
+
+OBJFILES = $(APP1OBJS) $(APP2OBJS) $(APP3OBJS) $(APP4OBJS) $(APP5OBJS)
.INCLUDE : target.mk
--
cgit
From 042118c8cbc8e33fbff7e479f974d7571c413859 Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Thu, 25 Nov 2010 14:17:30 +0100
Subject: #i115784# sal: fix memory errors uncovered by valgrind and other
tools.
---
sal/osl/unx/file.cxx | 3 +-
sal/osl/unx/file_misc.cxx | 6 +--
sal/osl/unx/file_path_helper.cxx | 80 ++++++++++++++++++++--------------------
sal/osl/unx/process_impl.cxx | 19 ++++++----
sal/osl/unx/profile.c | 1 -
sal/osl/unx/socket.c | 39 +++++++++++---------
6 files changed, 76 insertions(+), 72 deletions(-)
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index cc0c041bc328..67f1d05660a8 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -215,7 +215,8 @@ FileHandle_Impl::Allocator::~Allocator()
void FileHandle_Impl::Allocator::allocate (sal_uInt8 ** ppBuffer, size_t * pnSize)
{
OSL_PRECOND((0 != ppBuffer) && (0 != pnSize), "FileHandle_Impl::Allocator::allocate(): contract violation");
- *ppBuffer = static_cast< sal_uInt8* >(rtl_cache_alloc(m_cache)), *pnSize = m_bufsiz;
+ if ((0 != ppBuffer) && (0 != pnSize))
+ *ppBuffer = static_cast< sal_uInt8* >(rtl_cache_alloc(m_cache)), *pnSize = m_bufsiz;
}
void FileHandle_Impl::Allocator::deallocate (sal_uInt8 * pBuffer)
{
diff --git a/sal/osl/unx/file_misc.cxx b/sal/osl/unx/file_misc.cxx
index 331b91cb1626..964a56336f8c 100644
--- a/sal/osl/unx/file_misc.cxx
+++ b/sal/osl/unx/file_misc.cxx
@@ -334,10 +334,8 @@ oslFileError SAL_CALL osl_getDirectoryItem( rtl_uString* ustrFileURL, oslDirecto
rtl_uString* ustrSystemPath = NULL;
oslFileError osl_error = osl_File_E_INVAL;
- OSL_ASSERT(ustrFileURL);
- OSL_ASSERT(pItem);
-
- if (0 == ustrFileURL->length || NULL == pItem)
+ OSL_ASSERT((0 != ustrFileURL) && (0 != pItem));
+ if ((0 == ustrFileURL) || (0 == ustrFileURL->length) || (0 == pItem))
return osl_File_E_INVAL;
osl_error = osl_getSystemPathFromFileURL_Ex(ustrFileURL, &ustrSystemPath, sal_False);
diff --git a/sal/osl/unx/file_path_helper.cxx b/sal/osl/unx/file_path_helper.cxx
index 04fdd13e7c15..9dd3b08493b0 100644
--- a/sal/osl/unx/file_path_helper.cxx
+++ b/sal/osl/unx/file_path_helper.cxx
@@ -73,19 +73,21 @@
void SAL_CALL osl_systemPathRemoveSeparator(rtl_uString* pustrPath)
{
- OSL_PRECOND(pustrPath, "osl_systemPathRemoveSeparator: Invalid parameter");
-
- // maybe there are more than one separator at end
- // so we run in a loop
- while ((pustrPath->length > 1) && (FPH_CHAR_PATH_SEPARATOR == pustrPath->buffer[pustrPath->length - 1]))
+ OSL_PRECOND(0 != pustrPath, "osl_systemPathRemoveSeparator: Invalid parameter");
+ if (0 != pustrPath)
{
- pustrPath->length--;
- pustrPath->buffer[pustrPath->length] = (sal_Unicode)'\0';
- }
+ // maybe there are more than one separator at end
+ // so we run in a loop
+ while ((pustrPath->length > 1) && (FPH_CHAR_PATH_SEPARATOR == pustrPath->buffer[pustrPath->length - 1]))
+ {
+ pustrPath->length--;
+ pustrPath->buffer[pustrPath->length] = (sal_Unicode)'\0';
+ }
- OSL_POSTCOND((0 == pustrPath->length) || (1 == pustrPath->length) || \
- (pustrPath->length > 1 && pustrPath->buffer[pustrPath->length - 1] != FPH_CHAR_PATH_SEPARATOR), \
- "osl_systemPathRemoveSeparator: Post condition failed");
+ OSL_POSTCOND((0 == pustrPath->length) || (1 == pustrPath->length) || \
+ (pustrPath->length > 1 && pustrPath->buffer[pustrPath->length - 1] != FPH_CHAR_PATH_SEPARATOR), \
+ "osl_systemPathRemoveSeparator: Post condition failed");
+ }
}
/*******************************************
@@ -94,21 +96,22 @@
void SAL_CALL osl_systemPathEnsureSeparator(rtl_uString** ppustrPath)
{
- OSL_PRECOND(ppustrPath && (NULL != *ppustrPath), \
- "osl_systemPathEnsureSeparator: Invalid parameter");
-
- rtl::OUString path(*ppustrPath);
- sal_Int32 lp = path.getLength();
- sal_Int32 i = path.lastIndexOf(FPH_CHAR_PATH_SEPARATOR);
-
- if ((lp > 1 && i != (lp - 1)) || ((lp < 2) && i < 0))
- {
- path += FPH_PATH_SEPARATOR();
- rtl_uString_assign(ppustrPath, path.pData);
- }
-
- OSL_POSTCOND(path.lastIndexOf(FPH_CHAR_PATH_SEPARATOR) == (path.getLength() - 1), \
- "osl_systemPathEnsureSeparator: Post condition failed");
+ OSL_PRECOND((0 != ppustrPath) && (0 != *ppustrPath), "osl_systemPathEnsureSeparator: Invalid parameter");
+ if ((0 != ppustrPath) && (0 != *ppustrPath))
+ {
+ rtl::OUString path(*ppustrPath);
+ sal_Int32 lp = path.getLength();
+ sal_Int32 i = path.lastIndexOf(FPH_CHAR_PATH_SEPARATOR);
+
+ if ((lp > 1 && i != (lp - 1)) || ((lp < 2) && i < 0))
+ {
+ path += FPH_PATH_SEPARATOR();
+ rtl_uString_assign(ppustrPath, path.pData);
+ }
+
+ OSL_POSTCOND(path.lastIndexOf(FPH_CHAR_PATH_SEPARATOR) == (path.getLength() - 1), \
+ "osl_systemPathEnsureSeparator: Post condition failed");
+ }
}
/*******************************************
@@ -117,8 +120,8 @@
sal_Bool SAL_CALL osl_systemPathIsRelativePath(const rtl_uString* pustrPath)
{
- OSL_PRECOND(pustrPath, "osl_systemPathIsRelativePath: Invalid parameter");
- return ((0 == pustrPath->length) || (pustrPath->buffer[0] != FPH_CHAR_PATH_SEPARATOR));
+ OSL_PRECOND(0 != pustrPath, "osl_systemPathIsRelativePath: Invalid parameter");
+ return ((0 == pustrPath) || (0 == pustrPath->length) || (pustrPath->buffer[0] != FPH_CHAR_PATH_SEPARATOR));
}
/******************************************
@@ -177,21 +180,16 @@
sal_Bool SAL_CALL osl_systemPathIsHiddenFileOrDirectoryEntry(
const rtl_uString* pustrPath)
{
- OSL_PRECOND(pustrPath, "osl_systemPathIsHiddenFileOrDirectoryEntry: Invalid parameter");
-
- sal_Bool is_hidden = sal_False;
+ OSL_PRECOND(0 != pustrPath, "osl_systemPathIsHiddenFileOrDirectoryEntry: Invalid parameter");
+ if ((0 == pustrPath) || (0 == pustrPath->length))
+ return sal_False;
- if (pustrPath->length > 0)
- {
- rtl::OUString fdp;
-
- osl_systemPathGetFileNameOrLastDirectoryPart(pustrPath, &fdp.pData);
-
- is_hidden = ((fdp.pData->length > 0) && (fdp.pData->buffer[0] == FPH_CHAR_DOT) &&
- !osl_systemPathIsLocalOrParentDirectoryEntry(fdp.pData));
- }
+ rtl::OUString fdp;
+ osl_systemPathGetFileNameOrLastDirectoryPart(pustrPath, &fdp.pData);
- return is_hidden;
+ return ((fdp.pData->length > 0) &&
+ (fdp.pData->buffer[0] == FPH_CHAR_DOT) &&
+ !osl_systemPathIsLocalOrParentDirectoryEntry(fdp.pData));
}
diff --git a/sal/osl/unx/process_impl.cxx b/sal/osl/unx/process_impl.cxx
index e712b6748e7f..ee20c8552054 100644
--- a/sal/osl/unx/process_impl.cxx
+++ b/sal/osl/unx/process_impl.cxx
@@ -378,17 +378,20 @@ extern "C" int _imp_setProcessLocale( rtl_Locale * );
*********************************************/
oslProcessError SAL_CALL osl_getProcessLocale( rtl_Locale ** ppLocale )
{
+ oslProcessError result = osl_Process_E_Unknown;
OSL_PRECOND(ppLocale, "osl_getProcessLocale(): Invalid parameter.");
+ if (ppLocale)
+ {
+ pthread_mutex_lock(&(g_process_locale.m_mutex));
- pthread_mutex_lock(&(g_process_locale.m_mutex));
-
- if (g_process_locale.m_pLocale == 0)
- _imp_getProcessLocale (&(g_process_locale.m_pLocale));
- *ppLocale = g_process_locale.m_pLocale;
-
- pthread_mutex_unlock (&(g_process_locale.m_mutex));
+ if (g_process_locale.m_pLocale == 0)
+ _imp_getProcessLocale (&(g_process_locale.m_pLocale));
+ *ppLocale = g_process_locale.m_pLocale;
+ result = osl_Process_E_None;
- return (osl_Process_E_None);
+ pthread_mutex_unlock (&(g_process_locale.m_mutex));
+ }
+ return (result);
}
/**********************************************
diff --git a/sal/osl/unx/profile.c b/sal/osl/unx/profile.c
index c77a27543261..05d816c92755 100644
--- a/sal/osl/unx/profile.c
+++ b/sal/osl/unx/profile.c
@@ -514,7 +514,6 @@ sal_Bool SAL_CALL osl_readProfileString(oslProfile Profile,
if ( pTmpProfile->m_bIsValid == sal_False )
{
- OSL_ASSERT(pProfile->m_bIsValid);
pthread_mutex_unlock(&(pTmpProfile->m_AccessLock));
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_readProfileString [not valid]\n");
diff --git a/sal/osl/unx/socket.c b/sal/osl/unx/socket.c
index c8faf6c028f5..2f7b62a4bfa4 100644
--- a/sal/osl/unx/socket.c
+++ b/sal/osl/unx/socket.c
@@ -605,16 +605,16 @@ sal_Bool SAL_CALL osl_isEqualSocketAddr (
oslSocketAddr Addr1,
oslSocketAddr Addr2)
{
- struct sockaddr* pAddr1= &(Addr1->m_sockaddr);
- struct sockaddr* pAddr2= &(Addr2->m_sockaddr);
-
- OSL_ASSERT(pAddr1);
- OSL_ASSERT(pAddr2);
-
- if (pAddr1->sa_family == pAddr2->sa_family)
+ OSL_ASSERT((0 != Addr1) && (0 != Addr2));
+ if ((0 != Addr1) || (0 != Addr2))
{
- switch (pAddr1->sa_family)
- {
+ struct sockaddr* pAddr1= &(Addr1->m_sockaddr);
+ struct sockaddr* pAddr2= &(Addr2->m_sockaddr);
+
+ if (pAddr1->sa_family == pAddr2->sa_family)
+ {
+ switch (pAddr1->sa_family)
+ {
case AF_INET:
{
struct sockaddr_in* pInetAddr1= (struct sockaddr_in*)pAddr1;
@@ -623,16 +623,16 @@ sal_Bool SAL_CALL osl_isEqualSocketAddr (
if ((pInetAddr1->sin_family == pInetAddr2->sin_family) &&
(pInetAddr1->sin_addr.s_addr == pInetAddr2->sin_addr.s_addr) &&
(pInetAddr1->sin_port == pInetAddr2->sin_port))
- return (sal_True);
+ return (sal_True);
}
default:
{
- return (memcmp(pAddr1, Addr2, sizeof(struct sockaddr)) == 0);
+ return (memcmp(pAddr1, pAddr2, sizeof(struct sockaddr)) == 0);
}
- }
+ }
+ }
}
-
return (sal_False);
}
@@ -1173,7 +1173,6 @@ oslHostAddr SAL_CALL osl_createHostAddr (
rtl_string_release(strHostname);
}
-
return HostAddr;
}
@@ -1197,7 +1196,7 @@ oslHostAddr SAL_CALL osl_psz_createHostAddr (
pHostAddr= (oslHostAddr) malloc(sizeof(struct oslHostAddrImpl));
OSL_ASSERT(pHostAddr);
- if (pAddr == NULL)
+ if (pHostAddr == NULL)
{
free (cn);
return ((oslHostAddr)NULL);
@@ -2530,7 +2529,10 @@ sal_Bool __osl_socket_poll (
int timeout;
int result;
- OSL_ASSERT(pSocket);
+ OSL_ASSERT(0 != pSocket);
+ if (0 == pSocket)
+ return sal_False; /* EINVAL */
+
pSocket->m_nLastError = 0;
fds.fd = pSocket->m_Socket;
@@ -2573,7 +2575,10 @@ sal_Bool __osl_socket_poll (
struct timeval tv;
int result;
- OSL_ASSERT(pSocket);
+ OSL_ASSERT(0 != pSocket);
+ if (0 == pSocket)
+ return sal_False; /* EINVAL */
+
pSocket->m_nLastError = 0;
FD_ZERO(&fds);
--
cgit
From bb4f6eede90f866d878c6de2ebdb2a061686385c Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Thu, 25 Nov 2010 14:18:45 +0100
Subject: #i115784# store: fix memory errors uncovered by valgrind and other
tools.
---
store/source/lockbyte.cxx | 3 ++-
store/source/storbase.cxx | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/store/source/lockbyte.cxx b/store/source/lockbyte.cxx
index f1145a029c29..7e4ac7bcbb00 100644
--- a/store/source/lockbyte.cxx
+++ b/store/source/lockbyte.cxx
@@ -600,7 +600,8 @@ oslInterlockedCount SAL_CALL MappedLockBytes::release()
void MappedLockBytes::allocate_Impl (void ** ppPage, sal_uInt16 * pnSize)
{
OSL_PRECOND((ppPage != 0) && (pnSize != 0), "contract violation");
- *ppPage = 0, *pnSize = m_nPageSize;
+ if ((ppPage != 0) && (pnSize != 0))
+ *ppPage = 0, *pnSize = m_nPageSize;
}
void MappedLockBytes::deallocate_Impl (void * pPage)
diff --git a/store/source/storbase.cxx b/store/source/storbase.cxx
index 6eb005e453d8..690bff8d258e 100644
--- a/store/source/storbase.cxx
+++ b/store/source/storbase.cxx
@@ -158,7 +158,8 @@ PageData::Allocator_Impl::~Allocator_Impl()
void PageData::Allocator_Impl::allocate_Impl (void ** ppPage, sal_uInt16 * pnSize)
{
OSL_PRECOND((ppPage != 0) && (pnSize != 0), "contract violation");
- *ppPage = rtl_cache_alloc(m_page_cache), *pnSize = m_page_size;
+ if ((ppPage != 0) && (pnSize != 0))
+ *ppPage = rtl_cache_alloc(m_page_cache), *pnSize = m_page_size;
}
void PageData::Allocator_Impl::deallocate_Impl (void * pPage)
--
cgit
From 0ff6b9a26dd3916e7e5f29f37ec2220b95bf5180 Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Thu, 25 Nov 2010 14:22:01 +0100
Subject: #i115784# registry: fix memory errors uncovered by valgrind and other
tools.
---
registry/tools/checksingleton.cxx | 459 ++++-------
registry/tools/fileurl.cxx | 90 +++
registry/tools/fileurl.hxx | 43 +
registry/tools/makefile.mk | 8 +-
registry/tools/options.cxx | 153 ++++
registry/tools/options.hxx | 67 ++
registry/tools/regcompare.cxx | 1555 +++++++++++++++----------------------
registry/tools/regmerge.cxx | 277 +++----
registry/tools/regview.cxx | 72 +-
9 files changed, 1240 insertions(+), 1484 deletions(-)
create mode 100644 registry/tools/fileurl.cxx
create mode 100644 registry/tools/fileurl.hxx
create mode 100644 registry/tools/options.cxx
create mode 100644 registry/tools/options.hxx
diff --git a/registry/tools/checksingleton.cxx b/registry/tools/checksingleton.cxx
index 4353721ad0b0..b4fb1d6b04b2 100644
--- a/registry/tools/checksingleton.cxx
+++ b/registry/tools/checksingleton.cxx
@@ -28,297 +28,150 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_registry.hxx"
-#include
-#include
-
#include "registry/registry.hxx"
#include "registry/reflread.hxx"
-#include
-#include
-#include
-#include
-#include
-#include
-
-#ifdef SAL_UNX
-#define SEPARATOR '/'
-#else
-#define SEPARATOR '\\'
-#endif
+#include "fileurl.hxx"
+#include "options.hxx"
-using namespace ::rtl;
-using namespace ::osl;
+#include "rtl/ustring.hxx"
+#include "osl/diagnose.h"
-sal_Bool isFileUrl(const OString& fileName)
-{
- if (fileName.indexOf("file://") == 0 )
- return sal_True;
- return sal_False;
-}
-
-OUString convertToFileUrl(const OString& fileName)
-{
- if ( isFileUrl(fileName) )
- {
- return OStringToOUString(fileName, osl_getThreadTextEncoding());
- }
+#include
+#include
- OUString uUrlFileName;
- OUString uFileName(fileName.getStr(), fileName.getLength(), osl_getThreadTextEncoding());
- if ( fileName.indexOf('.') == 0 || fileName.indexOf(SEPARATOR) < 0 )
- {
- OUString uWorkingDir;
- if (osl_getProcessWorkingDir(&uWorkingDir.pData) != osl_Process_E_None)
- {
- OSL_ASSERT(false);
- }
- if (FileBase::getAbsoluteFileURL(uWorkingDir, uFileName, uUrlFileName)
- != FileBase::E_None)
- {
- OSL_ASSERT(false);
- }
- } else
- {
- if (FileBase::getFileURLFromSystemPath(uFileName, uUrlFileName)
- != FileBase::E_None)
- {
- OSL_ASSERT(false);
- }
- }
+#include
+#include
- return uUrlFileName;
-}
+using namespace rtl;
+using namespace registry::tools;
#define U2S( s ) \
OUStringToOString(s, RTL_TEXTENCODING_UTF8).getStr()
#define S2U( s ) \
OStringToOUString(s, RTL_TEXTENCODING_UTF8)
-struct LessString
-{
- sal_Bool operator()(const OUString& str1, const OUString& str2) const
- {
- return (str1 < str2);
- }
-};
-
-class Options
+class Options_Impl : public Options
{
public:
- Options()
- : m_bForceOutput(sal_False)
- {}
- ~Options()
+ explicit Options_Impl(char const * program)
+ : Options (program), m_bForceOutput(false)
{}
- sal_Bool initOptions(int ac, char* av[], sal_Bool bCmdFile=sal_False);
-
- OString prepareHelp();
- OString prepareVersion();
-
- const OString& getProgramName()
- { return m_program; }
- const OString& getIndexReg()
+ std::string const & getIndexReg() const
{ return m_indexRegName; }
- const OString& getTypeReg()
+ std::string const & getTypeReg() const
{ return m_typeRegName; }
- sal_Bool hasBase()
- { return m_base.getLength() > 0; }
- const OString& getBase()
+ bool hasBase() const
+ { return (m_base.getLength() > 0); }
+ const OString & getBase() const
{ return m_base; }
- sal_Bool forceOutput()
+ bool forceOutput() const
{ return m_bForceOutput; }
+
protected:
- OString m_program;
- OString m_indexRegName;
- OString m_typeRegName;
+ virtual void printUsage_Impl() const;
+ virtual bool initOptions_Impl (std::vector< std::string > & rArgs);
+
+ std::string m_indexRegName;
+ std::string m_typeRegName;
OString m_base;
- sal_Bool m_bForceOutput;
+ bool m_bForceOutput;
};
-sal_Bool Options::initOptions(int ac, char* av[], sal_Bool bCmdFile)
+// virtual
+void Options_Impl::printUsage_Impl() const
{
- sal_Bool bRet = sal_True;
- sal_uInt16 i=0;
+ std::string const & rProgName = getProgramName();
+ fprintf(stderr,
+ "Usage: %s -r -o [-options] | @\n", rProgName.c_str()
+ );
+ fprintf(stderr,
+ " -o = filename specifies the name of the new singleton index registry.\n"
+ " -r = filename specifies the name of the type registry.\n"
+ " @ = filename specifies a command file.\n"
+ "Options:\n"
+ " -b = name specifies the name of a start key. The types will be searched\n"
+ " under this key in the type registry.\n"
+ " -f = force the output of all found singletons.\n"
+ " -h|-? = print this help message and exit.\n"
+ );
+ fprintf(stderr,
+ "\nSun Microsystems (R) %s Version 1.0\n\n", rProgName.c_str()
+ );
+}
- if (!bCmdFile)
+// virtual
+bool Options_Impl::initOptions_Impl(std::vector< std::string > & rArgs)
+{
+ std::vector< std::string >::const_iterator first = rArgs.begin(), last = rArgs.end();
+ for (; first != last; ++first)
{
- bCmdFile = sal_True;
-
- m_program = av[0];
-
- if (ac < 2)
+ std::string option (*first);
+ if ((*first)[0] != '-')
{
- fprintf(stderr, "%s", prepareHelp().getStr());
- bRet = sal_False;
+ return badOption("invalid", option.c_str());
}
-
- i = 1;
- } else
- {
- i = 0;
- }
-
- char *s=NULL;
- for (; i < ac; i++)
- {
- if (av[i][0] == '-')
+ switch ((*first)[1])
{
- switch (av[i][1])
+ case 'r':
+ case 'R':
+ {
+ if (!((++first != last) && ((*first)[0] != '-')))
+ {
+ return badOption("invalid", option.c_str());
+ }
+ m_typeRegName = OString((*first).c_str(), (*first).size());
+ break;
+ }
+ case 'o':
+ case 'O':
{
- case 'r':
- case 'R':
- if (av[i][2] == '\0')
- {
- if (i < ac - 1 && av[i+1][0] != '-')
- {
- i++;
- s = av[i];
- } else
- {
- fprintf(stderr, "%s: invalid option '%s'\n", m_program.getStr(), av[i]);
- bRet = sal_False;
- break;
- }
- } else
- {
- s = av[i] + 2;
- }
- m_typeRegName = OString(s);
- break;
- case 'o':
- case 'O':
- if (av[i][2] == '\0')
- {
- if (i < ac - 1 && av[i+1][0] != '-')
- {
- i++;
- s = av[i];
- } else
- {
- fprintf(stderr, "%s: invalid option '%s'\n", m_program.getStr(), av[i]);
- bRet = sal_False;
- break;
- }
- } else
- {
- s = av[i] + 2;
- }
- m_indexRegName = OString(s);
- break;
- case 'b':
- case 'B':
- if (av[i][2] == '\0')
- {
- if (i < ac - 1 && av[i+1][0] != '-')
- {
- i++;
- s = av[i];
- } else
- {
- fprintf(stderr, "%s: invalid option '%s'\n", m_program.getStr(), av[i]);
- bRet = sal_False;
- break;
- }
- } else
- {
- s = av[i] + 2;
- }
- m_base = OString(s);
- break;
- case 'f':
- case 'F':
- if (av[i][2] != '\0')
- {
- fprintf(stderr, "%s: invalid option '%s'\n", m_program.getStr(), av[i]);
- bRet = sal_False;
- }
- m_bForceOutput = sal_True;
- break;
- case 'h':
- case '?':
- if (av[i][2] != '\0')
- {
- fprintf(stderr, "%s: invalid option '%s'\n", m_program.getStr(), av[i]);
- bRet = sal_False;
- } else
- {
- fprintf(stdout, "%s", prepareHelp().getStr());
- exit(0);
- }
- break;
- default:
- fprintf(stderr, "%s: unknown option '%s'\n", m_program.getStr(), av[i]);
- bRet = sal_False;
- break;
+ if (!((++first != last) && ((*first)[0] != '-')))
+ {
+ return badOption("invalid", option.c_str());
+ }
+ m_indexRegName = (*first);
+ break;
}
- } else
- {
- if (av[i][0] == '@')
+ case 'b':
+ case 'B':
{
- FILE* cmdFile = fopen(av[i]+1, "r");
- if( cmdFile == NULL )
- {
- fprintf(stderr, "%s", prepareHelp().getStr());
- bRet = sal_False;
- } else
+ if (!((++first != last) && ((*first)[0] != '-')))
{
- int rargc=0;
- char* rargv[512];
- char buffer[512];
-
- while ( fscanf(cmdFile, "%s", buffer) != EOF )
- {
- rargv[rargc]= strdup(buffer);
- rargc++;
- }
- fclose(cmdFile);
-
- bRet = initOptions(rargc, rargv, bCmdFile);
-
- for (long j=0; j < rargc; j++)
- {
- free(rargv[j]);
- }
+ return badOption("invalid", option.c_str());
+ }
+ m_base = OString((*first).c_str(), (*first).size());
+ break;
+ }
+ case 'f':
+ case 'F':
+ {
+ if ((*first)[2] != 0)
+ {
+ return badOption("invalid", option.c_str());
}
- } else
+ m_bForceOutput = sal_True;
+ break;
+ }
+ case 'h':
+ case '?':
{
- fprintf(stderr, "%s: unknown option '%s'\n", m_program.getStr(), av[i]);
- bRet = sal_False;
+ if ((*first)[2] != 0)
+ {
+ return badOption("invalid", option.c_str());
+ }
+ return printUsage();
+ break;
}
+ default:
+ return badOption("unknown", option.c_str());
+ break;
}
}
-
- return bRet;
-}
-
-OString Options::prepareHelp()
-{
- OString help("\nusing: ");
- help += m_program + " -r -o [-options] | @\n";
- help += " -o = filename specifies the name of the new singleton index registry.\n";
- help += " -r = filename specifies the name of the type registry.\n";
- help += " @ = filename specifies a command file.\n";
- help += "Options:\n";
- help += " -b = name specifies the name of a start key. The types will be searched\n";
- help += " under this key in the type registry.\n";
- help += " -f = force the output of all found singletons.\n";
- help += " -h|-? = print this help message and exit.\n";
- help += prepareVersion();
-
- return help;
+ return true;
}
-OString Options::prepareVersion()
-{
- OString version("\nSun Microsystems (R) ");
- version += m_program + " Version 1.0\n\n";
- return version;
-}
-
-static Options options;
-
-static sal_Bool checkSingletons(RegistryKey& singletonKey, RegistryKey& typeKey)
+static sal_Bool checkSingletons(Options_Impl const & options, RegistryKey& singletonKey, RegistryKey& typeKey)
{
RegValueType valueType = RG_VALUETYPE_NOT_DEFINED;
sal_uInt32 size = 0;
@@ -326,24 +179,22 @@ static sal_Bool checkSingletons(RegistryKey& singletonKey, RegistryKey& typeKey)
sal_Bool bRet = sal_False;
RegError e = typeKey.getValueInfo(tmpName, &valueType, &size);
-
- if ( e != REG_VALUE_NOT_EXISTS && e != REG_INVALID_VALUE && valueType == RG_VALUETYPE_BINARY)
+ if ((e != REG_VALUE_NOT_EXISTS) && (e != REG_INVALID_VALUE) && (valueType == RG_VALUETYPE_BINARY))
{
- RegistryKey entryKey;
- RegValue value = rtl_allocateMemory(size);
-
- typeKey.getValue(tmpName, value);
-
- RegistryTypeReader reader((sal_uInt8*)value, size, sal_False);
+ std::vector< sal_uInt8 > value(size);
+ typeKey.getValue(tmpName, value.data()); // @@@ broken api: write to buffer w/o buffer size.
+ RegistryTypeReader reader(value.data(), value.size(), sal_False);
if ( reader.isValid() && reader.getTypeClass() == RT_TYPE_SINGLETON )
{
- OUString singletonName = reader.getTypeName().replace('/', '.');
+ RegistryKey entryKey;
+ OUString singletonName = reader.getTypeName().replace('/', '.');
if ( singletonKey.createKey(singletonName, entryKey) )
{
fprintf(stderr, "%s: could not create SINGLETONS entry for \"%s\"\n",
- options.getProgramName().getStr(), U2S( singletonName ));
- } else
+ options.getProgramName().c_str(), U2S( singletonName ));
+ }
+ else
{
bRet = sal_True;
OUString value2 = reader.getSuperTypeName();
@@ -352,30 +203,26 @@ static sal_Bool checkSingletons(RegistryKey& singletonKey, RegistryKey& typeKey)
(RegValue)value2.getStr(), sizeof(sal_Unicode)* (value2.getLength()+1)) )
{
fprintf(stderr, "%s: could not create data entry for singleton \"%s\"\n",
- options.getProgramName().getStr(), U2S( singletonName ));
+ options.getProgramName().c_str(), U2S( singletonName ));
}
if ( options.forceOutput() )
{
fprintf(stderr, "%s: create SINGLETON entry for \"%s\" -> \"%s\"\n",
- options.getProgramName().getStr(), U2S( singletonName ), U2S(value2));
+ options.getProgramName().c_str(), U2S( singletonName ), U2S(value2));
}
}
}
-
- rtl_freeMemory(value);
}
RegistryKeyArray subKeys;
-
typeKey.openSubKeys(tmpName, subKeys);
sal_uInt32 length = subKeys.getLength();
- RegistryKey elementKey;
for (sal_uInt32 i = 0; i < length; i++)
{
- elementKey = subKeys.getElement(i);
- if ( checkSingletons(singletonKey, elementKey) )
+ RegistryKey elementKey = subKeys.getElement(i);
+ if ( checkSingletons(options, singletonKey, elementKey) )
{
bRet = sal_True;
}
@@ -389,69 +236,85 @@ int main( int argc, char * argv[] )
int _cdecl main( int argc, char * argv[] )
#endif
{
- if ( !options.initOptions(argc, argv) )
+ std::vector< std::string > args;
+ for (int i = 1; i < argc; i++)
{
- exit(1);
+ int result = Options::checkArgument(args, argv[i], strlen(argv[i]));
+ if (result != 0)
+ {
+ // failure.
+ return (result);
+ }
}
- OUString indexRegName( convertToFileUrl(options.getIndexReg()) );
- OUString typeRegName( convertToFileUrl(options.getTypeReg()) );
+ Options_Impl options(argv[0]);
+ if (!options.initOptions(args))
+ {
+ options.printUsage();
+ return (1);
+ }
+ OUString indexRegName( convertToFileUrl(options.getIndexReg().c_str(), options.getIndexReg().size()) );
Registry indexReg;
- Registry typeReg;
-
if ( indexReg.open(indexRegName, REG_READWRITE) )
{
if ( indexReg.create(indexRegName) )
{
fprintf(stderr, "%s: open registry \"%s\" failed\n",
- options.getProgramName().getStr(), options.getIndexReg().getStr());
- exit(2);
+ options.getProgramName().c_str(), options.getIndexReg().c_str());
+ return (2);
}
}
+
+ OUString typeRegName( convertToFileUrl(options.getTypeReg().c_str(), options.getTypeReg().size()) );
+ Registry typeReg;
if ( typeReg.open(typeRegName, REG_READONLY) )
{
fprintf(stderr, "%s: open registry \"%s\" failed\n",
- options.getProgramName().getStr(), options.getTypeReg().getStr());
- exit(3);
+ options.getProgramName().c_str(), options.getTypeReg().c_str());
+ return (3);
}
- RegistryKey indexRoot, typeRoot;
+ RegistryKey indexRoot;
if ( indexReg.openRootKey(indexRoot) )
{
fprintf(stderr, "%s: open root key of registry \"%s\" failed\n",
- options.getProgramName().getStr(), options.getIndexReg().getStr());
- exit(4);
+ options.getProgramName().c_str(), options.getIndexReg().c_str());
+ return (4);
}
+
+ RegistryKey typeRoot;
if ( typeReg.openRootKey(typeRoot) )
{
fprintf(stderr, "%s: open root key of registry \"%s\" failed\n",
- options.getProgramName().getStr(), options.getTypeReg().getStr());
- exit(5);
+ options.getProgramName().c_str(), options.getTypeReg().c_str());
+ return (5);
}
- RegistryKey singletonKey, typeKey;
+ RegistryKey typeKey;
if ( options.hasBase() )
{
if ( typeRoot.openKey(S2U(options.getBase()), typeKey) )
{
fprintf(stderr, "%s: open base key of registry \"%s\" failed\n",
- options.getProgramName().getStr(), options.getTypeReg().getStr());
- exit(6);
+ options.getProgramName().c_str(), options.getTypeReg().c_str());
+ return (6);
}
- } else
+ }
+ else
{
typeKey = typeRoot;
}
+ RegistryKey singletonKey;
if ( indexRoot.createKey(OUString::createFromAscii("SINGLETONS"), singletonKey) )
{
fprintf(stderr, "%s: open/create SINGLETONS key of registry \"%s\" failed\n",
- options.getProgramName().getStr(), options.getIndexReg().getStr());
- exit(7);
+ options.getProgramName().c_str(), options.getIndexReg().c_str());
+ return (7);
}
- sal_Bool bSingletonsExist = checkSingletons(singletonKey, typeKey);
+ sal_Bool bSingletonsExist = checkSingletons(options, singletonKey, typeKey);
indexRoot.releaseKey();
typeRoot.releaseKey();
@@ -460,24 +323,22 @@ int _cdecl main( int argc, char * argv[] )
if ( indexReg.close() )
{
fprintf(stderr, "%s: closing registry \"%s\" failed\n",
- options.getProgramName().getStr(), options.getIndexReg().getStr());
- exit(9);
+ options.getProgramName().c_str(), options.getIndexReg().c_str());
+ return (9);
}
if ( !bSingletonsExist )
{
if ( indexReg.destroy(OUString()) )
{
fprintf(stderr, "%s: destroy registry \"%s\" failed\n",
- options.getProgramName().getStr(), options.getIndexReg().getStr());
- exit(10);
+ options.getProgramName().c_str(), options.getIndexReg().c_str());
+ return (10);
}
}
if ( typeReg.close() )
{
fprintf(stderr, "%s: closing registry \"%s\" failed\n",
- options.getProgramName().getStr(), options.getTypeReg().getStr());
- exit(11);
+ options.getProgramName().c_str(), options.getTypeReg().c_str());
+ return (11);
}
}
-
-
diff --git a/registry/tools/fileurl.cxx b/registry/tools/fileurl.cxx
new file mode 100644
index 000000000000..e3561888c674
--- /dev/null
+++ b/registry/tools/fileurl.cxx
@@ -0,0 +1,90 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * 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
+ *
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#include "fileurl.hxx"
+
+#include "rtl/ustring.hxx"
+#include "osl/diagnose.h"
+#include "osl/file.hxx"
+#include "osl/process.h"
+#include "osl/thread.h"
+
+#include
+
+#ifdef SAL_UNX
+#define SEPARATOR '/'
+#else
+#define SEPARATOR '\\'
+#endif
+
+using rtl::OUString;
+using osl::FileBase;
+
+namespace registry
+{
+namespace tools
+{
+
+OUString convertToFileUrl(char const * filename, size_t length)
+{
+ OUString const uFileName(filename, length, osl_getThreadTextEncoding());
+ if (strncmp(filename, "file://", 7) == 0)
+ {
+ // already a FileUrl.
+ return uFileName;
+ }
+
+ OUString uFileUrl;
+ if (length > 0)
+ {
+ if ((filename[0] == '.') || (filename[0] != SEPARATOR))
+ {
+ // relative path name.
+ OUString uWorkingDir;
+ if (osl_getProcessWorkingDir(&uWorkingDir.pData) != osl_Process_E_None)
+ {
+ OSL_ASSERT(false);
+ }
+ if (FileBase::getAbsoluteFileURL(uWorkingDir, uFileName, uFileUrl) != FileBase::E_None)
+ {
+ OSL_ASSERT(false);
+ }
+ }
+ else
+ {
+ // absolute path name.
+ if (FileBase::getFileURLFromSystemPath(uFileName, uFileUrl) != FileBase::E_None)
+ {
+ OSL_ASSERT(false);
+ }
+ }
+ }
+ return uFileUrl;
+}
+
+} // namespace tools
+} // namespace registry
diff --git a/registry/tools/fileurl.hxx b/registry/tools/fileurl.hxx
new file mode 100644
index 000000000000..bbaa218f32e6
--- /dev/null
+++ b/registry/tools/fileurl.hxx
@@ -0,0 +1,43 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * 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
+ *
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef INCLUDED_REGISTRY_TOOLS_FILEURL_HXX
+#define INCLUDED_REGISTRY_TOOLS_FILEURL_HXX
+
+#include "rtl/ustring.hxx"
+
+namespace registry
+{
+namespace tools
+{
+
+rtl::OUString convertToFileUrl(char const * filename, size_t length);
+
+} // namespace tools
+} // namespace registry
+
+#endif /* INCLUDED_REGISTRY_TOOLS_FILEURL_HXX */
diff --git a/registry/tools/makefile.mk b/registry/tools/makefile.mk
index bb7d448b86e6..e05a791425f9 100644
--- a/registry/tools/makefile.mk
+++ b/registry/tools/makefile.mk
@@ -43,7 +43,7 @@ ENABLE_EXCEPTIONS := TRUE
CDEFS += -DDLL_VERSION=$(EMQ)"$(DLLPOSTFIX)$(EMQ)"
APP1TARGET= $(TARGET)
-APP1OBJS= $(OBJ)$/regmerge.obj
+APP1OBJS= $(OBJ)$/regmerge.obj $(OBJ)/fileurl.obj $(OBJ)/options.obj
APP1RPATH= UREBIN
APP1STDLIBS=\
@@ -51,7 +51,7 @@ APP1STDLIBS=\
$(REGLIB)
APP2TARGET= regview
-APP2OBJS= $(OBJ)$/regview.obj
+APP2OBJS= $(OBJ)$/regview.obj $(OBJ)/fileurl.obj
APP2RPATH= UREBIN
APP2STDLIBS=\
@@ -59,7 +59,7 @@ APP2STDLIBS=\
$(REGLIB)
APP3TARGET= regcompare
-APP3OBJS= $(OBJ)$/regcompare.obj
+APP3OBJS= $(OBJ)$/regcompare.obj $(OBJ)/fileurl.obj $(OBJ)/options.obj
APP3RPATH= SDK
APP3STDLIBS=\
@@ -68,7 +68,7 @@ APP3STDLIBS=\
$(REGLIB)
APP4TARGET= checksingleton
-APP4OBJS= $(OBJ)$/checksingleton.obj
+APP4OBJS= $(OBJ)$/checksingleton.obj $(OBJ)/fileurl.obj $(OBJ)/options.obj
APP4STDLIBS=\
$(SALLIB) \
diff --git a/registry/tools/options.cxx b/registry/tools/options.cxx
new file mode 100644
index 000000000000..d851825ebfb6
--- /dev/null
+++ b/registry/tools/options.cxx
@@ -0,0 +1,153 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * 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
+ *
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#include "options.hxx"
+
+#include "osl/diagnose.h"
+
+#include
+#include
+
+namespace registry
+{
+namespace tools
+{
+
+Options::Options (char const * program)
+ : m_program (program)
+{}
+
+Options::~Options()
+{}
+
+// static
+bool Options::checkArgument(std::vector< std::string> & rArgs, char const * arg, size_t len)
+{
+ bool result = ((arg != 0) && (len > 0));
+ OSL_PRECOND(result, "registry::tools::Options::checkArgument(): invalid arguments");
+ if (result)
+ {
+ OSL_TRACE("registry::tools:Options::checkArgument(): \"%s\"", arg);
+ switch (arg[0])
+ {
+ case '@':
+ if ((result = (len > 1)) == true)
+ {
+ // "@"
+ result = Options::checkCommandFile(rArgs, &(arg[1]));
+ }
+ break;
+ case '-':
+ if ((result = (len > 1)) == true)
+ {
+ // "-
- @since OOo3.1
+ @since OOo 3.1
*/
struct DDELinkInfo
{
diff --git a/offapi/com/sun/star/sheet/ExternalLinkInfo.idl b/offapi/com/sun/star/sheet/ExternalLinkInfo.idl
index fa8590f7f678..0ad8d6dadeb4 100644
--- a/offapi/com/sun/star/sheet/ExternalLinkInfo.idl
+++ b/offapi/com/sun/star/sheet/ExternalLinkInfo.idl
@@ -38,7 +38,7 @@ module com { module sun { module star { module sheet {
//=============================================================================
/** describes an external link in a formula.
- @since OOo3.1
+ @since OOo 3.1
*/
struct ExternalLinkInfo
{
diff --git a/offapi/com/sun/star/sheet/ExternalLinkType.idl b/offapi/com/sun/star/sheet/ExternalLinkType.idl
index 7803a4c3b291..976524506775 100644
--- a/offapi/com/sun/star/sheet/ExternalLinkType.idl
+++ b/offapi/com/sun/star/sheet/ExternalLinkType.idl
@@ -38,7 +38,7 @@ module com { module sun { module star { module sheet {
ExternalLinkInfo, used with
FormulaParser::ExternalLinks.
- @since OOo3.1
+ @since OOo 3.1
*/
constants ExternalLinkType
{
diff --git a/offapi/com/sun/star/sheet/FormulaParser.idl b/offapi/com/sun/star/sheet/FormulaParser.idl
index 27fba17ff0c0..acf4eca4910b 100644
--- a/offapi/com/sun/star/sheet/FormulaParser.idl
+++ b/offapi/com/sun/star/sheet/FormulaParser.idl
@@ -103,7 +103,7 @@ service FormulaParser
that indices are 1-based, the sequence must start with an empty
element.
- @since OOo3.1
+ @since OOo 3.1
*/
[property] sequence< ExternalLinkInfo > ExternalLinks;
diff --git a/offapi/com/sun/star/task/XRestartManager.idl b/offapi/com/sun/star/task/XRestartManager.idl
index 102a1044d2e8..c53d0954b415 100644
--- a/offapi/com/sun/star/task/XRestartManager.idl
+++ b/offapi/com/sun/star/task/XRestartManager.idl
@@ -47,7 +47,7 @@ module com { module sun { module star { module task {
//=============================================================================
/** allows to try to restart the office.
- @since OOo3.3
+ @since OOo 3.3
*/
published interface XRestartManager : com::sun::star::uno::XInterface
{
diff --git a/offapi/com/sun/star/util/XBroadcaster.idl b/offapi/com/sun/star/util/XBroadcaster.idl
index feb09fe6124f..91611901baec 100644
--- a/offapi/com/sun/star/util/XBroadcaster.idl
+++ b/offapi/com/sun/star/util/XBroadcaster.idl
@@ -39,7 +39,7 @@ module com { module sun { module star { module util {
/** allows to control notification behaviour of a broadcaster.
- @since 3.0
+ @since OOo 3.0
*/
interface XBroadcaster: com::sun::star::uno::XInterface
{
diff --git a/udkapi/com/sun/star/io/XAsyncOutputMonitor.idl b/udkapi/com/sun/star/io/XAsyncOutputMonitor.idl
index b70c4a277703..1aa25e82f253 100644
--- a/udkapi/com/sun/star/io/XAsyncOutputMonitor.idl
+++ b/udkapi/com/sun/star/io/XAsyncOutputMonitor.idl
@@ -59,7 +59,7 @@ module com { module sun { module star { module io {
should be called after the series of calls to
XOutputStream::writeBytes.
- @since OOo2.0
+ @since OOo 2.0
*/
interface XAsyncOutputMonitor {
/**
--
cgit
From 45afa697bd2f8a7a698a44328fc39a806393653e Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Thu, 27 Jan 2011 12:53:04 +0100
Subject: #i115784# Removed obsolete and unreferenced sal/rtl/alloc
implementation.
---
sal/rtl/source/alloc.c | 1541 ------------------------------------------------
1 file changed, 1541 deletions(-)
delete mode 100644 sal/rtl/source/alloc.c
diff --git a/sal/rtl/source/alloc.c b/sal/rtl/source/alloc.c
deleted file mode 100644
index 44b37c255004..000000000000
--- a/sal/rtl/source/alloc.c
+++ /dev/null
@@ -1,1541 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * 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
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifdef PROFILE
-#undef OSL_DEBUG_LEVEL
-#define OSL_DEBUG_LEVEL 0
-#endif /* PROFILE */
-
-#include
-#include
-#include
-
-#ifndef INCLUDED_STDDEF_H
-#include
-#define INCLUDED_STDDEF_H
-#endif
-
-#ifndef INCLUDED_STDLIB_H
-#include
-#define INCLUDED_STDLIB_H
-#endif
-
-#ifndef INCLUDED_STRING_H
-#include
-#define INCLUDED_STRING_H
-#endif
-
-#ifndef FORCE_SYSALLOC
-
-/*===========================================================================
- *
- * rtl_memory (UNX) internals.
- *
- *=========================================================================*/
-#ifdef SAL_UNX
-
-#include
-#include
-#include
-#include
-
-typedef pthread_mutex_t mutex_type;
-
-#define RTL_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER
-#define RTL_MUTEX_ACQUIRE(a) pthread_mutex_lock((a))
-#define RTL_MUTEX_RELEASE(a) pthread_mutex_unlock((a))
-
-#if defined(FREEBSD) || defined(NETBSD) || defined(MACOSX)
-static sal_Size __rtl_memory_vmpagesize (void)
-{
- /* xBSD */
- return (sal_Size)(getpagesize());
-}
-#elif defined(LINUX) || defined(SOLARIS)
-static sal_Size __rtl_memory_vmpagesize (void)
-{
- /* POSIX */
- return (sal_Size)(sysconf(_SC_PAGESIZE));
-}
-#else
-static sal_Size __rtl_memory_vmpagesize (void)
-{
- /* other */
- return (sal_Size)(0x2000);
-}
-#endif /* FREEBSD || NETBSD || MACOSX || LINUX || SOLARIS */
-
-#ifndef PROT_HEAP
-#define PROT_HEAP (PROT_READ | PROT_WRITE | PROT_EXEC)
-#endif
-
-/* #95880# building on Solaris 8 provides MAP_ANON, but it
- is not available on Solaris 7 */
-#if defined (SOLARIS)
-#ifdef MAP_ANON
-#undef MAP_ANON
-#endif
-#endif
-
-#ifndef MAP_ANON
-static void* __rtl_memory_vmalloc (sal_Size n)
-{
- /* SYSV */
- int fd = open("/dev/zero", O_RDWR);
- if (!(fd < 0))
- {
- void * p = mmap(NULL, n, PROT_HEAP, MAP_PRIVATE, fd, 0);
- close(fd);
- return ((p == MAP_FAILED) ? NULL : p);
- }
- return (NULL);
-}
-#else /* MAP_ANON */
-static void* __rtl_memory_vmalloc (sal_Size n)
-{
- /* xBSD */
- void * p = mmap(NULL, n, PROT_HEAP, MAP_PRIVATE | MAP_ANON, -1, 0);
- return ((p == MAP_FAILED) ? NULL : p);
-}
-#endif /* MAP_ANON */
-
-#define RTL_MEMORY_ALLOC(n) __rtl_memory_vmalloc((sal_Size)(n))
-#define RTL_MEMORY_FREE(p, n) munmap((void*)(p), (sal_Size)(n))
-
-#endif /* SAL_UNX */
-
-/*===========================================================================
- *
- * rtl_memory (W32) internals.
- *
- *=========================================================================*/
-#ifdef SAL_W32
-
-#define WIN32_LEAN_AND_MEAN
-#ifdef _MSC_VER
-#pragma warning(push,1) /* disable warnings within system headers */
-#endif
-#include
-#include
-
-typedef CRITICAL_SECTION mutex_type;
-
-/* Static initializer (struct declared in WINNT.H). */
-#define RTL_MUTEX_INITIALIZER { NULL, -1, 0, NULL, NULL, 0 }
-
-/*
- * __rtl_mutex_init (dynamic initialization).
- *
- * Static initialization (with DebugInfo == NULL)
- * leads to Access Violation upon first contention.
- */
-static void __rtl_mutex_init (LPCRITICAL_SECTION lpCriticalSection)
-{
- static LONG g_spinlock = 0;
-
- while (InterlockedExchange (&g_spinlock, 1) == 1)
- {
- /* Already locked, spin */
- Sleep (0);
- }
- if (!(lpCriticalSection->DebugInfo))
- {
- /* Dynamic initialization */
- InitializeCriticalSection (lpCriticalSection);
- }
- InterlockedExchange (&g_spinlock, 0);
-}
-
-#define RTL_MUTEX_INIT(a) __rtl_mutex_init((LPCRITICAL_SECTION)(a))
-#define RTL_MUTEX_ACQUIRE(a) EnterCriticalSection((a))
-#define RTL_MUTEX_RELEASE(a) LeaveCriticalSection((a))
-
-static sal_Size __rtl_memory_vmpagesize (void)
-{
- SYSTEM_INFO info;
- GetSystemInfo (&info);
- return ((sal_Size)(info.dwPageSize));
-}
-
-#define RTL_MEMORY_ALLOC(n) \
-(void*)(VirtualAlloc (NULL, (SIZE_T)(n), MEM_COMMIT, PAGE_READWRITE))
-
-#define RTL_MEMORY_FREE(p, n) \
-(void)(VirtualFree ((LPVOID)(p), (SIZE_T)(0), MEM_RELEASE))
-
-#endif /* SAL_W32 */
-
-/*===========================================================================
- *
- * rtl_memory (OS2) internals.
- *
- *=========================================================================*/
-#ifdef SAL_OS2
-
-#define INCL_DOS
-#include
-
-typedef HMTX mutex_type;
-
-/* Static initializer */
-#define RTL_MUTEX_INITIALIZER -1
-
-/*
- * __rtl_mutex_init (dynamic initialization).
- *
- * Static initialization (with DebugInfo == NULL)
- * leads to Access Violation upon first contention.
- */
-static void __rtl_mutex_init (mutex_type* mutex)
-{
- APIRET rc = 0;
-
- rc = DosCreateMutexSem(NULL,mutex,0,0);
-
-}
-
-static int __rtl_mutex_destroy (mutex_type* mutex)
-{
- APIRET rc = 0;
-
-
- do {
- rc = DosCloseMutexSem(*mutex);
- if (rc == 301) DosReleaseMutexSem(*mutex);
- } while (rc == 301);
-
- *mutex = 0;
-
- /* Return the completion status: */
- return (0);
-}
-
-
-static int __rtl_mutex_acquire(mutex_type* mutex)
-{
- int ret = 0;
- int status = 0;
- APIRET rc = 0;
-
- // initialize static semaphores created with PTHREAD_MUTEX_INITIALIZER state.
- if (*mutex == -1)
- __rtl_mutex_init( mutex);
-
- rc = DosRequestMutexSem(*mutex,SEM_INDEFINITE_WAIT);
- if (rc)
- return(1);
-
- /* Return the completion status: */
- return (0);
-}
-
-static int __rtl_mutex_release(mutex_type* mutex)
-{
- int ret = 0;
- APIRET rc = 0;
- int status;
-
-
- // initialize static semaphores created with PTHREAD_MUTEX_INITIALIZER state.
- if (*mutex == -1)
- __rtl_mutex_init( mutex);
-
- rc = DosReleaseMutexSem(*mutex);
-
- /* Return the completion status: */
- return (0);
-}
-
-#define RTL_MUTEX_INIT(a) __rtl_mutex_init((mutex_type*)(a))
-#define RTL_MUTEX_ACQUIRE(a) __rtl_mutex_acquire((mutex_type*)(a))
-#define RTL_MUTEX_RELEASE(a) __rtl_mutex_release((mutex_type*)(a))
-
-static sal_Size __rtl_memory_vmpagesize (void)
-{
- return (sal_Size)(getpagesize());
-}
-
-#define RTL_MEMORY_ALLOC(n) (void*)(malloc(n))
-
-#define RTL_MEMORY_FREE(p, n) (void)(free(p))
-
-#endif /* SAL_OS2 */
-
-/*===========================================================================
- *
- * rtl_memory (global) internals.
- *
- *=========================================================================*/
-#define __L__ 32
-#define __P__ 24
-#define __N__ ((__L__) + (__P__))
-#define __M__ 0x10000
-
-static const sal_Size __T__ = (__M__) * 2 / 3;
-
-typedef struct __rtl_memory_desc_st memory_type;
-struct __rtl_memory_desc_st
-{
- sal_Size m_length;
- sal_Size m_offset;
- memory_type *m_flink;
- memory_type *m_blink;
-};
-
-static const int __C__ = 2 * sizeof(sal_Size);
-static const int __Q__ = 2 * sizeof(memory_type*);
-
-typedef struct __rtl_memory_stat_st memory_stat;
-struct __rtl_memory_stat_st
-{
- sal_uInt64 m_dequeue;
- sal_uInt64 m_enqueue;
- sal_Int32 m_delta_q;
-
- sal_uInt64 m_deqsize;
- sal_uInt64 m_enqsize;
- sal_Int32 m_delta_n;
-};
-
-#define RTL_MEMORY_ALIGN(n, m) (((n) + ((m) - 1)) & ~((m) - 1))
-#define RTL_MEMORY_SIZEOF(a) RTL_MEMORY_ALIGN(sizeof(a), sizeof(memory_type))
-
-struct __rtl_memory_global_st
-{
- sal_Size m_magic;
- sal_Size m_align;
-
- union {
- mutex_type m_lock;
- char m_data[RTL_MEMORY_SIZEOF(mutex_type)];
- } m_mutex;
-
- memory_type m_alloc_head;
- memory_type m_spare_head;
- memory_type m_queue_head[__N__];
-
-#if OSL_DEBUG_LEVEL > 0
- memory_stat m_queue_stat[__N__];
-#endif /* OSL_DEBUG_LEVEL */
-};
-
-static struct __rtl_memory_global_st g_memory =
-{
- 0, 0, { RTL_MUTEX_INITIALIZER },
- { 0, 0, NULL, NULL }, { 0, 0, NULL, NULL }, { { 0, 0, NULL, NULL } },
-#if OSL_DEBUG_LEVEL > 0
- { { 0, 0, 0, 0, 0, 0 } }
-#endif /* OSL_DEBUG_LEVEL */
-};
-
-void SAL_CALL ___rtl_memory_init (void);
-void SAL_CALL ___rtl_memory_fini (void);
-
-#define RTL_MEMORY_ENTER() \
-{ \
- if (!(g_memory.m_align)) ___rtl_memory_init(); \
- RTL_MUTEX_ACQUIRE(&(g_memory.m_mutex.m_lock)); \
-}
-
-#define RTL_MEMORY_LEAVE() \
-{ \
- RTL_MUTEX_RELEASE(&(g_memory.m_mutex.m_lock)); \
-}
-
-/*===========================================================================
- *
- * rtl_memory (queue) internals.
- *
- *=========================================================================*/
-#if defined(PROFILE) || (OSL_DEBUG_LEVEL > 0)
-static sal_Size queue (sal_Size n)
-{
- /* k = n div __C__ */
- register sal_Size k = n / __C__, m = __L__;
-
- OSL_PRECOND((__L__ == 32),
- "__rtl_memory_queue(): internal logic error");
- if (k > m)
- {
- /* k = k div __L__ = k div 32 */
- k >>= 5;
- while ((k >>= 1) > 0) m++;
- k = m;
- }
-
- OSL_POSTCOND((0 < k) && (k < __N__),
- "__rtl_memory_queue(): "
- "internal error: index out of bounds");
- return (k);
-}
-#else /* PRODUCT */
-#define queue(k, n) \
-{ \
- (k) = ((n) / __C__); \
- if ((k) > __L__) \
- { \
- register sal_Size m = __L__; \
- (k) >>= 5; \
- while (((k) >>= 1) > 0) m++; \
- (k) = m; \
- } \
-}
-#endif /* OSL_DEBUG_LEVEL || PRODUCT */
-
-#define queue_start(entry) \
-{ \
- (entry)->m_flink = (entry); \
- (entry)->m_blink = (entry); \
-}
-
-#define queue_remove(entry) \
-{ \
- (entry)->m_blink->m_flink = (entry)->m_flink; \
- (entry)->m_flink->m_blink = (entry)->m_blink; \
- queue_start(entry); \
-}
-
-#define queue_insert_head(head, entry) \
-{ \
- (entry)->m_blink = (head); \
- (entry)->m_flink = (head)->m_flink; \
- (head)->m_flink = (entry); \
- (entry)->m_flink->m_blink = (entry); \
-}
-
-#define queue_insert_tail(head, entry) \
-{ \
- (entry)->m_flink = (head); \
- (entry)->m_blink = (head)->m_blink; \
- (head)->m_blink = (entry); \
- (entry)->m_blink->m_flink = (entry); \
-}
-
-/*===========================================================================
- *
- * rtl_memory (debug) internals.
- *
- *=========================================================================*/
-#if OSL_DEBUG_LEVEL > 0
-
-#define __dbg_memory_succ(entry, length) \
-(memory_type*)((char*)((entry)) + ((length) & ~0x1))
-
-#define __dbg_memory_pred(entry, offset) \
-(memory_type*)((char*)((entry)) - ((offset) & ~0x1))
-
-#define __dbg_memory_ensure(entry) (!((sal_Size)(entry) & 0x7))
-
-/*
- * __dbg_memory_dequeue.
- */
-static void __dbg_memory_dequeue (sal_Size n)
-{
- register sal_Size k = queue(n);
-
- g_memory.m_queue_stat[k].m_dequeue += 1;
- g_memory.m_queue_stat[k].m_delta_q += 1;
-
- g_memory.m_queue_stat[k].m_deqsize += n;
- g_memory.m_queue_stat[k].m_delta_n += n;
-}
-
-/*
- * __dbg_memory_enqueue.
- */
-static void __dbg_memory_enqueue (sal_Size n)
-{
- register sal_Size k = queue(n);
-
- g_memory.m_queue_stat[k].m_enqueue += 1;
- g_memory.m_queue_stat[k].m_delta_q -= 1;
-
- g_memory.m_queue_stat[k].m_enqsize += n;
- g_memory.m_queue_stat[k].m_delta_n -= n;
-}
-
-/*
- * __dbg_memory_insert.
- */
-static void __dbg_memory_insert (memory_type **ppMemory)
-{
- register memory_type * succ;
- succ = __dbg_memory_succ (*ppMemory, sizeof(memory_type));
-
- succ->m_length = (*ppMemory)->m_length - sizeof(memory_type);
- succ->m_offset = (*ppMemory)->m_offset;
-
- queue_insert_tail (&(g_memory.m_alloc_head), (*ppMemory));
- (*ppMemory) = succ;
-}
-
-/*
- * __dbg_memory_remove.
- */
-static void __dbg_memory_remove (memory_type **ppMemory)
-{
- (*ppMemory) = __dbg_memory_pred (*ppMemory, sizeof(memory_type));
- queue_remove (*ppMemory);
-}
-
-/*
- * __dbg_memory_verify_chain.
- */
-static int __dbg_memory_verify_chain (memory_type * x)
-{
- if (!__dbg_memory_ensure(x))
- {
- OSL_ENSURE(0, "__rtl_memory_verify(): invalid pointer alignment.");
- return (0);
- }
- if (!__dbg_memory_ensure(x->m_length & ~0x1))
- {
- OSL_ENSURE(0, "__rtl_memory_verify(): dynamic memory corruption");
- return (0);
- }
- if (!__dbg_memory_ensure(x->m_offset & ~0x1))
- {
- OSL_ENSURE(0, "__rtl_memory_verify(): dynamic memory corruption");
- return (0);
- }
- if (!(x->m_length & ~0x1))
- {
- OSL_ENSURE(0, "__rtl_memory_verify(): dynamic memory corruption");
- return (0);
- }
- return (1);
-}
-
-/*
- * __dbg_memory_verify_queue.
- */
-static int __dbg_memory_verify_queue (memory_type * x)
-{
- if (!__dbg_memory_ensure(x))
- {
- OSL_ENSURE(0, "__rtl_memory_verify(): invalid pointer alignment.");
- return (0);
- }
- if (!__dbg_memory_ensure(x->m_flink))
- {
- OSL_ENSURE(0, "__rtl_memory_verify(): free memory corruption");
- return (0);
- }
- if (!__dbg_memory_ensure(x->m_blink))
- {
- OSL_ENSURE(0, "__rtl_memory_verify(): free memory corruption");
- return (0);
- }
- if ((x == x->m_flink) || (x == x->m_blink))
- {
- OSL_ENSURE(0, "__rtl_memory_verify(): internal logic error");
- return (0);
- }
- return (1);
-}
-
-/*
- * __dbg_memory_verify_alloc.
- */
-static int __dbg_memory_verify_alloc (memory_type * x)
-{
- register memory_type *head, *entry;
- head = entry = &(g_memory.m_alloc_head);
-
- if (!__dbg_memory_ensure(x))
- {
- OSL_ENSURE(0, "__rtl_memory_verify(): invalid pointer alignment.");
- return (0);
- }
- while (!((entry = entry->m_flink) == head))
- {
- if ((entry < x) && (x < __dbg_memory_succ(entry, entry->m_length)))
- {
- head = entry = __dbg_memory_succ(entry, sizeof(memory_type));
- while (!((x == entry) || (entry->m_offset & 0x1)))
- {
- /* no match, not last */
- if (!__dbg_memory_verify_chain (entry))
- return (0);
- entry = __dbg_memory_succ(entry, entry->m_length);
- }
-
- /* match, or last */
- if (!__dbg_memory_verify_chain (entry))
- return (0);
- break;
- }
- }
- if (!(x == entry))
- {
- OSL_ENSURE(0, "__rtl_memory_verify(): memory not allocated.");
- return (0);
- }
- return (1);
-}
-
-/*
- * __dbg_memory_verify.
- */
-static int __dbg_memory_verify (memory_type * x, int debug)
-{
- /* dispatch upon 'debug' level */
- if (debug)
- {
- /* verify allocation */
- if (!__dbg_memory_verify_alloc (x))
- return (0);
- }
- else
- {
- /* verify 'chain' fields */
- if (!__dbg_memory_verify_chain (x))
- return (0);
- }
-
- /* verify 'used' bit */
- if (!(x->m_length & 0x1))
- {
- OSL_ENSURE(0, "__rtl_memory_verify(): memory not used.");
- return (0);
- }
- return (1);
-}
-
-#if OSL_DEBUG_LEVEL > 1
-/*
- * __dbg_memory_usage_update.
- */
-static sal_Size __dbg_memory_usage_update (memory_stat * stat, sal_Size length)
-{
- register sal_Size n = (length & ~0x1), k = queue(n);
-
- stat[k].m_dequeue += 1;
- stat[k].m_deqsize += n;
-
- if (!(length & 0x1))
- {
- /* not used */
- stat[k].m_enqueue += 1;
- stat[k].m_enqsize += n;
- return (n);
- }
- else
- {
- /* used */
- stat[k].m_delta_q += 1;
- stat[k].m_delta_n += n;
- return (0);
- }
-}
-
-/*
- * __dbg_memory_usage.
- */
-static void __dbg_memory_usage (memory_stat * total)
-{
- register memory_type *head, *entry, *memory;
- memory_stat stat[__N__];
-
- memset (stat, 0, __N__ * sizeof(memory_stat));
-
- head = entry = &(g_memory.m_alloc_head);
- while (!((entry = entry->m_flink) == head))
- {
- register sal_Size k = 0, n = entry->m_length - sizeof(memory_type);
-
- memory = __dbg_memory_succ(entry, sizeof(memory_type));
- while (!(memory->m_offset & 0x1))
- {
- /* not last */
- k += __dbg_memory_usage_update (stat, memory->m_length);
- memory = __dbg_memory_succ(memory, memory->m_length);
- }
-
- k += __dbg_memory_usage_update (stat, memory->m_length);
- OSL_TRACE("%x %10d %10d", (sal_Size)(entry), n, k);
- }
-
- if (total)
- {
- sal_Size i;
-
- memset (total, 0, sizeof(memory_stat));
- for (i = 0; i < __N__; i++)
- {
- total->m_dequeue += stat[i].m_dequeue;
- total->m_enqueue += stat[i].m_enqueue;
- total->m_delta_q += stat[i].m_delta_q;
-
- total->m_deqsize += stat[i].m_deqsize;
- total->m_enqsize += stat[i].m_enqsize;
- total->m_delta_n += stat[i].m_delta_n;
- }
- }
-}
-#endif /* OSL_DEBUG_LEVEL */
-
-#endif /* OSL_DEBUG_LEVEL */
-#if OSL_DEBUG_LEVEL > 0
-
-#define DBG_MEMORY_DEQUEUE(n) __dbg_memory_dequeue((sal_Size)(n) & ~0x1)
-#define DBG_MEMORY_ENQUEUE(n) __dbg_memory_enqueue((sal_Size)(n) & ~0x1)
-
-#define DBG_MEMORY_DEQFILL(entry, offset, length) \
- memset(((char*)(entry) + (offset)), 0x77777777, (length))
-#define DBG_MEMORY_ENQFILL(entry, offset, length) \
- memset(((char*)(entry) + (offset)), 0x33333333, (length))
-
-#define DBG_MEMORY_INSERT(entry) __dbg_memory_insert((entry))
-#define DBG_MEMORY_REMOVE(entry) __dbg_memory_remove((entry))
-
-#if OSL_DEBUG_LEVEL > 1
-#define DBG_MEMORY_VERIFY(entry) __dbg_memory_verify((entry), 1)
-#else /* OSL_DEBUG_LEVEL > 0 */
-#define DBG_MEMORY_VERIFY(entry) __dbg_memory_verify((entry), 0)
-#endif /* OSL_DEBUG_LEVEL */
-
-#define DBG_MEMORY_VERIFY_CHAIN(entry) __dbg_memory_verify_chain((entry))
-#define DBG_MEMORY_VERIFY_QUEUE(entry) __dbg_memory_verify_queue((entry))
-
-#else /* PRODUCT */
-
-#define DBG_MEMORY_DEQUEUE(n)
-#define DBG_MEMORY_ENQUEUE(n)
-
-#define DBG_MEMORY_DEQFILL(entry, offset, length)
-#define DBG_MEMORY_ENQFILL(entry, offset, length)
-
-#define DBG_MEMORY_INSERT(entry)
-#define DBG_MEMORY_REMOVE(entry)
-
-#define DBG_MEMORY_VERIFY(entry)
-#define DBG_MEMORY_VERIFY_CHAIN(entry)
-#define DBG_MEMORY_VERIFY_QUEUE(entry)
-
-#endif /* OSL_DEBUG_LEVEL || PRODUCT */
-
-/*===========================================================================
- *
- * rtl_memory (manager) internals.
- *
- *=========================================================================*/
-#define queue_cast(entry, offset) \
-((memory_type*)((char*)(entry) + (ptrdiff_t)(offset)))
-
-#define __rtl_memory_used(entry) ((entry)->m_length & 0x1)
-#define __rtl_memory_last(entry) ((entry)->m_offset & 0x1)
-#define __rtl_memory_offset(entry) \
- ((ptrdiff_t)((entry)->m_offset & ~0x1))
-
-/*
- * ___rtl_memory_init.
- */
-void SAL_CALL ___rtl_memory_init (void)
-{
-#if defined(RTL_MUTEX_INIT)
- RTL_MUTEX_INIT (&(g_memory.m_mutex.m_lock));
-#endif /* RTL_MUTEX_INIT */
-
- RTL_MUTEX_ACQUIRE(&(g_memory.m_mutex.m_lock));
- if (!(g_memory.m_align))
- {
- sal_Size pagesize;
- int i;
-
- queue_start (&(g_memory.m_alloc_head));
- queue_start (&(g_memory.m_spare_head));
-
- for (i = 0; i < __N__; i++)
- queue_start (&(g_memory.m_queue_head[i]));
- for (i = 1; i <= __L__; i++)
- g_memory.m_queue_head[i].m_length = i * __C__;
- for (i = __L__ + 1; i < __N__; i++)
- g_memory.m_queue_head[i].m_length =
- 2 * g_memory.m_queue_head[i - 1].m_length;
-
- pagesize = __rtl_memory_vmpagesize();
- g_memory.m_align = RTL_MEMORY_ALIGN(__M__, pagesize);
- }
- RTL_MUTEX_RELEASE(&(g_memory.m_mutex.m_lock));
-}
-
-/*
- * ___rtl_memory_fini.
- */
-void SAL_CALL ___rtl_memory_fini (void)
-{
-#if OSL_DEBUG_LEVEL > 1
-
- memory_stat total;
-
- __dbg_memory_usage (&total);
- if (total.m_delta_n > 0)
- {
- OSL_TRACE("___rtl_memory_fini(): "
- "Leak: %10d (Alloc: %10d, Free: %10d)",
- total.m_delta_n,
- (sal_uInt32)(total.m_deqsize & 0xffffffff),
- (sal_uInt32)(total.m_enqsize & 0xffffffff));
- }
-
-#endif /* OSL_DEBUG_LEVEL */
-}
-
-/*
- * __rtl_memory_merge.
- */
-#if defined(PROFILE) || (OSL_DEBUG_LEVEL > 0)
-static void __rtl_memory_merge (memory_type * prev, memory_type * next)
-{
- /* adjust length */
- prev->m_length += next->m_length;
- if (!__rtl_memory_last(next))
- {
- /* not last, adjust offset */
- register memory_type * succ = queue_cast(prev, prev->m_length);
- DBG_MEMORY_VERIFY_CHAIN (succ);
- succ->m_offset = prev->m_length | __rtl_memory_last(succ);
- }
-
- /* propagate 'last' bit */
- prev->m_offset |= __rtl_memory_last(next);
-}
-#else /* PRODUCT */
-#define __rtl_memory_merge(prev, next) \
-{ \
- (prev)->m_length += (next)->m_length; \
- if (!__rtl_memory_last((next))) \
- { \
- register memory_type * succ = queue_cast((prev), (prev)->m_length); \
- succ->m_offset = (prev)->m_length | __rtl_memory_last(succ); \
- } \
- (prev)->m_offset |= __rtl_memory_last((next)); \
-}
-#endif /* OSL_DEBUG_LEVEL || PRODUCT */
-
-/*
- * __rtl_memory_split.
- */
-#if defined(PROFILE) || (OSL_DEBUG_LEVEL > 0)
-static void __rtl_memory_split (memory_type * prev, memory_type * next)
-{
- /* adjust length */
- prev->m_length -= next->m_length;
- if (!__rtl_memory_last(prev))
- {
- /* not last, adjust offset */
- register memory_type * succ = queue_cast(next, next->m_length);
- DBG_MEMORY_VERIFY_CHAIN (succ);
- succ->m_offset = next->m_length | __rtl_memory_last(succ);
- }
-
- /* propagate 'last' bit */
- next->m_offset |= __rtl_memory_last(prev);
- prev->m_offset &= ~0x1;
-}
-#else /* PRODUCT */
-#define __rtl_memory_split(prev, next) \
-{ \
- (prev)->m_length -= (next)->m_length; \
- if (!__rtl_memory_last((prev))) \
- { \
- register memory_type * succ = queue_cast((next), (next)->m_length); \
- succ->m_offset = (next)->m_length | __rtl_memory_last(succ); \
- } \
-\
- (next)->m_offset |= __rtl_memory_last((prev)); \
- (prev)->m_offset &= ~0x1; \
-}
-#endif /* OSL_DEBUG_LEVEL || PRODUCT */
-
-/*
- * __rtl_memory_insert.
- */
-#if defined(PROFILE) || (OSL_DEBUG_LEVEL > 0)
-static void __rtl_memory_insert (memory_type * memory, sal_Size n)
-{
- /* obtain queue head */
- register memory_type *head;
-
- head = &(g_memory.m_queue_head[queue(n)]);
- DBG_MEMORY_VERIFY_CHAIN (head);
-
- /* insert at queue tail (first-in first-out) */
- queue_insert_tail (head, memory);
-}
-#else /* PRODUCT */
-#define __rtl_memory_insert(memory, n) \
-{ \
- register sal_Size h; \
-\
- queue(h, (n)); \
- queue_insert_tail (&(g_memory.m_queue_head[h]), (memory)); \
-}
-#endif /* OSL_DEBUG_LEVEL || PRODUCT */
-
-/*
- * __rtl_memory_resize.
- */
-#if defined(PROFILE) || (OSL_DEBUG_LEVEL > 0)
-static void __rtl_memory_resize (memory_type * memory, sal_Size n)
-{
- register sal_Size k = (memory->m_length - n);
-
- OSL_ENSURE(!(memory->m_length & 0x1),
- "__rtl_memory_resize(): "
- "internal logic error.");
-
- if ((k >= sizeof(memory_type)) && (n <= __T__))
- {
- /* split */
- register memory_type * remain = queue_cast(memory, n);
-
- remain->m_length = k; remain->m_offset = n;
- __rtl_memory_split (memory, remain);
-
- /* check postcond */
- if (!__rtl_memory_last(remain))
- {
- /* not last, verify used next entry */
- register memory_type *next;
-
- next = queue_cast(remain, remain->m_length);
- DBG_MEMORY_VERIFY_CHAIN (next);
-
- OSL_POSTCOND(__rtl_memory_used(next),
- "__rtl_memory_resize(): "
- "internal logic error.");
- }
-
- /* enqueue */
- __rtl_memory_insert (remain, k);
- DBG_MEMORY_VERIFY_QUEUE (remain);
- }
-
- DBG_MEMORY_DEQUEUE(memory->m_length);
-}
-#else /* PRODUCT */
-#define __rtl_memory_resize(memory, n) \
-{ \
- register sal_Size kn = ((memory)->m_length - (n)); \
- if ((kn >= sizeof(memory_type)) && (n <= __T__)) \
- { \
- register memory_type * remain = queue_cast((memory), (n)); \
-\
- remain->m_length = kn; remain->m_offset = (n); \
- __rtl_memory_split ((memory), remain); \
-\
- __rtl_memory_insert (remain, kn); \
- } \
-}
-#endif /* OSL_DEBUG_LEVEL || PRODUCT */
-
-/*
- * __rtl_memory_dequeue.
- */
-#if defined(PROFILE) || (OSL_DEBUG_LEVEL > 0)
-static void __rtl_memory_dequeue (memory_type **ppMemory, sal_Size n)
-{
- register memory_type *head, *entry;
- register sal_Size k, m = n;
-
- OSL_PRECOND(!*ppMemory, "__rtl_memory_dequeue(): internal logic error.");
- for (k = queue(m); k < __N__; k++)
- {
- /* first fit (equals best fit w/ ascending insert) */
- head = &(g_memory.m_queue_head[k]);
- for (entry = head->m_flink; entry != head; entry = entry->m_flink)
- {
- /* queue not empty */
- DBG_MEMORY_VERIFY_CHAIN (entry);
- if (entry->m_length >= m)
- {
- /* remove entry */
- DBG_MEMORY_VERIFY_QUEUE (entry);
- queue_remove (entry);
-
- /* assign result */
- *ppMemory = entry;
- goto dequeue_leave;
- }
- }
- }
-
- head = &(g_memory.m_spare_head);
- for (entry = head->m_flink; entry != head; entry = entry->m_flink)
- {
- /* queue not empty */
- DBG_MEMORY_VERIFY_CHAIN (entry);
- if (entry->m_length >= m)
- {
- /* remove entry */
- DBG_MEMORY_VERIFY_QUEUE (entry);
- queue_remove (entry);
-
- /* assign result */
- *ppMemory = entry;
- goto dequeue_leave;
- }
- }
-
-#if OSL_DEBUG_LEVEL > 0
- /* adjust for DBG_MEMORY_INSERT() overhead */
- m += sizeof(memory_type);
-#endif /* OSL_DEBUG_LEVEL */
-
- k = RTL_MEMORY_ALIGN((m > __M__) ? m : __M__, g_memory.m_align);
- if (!((entry = RTL_MEMORY_ALLOC(k)) == 0))
- {
- entry->m_length = k;
- entry->m_offset = 0x1; /* set 'last' bit */
-
- *ppMemory = entry;
- DBG_MEMORY_INSERT(ppMemory);
- }
-
-dequeue_leave:
- OSL_POSTCOND(*ppMemory, "__rtl_memory_dequeue(): out of memory.");
- if ((entry = *ppMemory) != 0)
- {
- /* adjust length */
- __rtl_memory_resize (entry, n);
-
- /* fill w/ 'uninitialized' pattern */
- DBG_MEMORY_DEQFILL (entry, __C__, entry->m_length - __C__);
- }
-#if OSL_DEBUG_LEVEL > 1
- if (!entry)
- {
- memory_stat total;
- __dbg_memory_usage (&total);
- }
-#endif /* OSL_DEBUG_LEVEL */
-}
-#else /* PRODUCT */
-#define __rtl_memory_dequeue(ppMemory, n, label) \
-{ \
- register memory_type *head, *entry; \
- register sal_Size h, m = (n); \
-\
- queue (h, m); \
- for (; h < __N__; h++) \
- { \
- head = &(g_memory.m_queue_head[h]); \
- for (entry = head->m_flink; entry != head; entry = entry->m_flink) \
- { \
- if (entry->m_length >= m) \
- { \
- queue_remove (entry); \
- goto label; \
- } \
- } \
- } \
-\
- head = &(g_memory.m_spare_head); \
- for (entry = head->m_flink; entry != head; entry = entry->m_flink) \
- { \
- if (entry->m_length >= m) \
- { \
- queue_remove (entry); \
- goto label; \
- } \
- } \
-\
- h = RTL_MEMORY_ALIGN((m > __M__) ? m : __M__, g_memory.m_align); \
- if (!((entry = RTL_MEMORY_ALLOC(h)) == 0)) \
- { \
- entry->m_length = h; \
- entry->m_offset = 0x1; \
- } \
-\
-label: \
- if (entry) \
- { \
- __rtl_memory_resize (entry, (n)); \
- *(ppMemory) = entry; \
- } \
-}
-#endif /* OSL_DEBUG_LEVEL || PRODUCT */
-
-#if defined(PROFILE) || (OSL_DEBUG_LEVEL > 0)
-#define RTL_MEMORY_DEQUEUE(m, n, l) __rtl_memory_dequeue((m), (n))
-#else /* PRODUCT */
-#define RTL_MEMORY_DEQUEUE(m, n, l) __rtl_memory_dequeue(m, n, l)
-#endif /* OSL_DEBUG_LEVEL || PRODUCT */
-
-/*
- * __rtl_memory_enqueue.
- */
-#if defined(PROFILE) || (OSL_DEBUG_LEVEL > 0)
-static void __rtl_memory_enqueue (memory_type **ppMemory)
-{
- register memory_type *head = *ppMemory;
-
- OSL_ENSURE(!__rtl_memory_used(head),
- "__rtl_memory_enqueue(): "
- "internal logic error.");
- DBG_MEMORY_ENQUEUE (head->m_length);
-
- /* fill w/ 'deinitialized' pattern */
- DBG_MEMORY_ENQFILL (head, __C__, head->m_length - __C__);
-
- /* try merge w/ next entry */
- if (!__rtl_memory_last(head))
- {
- /* not last, check next in chain */
- register memory_type * next;
-
- next = queue_cast(head, head->m_length);
- DBG_MEMORY_VERIFY_CHAIN (next);
-
- if (!__rtl_memory_used(next))
- {
- /* next not used */
- DBG_MEMORY_VERIFY_QUEUE (next);
- queue_remove (next);
-
- /* merge w/ next */
- __rtl_memory_merge (head, next);
- DBG_MEMORY_ENQFILL (next, 0, sizeof(memory_type));
- }
- }
-
- /* try merge w/ prev entry */
- if (__rtl_memory_offset(head) > 0)
- {
- /* not first, check prev in chain */
- register memory_type * prev;
-
- prev = queue_cast(head, -(__rtl_memory_offset(head)));
- DBG_MEMORY_VERIFY_CHAIN (prev);
-
- if (!__rtl_memory_used(prev))
- {
- /* prev not used */
- DBG_MEMORY_VERIFY_QUEUE (prev);
- queue_remove (prev);
-
- /* merge w/ prev */
- __rtl_memory_merge (prev, head);
- DBG_MEMORY_ENQFILL (head, 0, sizeof(memory_type));
- head = prev;
- }
- }
-
- if (!(head->m_offset == 0x1))
- {
- /* page still used, enqueue */
- __rtl_memory_insert (head, head->m_length);
- head = 0;
- }
- else if (head->m_length <= g_memory.m_align)
- {
- /* small page unused, check spare page */
- register memory_type * spare;
-
- spare = &(g_memory.m_spare_head);
- if (spare->m_flink == spare)
- {
- /* keep as spare page */
- queue_insert_tail (spare, head);
- head = 0;
- }
- }
- if ((*ppMemory = head) != 0)
- {
- /* page unused, remove */
- DBG_MEMORY_REMOVE(ppMemory);
- }
-}
-#else /* PRODUCT */
-#define __rtl_memory_enqueue(ppMemory) \
-{ \
- register memory_type *head = *(ppMemory); \
-\
- if (!__rtl_memory_last(head)) \
- { \
- register memory_type * next; \
- next = queue_cast(head, head->m_length); \
- if (!__rtl_memory_used(next)) \
- { \
- queue_remove (next); \
- __rtl_memory_merge (head, next); \
- } \
- } \
-\
- if (__rtl_memory_offset(head) > 0) \
- { \
- register memory_type * prev; \
- prev = queue_cast(head, -(__rtl_memory_offset(head))); \
- if (!__rtl_memory_used(prev)) \
- { \
- queue_remove (prev); \
- __rtl_memory_merge (prev, head); \
- head = prev; \
- } \
- } \
-\
- if (!(head->m_offset == 0x1)) \
- { \
- register memory_type * used = head; \
- __rtl_memory_insert (used, used->m_length); \
- head = 0; \
- } \
- else if (head->m_length <= g_memory.m_align) \
- { \
- register memory_type * spare; \
- spare = &(g_memory.m_spare_head); \
- if (spare->m_flink == spare) \
- { \
- queue_insert_tail (spare, head); \
- head = 0; \
- } \
- } \
-\
- *(ppMemory) = head; \
-}
-#endif /* OSL_DEBUG_LEVEL || PRODUCT */
-
-#define RTL_MEMORY_ENQUEUE(m) __rtl_memory_enqueue((m))
-
-#endif /* FORCE_SYSALLOC */
-
-/*===========================================================================
- *
- * rtl_memory (manager) implementation.
- *
- *=========================================================================*/
-/*
- * rtl_reallocateMemory.
- */
-#ifndef FORCE_SYSALLOC
-void* SAL_CALL rtl_reallocateMemory (void * p, sal_Size n) SAL_THROW_EXTERN_C()
-{
- memory_type * memory;
- if (!(!p || !n))
- {
- /* reallocate */
- register sal_Size datlen;
-
- memory = queue_cast(p, -(__C__)); p = 0;
- n = RTL_MEMORY_ALIGN(n, __Q__) + __C__;
-
- RTL_MEMORY_ENTER();
- DBG_MEMORY_VERIFY(memory);
-
- /* clear 'used' bit */
- DBG_MEMORY_ENQUEUE (memory->m_length);
- memory->m_length &= ~0x1;
-
- /* amount of data to be moved or copied */
- datlen = ((memory->m_length < n) ? memory->m_length : n);
-
- /* try merge w/ next entry */
- if (!__rtl_memory_last(memory))
- {
- /* not last, check next in chain */
- register memory_type * next;
-
- next = queue_cast(memory, memory->m_length);
- DBG_MEMORY_VERIFY_CHAIN(next);
-
- if (!__rtl_memory_used(next))
- {
- /* next not used */
- DBG_MEMORY_VERIFY_QUEUE(next);
- queue_remove (next);
-
- /* merge w/ next */
- __rtl_memory_merge (memory, next);
- }
- }
-
- /* try merge w/ prev entry */
- if (__rtl_memory_offset(memory) > 0)
- {
- /* not first, check prev in chain */
- register memory_type * prev;
-
- prev = queue_cast(memory, -(__rtl_memory_offset(memory)));
- DBG_MEMORY_VERIFY_CHAIN (prev);
-
- if (!__rtl_memory_used(prev))
- {
- /* prev not used, try merge, move */
- if ((memory->m_length + prev->m_length) >= n)
- {
- /* prev does fit */
- DBG_MEMORY_VERIFY_QUEUE (prev);
- queue_remove (prev);
-
- /* merge w/ prev */
- __rtl_memory_merge (prev, memory);
-
- /* move to prev */
- memmove (
- queue_cast(prev, __C__),
- queue_cast(memory, __C__),
- datlen - __C__);
- memory = prev;
- }
- }
- }
-
- if (memory->m_length >= n)
- {
- /* adjust, set 'used' bit */
- __rtl_memory_resize (memory, n);
- memory->m_length |= 0x1;
-
- /* assign result */
- p = queue_cast(memory, __C__);
- }
- else
- {
- /* allocate */
- memory_type * result = 0;
-
- /* restore 'used' bit */
- DBG_MEMORY_DEQUEUE (memory->m_length);
- memory->m_length |= 0x80000000;
-
- RTL_MEMORY_DEQUEUE (&result, n, realloc_label_1);
- if (result)
- {
- /* set 'used' bit */
- result->m_length |= 0x1;
-
- /* copy */
- memcpy (
- queue_cast(result, __C__),
- queue_cast(memory, __C__),
- datlen - __C__);
-
- /* clear 'used' bit, enqueue */
- memory->m_length &= 0x7fffffff;
- RTL_MEMORY_ENQUEUE (&memory);
- if (memory)
- {
- /* free memory page */
- RTL_MEMORY_FREE(memory, memory->m_length);
- }
-
- /* assign result */
- p = queue_cast(result, __C__);
- }
- }
- RTL_MEMORY_LEAVE();
- }
- else if (!p)
- {
- /* allocate */
- memory = 0;
- n = RTL_MEMORY_ALIGN(n, __Q__) + __C__;
-
- RTL_MEMORY_ENTER();
- RTL_MEMORY_DEQUEUE (&memory, n, realloc_label_2);
- if (memory)
- {
- /* set 'used' bit */
- memory->m_length |= 0x1;
-
- /* assign result */
- p = queue_cast(memory, __C__);
- }
- RTL_MEMORY_LEAVE();
- }
- else if (!n)
- {
- /* free */
- memory = queue_cast(p, -(__C__)); p = 0;
-
- RTL_MEMORY_ENTER();
- DBG_MEMORY_VERIFY(memory);
-
- /* clear 'used' bit, enqueue */
- memory->m_length &= ~0x1;
-
- RTL_MEMORY_ENQUEUE (&memory);
- if (memory)
- {
- /* free memory page */
- RTL_MEMORY_FREE(memory, memory->m_length);
- }
- RTL_MEMORY_LEAVE();
- }
- return (p);
-}
-#else /* FORCE_SYSALLOC */
-void* SAL_CALL rtl_reallocateMemory (void * p, sal_Size n) SAL_THROW_EXTERN_C()
-{
- return realloc(p, (sal_Size)(n));
-}
-#endif /* FORCE_SYSALLOC */
-
-/*
- * rtl_allocateMemory.
- */
-#ifndef FORCE_SYSALLOC
-void* SAL_CALL rtl_allocateMemory (sal_Size n) SAL_THROW_EXTERN_C()
-{
- void * p = 0;
- if (n > 0)
- {
- memory_type * memory = 0;
- n = RTL_MEMORY_ALIGN(n, __Q__) + __C__;
-
- RTL_MEMORY_ENTER();
- RTL_MEMORY_DEQUEUE (&memory, n, alloc_label);
- if (memory)
- {
- /* set 'used' bit */
- memory->m_length |= 0x1;
-
- /* assign result */
- p = queue_cast(memory, __C__);
- }
- RTL_MEMORY_LEAVE();
- }
- return (p);
-}
-#else /* FORCE_SYSALLOC */
-void* SAL_CALL rtl_allocateMemory (sal_Size n) SAL_THROW_EXTERN_C()
-{
- return malloc((sal_Size)(n));
-}
-#endif /* FORCE_SYSALLOC */
-
-/*
- * rtl_freeMemory.
- */
-#ifndef FORCE_SYSALLOC
-void SAL_CALL rtl_freeMemory (void * p) SAL_THROW_EXTERN_C()
-{
- if (p)
- {
- memory_type * memory = queue_cast(p, -(__C__));
-
- RTL_MEMORY_ENTER();
- DBG_MEMORY_VERIFY(memory);
-
- /* clear 'used' bit, enqueue */
- memory->m_length &= ~0x1;
-
- RTL_MEMORY_ENQUEUE (&memory);
- if (memory)
- {
- /* free memory page */
- RTL_MEMORY_FREE(memory, memory->m_length);
- }
- RTL_MEMORY_LEAVE();
- }
-}
-#else /* FORCE_SYSALLOC */
-void SAL_CALL rtl_freeMemory (void * p) SAL_THROW_EXTERN_C()
-{
- free(p);
-}
-#endif /* FORCE_SYSALLOC */
-
-/*
- * rtl_allocateZeroMemory.
- */
-#ifndef FORCE_SYSALLOC
-void* SAL_CALL rtl_allocateZeroMemory (sal_Size n) SAL_THROW_EXTERN_C()
-{
- void * p = 0;
- if (n > 0)
- {
- memory_type * memory = 0;
- n = RTL_MEMORY_ALIGN(n, __Q__) + __C__;
-
- RTL_MEMORY_ENTER();
- RTL_MEMORY_DEQUEUE (&memory, n, alloc_label); /* NYI: demand zero */
- if (memory)
- {
- /* zero, set 'used' bit */
- memset ((char*)memory + __C__, 0, memory->m_length - __C__);
- memory->m_length |= 0x1;
-
- /* assign result */
- p = queue_cast(memory, __C__);
- }
- RTL_MEMORY_LEAVE();
- }
- return (p);
-}
-#else /* FORCE_SYSALLOC */
-void* SAL_CALL rtl_allocateZeroMemory (sal_Size n) SAL_THROW_EXTERN_C()
-{
- return calloc((sal_Size)(n), 1);
-}
-#endif /* FORCE_SYSALLOC */
-
-/*
- * rtl_freeZeroMemory.
- */
-#ifndef FORCE_SYSALLOC
-void SAL_CALL rtl_freeZeroMemory (void * p, sal_Size n) SAL_THROW_EXTERN_C()
-{
- (void) n; /* unused */
- if (p)
- {
- memory_type * memory = queue_cast(p, -(__C__));
-
- RTL_MEMORY_ENTER();
- DBG_MEMORY_VERIFY(memory);
-
- /* clear 'used' bit, zero, enqueue */
- memory->m_length &= ~0x1;
- memset ((char*)memory + __C__, 0, memory->m_length - __C__);
-
- RTL_MEMORY_ENQUEUE (&memory); /* NYI: demand zero */
- if (memory)
- {
- /* free memory page */
- RTL_MEMORY_FREE(memory, memory->m_length);
- }
- RTL_MEMORY_LEAVE();
- }
-}
-#else /* FORCE_SYSALLOC */
-void SAL_CALL rtl_freeZeroMemory (void * p, sal_Size n) SAL_THROW_EXTERN_C()
-{
- if (p)
- {
- memset(p, 0, n);
- free(p);
- }
-}
-#endif /* FORCE_SYSALLOC */
-
-/*===========================================================================
- *
- * The End.
- *
- *=========================================================================*/
--
cgit
From 3859e8f28b464409015d8a2a3c6facb1d56b7632 Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Thu, 27 Jan 2011 14:36:05 +0100
Subject: #i115784# sal/rtl/alloc: improved support for valgrind(memcheck).
---
sal/rtl/source/alloc_arena.c | 18 +++++++++++---
sal/rtl/source/alloc_cache.c | 29 ++++++++++++++++++++--
sal/rtl/source/alloc_fini.cxx | 55 ++++++++++++++++++++++++++++++++++++++++++
sal/rtl/source/alloc_global.c | 8 +++---
sal/rtl/source/alloc_impl.h | 1 +
sal/rtl/source/makefile.mk | 4 +--
sal/rtl/source/memory_fini.cxx | 54 -----------------------------------------
7 files changed, 104 insertions(+), 65 deletions(-)
create mode 100755 sal/rtl/source/alloc_fini.cxx
delete mode 100755 sal/rtl/source/memory_fini.cxx
diff --git a/sal/rtl/source/alloc_arena.c b/sal/rtl/source/alloc_arena.c
index e2735cc014e4..ec516f3573ac 100644
--- a/sal/rtl/source/alloc_arena.c
+++ b/sal/rtl/source/alloc_arena.c
@@ -1109,9 +1109,10 @@ SAL_CALL rtl_arena_free (
{
rtl_arena_segment_type *next, *prev;
- /* DEBUG ONLY: mark undefined, unallocated */
- OSL_DEBUG_ONLY(memset((void*)(segment->m_addr), 0x33333333, segment->m_size));
+ /* DEBUG ONLY: mark unallocated, undefined */
VALGRIND_MEMPOOL_FREE(arena, segment->m_addr);
+ VALGRIND_MAKE_MEM_UNDEFINED(segment->m_addr, segment->m_size);
+ OSL_DEBUG_ONLY(memset((void*)(segment->m_addr), 0x33333333, segment->m_size));
/* coalesce w/ adjacent free segment(s) */
rtl_arena_segment_coalesce (arena, segment);
@@ -1366,7 +1367,18 @@ rtl_arena_init (void)
/* ================================================================= */
-#if defined(__GNUC__)
+/*
+ Issue http://udk.openoffice.org/issues/show_bug.cgi?id=92388
+
+ Mac OS X does not seem to support "__cxa__atexit", thus leading
+ to the situation that "__attribute__((destructor))__" functions
+ (in particular "rtl_{memory|cache|arena}_fini") become called
+ _before_ global C++ object d'tors.
+
+ Delegated the call to "rtl_arena_fini()" into a dummy C++ object,
+ see alloc_fini.cxx .
+*/
+#if defined(__GNUC__) && !defined(MACOSX)
static void rtl_arena_fini (void) __attribute__((destructor));
#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
#pragma fini(rtl_arena_fini)
diff --git a/sal/rtl/source/alloc_cache.c b/sal/rtl/source/alloc_cache.c
index db02c79d5ba7..563e777873d6 100644
--- a/sal/rtl/source/alloc_cache.c
+++ b/sal/rtl/source/alloc_cache.c
@@ -534,9 +534,9 @@ rtl_cache_slab_free (
RTL_MEMORY_LOCK_ACQUIRE(&(cache->m_slab_lock));
/* DEBUG ONLY: mark unallocated, undefined */
- OSL_DEBUG_ONLY(memset(addr, 0x33333333, cache->m_type_size));
VALGRIND_MEMPOOL_FREE(cache, addr);
VALGRIND_MAKE_MEM_UNDEFINED(addr, cache->m_type_size);
+ OSL_DEBUG_ONLY(memset(addr, 0x33333333, cache->m_type_size));
/* determine slab from addr */
if (cache->m_features & RTL_CACHE_FEATURE_HASH)
@@ -644,8 +644,13 @@ rtl_cache_magazine_clear (
void * obj = mag->m_objects[mag->m_mag_used - 1];
mag->m_objects[mag->m_mag_used - 1] = 0;
+ /* mark cached object allocated, undefined */
+ VALGRIND_MEMPOOL_ALLOC(cache, obj, cache->m_type_size);
if (cache->m_destructor != 0)
{
+ /* keep constructed object defined */
+ VALGRIND_MAKE_MEM_DEFINED(obj, cache->m_type_size);
+
/* destruct object */
(cache->m_destructor)(obj, cache->m_userarg);
}
@@ -1218,7 +1223,14 @@ SAL_CALL rtl_cache_alloc (
if ((curr != 0) && (curr->m_mag_used > 0))
{
obj = curr->m_objects[--curr->m_mag_used];
+#if defined(HAVE_VALGRIND_MEMCHECK_H)
VALGRIND_MEMPOOL_ALLOC(cache, obj, cache->m_type_size);
+ if (cache->m_constructor != 0)
+ {
+ /* keep constructed object defined */
+ VALGRIND_MAKE_MEM_DEFINED(obj, cache->m_type_size);
+ }
+#endif /* HAVE_VALGRIND_MEMCHECK_H */
cache->m_cpu_stats.m_alloc += 1;
RTL_MEMORY_LOCK_RELEASE(&(cache->m_depot_lock));
@@ -1286,7 +1298,9 @@ SAL_CALL rtl_cache_free (
if ((curr != 0) && (curr->m_mag_used < curr->m_mag_size))
{
curr->m_objects[curr->m_mag_used++] = obj;
+#if defined(HAVE_VALGRIND_MEMCHECK_H)
VALGRIND_MEMPOOL_FREE(cache, obj);
+#endif /* HAVE_VALGRIND_MEMCHECK_H */
cache->m_cpu_stats.m_free += 1;
RTL_MEMORY_LOCK_RELEASE(&(cache->m_depot_lock));
@@ -1678,7 +1692,18 @@ rtl_cache_init (void)
/* ================================================================= */
-#if defined(__GNUC__)
+/*
+ Issue http://udk.openoffice.org/issues/show_bug.cgi?id=92388
+
+ Mac OS X does not seem to support "__cxa__atexit", thus leading
+ to the situation that "__attribute__((destructor))__" functions
+ (in particular "rtl_{memory|cache|arena}_fini") become called
+ _before_ global C++ object d'tors.
+
+ Delegated the call to "rtl_cache_fini()" into a dummy C++ object,
+ see alloc_fini.cxx .
+*/
+#if defined(__GNUC__) && !defined(MACOSX)
static void rtl_cache_fini (void) __attribute__((destructor));
#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
#pragma fini(rtl_cache_fini)
diff --git a/sal/rtl/source/alloc_fini.cxx b/sal/rtl/source/alloc_fini.cxx
new file mode 100755
index 000000000000..cb04a525e75e
--- /dev/null
+++ b/sal/rtl/source/alloc_fini.cxx
@@ -0,0 +1,55 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * 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
+ *
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+/*
+ Issue http://udk.openoffice.org/issues/show_bug.cgi?id=92388
+
+ Mac OS X does not seem to support "__cxa__atexit", thus leading
+ to the situation that "__attribute__((destructor))__" functions
+ (in particular "rtl_{memory|cache|arena}_fini") become called
+ _before_ global C++ object d'tors.
+
+ Using a C++ dummy object instead.
+*/
+
+extern "C" void rtl_memory_fini (void);
+extern "C" void rtl_cache_fini (void);
+extern "C" void rtl_arena_fini (void);
+
+struct RTL_Alloc_Fini
+{
+ ~RTL_Alloc_Fini() ;
+};
+
+RTL_Alloc_Fini::~RTL_Alloc_Fini()
+{
+ rtl_memory_fini();
+ rtl_cache_fini();
+ rtl_arena_fini();
+}
+
+static RTL_Alloc_Fini g_RTL_Alloc_Fini;
diff --git a/sal/rtl/source/alloc_global.c b/sal/rtl/source/alloc_global.c
index 5137f868127d..57f3ec52dbd7 100644
--- a/sal/rtl/source/alloc_global.c
+++ b/sal/rtl/source/alloc_global.c
@@ -151,11 +151,11 @@ rtl_memory_init (void)
Mac OS X does not seem to support "__cxa__atexit", thus leading
to the situation that "__attribute__((destructor))__" functions
- (in particular "rtl_memory_fini") become called _before_ global
- C++ object d'tors.
+ (in particular "rtl_{memory|cache|arena}_fini") become called
+ _before_ global C++ object d'tors.
- Delegated the call to "rtl_memory_fini" into a dummy C++ object,
- see memory_fini.cxx .
+ Delegated the call to "rtl_memory_fini()" into a dummy C++ object,
+ see alloc_fini.cxx .
*/
#if defined(__GNUC__) && !defined(MACOSX)
static void rtl_memory_fini (void) __attribute__((destructor));
diff --git a/sal/rtl/source/alloc_impl.h b/sal/rtl/source/alloc_impl.h
index fcebdf4369cc..93f8330451d6 100644
--- a/sal/rtl/source/alloc_impl.h
+++ b/sal/rtl/source/alloc_impl.h
@@ -250,6 +250,7 @@ typedef CRITICAL_SECTION rtl_memory_lock_type;
#if defined(NVALGRIND)
#define VALGRIND_MAKE_MEM_UNDEFINED(addr, size)
+#define VALGRIND_MAKE_MEM_DEFINED(addr, size)
#define VALGRIND_MALLOCLIKE_BLOCK(addr, sizeB, rzB, is_zeroed)
#define VALGRIND_FREELIKE_BLOCK(addr, rzB)
#define VALGRIND_CREATE_MEMPOOL(pool, rzB, is_zeroed)
diff --git a/sal/rtl/source/makefile.mk b/sal/rtl/source/makefile.mk
index 9968d8992be4..5aaf29ae7d50 100644
--- a/sal/rtl/source/makefile.mk
+++ b/sal/rtl/source/makefile.mk
@@ -96,7 +96,7 @@ SLOFILES= \
$(SLO)$/alloc_arena.obj
.IF "$(OS)"=="MACOSX"
-SLOFILES+=$(SLO)$/memory_fini.obj
+SLOFILES+=$(SLO)$/alloc_fini.obj
.ENDIF
@@ -129,7 +129,7 @@ OBJFILES= \
$(OBJ)$/alloc_arena.obj
.IF "$(OS)"=="MACOSX"
-OBJFILES+=$(OBJ)$/memory_fini.obj
+OBJFILES+=$(OBJ)$/alloc_fini.obj
.ENDIF
diff --git a/sal/rtl/source/memory_fini.cxx b/sal/rtl/source/memory_fini.cxx
deleted file mode 100755
index f88f09887595..000000000000
--- a/sal/rtl/source/memory_fini.cxx
+++ /dev/null
@@ -1,54 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * 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
- *
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-
-/*
- Issue http://udk.openoffice.org/issues/show_bug.cgi?id=92388
-
- Mac OS X does not seem to support "__cxa__atexit", thus leading
- to the situation that "__attribute__((destructor))__" functions
- (in particular "rtl_memory_fini") become called _before_ global
- C++ object d'tors.
-
- Using a C++ dummy object instead.
-*/
-
-#include
-
-extern "C" void rtl_memory_fini (void);
-
-
-struct RTL_Memory_Fini {
- ~RTL_Memory_Fini() ;
-};
-
-RTL_Memory_Fini::~RTL_Memory_Fini() {
- rtl_memory_fini();
-}
-
-
-static RTL_Memory_Fini rtl_Memory_Fini;
--
cgit
From 76ac4fe55611deea08a44428cfcce3ded57871cc Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Mon, 31 Jan 2011 13:30:43 +0100
Subject: #i115784# idlc: add missing include.
---
idlc/source/idlcmain.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/idlc/source/idlcmain.cxx b/idlc/source/idlcmain.cxx
index 6e3af1baca73..cc2963f5f446 100644
--- a/idlc/source/idlcmain.cxx
+++ b/idlc/source/idlcmain.cxx
@@ -27,9 +27,12 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_idlc.hxx"
-#include
+
+#include "idlc/idlc.hxx"
#include "sal/main.h"
+#include
+
using namespace ::rtl;
SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
--
cgit
From 7fb5f183e6c67e58c382d1a1c44005a0541dc421 Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Mon, 31 Jan 2011 13:34:47 +0100
Subject: #i115784# sal/rtl/alloc: improved support for valgrind(memcheck).
---
sal/rtl/source/alloc_arena.c | 3 ++-
sal/rtl/source/alloc_cache.c | 8 ++++----
sal/rtl/source/alloc_global.c | 2 +-
sal/rtl/source/alloc_impl.h | 3 +++
4 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/sal/rtl/source/alloc_arena.c b/sal/rtl/source/alloc_arena.c
index ec516f3573ac..6b57df355cad 100644
--- a/sal/rtl/source/alloc_arena.c
+++ b/sal/rtl/source/alloc_arena.c
@@ -1063,6 +1063,7 @@ SAL_CALL rtl_arena_alloc (
rtl_arena_hash_insert (arena, segment);
+ /* DEBUG ONLY: mark allocated, undefined */
OSL_DEBUG_ONLY(memset((void*)(segment->m_addr), 0x77777777, segment->m_size));
VALGRIND_MEMPOOL_ALLOC(arena, segment->m_addr, segment->m_size);
@@ -1111,7 +1112,7 @@ SAL_CALL rtl_arena_free (
/* DEBUG ONLY: mark unallocated, undefined */
VALGRIND_MEMPOOL_FREE(arena, segment->m_addr);
- VALGRIND_MAKE_MEM_UNDEFINED(segment->m_addr, segment->m_size);
+ /* OSL_DEBUG_ONLY() */ VALGRIND_MAKE_MEM_UNDEFINED(segment->m_addr, segment->m_size);
OSL_DEBUG_ONLY(memset((void*)(segment->m_addr), 0x33333333, segment->m_size));
/* coalesce w/ adjacent free segment(s) */
diff --git a/sal/rtl/source/alloc_cache.c b/sal/rtl/source/alloc_cache.c
index 563e777873d6..f4d34bfdb437 100644
--- a/sal/rtl/source/alloc_cache.c
+++ b/sal/rtl/source/alloc_cache.c
@@ -508,7 +508,7 @@ rtl_cache_slab_alloc (
else
addr = bufctl;
- /* DEBUG ONLY: mark undefined, allocated */
+ /* DEBUG ONLY: mark allocated, undefined */
OSL_DEBUG_ONLY(memset(addr, 0x77777777, cache->m_type_size));
VALGRIND_MEMPOOL_ALLOC(cache, addr, cache->m_type_size);
}
@@ -535,7 +535,7 @@ rtl_cache_slab_free (
/* DEBUG ONLY: mark unallocated, undefined */
VALGRIND_MEMPOOL_FREE(cache, addr);
- VALGRIND_MAKE_MEM_UNDEFINED(addr, cache->m_type_size);
+ /* OSL_DEBUG_ONLY() */ VALGRIND_MAKE_MEM_UNDEFINED(addr, cache->m_type_size);
OSL_DEBUG_ONLY(memset(addr, 0x33333333, cache->m_type_size));
/* determine slab from addr */
@@ -644,11 +644,11 @@ rtl_cache_magazine_clear (
void * obj = mag->m_objects[mag->m_mag_used - 1];
mag->m_objects[mag->m_mag_used - 1] = 0;
- /* mark cached object allocated, undefined */
+ /* DEBUG ONLY: mark cached object allocated, undefined */
VALGRIND_MEMPOOL_ALLOC(cache, obj, cache->m_type_size);
if (cache->m_destructor != 0)
{
- /* keep constructed object defined */
+ /* DEBUG ONLY: keep constructed object defined */
VALGRIND_MAKE_MEM_DEFINED(obj, cache->m_type_size);
/* destruct object */
diff --git a/sal/rtl/source/alloc_global.c b/sal/rtl/source/alloc_global.c
index 57f3ec52dbd7..5da66ca49d96 100644
--- a/sal/rtl/source/alloc_global.c
+++ b/sal/rtl/source/alloc_global.c
@@ -26,6 +26,7 @@
************************************************************************/
#include "rtl/alloc.h"
+#include "alloc_impl.h"
#ifndef INCLUDED_STRING_H
#include
@@ -44,7 +45,6 @@
#include
#define INCLUDED_STDIO_H
#endif
-#include "alloc_impl.h"
#include "internal/once.h"
#include "sal/macros.h"
#include "osl/diagnose.h"
diff --git a/sal/rtl/source/alloc_impl.h b/sal/rtl/source/alloc_impl.h
index 93f8330451d6..569c7b5f5b1b 100644
--- a/sal/rtl/source/alloc_impl.h
+++ b/sal/rtl/source/alloc_impl.h
@@ -259,6 +259,9 @@ typedef CRITICAL_SECTION rtl_memory_lock_type;
#define VALGRIND_MEMPOOL_FREE(pool, addr)
#elif defined(HAVE_VALGRIND_MEMCHECK_H)
#include
+#if !defined(FORCE_SYSALLOC)
+#define FORCE_SYSALLOC 1
+#endif /* !FORCE_SYSALLOC */
#endif /* NVALGRIND || HAVE_VALGRIND_MEMCHECK_H */
#ifdef __cplusplus
--
cgit
From 6f8bd1a04cb9ebb3959672a43ce1f957bb585e93 Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Thu, 3 Feb 2011 14:39:11 +0100
Subject: #i115784# idlc: add missing includes.
---
idlc/inc/idlc/idlctypes.hxx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/idlc/inc/idlc/idlctypes.hxx b/idlc/inc/idlc/idlctypes.hxx
index 47eaa802b28d..41451ee9060f 100644
--- a/idlc/inc/idlc/idlctypes.hxx
+++ b/idlc/inc/idlc/idlctypes.hxx
@@ -32,7 +32,9 @@
#include
#include
#include
+#include
#include
+
#include
#include
--
cgit
From 1dd0eb26bbb9db39bcc34d87a758caf36987cd05 Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Thu, 3 Feb 2011 18:44:31 +0100
Subject: #i115784# registry/tools: fix initOptions_Impl() commandline argument
processing.
---
registry/tools/checksingleton.cxx | 4 ++--
registry/tools/regcompare.cxx | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/registry/tools/checksingleton.cxx b/registry/tools/checksingleton.cxx
index 680201c590d5..e4fc39449e37 100644
--- a/registry/tools/checksingleton.cxx
+++ b/registry/tools/checksingleton.cxx
@@ -146,7 +146,7 @@ bool Options_Impl::initOptions_Impl(std::vector< std::string > & rArgs)
case 'f':
case 'F':
{
- if ((*first)[2] != 0)
+ if ((*first).size() > 2)
{
return badOption("invalid", option.c_str());
}
@@ -156,7 +156,7 @@ bool Options_Impl::initOptions_Impl(std::vector< std::string > & rArgs)
case 'h':
case '?':
{
- if ((*first)[2] != 0)
+ if ((*first).size() > 2)
{
return badOption("invalid", option.c_str());
}
diff --git a/registry/tools/regcompare.cxx b/registry/tools/regcompare.cxx
index 86c06c272163..3e415cec43fc 100644
--- a/registry/tools/regcompare.cxx
+++ b/registry/tools/regcompare.cxx
@@ -208,7 +208,7 @@ bool Options_Impl::initOptions_Impl (std::vector< std::string > & rArgs)
case 'f':
case 'F':
{
- if ((*first)[2] != 0)
+ if ((*first).size() > 2)
{
return badOption("invalid", (*first).c_str());
}
@@ -218,7 +218,7 @@ bool Options_Impl::initOptions_Impl (std::vector< std::string > & rArgs)
case 'c':
case 'C':
{
- if ((*first)[2] != 0)
+ if ((*first).size() > 2)
{
return badOption("invalid", (*first).c_str());
}
@@ -228,7 +228,7 @@ bool Options_Impl::initOptions_Impl (std::vector< std::string > & rArgs)
case 't':
case 'T':
{
- if ((*first)[2] != 0)
+ if ((*first).size() > 2)
{
return badOption("invalid", (*first).c_str());
}
@@ -238,7 +238,7 @@ bool Options_Impl::initOptions_Impl (std::vector< std::string > & rArgs)
case 'u':
case 'U':
{
- if ((*first)[2] != 0)
+ if ((*first).size() > 2)
{
return badOption("invalid", (*first).c_str());
}
@@ -248,7 +248,7 @@ bool Options_Impl::initOptions_Impl (std::vector< std::string > & rArgs)
case 'h':
case '?':
{
- if ((*first)[2] != 0)
+ if ((*first).size() > 2)
{
return badOption("invalid", (*first).c_str());
}
--
cgit
From 544c4b37845193b42bcde2024ca6e6c08102091c Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Fri, 4 Feb 2011 14:13:43 +0100
Subject: #i115784# registry/tools: fix unreachable break statement after
return.
---
registry/tools/checksingleton.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/registry/tools/checksingleton.cxx b/registry/tools/checksingleton.cxx
index e4fc39449e37..c2717221c49d 100644
--- a/registry/tools/checksingleton.cxx
+++ b/registry/tools/checksingleton.cxx
@@ -161,11 +161,11 @@ bool Options_Impl::initOptions_Impl(std::vector< std::string > & rArgs)
return badOption("invalid", option.c_str());
}
return printUsage();
- break;
+ // break; // unreachable
}
default:
return badOption("unknown", option.c_str());
- break;
+ // break; // unreachable
}
}
return true;
--
cgit
From 2b12566779f7a7d799896e5507d41e4a17434156 Mon Sep 17 00:00:00 2001
From: Carsten Driesner
Date: Wed, 9 Feb 2011 18:54:29 +0100
Subject: #i116896# Extend documentation of the PathSubstitution service
---
offapi/com/sun/star/util/PathSubstitution.idl | 82 +++++++++++++++------------
1 file changed, 45 insertions(+), 37 deletions(-)
diff --git a/offapi/com/sun/star/util/PathSubstitution.idl b/offapi/com/sun/star/util/PathSubstitution.idl
index 455465ddf06a..dd55f74dccb4 100644
--- a/offapi/com/sun/star/util/PathSubstitution.idl
+++ b/offapi/com/sun/star/util/PathSubstitution.idl
@@ -48,57 +48,65 @@ module com { module sun { module star { module util {
/** A service to support the substitution and resubstitution of path variables.
-
- A path variable must be specified with the following synatx: "$("<variable-name>")".
- Path variables are not case sensitive and are always provided as a UCB-complient URL's
- (for example: "file:///c:/temp" or "file:///usr/install"). This is mandatory to support an
- optional remote file system.
- A user defined list of path variables is supported. This list is stored in the Office
- configuration file (org/openoffice/Office/Substitution.xml). Please have a look at the
- schema definition file which configuration structure this file uses.
- There is also a set of variables that have pre-defined values:
-
-
-
$(inst)
-
Installation path of the Office Basis layer.
-
$(prog)
-
Program path of the Office Basis layer.
+
+ A path variable must be specified with the following synatx: "$("<variable-name>")".
+ Path variables are not case sensitive and are always provided as a UCB-complient URL's
+ (for example: "file:///c:/temp" or "file:///usr/install"). This is mandatory to support an
+ optional remote file system.
+ A user defined list of path variables is supported. This list is stored in the Office
+ configuration file (org/openoffice/Office/Substitution.xml). Please have a look at the
+ schema definition file which configuration structure this file uses.
+ There is also a set of variables that have pre-defined values:
+
+
+
$(inst)
+
Installation path of the Office Basis layer.
+
$(prog)
+
Program path of the Office Basis layer.
$(brandbaseurl)
Installation path of the the Office Brand layer.
-
$(user)
-
The user installation directory.
-
$(work)
-
The work directory of the user. Under Windows this would be the
- "MyDocuments" subdirectory. Under Unix this would be the home-directory
+
$(user)
+
The user installation directory.
+
$(work)
+
The work directory of the user. Under Windows this would be the
+ "MyDocuments" subdirectory. Under Unix this would be the home-directory
$(home)
-
The home directory of the user. Under Unix this would be the home-
- directory. Under Windows this would be the "Documents and Settings\"
- subdirectory.
+
The home directory of the user. Under Unix this would be the home-
+ directory. Under Windows this would be the "Documents and Settings\"
+ subdirectory.
$(temp)
-
The current temporary directory.
+
The current temporary directory.
$(path)
-
The value of PATH environment variable.
+
The value of PATH environment variable.
$(lang)
-
The country code used by the Office, like 01=english, 49=german.
-
$(langid)
-
The language code used by the Office, like 0x0009=english, 0x0409=english us.
+
The country code used by the Office, like 01=english, 49=german.
+
$(langid)
+
The language code used by the Office, like 0x0009=english, 0x0409=english us.
$(vlang)
-
The language used by the Office as a string. Like "german" for a german Office.
-
+
The language used by the Office as a string. Like "german" for a german Office.
+
+
+ Attention: Most predefined variables describe an absolute path.
+ The only exceptions are: $(lang), $(langid) and $(vlang).
+ Therefore the service implementation should only substitute variables which
+ are located at the start of a provided path string or are part of a multi-path.
+ This special service is not designed to be a text substiution but shall
+ provide (a) valid substituted path(s).
+
@since OOo 1.1.2
*/
published service PathSubstitution
{
- //-------------------------------------------------------------------------
- /** Interface to exchange path variables with defined paths and to resubstitute paths with path variables.
+ //-------------------------------------------------------------------------
+ /** Interface to exchange path variables with defined paths and to resubstitute paths with path variables.
-
- To resubstitute path variables the caller must provide pathes as UCB-compliant URL's.
-
+ To resubstitute path variables the caller must provide pathes as UCB-compliant URL's.
+
+ */
+ interface com::sun::star::util::XStringSubstitution;
};
//=============================================================================
--
cgit
From 90d10fefa3e84d03b544867133803b8d747e4ebb Mon Sep 17 00:00:00 2001
From: "Frank Schoenheit [fs]"
Date: Mon, 14 Feb 2011 15:22:39 +0100
Subject: debuglevels: corrected assertion's condition (report the existence,
not the non-existence of forward slashes in the given path)
---
sal/osl/w32/file_dirvol.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx
index 09bdec7988c3..549f42861f94 100644
--- a/sal/osl/w32/file_dirvol.cxx
+++ b/sal/osl/w32/file_dirvol.cxx
@@ -155,7 +155,7 @@ namespace /* private */
void parse_UNC_path(const sal_Unicode* path, UNCComponents* puncc)
{
OSL_PRECOND(is_UNC_path(path), "Precondition violated: No UNC path");
- OSL_PRECOND(rtl_ustr_indexOfChar(path, SLASH) != -1, "Path must not contain slashes");
+ OSL_PRECOND(rtl_ustr_indexOfChar(path, SLASH) == -1, "Path must not contain slashes");
const sal_Unicode* pend = path + rtl_ustr_getLength(path);
const sal_Unicode* ppos = path + 2;
@@ -691,7 +691,7 @@ static int path_make_parent(sal_Unicode* path)
If there are no more parents 0 will be returned,
e.g. 'c:\' or '\\Share' have no more parents */
- OSL_PRECOND(rtl_ustr_indexOfChar(path, SLASH) != -1, "Path must not contain slashes");
+ OSL_PRECOND(rtl_ustr_indexOfChar(path, SLASH) == -1, "Path must not contain slashes");
OSL_PRECOND(has_path_parent(path), "Path must have a parent");
sal_Unicode* pos_last_backslash = path + rtl_ustr_lastIndexOfChar(path, BACKSLASH);
--
cgit
From 6d8590e60d4599bc03e3407b5aa6e17e91c309dd Mon Sep 17 00:00:00 2001
From: Joachim Lingner
Date: Fri, 18 Feb 2011 12:42:54 +0100
Subject: jl64 #i117009# increase versions of cli assemblies
---
cli_ure/version/version.txt | 24 ++++++++++++------------
unoil/climaker/version.txt | 6 +++---
2 files changed, 15 insertions(+), 15 deletions(-)
mode change 100644 => 100755 cli_ure/version/version.txt
mode change 100644 => 100755 unoil/climaker/version.txt
diff --git a/cli_ure/version/version.txt b/cli_ure/version/version.txt
old mode 100644
new mode 100755
index 8cbdedf654d4..b5ec562837f6
--- a/cli_ure/version/version.txt
+++ b/cli_ure/version/version.txt
@@ -25,23 +25,23 @@
#
#*************************************************************************
-CLI_URETYPES_NEW_VERSION=1.0.7.0
-CLI_URETYPES_OLD_VERSION=1.0.0.0-1.0.6.0
-CLI_URETYPES_POLICY_VERSION=7.0.0.0
+CLI_URETYPES_NEW_VERSION=1.0.8.0
+CLI_URETYPES_OLD_VERSION=1.0.0.0-1.0.7.0
+CLI_URETYPES_POLICY_VERSION=8.0.0.0
CLI_URETYPES_POLICY_ASSEMBLY=policy.1.0.cli_uretypes
-CLI_BASETYPES_NEW_VERSION=1.0.18.0
-CLI_BASETYPES_OLD_VERSION=1.0.0.0-1.0.17.0
-CLI_BASETYPES_POLICY_VERSION=18.0.0.0
+CLI_BASETYPES_NEW_VERSION=1.0.19.0
+CLI_BASETYPES_OLD_VERSION=1.0.0.0-1.0.18.0
+CLI_BASETYPES_POLICY_VERSION=19.0.0.0
CLI_BASETYPES_POLICY_ASSEMBLY=policy.1.0.cli_basetypes
-CLI_URE_NEW_VERSION=1.0.21.0
-CLI_URE_OLD_VERSION=1.0.0.0-1.0.20.0
-CLI_URE_POLICY_VERSION=21.0.0.0
+CLI_URE_NEW_VERSION=1.0.22.0
+CLI_URE_OLD_VERSION=1.0.0.0-1.0.21.0
+CLI_URE_POLICY_VERSION=22.0.0.0
CLI_URE_POLICY_ASSEMBLY=policy.1.0.cli_ure
-CLI_CPPUHELPER_NEW_VERSION=1.0.21.0
-CLI_CPPUHELPER_OLD_VERSION=1.0.0.0-1.0.20.0
-CLI_CPPUHELPER_POLICY_VERSION=21.0.0.0
+CLI_CPPUHELPER_NEW_VERSION=1.0.22.0
+CLI_CPPUHELPER_OLD_VERSION=1.0.0.0-1.0.21.0
+CLI_CPPUHELPER_POLICY_VERSION=22.0.0.0
CLI_CPPUHELPER_POLICY_ASSEMBLY=policy.1.0.cli_cppuhelper
diff --git a/unoil/climaker/version.txt b/unoil/climaker/version.txt
old mode 100644
new mode 100755
index 2678d1bc035b..f59c2f9482b4
--- a/unoil/climaker/version.txt
+++ b/unoil/climaker/version.txt
@@ -25,8 +25,8 @@
#
#*************************************************************************
-CLI_OOOTYPES_NEW_VERSION=1.0.7.0
-CLI_OOOTYPES_OLD_VERSION=1.0.0.0-1.0.6.0
-CLI_OOOTYPES_POLICY_VERSION=7.0.0.0
+CLI_OOOTYPES_NEW_VERSION=1.0.8.0
+CLI_OOOTYPES_OLD_VERSION=1.0.0.0-1.0.7.0
+CLI_OOOTYPES_POLICY_VERSION=8.0.0.0
CLI_OOOTYPES_POLICY_ASSEMBLY=policy.1.0.cli_oootypes
--
cgit
From e0fa87c7c348430e3f2df2eb1529c92c617bbd99 Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Fri, 18 Feb 2011 13:43:42 +0100
Subject: #i115784# registry: Fix unreachable "return ; break;"
statements.
---
registry/tools/regcompare.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/registry/tools/regcompare.cxx b/registry/tools/regcompare.cxx
index 3e415cec43fc..82941a5db2d5 100644
--- a/registry/tools/regcompare.cxx
+++ b/registry/tools/regcompare.cxx
@@ -253,12 +253,12 @@ bool Options_Impl::initOptions_Impl (std::vector< std::string > & rArgs)
return badOption("invalid", (*first).c_str());
}
return printUsage();
- break;
+ // break; // Unreachable
}
default:
{
return badOption("unknown", (*first).c_str());
- break;
+ // break; // Unreachable
}
}
}
--
cgit
From 9bc3b66c176713a11810a922938e77a4caf4c0b3 Mon Sep 17 00:00:00 2001
From: "Frank Schoenheit [fs]"
Date: Sun, 20 Feb 2011 23:09:26 +0100
Subject: debuglevels: #i116845# on assertions, don't/call osl_osl_breakDebug
depending on an environemnt variable SAL_DIAGNOSE_ABORT. On Unix,
osl_breakDebug was previously implemented as exit(0), but never called (since
osl_assertFailedLine always returned sal_False). It is now implemented as
"abort". On Windows, osl_debugBreak was implemented as DebugBreak, which fits
our intention of always aborting on an assertion, given that
SAL_DIAGNOSE_ABORT is set. On OS/2 (is this an active port?), osl_debugBreak
is implemented as calling "int 3" - which is quite old-fashioned, but should
also do what we want.
---
sal/osl/os2/diagnose.c | 3 ++-
sal/osl/unx/diagnose.c | 14 ++++++++++----
sal/osl/w32/diagnose.c | 50 ++++++++++++++++++++++++++++----------------------
3 files changed, 40 insertions(+), 27 deletions(-)
diff --git a/sal/osl/os2/diagnose.c b/sal/osl/os2/diagnose.c
index b105e0b78c29..b412a65ff090 100644
--- a/sal/osl/os2/diagnose.c
+++ b/sal/osl/os2/diagnose.c
@@ -124,7 +124,8 @@ sal_Bool SAL_CALL osl_assertFailedLine( const sal_Char* pszFileName, sal_Int32 n
fputs(szMessage, stderr);
- return sal_True; /* abort */
+ char const * env = getenv( "SAL_DIAGNOSE_ABORT" );
+ return ( ( env != NULL ) && ( *env != '\0' ) );
}
/*----------------------------------------------------------------------------*/
diff --git a/sal/osl/unx/diagnose.c b/sal/osl/unx/diagnose.c
index 02967b3ad7f7..5d9a4f31a40e 100644
--- a/sal/osl/unx/diagnose.c
+++ b/sal/osl/unx/diagnose.c
@@ -218,6 +218,11 @@ sal_Bool SAL_CALL osl_assertFailedLine (
oslDebugMessageFunc f = g_pDebugMessageFunc;
char szMessage[1024];
+ // after reporting the assertion, abort if told so by SAL_DIAGNOSE_ABORT, but *not* if
+ // assertions are routed to some external instance
+ char const * env = getenv( "SAL_DIAGNOSE_ABORT" );
+ sal_Bool const doAbort = ( ( env != NULL ) && ( *env != '\0' ) && ( f == NULL ) );
+
/* If there's a callback for detailed messages, use it */
if ( g_pDetailedDebugMessageFunc != NULL )
{
@@ -227,7 +232,7 @@ sal_Bool SAL_CALL osl_assertFailedLine (
/* if SAL assertions are disabled in general, stop here */
if ( getenv("DISABLE_SAL_DBGBOX") )
- return sal_False;
+ return doAbort;
/* format message into buffer */
if (pszMessage != 0)
@@ -252,9 +257,10 @@ sal_Bool SAL_CALL osl_assertFailedLine (
/* output backtrace */
osl_diagnose_backtrace_Impl(f);
- /* release lock and leave, w/o calling osl_breakDebug() */
+ /* release lock and leave */
pthread_mutex_unlock(&g_mutex);
- return sal_False;
+
+ return doAbort;
}
/************************************************************************/
@@ -262,7 +268,7 @@ sal_Bool SAL_CALL osl_assertFailedLine (
/************************************************************************/
void SAL_CALL osl_breakDebug()
{
- exit(0);
+ abort();
}
/************************************************************************/
diff --git a/sal/osl/w32/diagnose.c b/sal/osl/w32/diagnose.c
index 9c75e4502743..1feab6ded8da 100755
--- a/sal/osl/w32/diagnose.c
+++ b/sal/osl/w32/diagnose.c
@@ -93,6 +93,7 @@ sal_Bool SAL_CALL osl_assertFailedLine(const sal_Char* pszFileName, sal_Int32 nL
/* get app name or NULL if unknown (don't call assert) */
LPCSTR lpszAppName = "Error";
sal_Char szMessage[512];
+ char const * env = getenv( "SAL_DIAGNOSE_ABORT" );
/* format message into buffer */
szMessage[sizeof(szMessage)-1] = '\0'; /* zero terminate always */
@@ -105,39 +106,44 @@ sal_Bool SAL_CALL osl_assertFailedLine(const sal_Char* pszFileName, sal_Int32 nL
_pPrintDetailedDebugMessage( pszFileName, nLine, pszMessage );
else if ( _pPrintDebugMessage )
_pPrintDebugMessage( szMessage );
- else if ( !getenv( "DISABLE_SAL_DBGBOX" ) )
+ else
{
- TCHAR szBoxMessage[1024];
+ if ( !getenv( "DISABLE_SAL_DBGBOX" ) )
+ {
+ TCHAR szBoxMessage[1024];
- /* active popup window for the current thread */
- hWndParent = GetActiveWindow();
- if (hWndParent != NULL)
- hWndParent = GetLastActivePopup(hWndParent);
+ /* active popup window for the current thread */
+ hWndParent = GetActiveWindow();
+ if (hWndParent != NULL)
+ hWndParent = GetLastActivePopup(hWndParent);
- /* set message box flags */
- nFlags = MB_TASKMODAL | MB_ICONWARNING | MB_YESNOCANCEL | MB_DEFBUTTON2 | MB_SETFOREGROUND;
- if (hWndParent == NULL)
- nFlags |= MB_SERVICE_NOTIFICATION;
+ /* set message box flags */
+ nFlags = MB_TASKMODAL | MB_ICONWARNING | MB_YESNOCANCEL | MB_DEFBUTTON2 | MB_SETFOREGROUND;
+ if (hWndParent == NULL)
+ nFlags |= MB_SERVICE_NOTIFICATION;
- /* display the assert */
+ /* display the assert */
- szBoxMessage[sizeof(szBoxMessage)-1] = 0;
- _snprintf(szBoxMessage, sizeof(szBoxMessage)-1, "%s\n( Yes=Abort / No=Ignore / Cancel=Debugger )",
- szMessage);
+ szBoxMessage[sizeof(szBoxMessage)-1] = 0;
+ _snprintf(szBoxMessage, sizeof(szBoxMessage)-1, "%s\n( Yes=Abort / No=Ignore / Cancel=Debugger )",
+ szMessage);
- nCode = MessageBox(hWndParent, szBoxMessage, "Assertion Failed!", nFlags);
+ nCode = MessageBox(hWndParent, szBoxMessage, "Assertion Failed!", nFlags);
- if (nCode == IDYES)
- FatalExit(-1);
+ if (nCode == IDYES)
+ FatalExit(-1);
- if (nCode == IDNO)
- return sal_False; /* ignore */
+ if (nCode == IDNO)
+ return sal_False; /* ignore */
- if (nCode == IDCANCEL)
- return sal_True; /* will cause oslDebugBreak */
+ if (nCode == IDCANCEL)
+ return sal_True; /* will cause oslDebugBreak */
+ }
+ return ( ( env != NULL ) && ( *env != '\0' ) );
}
+
+ return sal_False;
#endif /* NO_DEBUG_CRT */
- return sal_False; /* not shure, not care */
}
sal_Int32 SAL_CALL osl_reportError(sal_uInt32 nType, const sal_Char* pszMessage)
--
cgit
From 5da06c75bb7a7c3108d3415149293a0536f0a18a Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Mon, 21 Feb 2011 09:54:19 +0100
Subject: #i115784# idlc: Fix unreachable "return ; break;" statements.
---
idlc/source/options.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/idlc/source/options.cxx b/idlc/source/options.cxx
index 42b97237e34f..1afc3b4765b9 100644
--- a/idlc/source/options.cxx
+++ b/idlc/source/options.cxx
@@ -309,7 +309,7 @@ bool Options::initOptions(std::vector< std::string > & rArgs) throw(IllegalArgum
(void) fprintf(stdout, "%s", prepareHelp().getStr());
return (false);
}
- break;
+ // break; // Unreachable
}
case 's':
{
--
cgit
From 60e454d12b4ed5a697eb040c1468f0c9992c7dd5 Mon Sep 17 00:00:00 2001
From: "Frank Schoenheit [fs]"
Date: Mon, 21 Feb 2011 11:15:06 +0100
Subject: debuglevels: removed useless assertions Those assertions were
dependent on OSL_DEBUG_LEVEL > 1 (i.e. only existent with "dmake=1"), and
then always fired. Which fulfills the definition of "useless", /me thinks.
---
cppu/source/typelib/typelib.cxx | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index aa0d18589a89..cbd8ee3872d4 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -330,20 +330,7 @@ TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl() SAL_THROW( () )
delete pWeakMap;
pWeakMap = 0;
}
-#if OSL_DEBUG_LEVEL > 1
- OSL_ASSERT( nTypeDescriptionCount == 0 );
- OSL_ASSERT( nCompoundTypeDescriptionCount == 0 );
- OSL_ASSERT( nUnionTypeDescriptionCount == 0 );
- OSL_ASSERT( nIndirectTypeDescriptionCount == 0 );
- OSL_ASSERT( nArrayTypeDescriptionCount == 0 );
- OSL_ASSERT( nEnumTypeDescriptionCount == 0 );
- OSL_ASSERT( nInterfaceMethodTypeDescriptionCount == 0 );
- OSL_ASSERT( nInterfaceAttributeTypeDescriptionCount == 0 );
- OSL_ASSERT( nInterfaceTypeDescriptionCount == 0 );
- OSL_ASSERT( nTypeDescriptionReferenceCount == 0 );
-
OSL_ASSERT( !pCallbacks || pCallbacks->empty() );
-#endif
delete pCallbacks;
pCallbacks = 0;
--
cgit
From fb4f853ff6e53f3537e8e5ff2b488d039d175a16 Mon Sep 17 00:00:00 2001
From: "Frank Schoenheit [fs]"
Date: Mon, 21 Feb 2011 12:45:48 +0100
Subject: debuglevels: removed yet another useless (aka: nearly-always-firing)
assertion
---
cppu/source/typelib/typelib.cxx | 1 -
1 file changed, 1 deletion(-)
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index cbd8ee3872d4..935a64397505 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -330,7 +330,6 @@ TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl() SAL_THROW( () )
delete pWeakMap;
pWeakMap = 0;
}
- OSL_ASSERT( !pCallbacks || pCallbacks->empty() );
delete pCallbacks;
pCallbacks = 0;
--
cgit
From 93fd2e29e8eb51dd7a12cce0d853b75e7fb447fa Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Tue, 22 Feb 2011 19:26:59 +0100
Subject: #i115784# configure: Add check for valgrind/memcheck.h, defining
HAVE_VALGRIND_MEMCHECK_H.
---
sal/rtl/source/makefile.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sal/rtl/source/makefile.mk b/sal/rtl/source/makefile.mk
index 5aaf29ae7d50..80c8e736c3cd 100644
--- a/sal/rtl/source/makefile.mk
+++ b/sal/rtl/source/makefile.mk
@@ -46,6 +46,10 @@ TARGETTYPE=CUI
.INCLUDE : settings.mk
+.IF "$(HAVE_VALGRIND_MEMCHECK_H)" == "TRUE"
+CDEFS+= -DHAVE_VALGRIND_MEMCHECK_H=1
+.ENDIF
+
.IF "$(ALLOC)" == "SYS_ALLOC" || "$(ALLOC)" == "TCMALLOC" || "$(ALLOC)" == "JEMALLOC"
CDEFS+= -DFORCE_SYSALLOC
.ENDIF
--
cgit
From 228e4d2915a12802bf08303b750494c0f88e3d4a Mon Sep 17 00:00:00 2001
From: Juergen Schmidt
Date: Thu, 24 Feb 2011 10:51:05 +0100
Subject: jsc340: i114847: fix name
---
codemaker/source/cppumaker/cppuoptions.cxx | 12 ++++++++++--
codemaker/source/javamaker/javaoptions.cxx | 12 ++++++++++--
idlc/source/options.cxx | 12 ++++++++++--
registry/tools/regcompare.cxx | 6 ++++--
4 files changed, 34 insertions(+), 8 deletions(-)
diff --git a/codemaker/source/cppumaker/cppuoptions.cxx b/codemaker/source/cppumaker/cppuoptions.cxx
index 20ed3683a8bc..da8ce2089c6e 100644
--- a/codemaker/source/cppumaker/cppuoptions.cxx
+++ b/codemaker/source/cppumaker/cppuoptions.cxx
@@ -34,6 +34,12 @@
#include "osl/thread.h"
#include "osl/process.h"
+#ifdef SAL_UNX
+#define SEPARATOR '/'
+#else
+#define SEPARATOR '\\'
+#endif
+
using namespace rtl;
sal_Bool CppuOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile)
@@ -46,7 +52,9 @@ sal_Bool CppuOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile)
{
bCmdFile = sal_True;
- m_program = av[0];
+ OString name(av[0]);
+ sal_Int32 index = name.lastIndexOf(SEPARATOR);
+ m_program = name.copy((index > 0 ? index+1 : 0));
if (ac < 2)
{
@@ -338,7 +346,7 @@ OString CppuOptions::prepareHelp()
help += " necessary information is available for bridging the type in UNO.\n";
help += " -G = generate only target files which does not exists.\n";
help += " -Gc = generate only target files which content will be changed.\n";
- help += " -X = extra types which will not be taken into account for generation.\n";
+ help += " -X = extra types which will not be taken into account for generation.\n\n";
help += prepareVersion();
return help;
diff --git a/codemaker/source/javamaker/javaoptions.cxx b/codemaker/source/javamaker/javaoptions.cxx
index 5daedef06089..58235bd32616 100644
--- a/codemaker/source/javamaker/javaoptions.cxx
+++ b/codemaker/source/javamaker/javaoptions.cxx
@@ -33,6 +33,12 @@
#include "osl/process.h"
#include "osl/thread.h"
+#ifdef SAL_UNX
+#define SEPARATOR '/'
+#else
+#define SEPARATOR '\\'
+#endif
+
using namespace rtl;
sal_Bool JavaOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile)
@@ -45,7 +51,9 @@ sal_Bool JavaOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile)
{
bCmdFile = sal_True;
- m_program = av[0];
+ OString name(av[0]);
+ sal_Int32 index = name.lastIndexOf(SEPARATOR);
+ m_program = name.copy((index > 0 ? index+1 : 0));
if (ac < 2)
{
@@ -282,7 +290,7 @@ OString JavaOptions::prepareHelp()
help += " -nD = no dependent types are generated.\n";
help += " -G = generate only target files which does not exists.\n";
help += " -Gc = generate only target files which content will be changed.\n";
- help += " -X = extra types which will not be taken into account for generation.\n";
+ help += " -X = extra types which will not be taken into account for generation.\n\n";
help += prepareVersion();
return help;
diff --git a/idlc/source/options.cxx b/idlc/source/options.cxx
index a115a2262fe1..edf8648c31c3 100644
--- a/idlc/source/options.cxx
+++ b/idlc/source/options.cxx
@@ -32,6 +32,12 @@
#include /*MSVC trouble: */
#include
+#ifdef SAL_UNX
+#define SEPARATOR '/'
+#else
+#define SEPARATOR '\\'
+#endif
+
using namespace rtl;
Options::Options(): m_stdin(false), m_verbose(false), m_quiet(false)
@@ -52,7 +58,9 @@ sal_Bool Options::initOptions(int ac, char* av[], sal_Bool bCmdFile)
{
bCmdFile = sal_True;
- m_program = av[0];
+ OString name(av[0]);
+ sal_Int32 index = name.lastIndexOf(SEPARATOR);
+ m_program = name.copy((index > 0 ? index+1 : 0));
if (ac < 2)
{
@@ -335,7 +343,7 @@ OString Options::prepareHelp()
help += " requirements.\n";
help += " -w = display warning messages.\n";
help += " -we = treat warnings as errors.\n";
- help += " -h|-? = print this help message and exit.\n";
+ help += " -h|-? = print this help message and exit.\n\n";
help += prepareVersion();
return help;
diff --git a/registry/tools/regcompare.cxx b/registry/tools/regcompare.cxx
index d4bbe8c21ee2..ec8cdaa9e1a6 100644
--- a/registry/tools/regcompare.cxx
+++ b/registry/tools/regcompare.cxx
@@ -172,7 +172,9 @@ sal_Bool Options::initOptions(int ac, char* av[], sal_Bool bCmdFile)
{
bCmdFile = sal_True;
- m_program = av[0];
+ OString name(av[0]);
+ sal_Int32 index = name.lastIndexOf(SEPARATOR);
+ m_program = name.copy((index > 0 ? index+1 : 0));
if (ac < 2)
{
@@ -397,7 +399,7 @@ OString Options::prepareHelp()
help += " incompatible to r1. But if a service in r2 supports more properties as\n";
help += " in r1 and the new properties are 'optonal' it is compatible.\n";
help += " -u|U = additionally check types that are unpublished in registry 1.\n";
- help += " -h|-? = print this help message and exit.\n";
+ help += " -h|-? = print this help message and exit.\n\n";
help += prepareVersion();
return help;
--
cgit
From 23dc5111f2e717320d0ab169f5f522c9dce31b52 Mon Sep 17 00:00:00 2001
From: Juergen Schmidt
Date: Thu, 24 Feb 2011 14:57:20 +0100
Subject: jsc340: i115337: correct since tags
---
offapi/com/sun/star/awt/UnoControlDialogModelProvider.idl | 2 +-
offapi/com/sun/star/awt/grid/DefaultGridDataModel.idl | 6 +-----
offapi/com/sun/star/awt/grid/GridDataEvent.idl | 2 +-
3 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/offapi/com/sun/star/awt/UnoControlDialogModelProvider.idl b/offapi/com/sun/star/awt/UnoControlDialogModelProvider.idl
index a91065f72d66..e153c8c47370 100644
--- a/offapi/com/sun/star/awt/UnoControlDialogModelProvider.idl
+++ b/offapi/com/sun/star/awt/UnoControlDialogModelProvider.idl
@@ -39,7 +39,7 @@ module com { module sun { module star { module awt {
/** specifies a service to load a dialog model and allows to access the control models inside
- @since OOo 3.3.0
+ @since OOo 3.3
*/
service UnoControlDialogModelProvider : com::sun::star::container::XNameContainer
{
diff --git a/offapi/com/sun/star/awt/grid/DefaultGridDataModel.idl b/offapi/com/sun/star/awt/grid/DefaultGridDataModel.idl
index a25c602a9d38..c802db2f870e 100644
--- a/offapi/com/sun/star/awt/grid/DefaultGridDataModel.idl
+++ b/offapi/com/sun/star/awt/grid/DefaultGridDataModel.idl
@@ -37,17 +37,13 @@
/** If you do not want to implement the XGridDataModel yourself, use this service.
-<<<<<<< local
- @since OOo 3.3
-=======
The DefaultGridDataModel implementation is a dumb container of tabular data. You can add
and remove rows, modify cell values, and the like.
The implementation will implicitly increase its column count if you add a row which has more values than
the current column count.
- @since OOo 3.3.0
->>>>>>> other
+ @since OOo 3.3
*/
service DefaultGridDataModel : ::com::sun::star::awt::grid::XMutableGridDataModel;
diff --git a/offapi/com/sun/star/awt/grid/GridDataEvent.idl b/offapi/com/sun/star/awt/grid/GridDataEvent.idl
index 3ac05f0ec1ae..7430f3d97e66 100644
--- a/offapi/com/sun/star/awt/grid/GridDataEvent.idl
+++ b/offapi/com/sun/star/awt/grid/GridDataEvent.idl
@@ -43,7 +43,7 @@ module com { module sun { module star { module awt { module grid {
@see XMutableGridDataModel
@see XGridDataListener
- @since OOo 3.3.0
+ @since OOo 3.3
*/
struct GridDataEvent: com::sun::star::lang::EventObject
{
--
cgit
From 58eb3fb273f12dc632536366c9867d5bd952151c Mon Sep 17 00:00:00 2001
From: sb
Date: Fri, 25 Feb 2011 11:32:55 +0100
Subject: debuglevels: #i117073# added cppunittester --protector support; added
unoexceptionprotector and use it in installationtest.mk; reverted changes to
smoketest.cxx obsoleted by these additions
---
sal/cppunittester/cast.c | 36 +++++++++++++
sal/cppunittester/cast.h | 46 ++++++++++++++++
sal/cppunittester/cppunittester.cxx | 87 +++++++++++++++++++++++++-----
sal/cppunittester/makefile.mk | 2 +-
sal/inc/cppunittester/protectorfactory.hxx | 45 ++++++++++++++++
sal/prj/d.lst | 2 +
6 files changed, 204 insertions(+), 14 deletions(-)
create mode 100644 sal/cppunittester/cast.c
create mode 100644 sal/cppunittester/cast.h
create mode 100644 sal/inc/cppunittester/protectorfactory.hxx
diff --git a/sal/cppunittester/cast.c b/sal/cppunittester/cast.c
new file mode 100644
index 000000000000..38c081a60708
--- /dev/null
+++ b/sal/cppunittester/cast.c
@@ -0,0 +1,36 @@
+/*************************************************************************
+*
+* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+*
+* Copyright 2000, 2011 Oracle and/or its affiliates.
+*
+* OpenOffice.org - a multi-platform office productivity suite
+*
+* 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
+*
+* for a copy of the LGPLv3 License.
+*
+************************************************************************/
+
+#include "sal/config.h"
+
+#include "osl/module.h"
+
+#include "cast.h"
+
+oslGenericFunction cast(void * fn) {
+ return (oslGenericFunction) fn;
+}
diff --git a/sal/cppunittester/cast.h b/sal/cppunittester/cast.h
new file mode 100644
index 000000000000..4cfd411da930
--- /dev/null
+++ b/sal/cppunittester/cast.h
@@ -0,0 +1,46 @@
+/*************************************************************************
+*
+* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+*
+* Copyright 2000, 2011 Oracle and/or its affiliates.
+*
+* OpenOffice.org - a multi-platform office productivity suite
+*
+* 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
+*
+* for a copy of the LGPLv3 License.
+*
+************************************************************************/
+
+#ifndef INCLUDED_SAL_CPPUNITTESTER_CAST_H
+#define INCLUDED_SAL_CPPUNITTESTER_CAST_H
+
+#include "sal/config.h"
+
+#include "osl/module.h"
+
+#if defined __cplusplus
+extern "C" {
+#endif
+
+/* C++ compilers would warn about that cast, so it is done in C: */
+oslGenericFunction cast(void * fn);
+
+#if defined __cplusplus
+}
+#endif
+
+#endif
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx
index ac99601f5ce5..e3ced7253e47 100644
--- a/sal/cppunittester/cppunittester.cxx
+++ b/sal/cppunittester/cppunittester.cxx
@@ -30,6 +30,16 @@
#include
#include
+#include
+#include
+
+#include "cppunittester/protectorfactory.hxx"
+#include "osl/thread.h"
+#include "rtl/process.h"
+#include "rtl/string.hxx"
+#include "rtl/textcvt.h"
+#include "rtl/ustring.hxx"
+#include "sal/main.h"
#include "preextstl.h"
#include "cppunit/CompilerOutputter.h"
@@ -37,28 +47,79 @@
#include "cppunit/TestResultCollector.h"
#include "cppunit/TestRunner.h"
#include "cppunit/extensions/TestFactoryRegistry.h"
+#include "cppunit/plugin/DynamicLibraryManager.h"
+#include "cppunit/plugin/DynamicLibraryManagerException.h"
#include "cppunit/plugin/PlugInManager.h"
#include "cppunit/portability/Stream.h"
#include "postextstl.h"
-#include "osl/thread.h"
-#include "rtl/process.h"
-#include "rtl/string.hxx"
-#include "rtl/ustring.hxx"
-#include "sal/main.h"
+
+#include "cast.h"
+
+namespace {
+
+void usageFailure() {
+ std::cerr
+ << ("Usage: cppunittester (--protector "
+ " )* ")
+ << std::endl;
+ std::exit(EXIT_FAILURE);
+}
+
+std::string getArgument(sal_uInt32 index) {
+ rtl::OUString s16;
+ rtl_getAppCommandArg(index, &s16.pData);
+ rtl::OString s8;
+ if (!s16.convertToString(
+ &s8, osl_getThreadTextEncoding(),
+ (RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR
+ | RTL_UNICODETOTEXT_FLAGS_INVALID_ERROR))
+ || (s8.getLength()
+ > std::numeric_limits< std::string::size_type >::max()))
+ {
+ std::cerr
+ << "Failure converting argument from UTF-16 back to system encoding"
+ << std::endl;
+ std::exit(EXIT_FAILURE);
+ }
+ return std::string(
+ s8.getStr(), static_cast< std::string::size_type >(s8.getLength()));
+}
+
+}
SAL_IMPLEMENT_MAIN() {
- if (rtl_getAppCommandArgCount() != 1) {
- std::cerr << "Usage: cppunittester " << std::endl;
- return EXIT_FAILURE;
+ CppUnit::TestResult result;
+ sal_uInt32 index = 0;
+ for (; index < rtl_getAppCommandArgCount(); index += 3) {
+ std::string arg(getArgument(index));
+ if (arg.compare("--protector") != 0) {
+ break;
+ }
+ if (rtl_getAppCommandArgCount() - index < 3) {
+ usageFailure();
+ }
+ try {
+ result.pushProtector(
+ (*reinterpret_cast< cppunittester::ProtectorFactory * >(
+ cast(
+ (new CppUnit::DynamicLibraryManager(
+ getArgument(index + 1)))
+ ->findSymbol(getArgument(index + 2)))))());
+ } catch (CppUnit::DynamicLibraryManagerException & e) {
+ std::cerr
+ << "Failure instantiating protector \""
+ << getArgument(index + 1) << "\", \"" << getArgument(index + 2)
+ << "\": " << e.what() << std::endl;
+ std::exit(EXIT_FAILURE);
+ }
+ }
+ if (rtl_getAppCommandArgCount() - index != 1) {
+ usageFailure();
}
- rtl::OUString path;
- rtl_getAppCommandArg(0, &path.pData);
CppUnit::PlugInManager manager;
- manager.load(
- rtl::OUStringToOString(path, osl_getThreadTextEncoding()).getStr());
+ manager.load(getArgument(index));
CppUnit::TestRunner runner;
runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
- CppUnit::TestResult result;
CppUnit::TestResultCollector collector;
result.addListener(&collector);
runner.run(result);
diff --git a/sal/cppunittester/makefile.mk b/sal/cppunittester/makefile.mk
index 61fe7868c9f3..657b8f804504 100644
--- a/sal/cppunittester/makefile.mk
+++ b/sal/cppunittester/makefile.mk
@@ -44,7 +44,7 @@ CFLAGSCXX += $(CPPUNIT_CFLAGS)
OBJFILES = $(APP1OBJS)
-APP1OBJS = $(OBJ)/cppunittester.obj
+APP1OBJS = $(OBJ)/cast.obj $(OBJ)/cppunittester.obj
APP1RPATH = NONE
APP1STDLIBS = $(CPPUNITLIB) $(SALLIB)
APP1TARGET = cppunittester
diff --git a/sal/inc/cppunittester/protectorfactory.hxx b/sal/inc/cppunittester/protectorfactory.hxx
new file mode 100644
index 000000000000..c309dbe8aa85
--- /dev/null
+++ b/sal/inc/cppunittester/protectorfactory.hxx
@@ -0,0 +1,45 @@
+/*************************************************************************
+*
+* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+*
+* Copyright 2000, 2011 Oracle and/or its affiliates.
+*
+* OpenOffice.org - a multi-platform office productivity suite
+*
+* 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
+*
+* for a copy of the LGPLv3 License.
+*
+************************************************************************/
+
+#ifndef INCLUDED_CPPUNITTESTER_PROTECTORFACTORY_HXX
+#define INCLUDED_CPPUNITTESTER_PROTECTORFACTORY_HXX
+
+#include "sal/config.h"
+
+#include "sal/types.h"
+
+namespace CppUnit { class Protector; }
+
+namespace cppunittester {
+
+// The type of CppUnit::Protector factory functions that can be plugged into
+// cppunittester:
+extern "C" typedef CppUnit::Protector * SAL_CALL ProtectorFactory();
+
+}
+
+#endif
diff --git a/sal/prj/d.lst b/sal/prj/d.lst
index 3ce270bbbfc4..253d7ea7f718 100644
--- a/sal/prj/d.lst
+++ b/sal/prj/d.lst
@@ -1,9 +1,11 @@
+mkdir: %_DEST%\inc%_EXT%\cppunittester
mkdir: %_DEST%\inc%_EXT%\sal
mkdir: %_DEST%\inc%_EXT%\osl
mkdir: %_DEST%\inc%_EXT%\rtl
mkdir: %_DEST%\inc%_EXT%\systools
mkdir: %_DEST%\inc%_EXT%\systools\win32
+..\inc\cppunittester\protectorfactory.hxx %_DEST%\inc%_EXT%\protectorfactory.hxx
..\%__SRC%\inc\rtlbootstrap.mk %_DEST%\inc%_EXT%\rtlbootstrap.mk
..\inc\sal\*.h %_DEST%\inc%_EXT%\sal\*.h
..\%__SRC%\inc\sal\typesizes.h %_DEST%\inc%_EXT%\sal\typesizes.h
--
cgit
From df43fd9cd28a12f2e90ae40c163a20005ef2ae20 Mon Sep 17 00:00:00 2001
From: "Frank Schoenheit [fs]"
Date: Fri, 25 Feb 2011 16:01:35 +0100
Subject: debuglevels: GCC WaE / replace cppunit's DynamicLibraryManager (which
does not seem to be public API) with osl_loadModule
---
sal/cppunittester/cast.c | 36 ----------------------
sal/cppunittester/cast.h | 46 -----------------------------
sal/cppunittester/cppunittester.cxx | 59 +++++++++++++++++++++++--------------
sal/cppunittester/makefile.mk | 2 +-
4 files changed, 38 insertions(+), 105 deletions(-)
delete mode 100644 sal/cppunittester/cast.c
delete mode 100644 sal/cppunittester/cast.h
diff --git a/sal/cppunittester/cast.c b/sal/cppunittester/cast.c
deleted file mode 100644
index 38c081a60708..000000000000
--- a/sal/cppunittester/cast.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/*************************************************************************
-*
-* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-*
-* Copyright 2000, 2011 Oracle and/or its affiliates.
-*
-* OpenOffice.org - a multi-platform office productivity suite
-*
-* 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
-*
-* for a copy of the LGPLv3 License.
-*
-************************************************************************/
-
-#include "sal/config.h"
-
-#include "osl/module.h"
-
-#include "cast.h"
-
-oslGenericFunction cast(void * fn) {
- return (oslGenericFunction) fn;
-}
diff --git a/sal/cppunittester/cast.h b/sal/cppunittester/cast.h
deleted file mode 100644
index 4cfd411da930..000000000000
--- a/sal/cppunittester/cast.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*************************************************************************
-*
-* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-*
-* Copyright 2000, 2011 Oracle and/or its affiliates.
-*
-* OpenOffice.org - a multi-platform office productivity suite
-*
-* 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
-*
-* for a copy of the LGPLv3 License.
-*
-************************************************************************/
-
-#ifndef INCLUDED_SAL_CPPUNITTESTER_CAST_H
-#define INCLUDED_SAL_CPPUNITTESTER_CAST_H
-
-#include "sal/config.h"
-
-#include "osl/module.h"
-
-#if defined __cplusplus
-extern "C" {
-#endif
-
-/* C++ compilers would warn about that cast, so it is done in C: */
-oslGenericFunction cast(void * fn);
-
-#if defined __cplusplus
-}
-#endif
-
-#endif
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx
index e3ced7253e47..6aba6dc14b30 100644
--- a/sal/cppunittester/cppunittester.cxx
+++ b/sal/cppunittester/cppunittester.cxx
@@ -34,12 +34,16 @@
#include
#include "cppunittester/protectorfactory.hxx"
+#include "osl/module.h"
+#include "osl/module.hxx"
#include "osl/thread.h"
#include "rtl/process.h"
+#include "rtl/string.h"
#include "rtl/string.hxx"
#include "rtl/textcvt.h"
#include "rtl/ustring.hxx"
#include "sal/main.h"
+#include "sal/types.h"
#include "preextstl.h"
#include "cppunit/CompilerOutputter.h"
@@ -47,14 +51,10 @@
#include "cppunit/TestResultCollector.h"
#include "cppunit/TestRunner.h"
#include "cppunit/extensions/TestFactoryRegistry.h"
-#include "cppunit/plugin/DynamicLibraryManager.h"
-#include "cppunit/plugin/DynamicLibraryManagerException.h"
#include "cppunit/plugin/PlugInManager.h"
#include "cppunit/portability/Stream.h"
#include "postextstl.h"
-#include "cast.h"
-
namespace {
void usageFailure() {
@@ -65,15 +65,29 @@ void usageFailure() {
std::exit(EXIT_FAILURE);
}
-std::string getArgument(sal_uInt32 index) {
- rtl::OUString s16;
- rtl_getAppCommandArg(index, &s16.pData);
+rtl::OUString getArgument(sal_Int32 index) {
+ rtl::OUString arg;
+ rtl_getAppCommandArg(index, &arg.pData);
+ return arg;
+}
+
+std::string convertLazy(rtl::OUString const & s16) {
+ rtl::OString s8(rtl::OUStringToOString(s16, osl_getThreadTextEncoding()));
+ return std::string(
+ s8.getStr(),
+ ((static_cast< sal_uInt32 >(s8.getLength())
+ > std::numeric_limits< std::string::size_type >::max())
+ ? std::numeric_limits< std::string::size_type >::max()
+ : static_cast< std::string::size_type >(s8.getLength())));
+}
+
+std::string convertStrict(rtl::OUString const & s16) {
rtl::OString s8;
if (!s16.convertToString(
&s8, osl_getThreadTextEncoding(),
(RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR
| RTL_UNICODETOTEXT_FLAGS_INVALID_ERROR))
- || (s8.getLength()
+ || (static_cast< sal_uInt32 >(s8.getLength())
> std::numeric_limits< std::string::size_type >::max()))
{
std::cerr
@@ -91,38 +105,39 @@ SAL_IMPLEMENT_MAIN() {
CppUnit::TestResult result;
sal_uInt32 index = 0;
for (; index < rtl_getAppCommandArgCount(); index += 3) {
- std::string arg(getArgument(index));
- if (arg.compare("--protector") != 0) {
+ if (!getArgument(index).equalsAsciiL(
+ RTL_CONSTASCII_STRINGPARAM("--protector")))
+ {
break;
}
if (rtl_getAppCommandArgCount() - index < 3) {
usageFailure();
}
- try {
- result.pushProtector(
- (*reinterpret_cast< cppunittester::ProtectorFactory * >(
- cast(
- (new CppUnit::DynamicLibraryManager(
- getArgument(index + 1)))
- ->findSymbol(getArgument(index + 2)))))());
- } catch (CppUnit::DynamicLibraryManagerException & e) {
+ rtl::OUString lib(getArgument(index + 1));
+ rtl::OUString sym(getArgument(index + 2));
+ oslGenericFunction fn = (new osl::Module(lib))->getFunctionSymbol(sym);
+ CppUnit::Protector * p = fn == 0
+ ? 0
+ : (*reinterpret_cast< cppunittester::ProtectorFactory * >(fn))();
+ if (p == 0) {
std::cerr
- << "Failure instantiating protector \""
- << getArgument(index + 1) << "\", \"" << getArgument(index + 2)
- << "\": " << e.what() << std::endl;
+ << "Failure instantiating protector \"" << convertLazy(lib)
+ << "\", \"" << convertLazy(sym) << '"' << std::endl;
std::exit(EXIT_FAILURE);
}
+ result.pushProtector(p);
}
if (rtl_getAppCommandArgCount() - index != 1) {
usageFailure();
}
CppUnit::PlugInManager manager;
- manager.load(getArgument(index));
+ manager.load(convertStrict(getArgument(index)));
CppUnit::TestRunner runner;
runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
CppUnit::TestResultCollector collector;
result.addListener(&collector);
runner.run(result);
CppUnit::CompilerOutputter(&collector, CppUnit::stdCErr()).write();
+ fprintf( stderr, "-----\n" ); fflush( stderr );
return collector.wasSuccessful() ? EXIT_SUCCESS : EXIT_FAILURE;
}
diff --git a/sal/cppunittester/makefile.mk b/sal/cppunittester/makefile.mk
index 657b8f804504..61fe7868c9f3 100644
--- a/sal/cppunittester/makefile.mk
+++ b/sal/cppunittester/makefile.mk
@@ -44,7 +44,7 @@ CFLAGSCXX += $(CPPUNIT_CFLAGS)
OBJFILES = $(APP1OBJS)
-APP1OBJS = $(OBJ)/cast.obj $(OBJ)/cppunittester.obj
+APP1OBJS = $(OBJ)/cppunittester.obj
APP1RPATH = NONE
APP1STDLIBS = $(CPPUNITLIB) $(SALLIB)
APP1TARGET = cppunittester
--
cgit
From 2daf5ba78e26535ca4a2e6b743c0801d1e75c067 Mon Sep 17 00:00:00 2001
From: "Frank Schoenheit [fs]"
Date: Sat, 26 Feb 2011 21:52:40 +0100
Subject: debuglevels: ooops - removed a line of code not intended to be
committed
---
sal/cppunittester/cppunittester.cxx | 1 -
1 file changed, 1 deletion(-)
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx
index 6aba6dc14b30..ab3f61fcecee 100644
--- a/sal/cppunittester/cppunittester.cxx
+++ b/sal/cppunittester/cppunittester.cxx
@@ -138,6 +138,5 @@ SAL_IMPLEMENT_MAIN() {
result.addListener(&collector);
runner.run(result);
CppUnit::CompilerOutputter(&collector, CppUnit::stdCErr()).write();
- fprintf( stderr, "-----\n" ); fflush( stderr );
return collector.wasSuccessful() ? EXIT_SUCCESS : EXIT_FAILURE;
}
--
cgit
From bf5a377913bfb59f7010ad6dbca3e2247f7eff94 Mon Sep 17 00:00:00 2001
From: sb
Date: Mon, 28 Feb 2011 08:57:47 +0100
Subject: debuglevels: #i117073# Linux/GCC needs SAL_LOADMODULE_GLOBAL for
exception handling to work
---
sal/cppunittester/cppunittester.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx
index ab3f61fcecee..c89a350d6708 100644
--- a/sal/cppunittester/cppunittester.cxx
+++ b/sal/cppunittester/cppunittester.cxx
@@ -115,7 +115,8 @@ SAL_IMPLEMENT_MAIN() {
}
rtl::OUString lib(getArgument(index + 1));
rtl::OUString sym(getArgument(index + 2));
- oslGenericFunction fn = (new osl::Module(lib))->getFunctionSymbol(sym);
+ oslGenericFunction fn = (new osl::Module(lib, SAL_LOADMODULE_GLOBAL))
+ ->getFunctionSymbol(sym);
CppUnit::Protector * p = fn == 0
? 0
: (*reinterpret_cast< cppunittester::ProtectorFactory * >(fn))();
--
cgit
From fd56d52ca4db7df1b0f148dd5726cfb8e77c3ec4 Mon Sep 17 00:00:00 2001
From: Joachim Lingner
Date: Tue, 1 Mar 2011 10:55:20 +0100
Subject: jl164 #i109096# osl_loadModules did not work with long paths.
---
sal/osl/w32/module.cxx | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/sal/osl/w32/module.cxx b/sal/osl/w32/module.cxx
index b730bd3347df..e628c8b9614c 100644
--- a/sal/osl/w32/module.cxx
+++ b/sal/osl/w32/module.cxx
@@ -65,10 +65,31 @@ oslModule SAL_CALL osl_loadModule(rtl_uString *strModuleName, sal_Int32 nRtldMod
rtl_uString_assign(&Module, strModuleName);
hInstance = LoadLibraryW(reinterpret_cast(Module->buffer));
+
if (hInstance == NULL)
hInstance = LoadLibraryExW(reinterpret_cast(Module->buffer), NULL,
LOAD_WITH_ALTERED_SEARCH_PATH);
+ //In case of long path names (\\?\c:\...) try to shorten the filename.
+ //LoadLibrary cannot handle file names which exceed 260 letters.
+ if (hInstance == NULL && GetLastError() == ERROR_FILENAME_EXCED_RANGE)
+ {
+ wchar_t * buff = new wchar_t[Module->length + 1];
+ DWORD len = GetShortPathNameW(reinterpret_cast(Module->buffer),
+ buff, Module->length + 1);
+ if (len )
+ {
+ hInstance = LoadLibraryW(buff);
+
+ if (hInstance == NULL)
+ hInstance = LoadLibraryExW(buff, NULL,
+ LOAD_WITH_ALTERED_SEARCH_PATH);
+
+ }
+ delete[] buff;
+ }
+
+
if (hInstance <= (HINSTANCE)HINSTANCE_ERROR)
hInstance = 0;
--
cgit
From 842242febd48a2e255e12cfb98d4005aabb9622c Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Tue, 1 Mar 2011 15:43:07 +0100
Subject: #i115784# configure: fix valgrind header check, use VALGRIND_CFLAGS.
---
sal/rtl/source/alloc_impl.h | 10 +++++-----
sal/rtl/source/makefile.mk | 7 ++++---
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/sal/rtl/source/alloc_impl.h b/sal/rtl/source/alloc_impl.h
index 569c7b5f5b1b..a95b7c47465c 100644
--- a/sal/rtl/source/alloc_impl.h
+++ b/sal/rtl/source/alloc_impl.h
@@ -242,11 +242,11 @@ typedef CRITICAL_SECTION rtl_memory_lock_type;
/** Valgrind support macros.
*/
-#if !defined(HAVE_VALGRIND_MEMCHECK_H) || (OSL_DEBUG_LEVEL == 0)
+#if !defined(HAVE_MEMCHECK_H) || (OSL_DEBUG_LEVEL == 0)
#if !defined(NVALGRIND)
#define NVALGRIND 1
#endif /* ! NVALGRIND */
-#endif /* ! HAVE_VALGRIND_MEMCHECK_H || (OSL_DEBUG_LEVEL == 0) */
+#endif /* ! HAVE_MEMCHECK_H || (OSL_DEBUG_LEVEL == 0) */
#if defined(NVALGRIND)
#define VALGRIND_MAKE_MEM_UNDEFINED(addr, size)
@@ -257,12 +257,12 @@ typedef CRITICAL_SECTION rtl_memory_lock_type;
#define VALGRIND_DESTROY_MEMPOOL(pool)
#define VALGRIND_MEMPOOL_ALLOC(pool, addr, size)
#define VALGRIND_MEMPOOL_FREE(pool, addr)
-#elif defined(HAVE_VALGRIND_MEMCHECK_H)
-#include
+#elif defined(HAVE_MEMCHECK_H)
+#include
#if !defined(FORCE_SYSALLOC)
#define FORCE_SYSALLOC 1
#endif /* !FORCE_SYSALLOC */
-#endif /* NVALGRIND || HAVE_VALGRIND_MEMCHECK_H */
+#endif /* NVALGRIND || HAVE_MEMCHECK_H */
#ifdef __cplusplus
}
diff --git a/sal/rtl/source/makefile.mk b/sal/rtl/source/makefile.mk
index 80c8e736c3cd..538a0466f1ac 100644
--- a/sal/rtl/source/makefile.mk
+++ b/sal/rtl/source/makefile.mk
@@ -46,9 +46,10 @@ TARGETTYPE=CUI
.INCLUDE : settings.mk
-.IF "$(HAVE_VALGRIND_MEMCHECK_H)" == "TRUE"
-CDEFS+= -DHAVE_VALGRIND_MEMCHECK_H=1
-.ENDIF
+.IF "$(VALGRIND_CFLAGS)" != ""
+CFLAGS += $(VALGRIND_CFLAGS)
+CDEFS += -DHAVE_VALGRIND_MEMCHECK_H=1
+.ENDIF # VALGRIND_CFLAGS
.IF "$(ALLOC)" == "SYS_ALLOC" || "$(ALLOC)" == "TCMALLOC" || "$(ALLOC)" == "JEMALLOC"
CDEFS+= -DFORCE_SYSALLOC
--
cgit
From 519409e7c904d55d41649f7c7f503431661c2804 Mon Sep 17 00:00:00 2001
From: "Matthias Huetsch [mhu]"
Date: Wed, 2 Mar 2011 10:33:15 +0100
Subject: #i115784# sal/rtl/alloc: fix makefile define to match source.
---
sal/rtl/source/makefile.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sal/rtl/source/makefile.mk b/sal/rtl/source/makefile.mk
index 538a0466f1ac..145aa50b8be0 100644
--- a/sal/rtl/source/makefile.mk
+++ b/sal/rtl/source/makefile.mk
@@ -48,7 +48,7 @@ TARGETTYPE=CUI
.IF "$(VALGRIND_CFLAGS)" != ""
CFLAGS += $(VALGRIND_CFLAGS)
-CDEFS += -DHAVE_VALGRIND_MEMCHECK_H=1
+CDEFS += -DHAVE_MEMCHECK_H=1
.ENDIF # VALGRIND_CFLAGS
.IF "$(ALLOC)" == "SYS_ALLOC" || "$(ALLOC)" == "TCMALLOC" || "$(ALLOC)" == "JEMALLOC"
--
cgit
From cfbddca53c5f0c795fa35612d739c3dabb8f0d48 Mon Sep 17 00:00:00 2001
From: Joachim Lingner
Date: Wed, 2 Mar 2011 16:11:23 +0100
Subject: jl164 #i109096# osl_createProcesess failed if the executable had a
long path on windows
---
sal/osl/w32/module.cxx | 16 +++++++++-------
sal/osl/w32/procimpl.cxx | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 7 deletions(-)
mode change 100644 => 100755 sal/osl/w32/module.cxx
mode change 100644 => 100755 sal/osl/w32/procimpl.cxx
diff --git a/sal/osl/w32/module.cxx b/sal/osl/w32/module.cxx
old mode 100644
new mode 100755
index e628c8b9614c..00737ebbbaa4
--- a/sal/osl/w32/module.cxx
+++ b/sal/osl/w32/module.cxx
@@ -36,6 +36,7 @@
#include
#include
#include
+#include
/*
under WIN32, we use the void* oslModule
@@ -72,21 +73,22 @@ oslModule SAL_CALL osl_loadModule(rtl_uString *strModuleName, sal_Int32 nRtldMod
//In case of long path names (\\?\c:\...) try to shorten the filename.
//LoadLibrary cannot handle file names which exceed 260 letters.
- if (hInstance == NULL && GetLastError() == ERROR_FILENAME_EXCED_RANGE)
+ //In case the path is to long, the function will fail. However, the error
+ //code can be different. For example, it returned ERROR_FILENAME_EXCED_RANGE
+ //on Windows XP and ERROR_INSUFFICIENT_BUFFER on Windows 7 (64bit)
+ if (hInstance == NULL && Module->length > 260)
{
- wchar_t * buff = new wchar_t[Module->length + 1];
+ std::vector > vec(Module->length + 1);
DWORD len = GetShortPathNameW(reinterpret_cast(Module->buffer),
- buff, Module->length + 1);
+ vec.begin(), Module->length + 1);
if (len )
{
- hInstance = LoadLibraryW(buff);
+ hInstance = LoadLibraryW(vec.begin());
if (hInstance == NULL)
- hInstance = LoadLibraryExW(buff, NULL,
+ hInstance = LoadLibraryExW(vec.begin(), NULL,
LOAD_WITH_ALTERED_SEARCH_PATH);
-
}
- delete[] buff;
}
diff --git a/sal/osl/w32/procimpl.cxx b/sal/osl/w32/procimpl.cxx
old mode 100644
new mode 100755
index fc04d5b84a8f..13e7141edbad
--- a/sal/osl/w32/procimpl.cxx
+++ b/sal/osl/w32/procimpl.cxx
@@ -300,6 +300,39 @@ namespace /* private */
return quoted.makeStringAndClear();
}
+ //The parameter path must be a system path. If it is longer than 260 characters
+ //then it is shortened using the GetShortPathName function. This function only
+ //works if the path exists. Because "path" can be the path to an executable, it
+ //may not have the file extension ".exe". However, if the file on disk has the
+ //".exe" extension, then the function will fail. In this case a second attempt
+ //is started by adding the parameter "extension" to "path".
+ rtl::OUString getShortPath(rtl::OUString const & path, rtl::OUString const & extension)
+ {
+ rtl::OUString ret(path);
+ if (path.getLength() > 260)
+ {
+ std::vector > vec(path.getLength() + 1);
+ //GetShortPathNameW only works if the file can be found!
+ const DWORD len = GetShortPathNameW(
+ path.getStr(), vec.begin(), path.getLength() + 1);
+
+ if (!len && GetLastError() == ERROR_FILE_NOT_FOUND
+ && extension.getLength())
+ {
+ const rtl::OUString extPath(path + extension);
+ std::vector > vec2(
+ extPath.getLength() + 1);
+ const DWORD len2 = GetShortPathNameW(
+ extPath.getStr(), vec2.begin(), extPath.getLength() + 1);
+ ret = rtl::OUString(vec2.begin(), len2);
+ }
+ else
+ {
+ ret = rtl::OUString(vec.begin(), len);
+ }
+ }
+ return ret;
+ }
//##########################################################
// Returns the system path of the executable which can either
// be provided via the strImageName parameter or as first
@@ -326,6 +359,8 @@ namespace /* private */
if (osl_File_E_None != osl::FileBase::getSystemPathFromFileURL(exe_url, exe_path))
return rtl::OUString();
+ exe_path = getShortPath(exe_path, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".exe")));
+
if (exe_path.indexOf(' ') != -1)
exe_path = quote_string(exe_path);
--
cgit
From 0775f9eacec0e0758512c425c4e65190a651c3ae Mon Sep 17 00:00:00 2001
From: Joachim Lingner
Date: Thu, 3 Mar 2011 12:04:04 +0100
Subject: jl164 #i109096# fixing use of vectors as smart array in
osl_loadModules and osl_createprocesswithredirectedio, I introduced them in
one of the previous changesets in this cws
---
sal/osl/w32/module.cxx | 6 +++---
sal/osl/w32/procimpl.cxx | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/sal/osl/w32/module.cxx b/sal/osl/w32/module.cxx
index 00737ebbbaa4..65a17eb1352d 100755
--- a/sal/osl/w32/module.cxx
+++ b/sal/osl/w32/module.cxx
@@ -80,13 +80,13 @@ oslModule SAL_CALL osl_loadModule(rtl_uString *strModuleName, sal_Int32 nRtldMod
{
std::vector > vec(Module->length + 1);
DWORD len = GetShortPathNameW(reinterpret_cast(Module->buffer),
- vec.begin(), Module->length + 1);
+ &vec[0], Module->length + 1);
if (len )
{
- hInstance = LoadLibraryW(vec.begin());
+ hInstance = LoadLibraryW(&vec[0]);
if (hInstance == NULL)
- hInstance = LoadLibraryExW(vec.begin(), NULL,
+ hInstance = LoadLibraryExW(&vec[0], NULL,
LOAD_WITH_ALTERED_SEARCH_PATH);
}
}
diff --git a/sal/osl/w32/procimpl.cxx b/sal/osl/w32/procimpl.cxx
index 13e7141edbad..a2f86422df2a 100755
--- a/sal/osl/w32/procimpl.cxx
+++ b/sal/osl/w32/procimpl.cxx
@@ -314,7 +314,7 @@ namespace /* private */
std::vector > vec(path.getLength() + 1);
//GetShortPathNameW only works if the file can be found!
const DWORD len = GetShortPathNameW(
- path.getStr(), vec.begin(), path.getLength() + 1);
+ path.getStr(), &vec[0], path.getLength() + 1);
if (!len && GetLastError() == ERROR_FILE_NOT_FOUND
&& extension.getLength())
@@ -323,12 +323,12 @@ namespace /* private */
std::vector > vec2(
extPath.getLength() + 1);
const DWORD len2 = GetShortPathNameW(
- extPath.getStr(), vec2.begin(), extPath.getLength() + 1);
- ret = rtl::OUString(vec2.begin(), len2);
+ extPath.getStr(), &vec2[0], extPath.getLength() + 1);
+ ret = rtl::OUString(&vec2[0], len2);
}
else
{
- ret = rtl::OUString(vec.begin(), len);
+ ret = rtl::OUString(&vec[0], len);
}
}
return ret;
--
cgit