Kaydet (Commit) 1fe85161 authored tarafından Matúš Kukan's avatar Matúš Kukan

callcatcher: comphelper's unused code

üst 84e2f8ff
......@@ -70,7 +70,6 @@ $(eval $(call gb_Library_add_exception_objects,comphelper,\
comphelper/source/eventattachermgr/eventattachermgr \
comphelper/source/misc/accessiblecomponenthelper \
comphelper/source/misc/accessiblecontexthelper \
comphelper/source/misc/accessibleeventbuffer \
comphelper/source/misc/accessibleeventnotifier \
comphelper/source/misc/accessiblekeybindinghelper \
comphelper/source/misc/accessibleselectionhelper \
......@@ -126,7 +125,6 @@ $(eval $(call gb_Library_add_exception_objects,comphelper,\
comphelper/source/processfactory/processfactory \
comphelper/source/property/ChainablePropertySet \
comphelper/source/property/ChainablePropertySetInfo \
comphelper/source/property/composedprops \
comphelper/source/property/genericpropertyset \
comphelper/source/property/MasterPropertySet \
comphelper/source/property/MasterPropertySetInfo \
......@@ -145,7 +143,6 @@ $(eval $(call gb_Library_add_exception_objects,comphelper,\
comphelper/source/streaming/basicio \
comphelper/source/streaming/memorystream \
comphelper/source/streaming/oslfile2streamwrap \
comphelper/source/streaming/otransactedfilestream \
comphelper/source/streaming/seekableinput \
comphelper/source/streaming/seqinputstreamserv \
comphelper/source/streaming/seqoutputstreamserv \
......
......@@ -43,11 +43,9 @@ $(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/scoped_disposing
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/xmltools.hxx,comphelper/xmltools.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/asyncnotification.hxx,comphelper/asyncnotification.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/namedvaluecollection.hxx,comphelper/namedvaluecollection.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/composedprops.hxx,comphelper/composedprops.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/mediadescriptor.hxx,comphelper/mediadescriptor.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/synchronousdispatch.hxx,comphelper/synchronousdispatch.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/accessiblecomponenthelper.hxx,comphelper/accessiblecomponenthelper.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/otransactedfilestream.hxx,comphelper/otransactedfilestream.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/propmultiplex.hxx,comphelper/propmultiplex.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/servicehelper.hxx,comphelper/servicehelper.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/servicedecl.hxx,comphelper/servicedecl.hxx))
......@@ -63,7 +61,6 @@ $(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/propertystatecon
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/propertysetinfo.hxx,comphelper/propertysetinfo.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/accimplaccess.hxx,comphelper/accimplaccess.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/docpasswordrequest.hxx,comphelper/docpasswordrequest.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/accessibleeventbuffer.hxx,comphelper/accessibleeventbuffer.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/regpathhelper.hxx,comphelper/regpathhelper.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/extract.hxx,comphelper/extract.hxx))
$(eval $(call gb_Package_add_file,comphelper_inc,inc/comphelper/interaction.hxx,comphelper/interaction.hxx))
......
......@@ -53,12 +53,6 @@ namespace comphelper
* _setSingleValue and released after all processing has completed
* (including _postSetValues or _postGetValues )
*
* The implementations of getPropertyValues/setPropertyValues call
* lockMutex and _preGetValues/_preSetValues once before calling
* _getSingleValue/_setSingleValue for each property. After each
* property has been dealt with, _postGetValues/_postSetValues
* are called once.
*
* Any MasterPropertySet implementations that can include an
* implementation of a given ChainablePropertySet must be
* declared as a 'friend' in the implementation of the ChainablePropertySet.
......@@ -76,8 +70,6 @@ namespace comphelper
ChainablePropertySetInfo *mpInfo;
osl::SolarMutex* mpMutex;
::com::sun::star::uno::Reference < com::sun::star::beans::XPropertySetInfo > mxInfo;
void lockMutex();
void unlockMutex();
virtual void _preSetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
......
......@@ -53,8 +53,6 @@ namespace comphelper
PropertyInfoHash maMap;
com::sun::star::uno::Sequence < com::sun::star::beans::Property > maProperties;
public:
ChainablePropertySetInfo()
throw();
ChainablePropertySetInfo( PropertyInfo * pMap )
throw();
......
......@@ -73,8 +73,6 @@ namespace comphelper
sal_uInt8 mnLastId;
SlaveMap maSlaveMap;
::com::sun::star::uno::Reference < com::sun::star::beans::XPropertySetInfo > mxInfo;
void lockMutex();
void unlockMutex();
virtual void _preSetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
......
......@@ -45,8 +45,6 @@ namespace comphelper
PropertyDataHash maMap;
com::sun::star::uno::Sequence < com::sun::star::beans::Property > maProperties;
public:
MasterPropertySetInfo()
throw();
MasterPropertySetInfo( PropertyInfo * pMap )
throw();
virtual ~MasterPropertySetInfo()
......@@ -55,8 +53,6 @@ namespace comphelper
throw();
void add( PropertyInfoHash &rHash, sal_uInt8 nMapId )
throw();
void remove( const rtl::OUString& aName )
throw();
// XPropertySetInfo
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties()
......
......@@ -227,27 +227,6 @@ namespace comphelper
const ::com::sun::star::uno::Any& _rNewValue
);
/** records a certain event so that all AccessibleEventListeners can
be notified later on.
Can even be called with our mutex locked.
@param _nEventId
the id of the even. See AccessibleEventType
@param _rOldValue
the old value to be notified
@param _rNewValue
the new value to be notified
@param _rBuffer
the buffer that records the event
*/
virtual void SAL_CALL BufferAccessibleEvent(
const sal_Int16 _nEventId,
const ::com::sun::star::uno::Any& _rOldValue,
const ::com::sun::star::uno::Any& _rNewValue,
AccessibleEventBuffer & _rBuffer
);
// life time control
/// checks whether the object is alive (returns <TRUE/> then) or disposed
sal_Bool isAlive() const;
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* 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
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#if !defined INCLUDED_COMPHELPER_ACCESSIBLEEVENTBUFFER_HXX
#define INCLUDED_COMPHELPER_ACCESSIBLEEVENTBUFFER_HXX
#include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/Sequence.hxx"
#include <vector>
namespace com { namespace sun { namespace star { namespace uno {
class XInterface;
} } } }
namespace com { namespace sun { namespace star {
namespace accessibility { struct AccessibleEventObject; }
} } }
namespace comphelper {
/**
A buffer for AccessibleEventObjects about to be sent to
XAccessibleEventListeners.
This buffer records pairs of AccessibleEventObjects and sequences of
XAccessibleEventListeners. At a time when it is safe to do so (e.g., when
no critical mutexes are held), all events can be notified at once.
This class is not thread-safe in itself, but it is thread-compatible (i.e.,
all multi-threaded uses of instances of this class have to ensure proper
mutual exclusion).
*/
class AccessibleEventBuffer
{
public:
/**
Create an initially empty buffer.
Internally uses ::std::vector and thus may throw exceptions thrown by
operations on ::std::vector, especially ::std::bad_alloc.
*/
AccessibleEventBuffer();
/**
Create a buffer with a copy of another buffer.
The events from the other buffer are copied, not shared.
Internally uses ::std::vector and thus may throw exceptions thrown by
operations on ::std::vector, especially ::std::bad_alloc.
*/
AccessibleEventBuffer(AccessibleEventBuffer const & rOther);
/**
Destroy the buffer.
If the buffer contains any events that have not yet been sent, those
events are lost.
Does not throw any exceptions.
*/
~AccessibleEventBuffer();
/**
Copy another buffer into this buffer.
If this buffer contained any events that had not yet been sent, those
events are lost. The events from the other buffer are copied, not
shared.
Internally uses ::std::vector and thus may throw exceptions thrown by
operations on ::std::vector, especially ::std::bad_alloc.
*/
AccessibleEventBuffer operator =(AccessibleEventBuffer const & rOther);
/**
Add an event to the buffer.
Internally uses ::std::vector and thus may throw exceptions thrown by
operations on ::std::vector, especially ::std::bad_alloc.
*/
void addEvent(
::com::sun::star::accessibility::AccessibleEventObject const &
rEvent,
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference<
::com::sun::star::uno::XInterface > > const & rListeners);
/**
Sends all the events accumulated in the buffer.
If sending any of the events to a specific XAccessibleListener fails with
a RuntimeException, that exception is ignored and the method carries on
with the rest of the notifications.
After sending all events, the buffer is cleared.
*/
void sendEvents() const;
private:
struct Entry;
typedef ::std::vector< Entry > Entries;
Entries m_aEntries;
};
}
#endif // INCLUDED_COMPHELPER_ACCESSIBLEEVENTBUFFER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -52,8 +52,6 @@ public:
// methods that are not contained in any interface
void AddAttribute( const ::rtl::OUString &sName , const ::rtl::OUString &sType , const ::rtl::OUString &sValue );
void Clear();
void RemoveAttribute( const ::rtl::OUString sName );
void SetAttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & );
void AppendAttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & );
// ::com::sun::star::xml::sax::XAttributeList
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* 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
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _COMPHELPER_COMPOSEDPROPS_HXX_
#define _COMPHELPER_COMPOSEDPROPS_HXX_
#include <cppuhelper/implbase2.hxx>
#include <comphelper/types.hxx>
#include <comphelper/stl_types.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#include <osl/mutex.hxx>
#include "comphelper/comphelperdllapi.h"
//.........................................................................
namespace comphelper
{
//.........................................................................
//=====================================================================
//= IPropertySetComposerCallback
//=====================================================================
class IPropertySetComposerCallback
{
public:
/** determines whether or not a property should appear in the composed property set
@param _rPropertyName
the name of the property
*/
virtual sal_Bool isComposeable(const ::rtl::OUString& _rPropertyName) const = 0;
};
//=====================================================================
//= OComposedPropertySet
//=====================================================================
class OComposedPropertySetInfo;
typedef ::cppu::WeakImplHelper2 < ::com::sun::star::beans::XPropertySet
, ::com::sun::star::beans::XPropertyState
> OComposedPropertySet_Base;
/** helper class for composing a property set from a sequence of other property sets.
<p>First: This class is a fast shot, so don't sue me :) (To be honest, it's the migration of an old ugly
implementation. It's still ugly).</p>
<p>The property listener mechanisms are not supported (you can't add property listeners).</p>
<p>Speaking strictly, the property defaults (getPropertyDefault) do not work correctly, as there's always
an empty <type scope="com.sun.star.uno">Any</type> returned.</p>
*/
class COMPHELPER_DLLPUBLIC OComposedPropertySet : public OComposedPropertySet_Base
{
private:
::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >
m_aProperties;
OComposedPropertySetInfo* m_pInfo;
protected:
::osl::Mutex m_aMutex;
DECLARE_STL_VECTOR(::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>, PropertySetArray);
PropertySetArray m_aSingleSets;
public:
/** constructs a composed property set
@param _rElements
the single property sets to compose
<p>The first property set in the sequence is the master set, any properties not present here
are not present in the composed set.<br/>
This may change in the future (as it's just missing implementation), so don't rely on this behaviour.</p>
@param _pPropertyMetaData
the callback for retrieving property meta data (namely composeability)<br/>
if not specified, all properties are assumed to be composable
*/
OComposedPropertySet(
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> > & _rElements,
const IPropertySetComposerCallback* _pPropertyMetaData = NULL
);
// XPropertyState
virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
// XPropertySet
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
protected:
~OComposedPropertySet();
void compose(const IPropertySetComposerCallback* _pMetaData);
};
//.........................................................................
} // namespace comphelper
//.........................................................................
#endif // _COMPHELPER_COMPOSEDPROPS_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -164,21 +164,6 @@ public:
// ------------------------------------------------------------------------
/** This helper function generates the hash code based on the algorithm
specified by MS for "Password to modify" feature of Word.
@param aString
The string for which the hash should be calculated
@return
The hash represented by sequence of bytes in BigEndian form
*/
static ::com::sun::star::uno::Sequence< sal_Int8 > GetWordHashAsSequence(
const ::rtl::OUString& aString );
// ------------------------------------------------------------------------
/** This helper function generates the hash code based on the algorithm
specified by MS for "Password to modify" and passwords related to
table protection of Excel.
......
......@@ -65,7 +65,6 @@ public:
virtual void SAL_CALL acquire( ) throw ();
virtual void SAL_CALL release( ) throw ();
sal_Bool isAbort() const;
sal_Bool isPassword() const;
::rtl::OUString getPassword() const;
......@@ -104,7 +103,6 @@ public:
virtual void SAL_CALL acquire( ) throw ();
virtual void SAL_CALL release( ) throw ();
sal_Bool isAbort() const;
sal_Bool isPassword() const;
::rtl::OUString getPassword() const;
......
......@@ -29,7 +29,6 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_comphelper.hxx"
#include <comphelper/accessiblecontexthelper.hxx>
#include <comphelper/accessibleeventbuffer.hxx>
#include <osl/diagnose.h>
#include <cppuhelper/weakref.hxx>
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
......@@ -214,35 +213,6 @@ namespace comphelper
AccessibleEventNotifier::addEvent( m_pImpl->getClientId( ), aEvent );
}
//---------------------------------------------------------------------
void SAL_CALL OAccessibleContextHelper::BufferAccessibleEvent( const sal_Int16 _nEventId,
const Any& _rOldValue, const Any& _rNewValue,
AccessibleEventBuffer & _rBuffer )
{
// TODO: this whole method (as well as the class AccessibleEventBuffer) should be removed
// The reasons why they have been introduces id that we needed to collect a set of events
// before notifying them alltogether (after releasing our mutex). With the other
// NotifyAccessibleEvent being asynchronous now, this should not be necessary anymore
// - clients could use the other version now.
// copy our current listeners
Sequence< Reference< XInterface > > aListeners;
if ( m_pImpl->getClientId( ) )
aListeners = AccessibleEventNotifier::getEventListeners( m_pImpl->getClientId( ) );
if ( aListeners.getLength() )
{
AccessibleEventObject aEvent;
aEvent.Source = *this;
OSL_ENSURE( aEvent.Source.is(), "OAccessibleContextHelper::BufferAccessibleEvent: invalid creator!" );
aEvent.EventId = _nEventId;
aEvent.OldValue = _rOldValue;
aEvent.NewValue = _rNewValue;
_rBuffer.addEvent( aEvent, aListeners );
}
}
//---------------------------------------------------------------------
sal_Bool OAccessibleContextHelper::isAlive() const
{
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* 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
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_comphelper.hxx"
#include "comphelper/accessibleeventbuffer.hxx"
#include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/RuntimeException.hpp"
#include "com/sun/star/uno/Sequence.hxx"
#include "com/sun/star/uno/XInterface.hpp"
#include "com/sun/star/accessibility/AccessibleEventObject.hpp"
#include "com/sun/star/accessibility/XAccessibleEventListener.hpp"
#include "osl/diagnose.h"
#include "rtl/textenc.h"
#include "rtl/ustring.hxx"
#include "sal/types.h"
namespace css = ::com::sun::star;
using comphelper::AccessibleEventBuffer;
struct AccessibleEventBuffer::Entry
{
inline Entry(::css::accessibility::AccessibleEventObject const & rEvent,
::css::uno::Sequence< ::css::uno::Reference<
::css::uno::XInterface > > const & rListeners):
m_aEvent(rEvent), m_aListeners(rListeners) {}
::css::accessibility::AccessibleEventObject m_aEvent;
::css::uno::Sequence<
::css::uno::Reference< ::css::uno::XInterface > > m_aListeners;
};
AccessibleEventBuffer::AccessibleEventBuffer()
{}
AccessibleEventBuffer::AccessibleEventBuffer(
AccessibleEventBuffer const & rOther):
m_aEntries(rOther.m_aEntries)
{}
AccessibleEventBuffer::~AccessibleEventBuffer()
{}
AccessibleEventBuffer
AccessibleEventBuffer::operator =(AccessibleEventBuffer const & rOther)
{
m_aEntries = rOther.m_aEntries;
return *this;
}
void AccessibleEventBuffer::addEvent(
::css::accessibility::AccessibleEventObject const & rEvent,
::css::uno::Sequence< ::css::uno::Reference< ::css::uno::XInterface > >
const & rListeners)
{
m_aEntries.push_back(Entry(rEvent, rListeners));
}
void AccessibleEventBuffer::sendEvents() const
{
for (Entries::const_iterator aIt(m_aEntries.begin());
aIt != m_aEntries.end(); ++aIt)
for (::sal_Int32 i = 0; i < aIt->m_aListeners.getLength(); ++i)
{
::css::uno::Reference<
::css::accessibility::XAccessibleEventListener > xListener(
aIt->m_aListeners[i], ::css::uno::UNO_QUERY);
if (xListener.is())
try
{
xListener->notifyEvent(aIt->m_aEvent);
}
catch (::css::uno::RuntimeException & rEx)
{
OSL_TRACE(
"comphelper::AccessibleEventBuffer::sendEvents:"
" caught %s\n",
::rtl::OUStringToOString(
rEx.Message, RTL_TEXTENCODING_UTF8).getStr());
}
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -220,20 +220,6 @@ sal_uInt32 DocPasswordHelper::GetWordHashAsUINT32(
return nResult;
}
// ============================================================================
Sequence< sal_Int8 > DocPasswordHelper::GetWordHashAsSequence(
const ::rtl::OUString& aUString )
{
sal_uInt32 nHash = GetWordHashAsUINT32( aUString );
Sequence< sal_Int8 > aResult( 4 );
aResult[0] = ( nHash >> 24 );
aResult[1] = ( ( nHash >> 16 ) & 0xFF );
aResult[2] = ( ( nHash >> 8 ) & 0xFF );
aResult[3] = ( nHash & 0xFF );
return aResult;
}
// ============================================================================
sal_uInt16 DocPasswordHelper::GetXLHashAsUINT16(
const ::rtl::OUString& aUString,
......
......@@ -138,11 +138,6 @@ void SAL_CALL SimplePasswordRequest::release( ) throw ()
OWeakObject::release();
}
sal_Bool SimplePasswordRequest::isAbort() const
{
return mpAbort->isSelected();
}
sal_Bool SimplePasswordRequest::isPassword() const
{
return mpPassword->isSelected();
......@@ -219,11 +214,6 @@ void SAL_CALL DocPasswordRequest::release( ) throw ()
OWeakObject::release();
}
sal_Bool DocPasswordRequest::isAbort() const
{
return mpAbort->isSelected();
}
sal_Bool DocPasswordRequest::isPassword() const
{
return mpPassword->isSelected();
......
......@@ -62,18 +62,6 @@ Reference< XPropertySetInfo > SAL_CALL ChainablePropertySet::getPropertySetInfo(
return mxInfo;
}
void ChainablePropertySet::lockMutex()
{
if (mpMutex)
mpMutex->acquire();
}
void ChainablePropertySet::unlockMutex()
{
if (mpMutex)
mpMutex->release();
}
void SAL_CALL ChainablePropertySet::setPropertyValue( const ::rtl::OUString& rPropertyName, const Any& rValue )
throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException)
{
......
......@@ -45,11 +45,6 @@ using ::com::sun::star::beans::Property;
using ::com::sun::star::beans::XPropertySetInfo;
using ::com::sun::star::beans::UnknownPropertyException;
ChainablePropertySetInfo::ChainablePropertySetInfo()
throw()
{
}
ChainablePropertySetInfo::ChainablePropertySetInfo( PropertyInfo* pMap )
throw()
{
......
......@@ -90,17 +90,6 @@ MasterPropertySet::MasterPropertySet( comphelper::MasterPropertySetInfo* pInfo,
{
}
void MasterPropertySet::lockMutex()
{
if (mpMutex)
mpMutex->acquire();
}
void MasterPropertySet::unlockMutex()
{
if (mpMutex)
mpMutex->release();
}
MasterPropertySet::~MasterPropertySet()
throw()
{
......
......@@ -45,11 +45,6 @@ using ::com::sun::star::beans::Property;
using ::com::sun::star::beans::XPropertySetInfo;
using ::com::sun::star::beans::UnknownPropertyException;
MasterPropertySetInfo::MasterPropertySetInfo()
throw()
{
}
MasterPropertySetInfo::MasterPropertySetInfo( PropertyInfo* pMap )
throw()
{
......@@ -108,14 +103,6 @@ void MasterPropertySetInfo::add( PropertyInfoHash &rHash, sal_uInt8 nMapId )
}
}
void MasterPropertySetInfo::remove( const rtl::OUString& aName )
throw()
{
maMap.erase ( aName );
if ( maProperties.getLength() )
maProperties.realloc( 0 );
}
Sequence< ::Property > SAL_CALL MasterPropertySetInfo::getProperties()
throw(::com::sun::star::uno::RuntimeException)
{
......
......@@ -140,25 +140,6 @@ void AttributeList::Clear()
OSL_ENSURE( ! getLength(), "Length > 0 after AttributeList::Clear!");
}
void AttributeList::RemoveAttribute( const OUString sName )
{
::std::vector<struct TagAttribute_Impl>::iterator ii = m_pImpl->vecAttribute.begin();
for( ; ii != m_pImpl->vecAttribute.end() ; ++ii ) {
if( (*ii).sName == sName ) {
m_pImpl->vecAttribute.erase( ii );
break;
}
}
}
void AttributeList::SetAttributeList( const uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &r )
{
Clear();
AppendAttributeList( r );
}
void AttributeList::AppendAttributeList( const uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &r )
{
OSL_ENSURE( r.is(), "r isn't!" );
......
......@@ -864,7 +864,6 @@ SvUShorts::Replace(unsigned short const&, unsigned short)
SvUShorts::Replace(unsigned short const*, unsigned short, unsigned short)
SvUShorts::_ForEach(unsigned short, unsigned short, unsigned char (*)(unsigned short const&, void*), void*)
SvUnoAttributeContainer::getImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>)
SvXMLAttributeList::SetAttributeList(com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList> const&)
SvXMLAutoStylePoolNamesP_Impl::GetPos(rtl::OUString const*) const
SvXMLAutoStylePoolNamesP_Impl::Remove(rtl::OUString*)
SvXMLAutoStylePoolParentsP_Impl::GetPos(SvXMLAutoStylePoolParentP_Impl const*) const
......@@ -2035,16 +2034,6 @@ chelp::Databases::getInstallPathAsSystemPath()
cmis::Content::exchangeIdentity(com::sun::star::uno::Reference<com::sun::star::ucb::XContentIdentifier> const&)
cmis::Content::queryChildren(std::list<rtl::Reference<cmis::Content>, std::allocator<rtl::Reference<cmis::Content> > >&)
codemaker::cpp::typeToPrefix(TypeManager const&, rtl::OString const&)
comphelper::AccessibleEventBuffer::AccessibleEventBuffer()
comphelper::AccessibleEventBuffer::sendEvents() const
comphelper::AccessibleEventBuffer::~AccessibleEventBuffer()
comphelper::AttributeList::RemoveAttribute(rtl::OUString)
comphelper::AttributeList::SetAttributeList(com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList> const&)
comphelper::ChainablePropertySet::lockMutex()
comphelper::ChainablePropertySet::unlockMutex()
comphelper::ChainablePropertySetInfo::ChainablePropertySetInfo()
comphelper::DocPasswordHelper::GetWordHashAsSequence(rtl::OUString const&)
comphelper::DocPasswordRequest::isAbort() const
comphelper::EmbeddedObjectContainer::CopyEmbeddedObject(comphelper::EmbeddedObjectContainer&, com::sun::star::uno::Reference<com::sun::star::embed::XEmbeddedObject> const&, rtl::OUString&)
comphelper::EventLogger::addLogHandler(com::sun::star::uno::Reference<com::sun::star::logging::XLogHandler> const&)
comphelper::EventLogger::getLogLevel() const
......@@ -2053,25 +2042,17 @@ comphelper::EventLogger::removeLogHandler(com::sun::star::uno::Reference<com::su
comphelper::EventLogger::setLogLevel(int) const
comphelper::FastPropertySetInfo::FastPropertySetInfo()
comphelper::FastPropertySetInfo::addProperty(com::sun::star::beans::Property const&)
comphelper::MasterPropertySet::lockMutex()
comphelper::MasterPropertySet::unlockMutex()
comphelper::MasterPropertySetInfo::MasterPropertySetInfo()
comphelper::MasterPropertySetInfo::remove(rtl::OUString const&)
comphelper::MimeConfigurationHelper::AddFilterNameCheckOwnFile(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&)
comphelper::MimeConfigurationHelper::GetSequenceClassIDFromObjectName(rtl::OUString const&)
comphelper::OAccessibleImplementationAccess::setForeignControlledState(com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessibleContext> const&, short, unsigned char)
comphelper::OAccessibleSelectionHelper::OAccessibleSelectionHelper()
comphelper::OAccessibleTextHelper::OAccessibleTextHelper()
comphelper::OComposedPropertySet::OComposedPropertySet(com::sun::star::uno::Sequence<com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> > const&, comphelper::IPropertySetComposerCallback const*)
comphelper::OContainerListenerAdapter::lock()
comphelper::OContainerListenerAdapter::unlock()
comphelper::OInteractionRequest::clearContinuations()
comphelper::OPropertyContainerHelper::modifyAttributes(int, int, int)
comphelper::OSelectionChangeListener::disposeAdapter()
comphelper::OStreamSection::available()
comphelper::OTruncatedTransactedFileStream::OTruncatedTransactedFileStream(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
comphelper::OTruncatedTransactedFileStream::OTruncatedTransactedFileStream(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::ucb::XSimpleFileAccess> const&, com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
comphelper::OTruncatedTransactedFileStream::OTruncatedTransactedFileStream(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::ucb::XSimpleFileAccess> const&, com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&, unsigned char)
comphelper::OfficeResourceBundle::OfficeResourceBundle(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&)
comphelper::PropertySetHelper::PropertySetHelper()
comphelper::PropertySetHelper::setInfo(comphelper::PropertySetInfo*)
......@@ -2079,7 +2060,6 @@ comphelper::PropertySetInfo::add(comphelper::PropertyMapEntry*, int)
comphelper::ResourceBasedEventLogger::ResourceBasedEventLogger(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&, rtl::OUString const&)
comphelper::SequenceAsHashMap::getAsConstAnyList(unsigned char) const
comphelper::ServiceInfoHelper::concatSequences(com::sun::star::uno::Sequence<rtl::OUString> const&, com::sun::star::uno::Sequence<rtl::OUString> const&)
comphelper::SimplePasswordRequest::isAbort() const
comphelper::createEventAttacherManager(com::sun::star::uno::Reference<com::sun::star::beans::XIntrospection> const&, com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
comphelper::findProperty(com::sun::star::beans::Property&, com::sun::star::uno::Sequence<com::sun::star::beans::Property>&, rtl::OUString const&)
comphelper::getPathToSystemRegistry()
......
......@@ -79,7 +79,6 @@ public:
void AddAttribute( const ::rtl::OUString &sName , const ::rtl::OUString &sValue );
void Clear();
void RemoveAttribute( const ::rtl::OUString sName );
void SetAttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & );
void AppendAttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & );
void SetValueByIndex( sal_Int16 i, const ::rtl::OUString& rValue );
void RemoveAttributeByIndex( sal_Int16 i );
......
......@@ -189,13 +189,6 @@ void SvXMLAttributeList::RemoveAttribute( const OUString sName )
}
}
void SvXMLAttributeList::SetAttributeList( const uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &r )
{
Clear();
AppendAttributeList( r );
}
void SvXMLAttributeList::AppendAttributeList( const uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &r )
{
OSL_ASSERT( r.is() );
......
......@@ -78,7 +78,6 @@ public:
// void Clear();
void RemoveAttributeByIndex( sal_Int16 i );
void RenameAttributeByIndex( sal_Int16 i, const ::rtl::OUString& rNewName );
// void SetAttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & );
void AppendAttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & );
sal_Int16 GetIndexByName( const ::rtl::OUString& rName ) const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment