Kill superfluous vertical whitespace

Change-Id: Ia1bb2b40c74efb17e655dd6f00d7ba48c16c65ae
This commit is contained in:
Tor Lillqvist 2014-04-06 19:05:49 +03:00
parent be616c26f9
commit 951ed199f1
237 changed files with 0 additions and 2438 deletions

View File

@ -22,7 +22,6 @@
#include <general.h> #include <general.h>
namespace framework{ namespace framework{
#define DOCTYPE_ACCELERATORS DECLARE_ASCII("<!DOCTYPE accel:acceleratorlist PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"accelerator.dtd\">") #define DOCTYPE_ACCELERATORS DECLARE_ASCII("<!DOCTYPE accel:acceleratorlist PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"accelerator.dtd\">")

View File

@ -29,7 +29,6 @@
#define SERVICENAME_ACTIONTRIGGERCONTAINER "com.sun.star.ui.ActionTriggerContainer" #define SERVICENAME_ACTIONTRIGGERCONTAINER "com.sun.star.ui.ActionTriggerContainer"
#define IMPLEMENTATIONNAME_ACTIONTRIGGERCONTAINER "com.sun.star.comp.ui.ActionTriggerContainer" #define IMPLEMENTATIONNAME_ACTIONTRIGGERCONTAINER "com.sun.star.comp.ui.ActionTriggerContainer"
namespace framework namespace framework
{ {

View File

@ -74,7 +74,6 @@ class ActionTriggerPropertySet : private cppu::BaseMutex,
const com::sun::star::uno::Any& aValue ) const com::sun::star::uno::Any& aValue )
throw( com::sun::star::lang::IllegalArgumentException ) SAL_OVERRIDE; throw( com::sun::star::lang::IllegalArgumentException ) SAL_OVERRIDE;
virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const com::sun::star::uno::Any& aValue ) virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const com::sun::star::uno::Any& aValue )
throw( com::sun::star::uno::Exception, std::exception ) SAL_OVERRIDE; throw( com::sun::star::uno::Exception, std::exception ) SAL_OVERRIDE;
@ -88,10 +87,8 @@ class ActionTriggerPropertySet : private cppu::BaseMutex,
static const com::sun::star::uno::Sequence< com::sun::star::beans::Property > impl_getStaticPropertyDescriptor(); static const com::sun::star::uno::Sequence< com::sun::star::beans::Property > impl_getStaticPropertyDescriptor();
// helper // helper
sal_Bool impl_tryToChangeProperty( const OUString& aCurrentValue , sal_Bool impl_tryToChangeProperty( const OUString& aCurrentValue ,
const com::sun::star::uno::Any& aNewValue , const com::sun::star::uno::Any& aNewValue ,
com::sun::star::uno::Any& aOldValue , com::sun::star::uno::Any& aOldValue ,
@ -107,10 +104,8 @@ class ActionTriggerPropertySet : private cppu::BaseMutex,
com::sun::star::uno::Any& aOldValue , com::sun::star::uno::Any& aOldValue ,
com::sun::star::uno::Any& aConvertedValue ) throw( com::sun::star::lang::IllegalArgumentException ); com::sun::star::uno::Any& aConvertedValue ) throw( com::sun::star::lang::IllegalArgumentException );
// members // members
OUString m_aCommandURL; OUString m_aCommandURL;
OUString m_aHelpURL; OUString m_aHelpURL;
OUString m_aText; OUString m_aText;

View File

@ -33,7 +33,6 @@
#define SERVICENAME_ACTIONTRIGGERSEPARATOR "com.sun.star.ui.ActionTriggerSeparator" #define SERVICENAME_ACTIONTRIGGERSEPARATOR "com.sun.star.ui.ActionTriggerSeparator"
#define IMPLEMENTATIONNAME_ACTIONTRIGGERSEPARATOR "com.sun.star.comp.ui.ActionTriggerSeparator" #define IMPLEMENTATIONNAME_ACTIONTRIGGERSEPARATOR "com.sun.star.comp.ui.ActionTriggerSeparator"
namespace framework namespace framework
{ {
@ -73,7 +72,6 @@ class ActionTriggerSeparatorPropertySet : private cppu::BaseMutex,
const com::sun::star::uno::Any& aValue ) const com::sun::star::uno::Any& aValue )
throw( com::sun::star::lang::IllegalArgumentException ) SAL_OVERRIDE; throw( com::sun::star::lang::IllegalArgumentException ) SAL_OVERRIDE;
virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const com::sun::star::uno::Any& aValue ) virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const com::sun::star::uno::Any& aValue )
throw( com::sun::star::uno::Exception, std::exception ) SAL_OVERRIDE; throw( com::sun::star::uno::Exception, std::exception ) SAL_OVERRIDE;
@ -87,19 +85,15 @@ class ActionTriggerSeparatorPropertySet : private cppu::BaseMutex,
static const com::sun::star::uno::Sequence< com::sun::star::beans::Property > impl_getStaticPropertyDescriptor(); static const com::sun::star::uno::Sequence< com::sun::star::beans::Property > impl_getStaticPropertyDescriptor();
// helper // helper
sal_Bool impl_tryToChangeProperty( sal_Int16 aCurrentValue , sal_Bool impl_tryToChangeProperty( sal_Int16 aCurrentValue ,
const com::sun::star::uno::Any& aNewValue , const com::sun::star::uno::Any& aNewValue ,
com::sun::star::uno::Any& aOldValue , com::sun::star::uno::Any& aOldValue ,
com::sun::star::uno::Any& aConvertedValue ) throw( com::sun::star::lang::IllegalArgumentException ); com::sun::star::uno::Any& aConvertedValue ) throw( com::sun::star::lang::IllegalArgumentException );
// members // members
sal_Int16 m_nSeparatorType; sal_Int16 m_nSeparatorType;
}; };

View File

@ -50,13 +50,10 @@ class CheckedIterator
// public methods // public methods
public: public:
// constructor / destructor // constructor / destructor
/*-**************************************************************************************************** /*-****************************************************************************************************
@short standard constructor @short standard constructor
@descr Set default values on members. @descr Set default values on members.
@ -77,10 +74,8 @@ class CheckedIterator
{ {
} }
// interface methods // interface methods
/*-**************************************************************************************************** /*-****************************************************************************************************
@short initialize instance with valid container @short initialize instance with valid container
@descr Set new container at an instance of this class. The other member will set automaticly! @descr Set new container at an instance of this class. The other member will set automaticly!
@ -285,10 +280,8 @@ class CheckedIterator
return m_pPosition; return m_pPosition;
} }
// private member // private member
private: private:
// These enum defines our four states for an iterator position in curent container. // These enum defines our four states for an iterator position in curent container.

View File

@ -65,16 +65,12 @@ class FilterCache : private TransactionBase
{ {
public: public:
// public methods // public methods
public: public:
// constructor / destructor // constructor / destructor
FilterCache( sal_Int32 nVersion = DEFAULT_FILTERCACHE_VERSION, FilterCache( sal_Int32 nVersion = DEFAULT_FILTERCACHE_VERSION,
sal_Int16 nMode = DEFAULT_FILTERCACHE_MODE ); sal_Int16 nMode = DEFAULT_FILTERCACHE_MODE );
@ -310,7 +306,6 @@ class FilterCache : private TransactionBase
sal_Bool validateAndRepairLoader(); sal_Bool validateAndRepairLoader();
sal_Bool validateAndRepairHandler(); sal_Bool validateAndRepairHandler();
// private variables // private variables
private: private:

View File

@ -65,7 +65,6 @@ enum EFilterPackage
E_ADDITIONAL E_ADDITIONAL
}; };
// These struct define a type, which present the type of a file. // These struct define a type, which present the type of a file.
// He is used for easy filter detection without file stream detection! // He is used for easy filter detection without file stream detection!
// The internal name is the keyname of an item with these structure in our hash map or our configuration set! // The internal name is the keyname of an item with these structure in our hash map or our configuration set!
@ -83,7 +82,6 @@ struct FileType
inline FileType& operator= ( const FileType& rCopy ) { return impl_copy( rCopy ); } inline FileType& operator= ( const FileType& rCopy ) { return impl_copy( rCopy ); }
inline void free ( ) { impl_clear(); } inline void free ( ) { impl_clear(); }
// private methods // private methods
private: private:
@ -113,7 +111,6 @@ struct FileType
return (*this); return (*this);
} }
// public member // public member
public: public:
@ -128,7 +125,6 @@ struct FileType
OUStringList lExtensions ; OUStringList lExtensions ;
}; };
// These struct describe a filter which is registered for one type. // These struct describe a filter which is registered for one type.
// He hold information about services which present the document himself (like a item) and a filter service which // He hold information about services which present the document himself (like a item) and a filter service which
// filter a file in these document. // filter a file in these document.
@ -147,7 +143,6 @@ struct Filter
inline Filter& operator= ( const Filter& rCopy ) { return impl_copy( rCopy ); } inline Filter& operator= ( const Filter& rCopy ) { return impl_copy( rCopy ); }
inline void free ( ) { impl_clear(); } inline void free ( ) { impl_clear(); }
// private methods // private methods
private: private:
@ -183,7 +178,6 @@ struct Filter
return (*this); return (*this);
} }
// public member // public member
public: public:
@ -201,7 +195,6 @@ struct Filter
OUString sTemplateName ; OUString sTemplateName ;
}; };
// Programmer can register his own services for an content detection of different types. // Programmer can register his own services for an content detection of different types.
// The implementation or service name of these is the keyname of an item with these structure // The implementation or service name of these is the keyname of an item with these structure
// in our hash map or our configuration set! // in our hash map or our configuration set!
@ -219,7 +212,6 @@ struct Detector
inline Detector& operator= ( const Detector& rCopy ) { return impl_copy( rCopy ); } inline Detector& operator= ( const Detector& rCopy ) { return impl_copy( rCopy ); }
inline void free ( ) { impl_clear(); } inline void free ( ) { impl_clear(); }
// private methods // private methods
private: private:
@ -237,7 +229,6 @@ struct Detector
return (*this); return (*this);
} }
// public member // public member
public: public:
@ -246,7 +237,6 @@ struct Detector
OUStringList lTypes ; OUStringList lTypes ;
}; };
// Programmer can register his own services for loading documents in a frame. // Programmer can register his own services for loading documents in a frame.
// The implementation or service name of these is the keyname of an item with these structure // The implementation or service name of these is the keyname of an item with these structure
// in our hash map or our configuration set! // in our hash map or our configuration set!
@ -264,7 +254,6 @@ struct Loader
inline Loader& operator= ( const Loader& rCopy ) { return impl_copy( rCopy ); } inline Loader& operator= ( const Loader& rCopy ) { return impl_copy( rCopy ); }
inline void free ( ) { impl_clear(); } inline void free ( ) { impl_clear(); }
// private methods // private methods
private: private:
@ -284,7 +273,6 @@ struct Loader
return (*this); return (*this);
} }
// public member // public member
public: public:
@ -294,7 +282,6 @@ struct Loader
OUStringList lTypes ; OUStringList lTypes ;
}; };
// Programmer can register his own services to handle a FileType and intercept dispatches. // Programmer can register his own services to handle a FileType and intercept dispatches.
// Don't forget: It's not a FrameLoader - it's a ContentHandler! (normaly without any UI) // Don't forget: It's not a FrameLoader - it's a ContentHandler! (normaly without any UI)
@ -311,7 +298,6 @@ struct ContentHandler
inline ContentHandler& operator= ( const ContentHandler& rCopy ) { return impl_copy( rCopy ); } inline ContentHandler& operator= ( const ContentHandler& rCopy ) { return impl_copy( rCopy ); }
inline void free ( ) { impl_clear(); } inline void free ( ) { impl_clear(); }
// private methods // private methods
private: private:
@ -329,7 +315,6 @@ struct ContentHandler
return (*this); return (*this);
} }
// public member // public member
public: public:
@ -338,7 +323,6 @@ struct ContentHandler
OUStringList lTypes ; OUStringList lTypes ;
}; };
// We need different hash maps for different tables of our configuration management. // We need different hash maps for different tables of our configuration management.
// Follow maps convert <names> to <properties> of type, filter, detector, loader ... // Follow maps convert <names> to <properties> of type, filter, detector, loader ...
// and could be used in a generic way // and could be used in a generic way
@ -364,14 +348,12 @@ class SetNodeHash : public ::boost::unordered_map< OUString ,
lRemovedItems.free(); lRemovedItems.free();
} }
// Append changed, added or removed items to special lists // Append changed, added or removed items to special lists
// Necessary for saving changes // Necessary for saving changes
void appendChange( const OUString& sName , void appendChange( const OUString& sName ,
EModifyState eState ); EModifyState eState );
// member // member
public: public:
@ -380,7 +362,6 @@ class SetNodeHash : public ::boost::unordered_map< OUString ,
OUStringList lRemovedItems ; OUStringList lRemovedItems ;
}; };
// Use these hashes to implement different tables which assign types to frame loader or detect services. // Use these hashes to implement different tables which assign types to frame loader or detect services.
// It's an optimism to find registered services faster! // It's an optimism to find registered services faster!
// The preferred hash maps file extensions to preferred types to find these ones faster. // The preferred hash maps file extensions to preferred types to find these ones faster.
@ -399,7 +380,6 @@ class PerformanceHash : public ::boost::unordered_map< OUString
PerformanceHash().swap( *this ); PerformanceHash().swap( *this );
} }
// normaly a complete string must match our hash key values ... // normaly a complete string must match our hash key values ...
// But sometimes we need a search by using these key values as pattern! // But sometimes we need a search by using these key values as pattern!
// The in/out parameter "pStepper" is used to return a pointer to found element in hash ... // The in/out parameter "pStepper" is used to return a pointer to found element in hash ...
@ -434,7 +414,6 @@ class PerformanceHash : public ::boost::unordered_map< OUString
} }
}; };
// Define easy usable types // Define easy usable types
typedef SetNodeHash< FileType > FileTypeHash ; typedef SetNodeHash< FileType > FileTypeHash ;
@ -451,7 +430,6 @@ typedef CheckedIterator< PerformanceHash > CheckedPerfo
typedef ::std::vector< FilterHash::const_iterator > FilterQuery ; typedef ::std::vector< FilterHash::const_iterator > FilterQuery ;
// Use private static data container to hold all values of configuration! // Use private static data container to hold all values of configuration!
class DataContainer class DataContainer
@ -626,7 +604,6 @@ class FilterCFGAccess : public ::utl::ConfigItem
void setProductName ( OUStringHashMap& lUINames ); void setProductName ( OUStringHashMap& lUINames );
void resetProductName ( OUStringHashMap& lUINames ); void resetProductName ( OUStringHashMap& lUINames );
// internal helper // internal helper
private: private:
@ -648,7 +625,6 @@ class FilterCFGAccess : public ::utl::ConfigItem
void impl_saveLoaders ( DataContainer& rData ); void impl_saveLoaders ( DataContainer& rData );
void impl_saveContentHandlers ( DataContainer& rData ); void impl_saveContentHandlers ( DataContainer& rData );
// debug checks // debug checks
private: private:
@ -658,7 +634,6 @@ class FilterCFGAccess : public ::utl::ConfigItem
static sal_Bool implcp_read ( const DataContainer& rData ); static sal_Bool implcp_read ( const DataContainer& rData );
static sal_Bool implcp_write( const DataContainer& rData ); static sal_Bool implcp_write( const DataContainer& rData );
// member // member
private: private:

View File

@ -67,7 +67,6 @@ class FrameContainer
/// one container item can be the current active frame. Its necessary for Desktop or Frame implementation. /// one container item can be the current active frame. Its necessary for Desktop or Frame implementation.
css::uno::Reference< css::frame::XFrame > m_xActiveFrame; css::uno::Reference< css::frame::XFrame > m_xActiveFrame;
// interface // interface
public: public:

View File

@ -87,7 +87,6 @@ class MenuManager : public ::cppu::WeakImplHelper1< css::frame::XStatusListener
void AddMenu(PopupMenu* _pPopupMenu,const OUString& _sItemCommand,sal_uInt16 _nItemId,sal_Bool _bDelete,sal_Bool _bDeleteChildren); void AddMenu(PopupMenu* _pPopupMenu,const OUString& _sItemCommand,sal_uInt16 _nItemId,sal_Bool _bDelete,sal_Bool _bDeleteChildren);
sal_uInt16 FillItemCommand(OUString& _rItemCommand, Menu* _pMenu,sal_uInt16 _nIndex) const; sal_uInt16 FillItemCommand(OUString& _rItemCommand, Menu* _pMenu,sal_uInt16 _nIndex) const;
struct MenuItemHandler struct MenuItemHandler
{ {
MenuItemHandler( sal_uInt16 aItemId, MenuManager* pManager, css::uno::Reference< css::frame::XDispatch >& rDispatch ) : MenuItemHandler( sal_uInt16 aItemId, MenuManager* pManager, css::uno::Reference< css::frame::XDispatch >& rDispatch ) :

View File

@ -32,11 +32,8 @@
#include <cppuhelper/weakref.hxx> #include <cppuhelper/weakref.hxx>
#include <fwidllapi.h> #include <fwidllapi.h>
namespace framework{ namespace framework{
/** supports the API XPropertySet and XPropertySetInfo. /** supports the API XPropertySet and XPropertySetInfo.
* *
* It must be used as baseclass. The internal list of supported * It must be used as baseclass. The internal list of supported
@ -55,7 +52,6 @@ class FWI_DLLPUBLIC PropertySetHelper : public css::beans::XPropertySet
typedef BaseHash< css::beans::Property > TPropInfoHash; typedef BaseHash< css::beans::Property > TPropInfoHash;
/* member */ /* member */
protected: protected:
@ -71,11 +67,9 @@ class FWI_DLLPUBLIC PropertySetHelper : public css::beans::XPropertySet
TransactionManager& m_rTransactionManager; TransactionManager& m_rTransactionManager;
/* native interface */ /* native interface */
public: public:
/** initialize new instance of this helper. /** initialize new instance of this helper.
* *
* @param pExternalTransactionManager * @param pExternalTransactionManager
@ -90,12 +84,10 @@ class FWI_DLLPUBLIC PropertySetHelper : public css::beans::XPropertySet
TransactionManager* pExternalTransactionManager , TransactionManager* pExternalTransactionManager ,
sal_Bool bReleaseLockOnCall ); sal_Bool bReleaseLockOnCall );
/** free all needed memory. /** free all needed memory.
*/ */
virtual ~PropertySetHelper(); virtual ~PropertySetHelper();
/** set a new owner for this helper. /** set a new owner for this helper.
* *
* This owner is used as source for all broadcasted events. * This owner is used as source for all broadcasted events.
@ -103,7 +95,6 @@ class FWI_DLLPUBLIC PropertySetHelper : public css::beans::XPropertySet
*/ */
void impl_setPropertyChangeBroadcaster(const css::uno::Reference< css::uno::XInterface >& xBroadcaster); void impl_setPropertyChangeBroadcaster(const css::uno::Reference< css::uno::XInterface >& xBroadcaster);
/** add a new property info to the set of supported ones. /** add a new property info to the set of supported ones.
* *
* @param aProperty * @param aProperty
@ -121,7 +112,6 @@ class FWI_DLLPUBLIC PropertySetHelper : public css::beans::XPropertySet
throw(css::beans::PropertyExistException, throw(css::beans::PropertyExistException,
css::uno::Exception ); css::uno::Exception );
/** remove an existing property info from the set of supported ones. /** remove an existing property info from the set of supported ones.
* *
* @param sProperty * @param sProperty
@ -134,7 +124,6 @@ class FWI_DLLPUBLIC PropertySetHelper : public css::beans::XPropertySet
throw(css::beans::UnknownPropertyException, throw(css::beans::UnknownPropertyException,
css::uno::Exception ); css::uno::Exception );
/** mark the object as "useable for working" or "dead". /** mark the object as "useable for working" or "dead".
* *
* This correspond to the lifetime handling implemented by the base class TransactionBase. * This correspond to the lifetime handling implemented by the base class TransactionBase.
@ -144,7 +133,6 @@ class FWI_DLLPUBLIC PropertySetHelper : public css::beans::XPropertySet
virtual void SAL_CALL impl_enablePropertySet(); virtual void SAL_CALL impl_enablePropertySet();
virtual void SAL_CALL impl_disablePropertySet(); virtual void SAL_CALL impl_disablePropertySet();
/** /**
*/ */
virtual void SAL_CALL impl_setPropertyValue(const OUString& sProperty, virtual void SAL_CALL impl_setPropertyValue(const OUString& sProperty,
@ -154,7 +142,6 @@ class FWI_DLLPUBLIC PropertySetHelper : public css::beans::XPropertySet
virtual css::uno::Any SAL_CALL impl_getPropertyValue(const OUString& sProperty, virtual css::uno::Any SAL_CALL impl_getPropertyValue(const OUString& sProperty,
sal_Int32 nHandle ) = 0; sal_Int32 nHandle ) = 0;
/* uno interface */ /* uno interface */
public: public:
@ -210,7 +197,6 @@ class FWI_DLLPUBLIC PropertySetHelper : public css::beans::XPropertySet
virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& sName) virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& sName)
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
/* internal helper */ /* internal helper */
private: private:

View File

@ -38,8 +38,6 @@ namespace framework{
#define SETNAME_HANDLER DECLARE_ASCII("HandlerSet" ) /// name of configuration set inside package #define SETNAME_HANDLER DECLARE_ASCII("HandlerSet" ) /// name of configuration set inside package
#define PROPERTY_PROTOCOLS DECLARE_ASCII("Protocols" ) /// properties of a protocol handler #define PROPERTY_PROTOCOLS DECLARE_ASCII("Protocols" ) /// properties of a protocol handler
/** /**
Programmer can register his own services to handle different protocols. Programmer can register his own services to handle different protocols.
Don't forget: It doesn't mean "handling of documents" ... these services could handle protocols ... Don't forget: It doesn't mean "handling of documents" ... these services could handle protocols ...
@ -58,8 +56,6 @@ struct FWI_DLLPUBLIC ProtocolHandler
OUStringList m_lProtocols; OUStringList m_lProtocols;
}; };
/** /**
This hash use registered pattern of all protocol handlers as keys and provide her This hash use registered pattern of all protocol handlers as keys and provide her
uno implementation names as value. Overloading of the index operator makes it possible uno implementation names as value. Overloading of the index operator makes it possible
@ -73,15 +69,11 @@ class FWI_DLLPUBLIC PatternHash : public BaseHash< OUString >
PatternHash::iterator findPatternKey( const OUString& sURL ); PatternHash::iterator findPatternKey( const OUString& sURL );
}; };
/** /**
This hash holds protocol handler structs by her names. This hash holds protocol handler structs by her names.
*/ */
typedef BaseHash< ProtocolHandler > HandlerHash; typedef BaseHash< ProtocolHandler > HandlerHash;
/** /**
@short this hash makes it easy to find a protocol handler by using his uno implementation name. @short this hash makes it easy to find a protocol handler by using his uno implementation name.
@descr It holds two lists of information: @descr It holds two lists of information:
@ -128,8 +120,6 @@ class FWI_DLLPUBLIC HandlerCache
void takeOver(HandlerHash* pHandler, PatternHash* pPattern); void takeOver(HandlerHash* pHandler, PatternHash* pPattern);
}; };
/** /**
@short implements configuration access for handler configuration @short implements configuration access for handler configuration
@descr We use the ConfigItem mechanism to read/write values from/to configuration. @descr We use the ConfigItem mechanism to read/write values from/to configuration.

View File

@ -31,7 +31,6 @@
#define IMPLEMENTATIONNAME_ROOTACTIONTRIGGERCONTAINER "com.sun.star.comp.ui.RootActionTriggerContainer" #define IMPLEMENTATIONNAME_ROOTACTIONTRIGGERCONTAINER "com.sun.star.comp.ui.RootActionTriggerContainer"
namespace framework namespace framework
{ {

View File

@ -48,7 +48,6 @@ class TaskCreator
css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::uno::XComponentContext > m_xContext;
// interface // interface
public: public:
@ -58,7 +57,6 @@ class TaskCreator
css::uno::Reference< css::frame::XFrame > createTask( const OUString& sName , css::uno::Reference< css::frame::XFrame > createTask( const OUString& sName ,
sal_Bool bVisible ); sal_Bool bVisible );
// helper // helper
private: private:

View File

@ -42,13 +42,10 @@ class Wildcard
// public methods // public methods
public: public:
// constructor / destructor // constructor / destructor
/*-**************************************************************************************************** /*-****************************************************************************************************
@short standard ctor @short standard ctor
@descr We do nothing here. @descr We do nothing here.
@ -77,10 +74,8 @@ class Wildcard
virtual ~Wildcard(); virtual ~Wildcard();
// interface // interface
/*-**************************************************************************************************** /*-****************************************************************************************************
@short try to find an agreement between given text and searchpattern @short try to find an agreement between given text and searchpattern
@descr You can use wildcards in pattern only! @descr You can use wildcards in pattern only!

View File

@ -39,12 +39,10 @@
#include <cppuhelper/implbase2.hxx> #include <cppuhelper/implbase2.hxx>
#include <vcl/evntpost.hxx> #include <vcl/evntpost.hxx>
class SystemWindow; class SystemWindow;
namespace framework{ namespace framework{
/** /**
@short helper to dispatch the URLs ".uno:CloseDoc"/".uno:CloseWin"/".uno:CloseFrame" @short helper to dispatch the URLs ".uno:CloseDoc"/".uno:CloseWin"/".uno:CloseFrame"
to close a frame/document or the whole application implicitly in case it was the last frame to close a frame/document or the whole application implicitly in case it was the last frame
@ -64,7 +62,6 @@ class CloseDispatcher : public ::cppu::WeakImplHelper2<
private: private:
/** @short describe, which request must be done here. /** @short describe, which request must be done here.
@descr The incoming URLs {.uno:CloseDoc/CloseWin and CloseFrame @descr The incoming URLs {.uno:CloseDoc/CloseWin and CloseFrame
can be classified so and checked later performant.}*/ can be classified so and checked later performant.}*/
@ -75,54 +72,44 @@ class CloseDispatcher : public ::cppu::WeakImplHelper2<
E_CLOSE_WIN E_CLOSE_WIN
}; };
// member // member
private: private:
/** @short reference to an uno service manager, /** @short reference to an uno service manager,
which can be used to create own needed which can be used to create own needed
uno resources. */ uno resources. */
css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::uno::XComponentContext > m_xContext;
/** @short reference to the target frame, which should be /** @short reference to the target frame, which should be
closed by this dispatch. */ closed by this dispatch. */
css::uno::WeakReference< css::frame::XFrame > m_xCloseFrame; css::uno::WeakReference< css::frame::XFrame > m_xCloseFrame;
/** @short used for asynchronous callbacks within the main thread. /** @short used for asynchronous callbacks within the main thread.
@descr Internally we work asynchronous. Because our callis @descr Internally we work asynchronous. Because our callis
are not aware, that her request can kill its own environment ... */ are not aware, that her request can kill its own environment ... */
::vcl::EventPoster m_aAsyncCallback; ::vcl::EventPoster m_aAsyncCallback;
/** @short used inside asyncronous callback to decide, /** @short used inside asyncronous callback to decide,
which operation must be executed. */ which operation must be executed. */
EOperation m_eOperation; EOperation m_eOperation;
/** @short for asynchronous operations we must hold us self alive! */ /** @short for asynchronous operations we must hold us self alive! */
css::uno::Reference< css::uno::XInterface > m_xSelfHold; css::uno::Reference< css::uno::XInterface > m_xSelfHold;
/** @short list of registered status listener */ /** @short list of registered status listener */
osl::Mutex m_mutex; osl::Mutex m_mutex;
ListenerHash m_lStatusListener; ListenerHash m_lStatusListener;
/** @short holded alive for internally asynchronous operations! */ /** @short holded alive for internally asynchronous operations! */
css::uno::Reference< css::frame::XDispatchResultListener > m_xResultListener; css::uno::Reference< css::frame::XDispatchResultListener > m_xResultListener;
SystemWindow* m_pSysWindow; SystemWindow* m_pSysWindow;
// native interface // native interface
public: public:
/** @short connect a new CloseDispatcher instance to its frame. /** @short connect a new CloseDispatcher instance to its frame.
@descr One CloseDispatcher instance is bound to onw frame only. @descr One CloseDispatcher instance is bound to onw frame only.
That makes an implementation (e.g. of listener support) That makes an implementation (e.g. of listener support)
@ -142,22 +129,18 @@ class CloseDispatcher : public ::cppu::WeakImplHelper2<
const css::uno::Reference< css::frame::XFrame >& xFrame , const css::uno::Reference< css::frame::XFrame >& xFrame ,
const OUString& sTarget); const OUString& sTarget);
/** @short does nothing real. */ /** @short does nothing real. */
virtual ~CloseDispatcher(); virtual ~CloseDispatcher();
// uno interface // uno interface
public: public:
// XNotifyingDispatch // XNotifyingDispatch
virtual void SAL_CALL dispatchWithNotification( const css::util::URL& aURL , virtual void SAL_CALL dispatchWithNotification( const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XDispatch // XDispatch
virtual void SAL_CALL dispatch ( const css::util::URL& aURL , virtual void SAL_CALL dispatch ( const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; const css::uno::Sequence< css::beans::PropertyValue >& lArguments) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
@ -166,17 +149,14 @@ class CloseDispatcher : public ::cppu::WeakImplHelper2<
virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xListener , virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xListener ,
const css::util::URL& aURL ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; const css::util::URL& aURL ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XDispatchInformationProvider // XDispatchInformationProvider
virtual css::uno::Sequence< sal_Int16 > SAL_CALL getSupportedCommandGroups ( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Sequence< sal_Int16 > SAL_CALL getSupportedCommandGroups ( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL getConfigurableDispatchInformation( sal_Int16 nCommandGroup ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL getConfigurableDispatchInformation( sal_Int16 nCommandGroup ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// internal helper // internal helper
private: private:
/** @short a callback for asynchronous started operations. /** @short a callback for asynchronous started operations.
@descr As already mentione, we make internally all operations @descr As already mentione, we make internally all operations
@ -185,7 +165,6 @@ class CloseDispatcher : public ::cppu::WeakImplHelper2<
*/ */
DECL_LINK( impl_asyncCallback, void* ); DECL_LINK( impl_asyncCallback, void* );
/** @short prepare m_xCloseFrame so it should be closeable without problems. /** @short prepare m_xCloseFrame so it should be closeable without problems.
@descr Thats needed to be shure, that the document cant disagree @descr Thats needed to be shure, that the document cant disagree
@ -211,7 +190,6 @@ class CloseDispatcher : public ::cppu::WeakImplHelper2<
sal_Bool bCloseAllOtherViewsToo, sal_Bool bCloseAllOtherViewsToo,
sal_Bool& bControllerSuspended ); sal_Bool& bControllerSuspended );
/** @short close the member m_xCloseFrame. /** @short close the member m_xCloseFrame.
@descr This method does not look for any document @descr This method does not look for any document
@ -228,7 +206,6 @@ class CloseDispatcher : public ::cppu::WeakImplHelper2<
*/ */
sal_Bool implts_closeFrame(); sal_Bool implts_closeFrame();
/** @short set the special BackingComponent (now StartModule) /** @short set the special BackingComponent (now StartModule)
as new component of our m_xCloseFrame. as new component of our m_xCloseFrame.
@ -237,7 +214,6 @@ class CloseDispatcher : public ::cppu::WeakImplHelper2<
*/ */
sal_Bool implts_establishBackingMode(); sal_Bool implts_establishBackingMode();
/** @short calls XDesktop->terminate(). /** @short calls XDesktop->terminate().
@descr No office code has to be called @descr No office code has to be called
@ -251,7 +227,6 @@ class CloseDispatcher : public ::cppu::WeakImplHelper2<
*/ */
sal_Bool implts_terminateApplication(); sal_Bool implts_terminateApplication();
/** @short notify a DispatchResultListener. /** @short notify a DispatchResultListener.
@descr We check the listener reference before we use it. @descr We check the listener reference before we use it.
@ -271,7 +246,6 @@ class CloseDispatcher : public ::cppu::WeakImplHelper2<
sal_Int16 nState , sal_Int16 nState ,
const css::uno::Any& aResult ); const css::uno::Any& aResult );
/** @short try to find the right target frame where this close request /** @short try to find the right target frame where this close request
must be really done. must be really done.

View File

@ -47,7 +47,6 @@ class DispatchInformationProvider : public ::cppu::WeakImplHelper1< css::frame:
css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::uno::XComponentContext > m_xContext;
css::uno::WeakReference< css::frame::XFrame > m_xFrame; css::uno::WeakReference< css::frame::XFrame > m_xFrame;
// interface // interface
public: public:
@ -62,7 +61,6 @@ class DispatchInformationProvider : public ::cppu::WeakImplHelper1< css::frame:
virtual css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL getConfigurableDispatchInformation(sal_Int16 nCommandGroup) virtual css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL getConfigurableDispatchInformation(sal_Int16 nCommandGroup)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// helper // helper
private: private:

View File

@ -70,8 +70,6 @@ class InterceptionHelper : public ::cppu::WeakImplHelper3<
css::uno::Sequence< OUString > lURLPattern; css::uno::Sequence< OUString > lURLPattern;
}; };
/** @short implements a list of items of type InterceptorInfo, and provides some special /** @short implements a list of items of type InterceptorInfo, and provides some special
functions on it. functions on it.
@ -82,8 +80,6 @@ class InterceptionHelper : public ::cppu::WeakImplHelper3<
{ {
public: public:
/** @short search for an interceptor inside this list using it's reference. /** @short search for an interceptor inside this list using it's reference.
@param xInterceptor @param xInterceptor
@ -104,8 +100,6 @@ class InterceptionHelper : public ::cppu::WeakImplHelper3<
return end(); return end();
} }
/** @short search for an interceptor inside this list using it's reference. /** @short search for an interceptor inside this list using it's reference.
@param xInterceptor @param xInterceptor
@ -133,7 +127,6 @@ class InterceptionHelper : public ::cppu::WeakImplHelper3<
} }
}; };
// member // member
private: private:
@ -154,13 +147,10 @@ class InterceptionHelper : public ::cppu::WeakImplHelper3<
The last or the first registered one. */ The last or the first registered one. */
static sal_Bool m_bPreferrFirstInterceptor; static sal_Bool m_bPreferrFirstInterceptor;
// native interface // native interface
public: public:
/** @short creates a new interception helper instance. /** @short creates a new interception helper instance.
@param xOwner @param xOwner
@ -174,8 +164,6 @@ class InterceptionHelper : public ::cppu::WeakImplHelper3<
protected: protected:
/** @short standard destructor. /** @short standard destructor.
@descr This method destruct an instance of this class and clear some member. @descr This method destruct an instance of this class and clear some member.
@ -184,12 +172,10 @@ class InterceptionHelper : public ::cppu::WeakImplHelper3<
*/ */
virtual ~InterceptionHelper(); virtual ~InterceptionHelper();
// uno interface // uno interface
public: public:
// XDispatchProvider // XDispatchProvider
/** @short query for a dispatch, which implements the requested feature. /** @short query for a dispatch, which implements the requested feature.
@ -217,7 +203,6 @@ class InterceptionHelper : public ::cppu::WeakImplHelper3<
sal_Int32 nSearchFlags ) sal_Int32 nSearchFlags )
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XDispatchProvider // XDispatchProvider
/** @short implements an optimized queryDispatch() for remote. /** @short implements an optimized queryDispatch() for remote.
@ -234,7 +219,6 @@ class InterceptionHelper : public ::cppu::WeakImplHelper3<
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches(const css::uno::Sequence< css::frame::DispatchDescriptor >& lDescriptor) virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches(const css::uno::Sequence< css::frame::DispatchDescriptor >& lDescriptor)
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XDispatchProviderInterception // XDispatchProviderInterception
/** @short register an interceptor. /** @short register an interceptor.
@ -253,7 +237,6 @@ class InterceptionHelper : public ::cppu::WeakImplHelper3<
virtual void SAL_CALL registerDispatchProviderInterceptor(const css::uno::Reference< css::frame::XDispatchProviderInterceptor >& xInterceptor) virtual void SAL_CALL registerDispatchProviderInterceptor(const css::uno::Reference< css::frame::XDispatchProviderInterceptor >& xInterceptor)
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XDispatchProviderInterception // XDispatchProviderInterception
/** @short release an interceptor. /** @short release an interceptor.
@ -268,7 +251,6 @@ class InterceptionHelper : public ::cppu::WeakImplHelper3<
*/ */
virtual void SAL_CALL releaseDispatchProviderInterceptor( const css::uno::Reference< css::frame::XDispatchProviderInterceptor >& xInterceptor ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual void SAL_CALL releaseDispatchProviderInterceptor( const css::uno::Reference< css::frame::XDispatchProviderInterceptor >& xInterceptor ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// XEventListener // XEventListener
/** @short Is called from our owner frame, in case he will be disposed. /** @short Is called from our owner frame, in case he will be disposed.

View File

@ -37,7 +37,6 @@
#include <cppuhelper/implbase3.hxx> #include <cppuhelper/implbase3.hxx>
namespace framework{ namespace framework{
/** /**

View File

@ -55,7 +55,6 @@ namespace framework{
typedef ::cppu::OMultiTypeInterfaceContainerHelperVar< OUString , typedef ::cppu::OMultiTypeInterfaceContainerHelperVar< OUString ,
OUStringHash > IMPL_ListenerHashContainer; OUStringHash > IMPL_ListenerHashContainer;
/*-************************************************************************************************************ /*-************************************************************************************************************
@short helper for desktop only(!) to create new tasks on demand for dispatches @short helper for desktop only(!) to create new tasks on demand for dispatches
@descr Use this class as member only! Never use it as baseclass. @descr Use this class as member only! Never use it as baseclass.
@ -77,13 +76,10 @@ class MenuDispatcher : public ::cppu::WeakImplHelper2<
// public methods // public methods
public: public:
// constructor / destructor // constructor / destructor
/*-**************************************************************************************************** /*-****************************************************************************************************
@short standard ctor @short standard ctor
@descr These initialize a new instance of ths class with needed information for work. @descr These initialize a new instance of ths class with needed information for work.
@ -100,10 +96,8 @@ class MenuDispatcher : public ::cppu::WeakImplHelper2<
MenuDispatcher( const css::uno::Reference< css::uno::XComponentContext >& rxContext , MenuDispatcher( const css::uno::Reference< css::uno::XComponentContext >& rxContext ,
const css::uno::Reference< css::frame::XFrame >& xOwner ); const css::uno::Reference< css::frame::XFrame >& xOwner );
// XDispatch // XDispatch
/*-**************************************************************************************************** /*-****************************************************************************************************
@short dispatch URL with arguments @short dispatch URL with arguments
@descr Every dispatch create a new task. If load of URL failed task will deleted automaticly! @descr Every dispatch create a new task. If load of URL failed task will deleted automaticly!
@ -154,17 +148,12 @@ class MenuDispatcher : public ::cppu::WeakImplHelper2<
virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl,
const css::util::URL& aURL ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; const css::util::URL& aURL ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// XFrameActionListener // XFrameActionListener
virtual void SAL_CALL frameAction( const css::frame::FrameActionEvent& aEvent ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual void SAL_CALL frameAction( const css::frame::FrameActionEvent& aEvent ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// XEventListener // XEventListener
/*-**************************************************************************************************** /*-****************************************************************************************************
@short dispose current instance @short dispose current instance
@descr If service helper isn't required any longer call this method to release all used resources. @descr If service helper isn't required any longer call this method to release all used resources.
@ -179,10 +168,8 @@ class MenuDispatcher : public ::cppu::WeakImplHelper2<
void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// protected methods // protected methods
protected: protected:
/*-**************************************************************************************************** /*-****************************************************************************************************
@ -201,10 +188,8 @@ class MenuDispatcher : public ::cppu::WeakImplHelper2<
virtual ~MenuDispatcher(); virtual ~MenuDispatcher();
// private methods // private methods
private: private:
/*-**************************************************************************************************** /*-****************************************************************************************************
@ -235,11 +220,9 @@ class MenuDispatcher : public ::cppu::WeakImplHelper2<
void impl_setAccelerators( Menu* pMenu, const Accelerator& aAccel ); void impl_setAccelerators( Menu* pMenu, const Accelerator& aAccel );
// variables // variables
// (should be private everyway!) // (should be private everyway!)
private: private:
css::uno::WeakReference< css::frame::XFrame > m_xOwnerWeak ; /// css::uno::WeakReference to owner (Don't use a hard css::uno::Reference. Owner can't delete us then!) css::uno::WeakReference< css::frame::XFrame > m_xOwnerWeak ; /// css::uno::WeakReference to owner (Don't use a hard css::uno::Reference. Owner can't delete us then!)

View File

@ -38,7 +38,6 @@
#include <cppuhelper/implbase3.hxx> #include <cppuhelper/implbase3.hxx>
namespace framework{ namespace framework{
/*-************************************************************************************************************ /*-************************************************************************************************************
@ -62,25 +61,21 @@ class Oxt_Handler : public ::cppu::WeakImplHelper3<
public: public:
// constructor / destructor // constructor / destructor
Oxt_Handler( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory ); Oxt_Handler( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory );
virtual ~Oxt_Handler( ); virtual ~Oxt_Handler( );
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO
// XNotifyingDispatch // XNotifyingDispatch
virtual void SAL_CALL dispatchWithNotification(const css::util::URL& aURL , virtual void SAL_CALL dispatchWithNotification(const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// XDispatch // XDispatch
virtual void SAL_CALL dispatch ( const css::util::URL& aURL , virtual void SAL_CALL dispatch ( const css::util::URL& aURL ,
@ -91,7 +86,6 @@ class Oxt_Handler : public ::cppu::WeakImplHelper3<
virtual void SAL_CALL removeStatusListener ( const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/ , virtual void SAL_CALL removeStatusListener ( const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/ ,
const css::util::URL& /*aURL*/ ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE {}; const css::util::URL& /*aURL*/ ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE {};
// XExtendedFilterDetection // XExtendedFilterDetection
virtual OUString SAL_CALL detect ( css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual OUString SAL_CALL detect ( css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
@ -99,12 +93,10 @@ class Oxt_Handler : public ::cppu::WeakImplHelper3<
protected: protected:
// private methods // private methods
private: private:
// variables // variables
// (should be private everyway!) // (should be private everyway!)

View File

@ -57,7 +57,6 @@ namespace framework{
typedef ::cppu::OMultiTypeInterfaceContainerHelperVar< OUString , typedef ::cppu::OMultiTypeInterfaceContainerHelperVar< OUString ,
OUStringHash > IMPL_ListenerHashContainer; OUStringHash > IMPL_ListenerHashContainer;
/*-************************************************************************************************************ /*-************************************************************************************************************
@short helper for desktop only(!) to create new tasks on demand for dispatches @short helper for desktop only(!) to create new tasks on demand for dispatches
@descr Use this class as member only! Never use it as baseclass. @descr Use this class as member only! Never use it as baseclass.
@ -114,7 +113,6 @@ class PopupMenuDispatcher : public ::cppu::WeakImplHelper5<
virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl,
const css::util::URL& aURL ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; const css::util::URL& aURL ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// XFrameActionListener // XFrameActionListener
virtual void SAL_CALL frameAction( const css::frame::FrameActionEvent& aEvent ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual void SAL_CALL frameAction( const css::frame::FrameActionEvent& aEvent ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;

View File

@ -40,10 +40,8 @@
#include <cppuhelper/implbase2.hxx> #include <cppuhelper/implbase2.hxx>
#include <vcl/evntpost.hxx> #include <vcl/evntpost.hxx>
namespace framework{ namespace framework{
/** /**
@short helper to handle all URLs related to the StartModule @short helper to handle all URLs related to the StartModule
*/ */
@ -56,31 +54,25 @@ class StartModuleDispatcher : public ::cppu::WeakImplHelper2<
private: private:
/** @short reference to an uno service manager, /** @short reference to an uno service manager,
which can be used to create own needed which can be used to create own needed
uno resources. */ uno resources. */
css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::uno::XComponentContext > m_xContext;
/** @short our "context" frame. */ /** @short our "context" frame. */
css::uno::WeakReference< css::frame::XFrame > m_xOwner; css::uno::WeakReference< css::frame::XFrame > m_xOwner;
/** @short the original queryDispatch() target. */ /** @short the original queryDispatch() target. */
OUString m_sDispatchTarget; OUString m_sDispatchTarget;
/** @short list of registered status listener */ /** @short list of registered status listener */
osl::Mutex m_mutex; osl::Mutex m_mutex;
ListenerHash m_lStatusListener; ListenerHash m_lStatusListener;
// native interface // native interface
public: public:
/** @short connect a new StartModuleDispatcher instance to its "owner frame". /** @short connect a new StartModuleDispatcher instance to its "owner frame".
@descr Such "owner frame" is used as context for all related operations. @descr Such "owner frame" is used as context for all related operations.
@ -99,24 +91,18 @@ class StartModuleDispatcher : public ::cppu::WeakImplHelper2<
const css::uno::Reference< css::frame::XFrame >& xFrame , const css::uno::Reference< css::frame::XFrame >& xFrame ,
const OUString& sTarget); const OUString& sTarget);
/** @short does nothing real. */ /** @short does nothing real. */
virtual ~StartModuleDispatcher(); virtual ~StartModuleDispatcher();
// uno interface // uno interface
public: public:
// XNotifyingDispatch // XNotifyingDispatch
virtual void SAL_CALL dispatchWithNotification( const css::util::URL& aURL , virtual void SAL_CALL dispatchWithNotification( const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XDispatch // XDispatch
virtual void SAL_CALL dispatch ( const css::util::URL& aURL , virtual void SAL_CALL dispatch ( const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; const css::uno::Sequence< css::beans::PropertyValue >& lArguments) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
@ -125,22 +111,18 @@ class StartModuleDispatcher : public ::cppu::WeakImplHelper2<
virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xListener , virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xListener ,
const css::util::URL& aURL ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; const css::util::URL& aURL ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XDispatchInformationProvider // XDispatchInformationProvider
virtual css::uno::Sequence< sal_Int16 > SAL_CALL getSupportedCommandGroups ( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Sequence< sal_Int16 > SAL_CALL getSupportedCommandGroups ( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL getConfigurableDispatchInformation( sal_Int16 nCommandGroup ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL getConfigurableDispatchInformation( sal_Int16 nCommandGroup ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// internal helper // internal helper
private: private:
/** @short check if StartModule can be shown. /** @short check if StartModule can be shown.
*/ */
sal_Bool implts_isBackingModePossible(); sal_Bool implts_isBackingModePossible();
/** @short open the special BackingComponent (now StartModule) /** @short open the special BackingComponent (now StartModule)
@return [bool] @return [bool]
@ -148,7 +130,6 @@ class StartModuleDispatcher : public ::cppu::WeakImplHelper2<
*/ */
sal_Bool implts_establishBackingMode(); sal_Bool implts_establishBackingMode();
/** @short notify a DispatchResultListener. /** @short notify a DispatchResultListener.
@descr We check the listener reference before we use it. @descr We check the listener reference before we use it.

View File

@ -24,8 +24,6 @@
namespace framework{ namespace framework{
#define CMD_UNO_SHOWSTARTMODULE ".uno:ShowStartModule" #define CMD_UNO_SHOWSTARTMODULE ".uno:ShowStartModule"
} // namespace framework } // namespace framework

View File

@ -33,17 +33,12 @@
namespace framework{ namespace framework{
class DockingAreaDefaultAcceptor : public ::cppu::WeakImplHelper1< ::com::sun::star::ui::XDockingAreaAcceptor > class DockingAreaDefaultAcceptor : public ::cppu::WeakImplHelper1< ::com::sun::star::ui::XDockingAreaAcceptor >
{ {
public: public:
// constructor / destructor // constructor / destructor
/*-**************************************************************************************************** /*-****************************************************************************************************
@short constructor to initialize this instance @short constructor to initialize this instance
@descr A docking area acceptor @descr A docking area acceptor
@ -62,20 +57,15 @@ class DockingAreaDefaultAcceptor : public ::cppu::WeakImplHelper1< ::com::s
DockingAreaDefaultAcceptor( const css::uno::Reference< css::frame::XFrame >& xOwner ); DockingAreaDefaultAcceptor( const css::uno::Reference< css::frame::XFrame >& xOwner );
virtual ~DockingAreaDefaultAcceptor(); virtual ~DockingAreaDefaultAcceptor();
// XDockingAreaAcceptor // XDockingAreaAcceptor
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL getContainerWindow() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::awt::XWindow > SAL_CALL getContainerWindow() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Bool SAL_CALL requestDockingAreaSpace( const css::awt::Rectangle& RequestedSpace ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL requestDockingAreaSpace( const css::awt::Rectangle& RequestedSpace ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setDockingAreaSpace( const css::awt::Rectangle& BorderSpace ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL setDockingAreaSpace( const css::awt::Rectangle& BorderSpace ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// variables // variables
// (should be private everyway!) // (should be private everyway!)
private: private:
css::uno::WeakReference< css::frame::XFrame > m_xOwner ; /// weak reference to our frame object! css::uno::WeakReference< css::frame::XFrame > m_xOwner ; /// weak reference to our frame object!

View File

@ -40,13 +40,11 @@
class SvtLanguageTable; class SvtLanguageTable;
// flags for script types in use within selection // flags for script types in use within selection
#define LS_SCRIPT_LATIN 0x0001 #define LS_SCRIPT_LATIN 0x0001
#define LS_SCRIPT_ASIAN 0x0002 #define LS_SCRIPT_ASIAN 0x0002
#define LS_SCRIPT_COMPLEX 0x0004 #define LS_SCRIPT_COMPLEX 0x0004
namespace framework namespace framework
{ {
@ -83,7 +81,6 @@ enum LangMenuIDs
MID_LANG_PARA_MORE, MID_LANG_PARA_MORE,
}; };
inline bool IsScriptTypeMatchingToLanguage( sal_Int16 nScriptType, LanguageType nLang ) inline bool IsScriptTypeMatchingToLanguage( sal_Int16 nScriptType, LanguageType nLang )
{ {
return 0 != (nScriptType & SvtLanguageOptions::GetScriptTypeOfLanguage( nLang )); return 0 != (nScriptType & SvtLanguageOptions::GetScriptTypeOfLanguage( nLang ));
@ -315,7 +312,6 @@ class WeakDocumentEventListener : public ::cppu::WeakImplHelper1<com::sun::star:
} }
}; };
} // namespace framework } // namespace framework
#endif // INCLUDED_FRAMEWORK_INC_HELPER_MISCHELPER_HXX #endif // INCLUDED_FRAMEWORK_INC_HELPER_MISCHELPER_HXX

View File

@ -59,13 +59,10 @@ class OComponentAccess : public ::cppu::WeakImplHelper1< ::com::sun::star::co
// public methods // public methods
public: public:
// constructor / destructor // constructor / destructor
/*-**************************************************************************************************** /*-****************************************************************************************************
@short constructor to initialize this instance @short constructor to initialize this instance
@descr A desktop will create an enumeration-access-object. An enumeration is a oneway-list and a @descr A desktop will create an enumeration-access-object. An enumeration is a oneway-list and a
@ -83,10 +80,8 @@ class OComponentAccess : public ::cppu::WeakImplHelper1< ::com::sun::star::co
OComponentAccess( const css::uno::Reference< css::frame::XDesktop >& xOwner ); OComponentAccess( const css::uno::Reference< css::frame::XDesktop >& xOwner );
// XEnumerationAccess // XEnumerationAccess
/*-**************************************************************************************************** /*-****************************************************************************************************
@short create a new enumeration of components @short create a new enumeration of components
@descr You can call this method to get a new snapshot from all components of all tasks of the desktop as an enumeration. @descr You can call this method to get a new snapshot from all components of all tasks of the desktop as an enumeration.
@ -104,10 +99,8 @@ class OComponentAccess : public ::cppu::WeakImplHelper1< ::com::sun::star::co
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// XElementAccess // XElementAccess
/*-**************************************************************************************************** /*-****************************************************************************************************
@short get the type of elements in enumeration @short get the type of elements in enumeration
@descr - @descr -
@ -138,10 +131,8 @@ class OComponentAccess : public ::cppu::WeakImplHelper1< ::com::sun::star::co
virtual sal_Bool SAL_CALL hasElements() throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual sal_Bool SAL_CALL hasElements() throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// protected methods // protected methods
protected: protected:
/*-**************************************************************************************************** /*-****************************************************************************************************
@ -161,10 +152,8 @@ class OComponentAccess : public ::cppu::WeakImplHelper1< ::com::sun::star::co
virtual ~OComponentAccess(); virtual ~OComponentAccess();
// private methods // private methods
private: private:
/*-**************************************************************************************************** /*-****************************************************************************************************
@ -198,11 +187,9 @@ class OComponentAccess : public ::cppu::WeakImplHelper1< ::com::sun::star::co
css::uno::Reference< css::lang::XComponent > impl_getFrameComponent( const css::uno::Reference< css::frame::XFrame >& xFrame ) const; css::uno::Reference< css::lang::XComponent > impl_getFrameComponent( const css::uno::Reference< css::frame::XFrame >& xFrame ) const;
// debug methods // debug methods
// (should be private everyway!) // (should be private everyway!)
/*-**************************************************************************************************** /*-****************************************************************************************************
@short debug-method to check incoming parameter of some other mehods of this class @short debug-method to check incoming parameter of some other mehods of this class
@descr The following methods are used to check parameters for other methods @descr The following methods are used to check parameters for other methods
@ -221,11 +208,9 @@ class OComponentAccess : public ::cppu::WeakImplHelper1< ::com::sun::star::co
static sal_Bool impldbg_checkParameter_OComponentAccessCtor( const css::uno::Reference< css::frame::XDesktop >& xOwner ); static sal_Bool impldbg_checkParameter_OComponentAccessCtor( const css::uno::Reference< css::frame::XDesktop >& xOwner );
// variables // variables
// (should be private everyway!) // (should be private everyway!)
private: private:
css::uno::WeakReference< css::frame::XDesktop > m_xOwner ; /// weak reference to the desktop object! css::uno::WeakReference< css::frame::XDesktop > m_xOwner ; /// weak reference to the desktop object!

View File

@ -55,13 +55,10 @@ class OComponentEnumeration : public ::cppu::WeakImplHelper2< ::com::sun::star
// public methods // public methods
public: public:
// constructor / destructor // constructor / destructor
/*-**************************************************************************************************** /*-****************************************************************************************************
@short constructor to initialize this enumeration @short constructor to initialize this enumeration
@descr An enumeration is a list with oneway-access! You can get every member only for one time. @descr An enumeration is a list with oneway-access! You can get every member only for one time.
@ -77,10 +74,8 @@ class OComponentEnumeration : public ::cppu::WeakImplHelper2< ::com::sun::star
OComponentEnumeration( const css::uno::Sequence< css::uno::Reference< css::lang::XComponent > >& seqComponents ); OComponentEnumeration( const css::uno::Sequence< css::uno::Reference< css::lang::XComponent > >& seqComponents );
// XEventListener // XEventListener
/*-**************************************************************************************************** /*-****************************************************************************************************
@short last chance to release all references and free memory @short last chance to release all references and free memory
@descr This method is called, if the enumeration is used completely and has no more elements. @descr This method is called, if the enumeration is used completely and has no more elements.
@ -96,10 +91,8 @@ class OComponentEnumeration : public ::cppu::WeakImplHelper2< ::com::sun::star
virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// XEnumeration // XEnumeration
/*-**************************************************************************************************** /*-****************************************************************************************************
@short check count of accessible elements of enumeration @short check count of accessible elements of enumeration
@descr You can call this method to get information about accessible elements in future. @descr You can call this method to get information about accessible elements in future.
@ -133,10 +126,8 @@ class OComponentEnumeration : public ::cppu::WeakImplHelper2< ::com::sun::star
css::lang::WrappedTargetException , css::lang::WrappedTargetException ,
css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// protected methods // protected methods
protected: protected:
/*-**************************************************************************************************** /*-****************************************************************************************************
@ -175,17 +166,13 @@ class OComponentEnumeration : public ::cppu::WeakImplHelper2< ::com::sun::star
virtual void impl_resetObject(); virtual void impl_resetObject();
// private methods // private methods
private: private:
// debug methods // debug methods
// (should be private everyway!) // (should be private everyway!)
/*-**************************************************************************************************** /*-****************************************************************************************************
@short debug-method to check incoming parameter of some other mehods of this class @short debug-method to check incoming parameter of some other mehods of this class
@descr The following methods are used to check parameters for other methods @descr The following methods are used to check parameters for other methods
@ -205,11 +192,9 @@ class OComponentEnumeration : public ::cppu::WeakImplHelper2< ::com::sun::star
static sal_Bool impldbg_checkParameter_OComponentEnumerationCtor ( const css::uno::Sequence< css::uno::Reference< css::lang::XComponent > >& seqComponents ); static sal_Bool impldbg_checkParameter_OComponentEnumerationCtor ( const css::uno::Sequence< css::uno::Reference< css::lang::XComponent > >& seqComponents );
static sal_Bool impldbg_checkParameter_disposing ( const css::lang::EventObject& aEvent ); static sal_Bool impldbg_checkParameter_disposing ( const css::lang::EventObject& aEvent );
// variables // variables
// (should be private everyway!) // (should be private everyway!)
private: private:
sal_uInt32 m_nPosition ; /// current position in enumeration sal_uInt32 m_nPosition ; /// current position in enumeration

View File

@ -70,33 +70,27 @@ class PersistentWindowState : public ::cppu::WeakImplHelper2<
/// we call SetWindowState one times only for the same frame! /// we call SetWindowState one times only for the same frame!
sal_Bool m_bWindowStateAlreadySet; sal_Bool m_bWindowStateAlreadySet;
// interface // interface
public: public:
// ctor/dtor // ctor/dtor
PersistentWindowState(const css::uno::Reference< css::uno::XComponentContext >& xContext); PersistentWindowState(const css::uno::Reference< css::uno::XComponentContext >& xContext);
virtual ~PersistentWindowState( ); virtual ~PersistentWindowState( );
// XInitialization // XInitialization
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any >& lArguments) virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any >& lArguments)
throw(css::uno::Exception , throw(css::uno::Exception ,
css::uno::RuntimeException, std::exception) SAL_OVERRIDE; css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XFrameActionListener // XFrameActionListener
virtual void SAL_CALL frameAction(const css::frame::FrameActionEvent& aEvent) virtual void SAL_CALL frameAction(const css::frame::FrameActionEvent& aEvent)
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XEventListener // XEventListener
virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent) virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent)
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// helper // helper
private: private:
@ -116,7 +110,6 @@ class PersistentWindowState : public ::cppu::WeakImplHelper2<
static OUString implst_identifyModule(const css::uno::Reference< css::uno::XComponentContext >& rxContext, static OUString implst_identifyModule(const css::uno::Reference< css::uno::XComponentContext >& rxContext,
const css::uno::Reference< css::frame::XFrame >& xFrame); const css::uno::Reference< css::frame::XFrame >& xFrame);
/** @short retrieve the window state from the configuration. /** @short retrieve the window state from the configuration.
@param rxContext @param rxContext
@ -132,7 +125,6 @@ class PersistentWindowState : public ::cppu::WeakImplHelper2<
static OUString implst_getWindowStateFromConfig(const css::uno::Reference< css::uno::XComponentContext >& rxContext , static OUString implst_getWindowStateFromConfig(const css::uno::Reference< css::uno::XComponentContext >& rxContext ,
const OUString& sModuleName); const OUString& sModuleName);
/** @short retrieve the window state from the container window. /** @short retrieve the window state from the container window.
@param xWindow @param xWindow
@ -145,7 +137,6 @@ class PersistentWindowState : public ::cppu::WeakImplHelper2<
*/ */
static OUString implst_getWindowStateFromWindow(const css::uno::Reference< css::awt::XWindow >& xWindow); static OUString implst_getWindowStateFromWindow(const css::uno::Reference< css::awt::XWindow >& xWindow);
/** @short restore the position and size on the container window. /** @short restore the position and size on the container window.
@param rxContext @param rxContext
@ -162,7 +153,6 @@ class PersistentWindowState : public ::cppu::WeakImplHelper2<
const OUString& sModuleName , const OUString& sModuleName ,
const OUString& sWindowState ); const OUString& sWindowState );
/** @short restore the position and size on the container window. /** @short restore the position and size on the container window.
@param xWindow @param xWindow

View File

@ -20,7 +20,6 @@
#ifndef INCLUDED_FRAMEWORK_INC_HELPER_STATUSINDICATOR_HXX #ifndef INCLUDED_FRAMEWORK_INC_HELPER_STATUSINDICATOR_HXX
#define INCLUDED_FRAMEWORK_INC_HELPER_STATUSINDICATOR_HXX #define INCLUDED_FRAMEWORK_INC_HELPER_STATUSINDICATOR_HXX
// include files of own module // include files of own module
#include <helper/statusindicatorfactory.hxx> #include <helper/statusindicatorfactory.hxx>
@ -28,20 +27,15 @@
#include <macros/xtypeprovider.hxx> #include <macros/xtypeprovider.hxx>
#include <macros/generic.hxx> #include <macros/generic.hxx>
// include UNO interfaces // include UNO interfaces
#include <com/sun/star/task/XStatusIndicator.hpp> #include <com/sun/star/task/XStatusIndicator.hpp>
// include all others // include all others
#include <cppuhelper/implbase1.hxx> #include <cppuhelper/implbase1.hxx>
#include <cppuhelper/weakref.hxx> #include <cppuhelper/weakref.hxx>
namespace framework{ namespace framework{
/** /**
@short implement a status indicator object @short implement a status indicator object
@ -74,11 +68,9 @@ class StatusIndicator : public ::cppu::WeakImplHelper1< css::task::XStatusIndic
*/ */
css::uno::WeakReference< css::task::XStatusIndicatorFactory > m_xFactory; css::uno::WeakReference< css::task::XStatusIndicatorFactory > m_xFactory;
// c++ interface // c++ interface
public: public:
/** @short initialize new instance of this class. /** @short initialize new instance of this class.
@param pFactory @param pFactory
@ -86,16 +78,13 @@ class StatusIndicator : public ::cppu::WeakImplHelper1< css::task::XStatusIndic
*/ */
StatusIndicator(StatusIndicatorFactory* pFactory); StatusIndicator(StatusIndicatorFactory* pFactory);
/** @short does nothing real .... /** @short does nothing real ....
*/ */
virtual ~StatusIndicator(); virtual ~StatusIndicator();
// uno interface // uno interface
public: public:
// XStatusIndicator // XStatusIndicator
virtual void SAL_CALL start(const OUString& sText , virtual void SAL_CALL start(const OUString& sText ,
sal_Int32 nRange) sal_Int32 nRange)

View File

@ -24,7 +24,6 @@
// with solaris headers ... // with solaris headers ...
#include <vector> #include <vector>
// include files of own module // include files of own module
#include <helper/wakeupthread.hxx> #include <helper/wakeupthread.hxx>
#include <macros/xinterface.hxx> #include <macros/xinterface.hxx>
@ -33,7 +32,6 @@
#include <macros/generic.hxx> #include <macros/generic.hxx>
#include <general.h> #include <general.h>
// include uno interfaces // include uno interfaces
#include <com/sun/star/lang/XTypeProvider.hpp> #include <com/sun/star/lang/XTypeProvider.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XServiceInfo.hpp>
@ -54,11 +52,8 @@
#include <cppuhelper/implbase4.hxx> #include <cppuhelper/implbase4.hxx>
#include <osl/thread.hxx> #include <osl/thread.hxx>
namespace framework{ namespace framework{
/** /**
@descr This struct hold some information about all currently running progress proccesses. @descr This struct hold some information about all currently running progress proccesses.
Because the can be used on a stack, we must cache her states but must paint only Because the can be used on a stack, we must cache her states but must paint only
@ -83,11 +78,9 @@ struct IndicatorInfo
/** @short the last set value for this indicator */ /** @short the last set value for this indicator */
sal_Int32 m_nValue; sal_Int32 m_nValue;
// interface // interface
public: public:
/** @short initialize new instance of this class /** @short initialize new instance of this class
@param xIndicator @param xIndicator
@ -109,7 +102,6 @@ struct IndicatorInfo
m_nValue = 0 ; m_nValue = 0 ;
} }
/** @short Don't forget to free used references! /** @short Don't forget to free used references!
*/ */
~IndicatorInfo() ~IndicatorInfo()
@ -117,7 +109,6 @@ struct IndicatorInfo
m_xIndicator.clear(); m_xIndicator.clear();
} }
/** @short Used to locate an info struct inside a stl structure ... /** @short Used to locate an info struct inside a stl structure ...
@descr The indicator object itself is used as key. Its values @descr The indicator object itself is used as key. Its values
@ -130,11 +121,9 @@ struct IndicatorInfo
} }
}; };
/** @descr Define a lits of child indicator objects and her data. */ /** @descr Define a lits of child indicator objects and her data. */
typedef ::std::vector< IndicatorInfo > IndicatorStack; typedef ::std::vector< IndicatorInfo > IndicatorStack;
/** @short implement a factory service to create new status indicator objects /** @short implement a factory service to create new status indicator objects
@descr Internally it uses: @descr Internally it uses:
@ -201,7 +190,6 @@ class StatusIndicatorFactory : public ::cppu::WeakImplHelper4<
/** prevent recursive calling of Application::Reschedule(). */ /** prevent recursive calling of Application::Reschedule(). */
static sal_Int32 m_nInReschedule; static sal_Int32 m_nInReschedule;
// interface // interface
public: public:
@ -227,23 +215,19 @@ class StatusIndicatorFactory : public ::cppu::WeakImplHelper4<
return aSeq; return aSeq;
} }
// XInitialization // XInitialization
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any >& lArguments) virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any >& lArguments)
throw(css::uno::Exception , throw(css::uno::Exception ,
css::uno::RuntimeException, std::exception) SAL_OVERRIDE; css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XStatusIndicatorFactory // XStatusIndicatorFactory
virtual css::uno::Reference< css::task::XStatusIndicator > SAL_CALL createStatusIndicator() virtual css::uno::Reference< css::task::XStatusIndicator > SAL_CALL createStatusIndicator()
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XUpdatable // XUpdatable
virtual void SAL_CALL update() virtual void SAL_CALL update()
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// similar (XStatusIndicator) // similar (XStatusIndicator)
virtual void start(const css::uno::Reference< css::task::XStatusIndicator >& xChild, virtual void start(const css::uno::Reference< css::task::XStatusIndicator >& xChild,
const OUString& sText , const OUString& sText ,
@ -259,21 +243,18 @@ class StatusIndicatorFactory : public ::cppu::WeakImplHelper4<
virtual void SAL_CALL setValue(const css::uno::Reference< css::task::XStatusIndicator >& xChild, virtual void SAL_CALL setValue(const css::uno::Reference< css::task::XStatusIndicator >& xChild,
sal_Int32 nValue); sal_Int32 nValue);
// specials // specials
protected: protected:
virtual ~StatusIndicatorFactory(); virtual ~StatusIndicatorFactory();
// helper // helper
private: private:
/** @short show the parent window of this progress ... /** @short show the parent window of this progress ...
if it's allowed to do so. if it's allowed to do so.
@descr By default we show the parent window automaticly @descr By default we show the parent window automaticly
if this progress is used. if this progress is used.
If that isn't a valid operation, the user of this If that isn't a valid operation, the user of this

View File

@ -65,43 +65,35 @@ class TagWindowAsModified : public ::cppu::WeakImplHelper3<
/// we list on the model for modify events /// we list on the model for modify events
css::uno::WeakReference< css::frame::XModel > m_xModel; css::uno::WeakReference< css::frame::XModel > m_xModel;
// interface // interface
public: public:
// ctor/dtor // ctor/dtor
TagWindowAsModified(); TagWindowAsModified();
virtual ~TagWindowAsModified( ); virtual ~TagWindowAsModified( );
// XInterface, XTypeProvider // XInterface, XTypeProvider
// XInitialization // XInitialization
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any >& lArguments) virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any >& lArguments)
throw(css::uno::Exception , throw(css::uno::Exception ,
css::uno::RuntimeException, std::exception) SAL_OVERRIDE; css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XModifyListener // XModifyListener
virtual void SAL_CALL modified(const css::lang::EventObject& aEvent) virtual void SAL_CALL modified(const css::lang::EventObject& aEvent)
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XFrameActionListener // XFrameActionListener
virtual void SAL_CALL frameAction(const css::frame::FrameActionEvent& aEvent) virtual void SAL_CALL frameAction(const css::frame::FrameActionEvent& aEvent)
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XEventListener // XEventListener
virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent) virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent)
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private: private:
// @todo document me // @todo document me
void impl_update(const css::uno::Reference< css::frame::XFrame >& xFrame); void impl_update(const css::uno::Reference< css::frame::XFrame >& xFrame);

View File

@ -62,7 +62,6 @@ class TitleBarUpdate : public ::cppu::WeakImplHelper3<
::sal_Int32 nIcon; ::sal_Int32 nIcon;
}; };
// member // member
private: private:
@ -73,46 +72,37 @@ class TitleBarUpdate : public ::cppu::WeakImplHelper3<
/// reference to the frame which was created by the office himself /// reference to the frame which was created by the office himself
css::uno::WeakReference< css::frame::XFrame > m_xFrame; css::uno::WeakReference< css::frame::XFrame > m_xFrame;
// interface // interface
public: public:
// ctor/dtor // ctor/dtor
TitleBarUpdate(const css::uno::Reference< css::uno::XComponentContext >& xContext); TitleBarUpdate(const css::uno::Reference< css::uno::XComponentContext >& xContext);
virtual ~TitleBarUpdate( ); virtual ~TitleBarUpdate( );
// XInterface, XTypeProvider // XInterface, XTypeProvider
// XInitialization // XInitialization
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any >& lArguments) virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any >& lArguments)
throw(css::uno::Exception , throw(css::uno::Exception ,
css::uno::RuntimeException, std::exception) SAL_OVERRIDE; css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XFrameActionListener // XFrameActionListener
virtual void SAL_CALL frameAction(const css::frame::FrameActionEvent& aEvent) virtual void SAL_CALL frameAction(const css::frame::FrameActionEvent& aEvent)
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XTitleChangeListener // XTitleChangeListener
virtual void SAL_CALL titleChanged(const css::frame::TitleChangedEvent& aEvent) virtual void SAL_CALL titleChanged(const css::frame::TitleChangedEvent& aEvent)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XEventListener // XEventListener
virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent) virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent)
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// helper // helper
private: private:
/** @short identify the application module, which is used behind the component /** @short identify the application module, which is used behind the component
of our frame. of our frame.
@ -130,7 +120,6 @@ class TitleBarUpdate : public ::cppu::WeakImplHelper3<
sal_Bool implst_getModuleInfo(const css::uno::Reference< css::frame::XFrame >& xFrame, sal_Bool implst_getModuleInfo(const css::uno::Reference< css::frame::XFrame >& xFrame,
TModuleInfo& rInfo ); TModuleInfo& rInfo );
/** @short set a new icon and title on the title bar of our connected frame window. /** @short set a new icon and title on the title bar of our connected frame window.
@descr It does not check if an update is really needed. That has to be done outside. @descr It does not check if an update is really needed. That has to be done outside.
@ -139,7 +128,6 @@ class TitleBarUpdate : public ::cppu::WeakImplHelper3<
*/ */
void impl_forceUpdate(); void impl_forceUpdate();
/** @short identify the current component (inside the connected frame) /** @short identify the current component (inside the connected frame)
and set the right module icon on the title bar. and set the right module icon on the title bar.
@ -149,7 +137,6 @@ class TitleBarUpdate : public ::cppu::WeakImplHelper3<
*/ */
void impl_updateIcon(const css::uno::Reference< css::frame::XFrame >& xFrame); void impl_updateIcon(const css::uno::Reference< css::frame::XFrame >& xFrame);
/** @short gets the current title from the frame and set it on the window. /** @short gets the current title from the frame and set it on the window.
@param xFrame @param xFrame

View File

@ -103,7 +103,6 @@ class UIConfigElementWrapperBase : private cppu::BaseMutex,
using cppu::OPropertySetHelper::disposing; using cppu::OPropertySetHelper::disposing;
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// protected methods // protected methods
protected: protected:

View File

@ -83,7 +83,6 @@ class UIElementWrapperBase : private cppu::BaseMutex,
virtual ::sal_Int16 SAL_CALL getType() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual ::sal_Int16 SAL_CALL getType() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getRealInterface() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE = 0; virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getRealInterface() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE = 0;
// protected methods // protected methods
protected: protected:

View File

@ -31,10 +31,8 @@
#include <cppuhelper/implbase1.hxx> #include <cppuhelper/implbase1.hxx>
#include <vcl/status.hxx> #include <vcl/status.hxx>
namespace framework { namespace framework {
// declaration // declaration
class VCLStatusIndicator : public ::cppu::WeakImplHelper1< css::task::XStatusIndicator > class VCLStatusIndicator : public ::cppu::WeakImplHelper1< css::task::XStatusIndicator >
@ -65,7 +63,6 @@ class VCLStatusIndicator : public ::cppu::WeakImplHelper1< css::task::XStatusIn
/** knows the current value of the progress. */ /** knows the current value of the progress. */
sal_Int32 m_nValue; sal_Int32 m_nValue;
// interface // interface
public: public:
@ -93,7 +90,6 @@ class VCLStatusIndicator : public ::cppu::WeakImplHelper1< css::task::XStatusIn
virtual void SAL_CALL setValue(sal_Int32 nValue) virtual void SAL_CALL setValue(sal_Int32 nValue)
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// helper // helper
private: private:

View File

@ -20,28 +20,22 @@
#ifndef INCLUDED_FRAMEWORK_INC_HELPER_WAKEUPTHREAD_HXX #ifndef INCLUDED_FRAMEWORK_INC_HELPER_WAKEUPTHREAD_HXX
#define INCLUDED_FRAMEWORK_INC_HELPER_WAKEUPTHREAD_HXX #define INCLUDED_FRAMEWORK_INC_HELPER_WAKEUPTHREAD_HXX
// include files of own module // include files of own module
#include <macros/generic.hxx> #include <macros/generic.hxx>
#include <general.h> #include <general.h>
// include UNO interfaces // include UNO interfaces
#include <com/sun/star/util/XUpdatable.hpp> #include <com/sun/star/util/XUpdatable.hpp>
// include all others // include all others
#include <cppuhelper/weakref.hxx> #include <cppuhelper/weakref.hxx>
#include <osl/thread.hxx> #include <osl/thread.hxx>
namespace framework{ namespace framework{
/** @short implements a "sleeping" thread, which try to sleep /** @short implements a "sleeping" thread, which try to sleep
without a using cpu consumption :-) */ without a using cpu consumption :-) */
class WakeUpThread : public ::osl::Thread class WakeUpThread : public ::osl::Thread
@ -54,7 +48,6 @@ class WakeUpThread : public ::osl::Thread
waked up. */ waked up. */
css::uno::WeakReference< css::util::XUpdatable > m_xListener; css::uno::WeakReference< css::util::XUpdatable > m_xListener;
// interface // interface
public: public:

View File

@ -30,8 +30,6 @@
namespace framework{ namespace framework{
/** /**
@short implements a simple configuration access @short implements a simple configuration access
@descr Sometimes it's better to have direct config access @descr Sometimes it's better to have direct config access
@ -41,7 +39,6 @@ namespace framework{
class FWI_DLLPUBLIC ConfigAccess class FWI_DLLPUBLIC ConfigAccess
{ {
public: public:
/** represent the possible modes of the internal wrapped configuration access */ /** represent the possible modes of the internal wrapped configuration access */
@ -55,7 +52,6 @@ class FWI_DLLPUBLIC ConfigAccess
E_READWRITE E_READWRITE
}; };
// member // member
private: private:
@ -76,7 +72,6 @@ class FWI_DLLPUBLIC ConfigAccess
/** represent the current open mode */ /** represent the current open mode */
EOpenMode m_eMode; EOpenMode m_eMode;
// native interface methods // native interface methods
public: public:

View File

@ -33,11 +33,8 @@
#include <com/sun/star/frame/XDesktop2.hpp> #include <com/sun/star/frame/XDesktop2.hpp>
#include <com/sun/star/frame/XModuleManager2.hpp> #include <com/sun/star/frame/XModuleManager2.hpp>
namespace framework{ namespace framework{
/** @short implements a job component, which handle the special /** @short implements a job component, which handle the special
feature to show a suitable help page for every (visible!) feature to show a suitable help page for every (visible!)
loaded document. loaded document.
@ -54,35 +51,28 @@ class HelpOnStartup : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::XS
/** @short reference to an uno service manager. */ /** @short reference to an uno service manager. */
css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::uno::XComponentContext > m_xContext;
/** @short such module manager is used to classify new opened documents. */ /** @short such module manager is used to classify new opened documents. */
css::uno::Reference< css::frame::XModuleManager2 > m_xModuleManager; css::uno::Reference< css::frame::XModuleManager2 > m_xModuleManager;
/** @short is needed to locate a might open help frame. */ /** @short is needed to locate a might open help frame. */
css::uno::Reference< css::frame::XDesktop2 > m_xDesktop; css::uno::Reference< css::frame::XDesktop2 > m_xDesktop;
/** @short provides read access to the underlying configuration. */ /** @short provides read access to the underlying configuration. */
css::uno::Reference< css::container::XNameAccess > m_xConfig; css::uno::Reference< css::container::XNameAccess > m_xConfig;
/** @short knows the current locale of this office session, /** @short knows the current locale of this office session,
which is needed to build complete help URLs. which is needed to build complete help URLs.
*/ */
OUString m_sLocale; OUString m_sLocale;
/** @short knows the current operating system of this office session, /** @short knows the current operating system of this office session,
which is needed to build complete help URLs. which is needed to build complete help URLs.
*/ */
OUString m_sSystem; OUString m_sSystem;
// native interface // native interface
public: public:
/** @short create new instance of this class. /** @short create new instance of this class.
@param xContext @param xContext
@ -91,7 +81,6 @@ class HelpOnStartup : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::XS
*/ */
HelpOnStartup(const css::uno::Reference< css::uno::XComponentContext >& xContext); HelpOnStartup(const css::uno::Reference< css::uno::XComponentContext >& xContext);
/** @short does nothing real ... /** @short does nothing real ...
@descr But it should exists as virtual function, @descr But it should exists as virtual function,
@ -100,11 +89,9 @@ class HelpOnStartup : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::XS
*/ */
virtual ~HelpOnStartup(); virtual ~HelpOnStartup();
// uno interface // uno interface
public: public:
// css.lang.XServiceInfo // css.lang.XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO
@ -118,11 +105,9 @@ class HelpOnStartup : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::XS
virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent) virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent)
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// helper // helper
private: private:
/** @short analyze the given job arguments, try to locate a model reference /** @short analyze the given job arguments, try to locate a model reference
and try to classify this model. and try to classify this model.
@ -138,7 +123,6 @@ class HelpOnStartup : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::XS
*/ */
OUString its_getModuleIdFromEnv(const css::uno::Sequence< css::beans::NamedValue >& lArguments); OUString its_getModuleIdFromEnv(const css::uno::Sequence< css::beans::NamedValue >& lArguments);
/** @short tries to locate the open help module and return /** @short tries to locate the open help module and return
the url of the currently shown help content. the url of the currently shown help content.
@ -150,7 +134,6 @@ class HelpOnStartup : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::XS
*/ */
OUString its_getCurrentHelpURL(); OUString its_getCurrentHelpURL();
/** @short checks if the given help url match to a default help url /** @short checks if the given help url match to a default help url
of any office module. of any office module.
@ -163,7 +146,6 @@ class HelpOnStartup : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::XS
*/ */
sal_Bool its_isHelpUrlADefaultOne(const OUString& sHelpURL); sal_Bool its_isHelpUrlADefaultOne(const OUString& sHelpURL);
/** @short checks, if the help module should be shown automaticly for the /** @short checks, if the help module should be shown automaticly for the
currently opened office module. currently opened office module.
@ -180,7 +162,6 @@ class HelpOnStartup : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::XS
*/ */
OUString its_checkIfHelpEnabledAndGetURL(const OUString& sModule); OUString its_checkIfHelpEnabledAndGetURL(const OUString& sModule);
/** @short create a help URL for the given parameters. /** @short create a help URL for the given parameters.
@param sBaseURL @param sBaseURL

View File

@ -40,12 +40,8 @@
#include <osl/conditn.hxx> #include <osl/conditn.hxx>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
namespace framework{ namespace framework{
/** /**
@short it represent a job; execute it and control it's lifetime @short it represent a job; execute it and control it's lifetime
@ -75,7 +71,6 @@ class Job : public ::cppu::WeakImplHelper3<
E_DISPOSED E_DISPOSED
}; };
// member // member
private: private:
@ -168,7 +163,6 @@ class Job : public ::cppu::WeakImplHelper3<
*/ */
ERunState m_eRunState; ERunState m_eRunState;
// native interface // native interface
public: public:
@ -192,12 +186,10 @@ class Job : public ::cppu::WeakImplHelper3<
void impl_startListening ( ); void impl_startListening ( );
void impl_stopListening ( ); void impl_stopListening ( );
// uno interface // uno interface
public: public:
// XJobListener // XJobListener
virtual void SAL_CALL jobFinished( const css::uno::Reference< css::task::XAsyncJob >& xJob, virtual void SAL_CALL jobFinished( const css::uno::Reference< css::task::XAsyncJob >& xJob,
const css::uno::Any& aResult ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; const css::uno::Any& aResult ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;

View File

@ -23,15 +23,11 @@
#include <stdtypes.h> #include <stdtypes.h>
#include <general.h> #include <general.h>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <fwidllapi.h> #include <fwidllapi.h>
namespace framework{ namespace framework{
/** /**
@short defines all constant values used within a job environment. @short defines all constant values used within a job environment.

View File

@ -34,9 +34,6 @@
namespace framework{ namespace framework{
/** /**
@short holds all necessary information about a job and @short holds all necessary information about a job and
handle it's configuration (if any exist!) handle it's configuration (if any exist!)
@ -101,7 +98,6 @@ class JobData
{} {}
}; };
// member // member
private: private:
@ -178,7 +174,6 @@ class JobData
*/ */
JobResult m_aLastExecutionResult; JobResult m_aLastExecutionResult;
// native interface // native interface
public: public:
@ -216,7 +211,6 @@ class JobData
const OUString& sEvent , const OUString& sEvent ,
::comphelper::SequenceAsVector< JobData::TJob2DocEventBinding >& lJobs ); ::comphelper::SequenceAsVector< JobData::TJob2DocEventBinding >& lJobs );
// private helper // private helper
private: private:

View File

@ -28,11 +28,8 @@
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
namespace framework{ namespace framework{
/** /**
@short represent a result of a finished job execution @short represent a result of a finished job execution
@descr Such result instance transport all neccessarry @descr Such result instance transport all neccessarry
@ -62,7 +59,6 @@ class JobResult
E_DISPATCHRESULT = 4 E_DISPATCHRESULT = 4
}; };
// member // member
private: private:
@ -104,7 +100,6 @@ class JobResult
*/ */
css::frame::DispatchResultEvent m_aDispatchResult; css::frame::DispatchResultEvent m_aDispatchResult;
// native interface // native interface
public: public:

View File

@ -25,10 +25,8 @@
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
namespace framework{ namespace framework{
#define JOBURL_PROTOCOL_STR "vnd.sun.star.job:" #define JOBURL_PROTOCOL_STR "vnd.sun.star.job:"
#define JOBURL_PROTOCOL_LEN 17 #define JOBURL_PROTOCOL_LEN 17
@ -44,7 +42,6 @@ namespace framework{
#define JOBURL_PART_SEPARATOR ';' #define JOBURL_PART_SEPARATOR ';'
#define JOBURL_PARTARGS_SEPARATOR ',' #define JOBURL_PARTARGS_SEPARATOR ','
/** /**
@short can be used to parse, validate and work with job URL's @short can be used to parse, validate and work with job URL's
@descr Job URLs are specified by the following syntax: @descr Job URLs are specified by the following syntax:
@ -76,7 +73,6 @@ class JobURL
E_SERVICE = 4 E_SERVICE = 4
}; };
// types // types
private: private:
@ -102,7 +98,6 @@ class JobURL
/** holds the service arguments */ /** holds the service arguments */
OUString m_sServiceArgs; OUString m_sServiceArgs;
// native interface // native interface
public: public:
@ -113,7 +108,6 @@ class JobURL
sal_Bool getAlias ( OUString& sAlias ) const; sal_Bool getAlias ( OUString& sAlias ) const;
sal_Bool getService ( OUString& sService ) const; sal_Bool getService ( OUString& sService ) const;
// private helper // private helper
private: private:
@ -124,7 +118,6 @@ class JobURL
OUString& rPartValue , OUString& rPartValue ,
OUString& rPartArguments ); OUString& rPartArguments );
// debug methods! // debug methods!
#ifdef ENABLE_COMPONENT_SELF_CHECK #ifdef ENABLE_COMPONENT_SELF_CHECK

View File

@ -32,11 +32,8 @@
#include <com/sun/star/container/XNameAccess.hpp> #include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/frame/XModuleManager.hpp> #include <com/sun/star/frame/XModuleManager.hpp>
namespace framework{ namespace framework{
/** @short implements a job component which can be used /** @short implements a job component which can be used
to execute system shell commands. to execute system shell commands.
@ -54,15 +51,12 @@ class ShellJob : public ::cppu::WeakImplHelper2< ::com::sun::star::lang::XServic
// member // member
private: private:
/** @short reference to an uno service manager. */ /** @short reference to an uno service manager. */
css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::uno::XComponentContext > m_xContext;
// native interface // native interface
public: public:
/** @short create new instance of this class. /** @short create new instance of this class.
@param xContext @param xContext
@ -71,7 +65,6 @@ class ShellJob : public ::cppu::WeakImplHelper2< ::com::sun::star::lang::XServic
*/ */
ShellJob(const css::uno::Reference< css::uno::XComponentContext >& xContext); ShellJob(const css::uno::Reference< css::uno::XComponentContext >& xContext);
/** @short does nothing real ... /** @short does nothing real ...
@descr But it should exists as virtual function, @descr But it should exists as virtual function,
@ -80,11 +73,9 @@ class ShellJob : public ::cppu::WeakImplHelper2< ::com::sun::star::lang::XServic
*/ */
virtual ~ShellJob(); virtual ~ShellJob();
// uno interface // uno interface
public: public:
// css.lang.XServiceInfo // css.lang.XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO
@ -94,11 +85,9 @@ class ShellJob : public ::cppu::WeakImplHelper2< ::com::sun::star::lang::XServic
css::uno::Exception , css::uno::Exception ,
css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// helper // helper
private: private:
/** generate a return value for method execute() /** generate a return value for method execute()
which will force deactivation of this job for further requests. which will force deactivation of this job for further requests.
@ -106,7 +95,6 @@ class ShellJob : public ::cppu::WeakImplHelper2< ::com::sun::star::lang::XServic
*/ */
static css::uno::Any impl_generateAnswer4Deactivation(); static css::uno::Any impl_generateAnswer4Deactivation();
/** substitute all might existing placeholder variables /** substitute all might existing placeholder variables
within the configured command. within the configured command.
@ -122,7 +110,6 @@ class ShellJob : public ::cppu::WeakImplHelper2< ::com::sun::star::lang::XServic
*/ */
OUString impl_substituteCommandVariables(const OUString& sCommand); OUString impl_substituteCommandVariables(const OUString& sCommand);
/** executes the command. /** executes the command.
@param sCommand @param sCommand

View File

@ -23,10 +23,8 @@
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <rtl/textenc.h> #include <rtl/textenc.h>
// generic macros // generic macros
/*_________________________________________________________________________________________________________________ /*_________________________________________________________________________________________________________________
DECLARE_ASCII( SASCIIVALUE ) DECLARE_ASCII( SASCIIVALUE )

View File

@ -20,7 +20,6 @@
#ifndef INCLUDED_FRAMEWORK_INC_MACROS_REGISTRATION_HXX #ifndef INCLUDED_FRAMEWORK_INC_MACROS_REGISTRATION_HXX
#define INCLUDED_FRAMEWORK_INC_MACROS_REGISTRATION_HXX #define INCLUDED_FRAMEWORK_INC_MACROS_REGISTRATION_HXX
#include <com/sun/star/lang/XSingleServiceFactory.hpp> #include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp>
@ -36,7 +35,6 @@
_________________________________________________________________________________________________________________*/ _________________________________________________________________________________________________________________*/
// public // public
// use it as parameter for COMPONENT_GETFACTORY( IFFACTORIES ) // use it as parameter for COMPONENT_GETFACTORY( IFFACTORIES )
@ -50,7 +48,6 @@ ________________________________________________________________________________
xFactory = CLASS::impl_createFactory( xServiceManager ); \ xFactory = CLASS::impl_createFactory( xServiceManager ); \
} }
// public // public
// define method to instanciate new services // define method to instanciate new services

View File

@ -45,7 +45,6 @@ namespace framework{
_________________________________________________________________________________________________________________*/ _________________________________________________________________________________________________________________*/
// private // private
// implementation of XInterface::aquire() // implementation of XInterface::aquire()
// XInterface::release() // XInterface::release()
@ -63,7 +62,6 @@ ________________________________________________________________________________
BASECLASS::release(); \ BASECLASS::release(); \
} }
// private // private
// implementation of XInterface::queryInterface() without any other interfaces! // implementation of XInterface::queryInterface() without any other interfaces!
@ -76,7 +74,6 @@ ________________________________________________________________________________
return BASECLASS::queryInterface( aType ); \ return BASECLASS::queryInterface( aType ); \
} }
// private // private
// implementation of XInterface::queryInterface() with max. 12 other interfaces! // implementation of XInterface::queryInterface() with max. 12 other interfaces!
@ -97,7 +94,6 @@ ________________________________________________________________________________
return aReturn; \ return aReturn; \
} }
// private // private
// implementation of XInterface::queryInterface() with more then 12 other interfaces! // implementation of XInterface::queryInterface() with more then 12 other interfaces!
@ -124,7 +120,6 @@ ________________________________________________________________________________
return aReturn; \ return aReturn; \
} }
// private // private
// complete implementation of XInterface for different use cases // complete implementation of XInterface for different use cases
@ -140,7 +135,6 @@ ________________________________________________________________________________
PRIVATE_DEFINE_XINTERFACE_AQUIRE_RELEASE( CLASS, BASECLASS ) \ PRIVATE_DEFINE_XINTERFACE_AQUIRE_RELEASE( CLASS, BASECLASS ) \
PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_LARGE( CLASS, BASECLASS, INTERFACES_FIRST, INTERFACES_SECOND ) PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_LARGE( CLASS, BASECLASS, INTERFACES_FIRST, INTERFACES_SECOND )
// private // private
// help macros to replace INTERFACES in queryInterface() [see before] // help macros to replace INTERFACES in queryInterface() [see before]
@ -195,11 +189,9 @@ ________________________________________________________________________________
PRIVATE_DEFINE_INTERFACE_10( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10 ), \ PRIVATE_DEFINE_INTERFACE_10( INTERFACE1, INTERFACE2, INTERFACE3, INTERFACE4, INTERFACE5, INTERFACE6, INTERFACE7, INTERFACE8, INTERFACE9, INTERFACE10 ), \
INTERFACE11 INTERFACE11
// public // public
// help macros for follow XInterface definitions // help macros for follow XInterface definitions
// Use it as parameter for DEFINE_XINTERFACE_X(), if you CAN use an interface directly in queryInterface()! // Use it as parameter for DEFINE_XINTERFACE_X(), if you CAN use an interface directly in queryInterface()!
#define DIRECT_INTERFACE( INTERFACE ) \ #define DIRECT_INTERFACE( INTERFACE ) \
static_cast< INTERFACE* >( this ) static_cast< INTERFACE* >( this )
@ -209,7 +201,6 @@ ________________________________________________________________________________
#define DERIVED_INTERFACE( BASEINTERFACE, DERIVEDINTERFACE ) \ #define DERIVED_INTERFACE( BASEINTERFACE, DERIVEDINTERFACE ) \
static_cast< BASEINTERFACE* >( static_cast< DERIVEDINTERFACE* >( this ) ) static_cast< BASEINTERFACE* >( static_cast< DERIVEDINTERFACE* >( this ) )
// public // public
// declaration of XInterface // declaration of XInterface
@ -218,11 +209,9 @@ ________________________________________________________________________________
virtual void SAL_CALL acquire ( ) throw() SAL_OVERRIDE; \ virtual void SAL_CALL acquire ( ) throw() SAL_OVERRIDE; \
virtual void SAL_CALL release ( ) throw() SAL_OVERRIDE; virtual void SAL_CALL release ( ) throw() SAL_OVERRIDE;
// public // public
// implementation of XInterface // implementation of XInterface
// implementation of XInterface with 0 additional interface for queryInterface() // implementation of XInterface with 0 additional interface for queryInterface()
#define DEFINE_XINTERFACE_0( CLASS, BASECLASS ) \ #define DEFINE_XINTERFACE_0( CLASS, BASECLASS ) \
PRIVATE_DEFINE_XINTERFACE_PURE ( CLASS, \ PRIVATE_DEFINE_XINTERFACE_PURE ( CLASS, \

View File

@ -49,7 +49,6 @@ namespace framework{
_________________________________________________________________________________________________________________*/ _________________________________________________________________________________________________________________*/
// private // private
// implementation of XTypeProvider::getImplementationId() // implementation of XTypeProvider::getImplementationId()
@ -59,7 +58,6 @@ ________________________________________________________________________________
return css::uno::Sequence<sal_Int8>(); \ return css::uno::Sequence<sal_Int8>(); \
} }
// private // private
// implementation of XTypeProvider::getTypes() with max. 12 interfaces! // implementation of XTypeProvider::getTypes() with max. 12 interfaces!
@ -89,7 +87,6 @@ ________________________________________________________________________________
return pTypeCollection->getTypes(); \ return pTypeCollection->getTypes(); \
} }
// private // private
// implementation of XTypeProvider::getTypes() with more then 12 interfaces! // implementation of XTypeProvider::getTypes() with more then 12 interfaces!
@ -141,7 +138,6 @@ ________________________________________________________________________________
return *pTypeCollection; \ return *pTypeCollection; \
} }
// private // private
// implementation of XTypeProvider::getTypes() with using max. 12 interfaces + baseclass! // implementation of XTypeProvider::getTypes() with using max. 12 interfaces + baseclass!
@ -192,7 +188,6 @@ ________________________________________________________________________________
return *pTypeCollection; \ return *pTypeCollection; \
} }
// private // private
// help macros to replace TYPES in getTypes() [see before] // help macros to replace TYPES in getTypes() [see before]
@ -243,7 +238,6 @@ ________________________________________________________________________________
PRIVATE_DEFINE_TYPE_11( TYPE1, TYPE2, TYPE3, TYPE4, TYPE5, TYPE6, TYPE7, TYPE8, TYPE9, TYPE10, TYPE11 ), \ PRIVATE_DEFINE_TYPE_11( TYPE1, TYPE2, TYPE3, TYPE4, TYPE5, TYPE6, TYPE7, TYPE8, TYPE9, TYPE10, TYPE11 ), \
::getCppuType(( const ::com::sun::star::uno::Reference< TYPE12 >*)NULL ) ::getCppuType(( const ::com::sun::star::uno::Reference< TYPE12 >*)NULL )
// private // private
// complete implementation of XTypeProvider // complete implementation of XTypeProvider
@ -263,7 +257,6 @@ ________________________________________________________________________________
PRIVATE_DEFINE_XTYPEPROVIDER_GETIMPLEMENTATIONID( CLASS ) \ PRIVATE_DEFINE_XTYPEPROVIDER_GETIMPLEMENTATIONID( CLASS ) \
PRIVATE_DEFINE_XTYPEPROVIDER_GETTYPES_BASECLASS( CLASS, BASECLASS, TYPES ) PRIVATE_DEFINE_XTYPEPROVIDER_GETTYPES_BASECLASS( CLASS, BASECLASS, TYPES )
// public // public
// declaration of XTypeProvider // declaration of XTypeProvider
@ -271,7 +264,6 @@ ________________________________________________________________________________
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes () throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;\ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes () throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;\
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// public // public
// implementation of XTypeProvider // implementation of XTypeProvider

View File

@ -23,10 +23,8 @@
#include <macros/generic.hxx> #include <macros/generic.hxx>
#include <general.h> #include <general.h>
namespace framework{ namespace framework{
/** properties for "Frame" class */ /** properties for "Frame" class */
#define FRAME_PROPNAME_ASCII_DISPATCHRECORDERSUPPLIER "DispatchRecorderSupplier" #define FRAME_PROPNAME_ASCII_DISPATCHRECORDERSUPPLIER "DispatchRecorderSupplier"
@ -52,7 +50,6 @@ namespace framework{
#define FRAME_PROPCOUNT 5 #define FRAME_PROPCOUNT 5
/** properties for "Desktop" class */ /** properties for "Desktop" class */
#define DESKTOP_PROPNAME_ASCII_ACTIVEFRAME "ActiveFrame" #define DESKTOP_PROPNAME_ASCII_ACTIVEFRAME "ActiveFrame"
@ -78,7 +75,6 @@ namespace framework{
#define DESKTOP_PROPCOUNT 5 #define DESKTOP_PROPCOUNT 5
/** properties for "PathSettings" class */ /** properties for "PathSettings" class */
#define PATHSETTINGS_PROPNAME_ASCII_ADDIN "Addin" #define PATHSETTINGS_PROPNAME_ASCII_ADDIN "Addin"
@ -161,7 +157,6 @@ namespace framework{
#define PATHSETTINGS_PROPCOUNT 24 #define PATHSETTINGS_PROPCOUNT 24
/** properties for "LayoutManager" class */ /** properties for "LayoutManager" class */
#define LAYOUTMANAGER_PROPNAME_ASCII_MENUBARCLOSER "MenuBarCloser" #define LAYOUTMANAGER_PROPNAME_ASCII_MENUBARCLOSER "MenuBarCloser"
@ -185,7 +180,6 @@ namespace framework{
#define LAYOUTMANAGER_PROPHANDLE_LOCKCOUNT 4 #define LAYOUTMANAGER_PROPHANDLE_LOCKCOUNT 4
#define LAYOUTMANAGER_PROPHANDLE_PRESERVE_CONTENT_SIZE 5 #define LAYOUTMANAGER_PROPHANDLE_PRESERVE_CONTENT_SIZE 5
/** properties for "UICommandDescription" class */ /** properties for "UICommandDescription" class */
#define UICOMMANDDESCRIPTION_NAMEACCESS_COMMANDIMAGELIST "private:resource/image/commandimagelist" #define UICOMMANDDESCRIPTION_NAMEACCESS_COMMANDIMAGELIST "private:resource/image/commandimagelist"
#define UICOMMANDDESCRIPTION_NAMEACCESS_COMMANDROTATEIMAGELIST "private:resource/image/commandrotateimagelist" #define UICOMMANDDESCRIPTION_NAMEACCESS_COMMANDROTATEIMAGELIST "private:resource/image/commandrotateimagelist"
@ -199,7 +193,6 @@ namespace framework{
#define UICOMMANDDESCRIPTION_PROPERTIES_IMAGE_ROTATED 4 #define UICOMMANDDESCRIPTION_PROPERTIES_IMAGE_ROTATED 4
#define UICOMMANDDESCRIPTION_PROPERTIES_TOGGLEBUTTON 8 #define UICOMMANDDESCRIPTION_PROPERTIES_TOGGLEBUTTON 8
/** properties for "AutoRecovery" class */ /** properties for "AutoRecovery" class */
#define AUTORECOVERY_PROPNAME_ASCII_EXISTS_RECOVERYDATA "ExistsRecoveryData" #define AUTORECOVERY_PROPNAME_ASCII_EXISTS_RECOVERYDATA "ExistsRecoveryData"
@ -216,14 +209,12 @@ namespace framework{
#define AUTORECOVERY_PROPCOUNT 3 #define AUTORECOVERY_PROPCOUNT 3
/** properties for Filter config */ /** properties for Filter config */
#define FILTER_PROPNAME_ASCII_DOCUMENTSERVICE "DocumentService" #define FILTER_PROPNAME_ASCII_DOCUMENTSERVICE "DocumentService"
#define FILTER_PROPNAME_DOCUMENTSERVICE OUString( FILTER_PROPNAME_ASCII_DOCUMENTSERVICE ) #define FILTER_PROPNAME_DOCUMENTSERVICE OUString( FILTER_PROPNAME_ASCII_DOCUMENTSERVICE )
/** properties for office module config (Setup.xcu) */ /** properties for office module config (Setup.xcu) */
#define OFFICEFACTORY_PROPNAME_ASCII_WINDOWATTRIBUTES "ooSetupFactoryWindowAttributes" #define OFFICEFACTORY_PROPNAME_ASCII_WINDOWATTRIBUTES "ooSetupFactoryWindowAttributes"
@ -234,7 +225,6 @@ namespace framework{
#define OFFICEFACTORY_PROPNAME_UINAME OUString( OFFICEFACTORY_PROPNAME_ASCII_UINAME ) #define OFFICEFACTORY_PROPNAME_UINAME OUString( OFFICEFACTORY_PROPNAME_ASCII_UINAME )
#define OFFICEFACTORY_PROPNAME_ICON OUString( OFFICEFACTORY_PROPNAME_ASCII_ICON ) #define OFFICEFACTORY_PROPNAME_ICON OUString( OFFICEFACTORY_PROPNAME_ASCII_ICON )
/** properties for tab window (old) */ /** properties for tab window (old) */
#define TABWINDOW_PROPNAME_ASCII_PARENTWINDOW "ParentWindow" #define TABWINDOW_PROPNAME_ASCII_PARENTWINDOW "ParentWindow"
#define TABWINDOW_PROPNAME_ASCII_TOPWINDOW "TopWindow" #define TABWINDOW_PROPNAME_ASCII_TOPWINDOW "TopWindow"
@ -248,15 +238,12 @@ namespace framework{
#define TABWINDOWSERVICE_PROPHANDLE_WINDOW 0 #define TABWINDOWSERVICE_PROPHANDLE_WINDOW 0
#define TABWINDOWSERVICE_PROPCOUNT 1 #define TABWINDOWSERVICE_PROPCOUNT 1
/** provides some helper methods to implement property sets. */ /** provides some helper methods to implement property sets. */
class PropHelper class PropHelper
{ {
public: public:
/** checks if given property will be changed by this settings. /** checks if given property will be changed by this settings.
* We compare the content of the given any values. If they are different we return sal_True - sal_False otherwise. * We compare the content of the given any values. If they are different we return sal_True - sal_False otherwise.
* *

View File

@ -26,7 +26,6 @@
namespace framework{ namespace framework{
/** /**
some protocols must be checked during loading or dispatching URLs manually some protocols must be checked during loading or dispatching URLs manually
It can be necessary to decide, if a URL represent a non visible content or It can be necessary to decide, if a URL represent a non visible content or
@ -58,7 +57,6 @@ class ProtocolCheck
{ {
public: public:
/** /**
enums for well known protocols enums for well known protocols
*/ */
@ -77,7 +75,6 @@ class ProtocolCheck
E_NEWS E_NEWS
}; };
/** /**
it checks, if the given URL string match one of the well known protocols. it checks, if the given URL string match one of the well known protocols.
It returns the right enum value. It returns the right enum value.
@ -120,7 +117,6 @@ class ProtocolCheck
return E_UNKNOWN_PROTOCOL; return E_UNKNOWN_PROTOCOL;
} }
/** /**
it checks if given URL match the required protocol only it checks if given URL match the required protocol only
It should be used instead of specifyProtocol() if only this question It should be used instead of specifyProtocol() if only this question

View File

@ -89,7 +89,6 @@ class QueryBuilder
resetAll(); resetAll();
} }
// returns full query as copy of internal set values // returns full query as copy of internal set values
OUString getQuery() OUString getQuery()
@ -99,7 +98,6 @@ class QueryBuilder
return sCopy.makeStringAndClear(); return sCopy.makeStringAndClear();
} }
// set new or change existing base query part // set new or change existing base query part
void setBase( const OUString& sBase ) void setBase( const OUString& sBase )
@ -107,7 +105,6 @@ class QueryBuilder
m_sBase = sBase; m_sBase = sBase;
} }
// add new parameter (with optional value) to param list // add new parameter (with optional value) to param list
void addParam( const OUString& sParam, const OUString& sValue = OUString() ) void addParam( const OUString& sParam, const OUString& sValue = OUString() )
@ -121,7 +118,6 @@ class QueryBuilder
} }
} }
// forget all setted params and start with empty ones // forget all setted params and start with empty ones
// Attention: base of query isn't changed! // Attention: base of query isn't changed!
@ -131,7 +127,6 @@ class QueryBuilder
m_sParams.ensureCapacity( 256 ); m_sParams.ensureCapacity( 256 );
} }
// start with new empty query // start with new empty query
void resetAll() void resetAll()
@ -153,7 +148,6 @@ class QueryAnalyzer
{ {
public: public:
// it's will not perform to compare strings as query type ... // it's will not perform to compare strings as query type ...
// so we convert it into these enum values. // so we convert it into these enum values.
// default = E_ALL! // default = E_ALL!
@ -172,7 +166,6 @@ class QueryAnalyzer
E_GRAPHICS E_GRAPHICS
}; };
// these are valid values for param "sort_prop". // these are valid values for param "sort_prop".
// other ones are not supported! // other ones are not supported!
// default = E_NAME // default = E_NAME
@ -183,7 +176,6 @@ class QueryAnalyzer
E_UINAME E_UINAME
}; };
// analyze given query and split it into his different parts; <base>:<param1>:<param2=value>... // analyze given query and split it into his different parts; <base>:<param1>:<param2=value>...
QueryAnalyzer(const OUString& sQuery) QueryAnalyzer(const OUString& sQuery)
@ -320,13 +312,11 @@ class QueryAnalyzer
} }
} }
// return type of query. User can decide then, which action should be started. // return type of query. User can decide then, which action should be started.
// For faster work we converted query string into corresponding enum value! // For faster work we converted query string into corresponding enum value!
EQuery getQueryType() const { return m_eQuery; } EQuery getQueryType() const { return m_eQuery; }
// access to additional parameter values // access to additional parameter values
// Methods return default of really set values! // Methods return default of really set values!
@ -338,7 +328,6 @@ class QueryAnalyzer
sal_Bool getUseOrder () const { return m_bUseOrder ; } sal_Bool getUseOrder () const { return m_bUseOrder ; }
sal_Bool getDefaultFirst () const { return m_bDefaultFirst ; } sal_Bool getDefaultFirst () const { return m_bDefaultFirst ; }
// this method checks if given string match any supported query. // this method checks if given string match any supported query.
// (ignore additional parameters!) // (ignore additional parameters!)

View File

@ -53,7 +53,6 @@ class DispatchRecorderSupplier : public ::cppu::WeakImplHelper2<
private: private:
/** provided dispatch recorder of this supplier instance /** provided dispatch recorder of this supplier instance
@life Is controled from outside. Because this variable is setted @life Is controled from outside. Because this variable is setted
@ -62,17 +61,14 @@ class DispatchRecorderSupplier : public ::cppu::WeakImplHelper2<
*/ */
css::uno::Reference< css::frame::XDispatchRecorder > m_xDispatchRecorder; css::uno::Reference< css::frame::XDispatchRecorder > m_xDispatchRecorder;
// uno interface // uno interface
public: public:
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO
// XDispatchRecorderSupplier // XDispatchRecorderSupplier
virtual void SAL_CALL setDispatchRecorder( const css::uno::Reference< css::frame::XDispatchRecorder >& xRecorder ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL setDispatchRecorder( const css::uno::Reference< css::frame::XDispatchRecorder >& xRecorder ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
@ -81,7 +77,6 @@ class DispatchRecorderSupplier : public ::cppu::WeakImplHelper2<
const css::uno::Sequence< css::beans::PropertyValue >& lArguments , const css::uno::Sequence< css::beans::PropertyValue >& lArguments ,
const css::uno::Reference< css::frame::XDispatch >& xDispatcher ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; const css::uno::Reference< css::frame::XDispatch >& xDispatcher ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// native interface // native interface
public: public:

View File

@ -24,10 +24,8 @@
namespace framework{ namespace framework{
// used servicenames by framework // used servicenames by framework
#define SERVICENAME_FILTERFACTORY DECLARE_ASCII("com.sun.star.document.FilterFactory" ) #define SERVICENAME_FILTERFACTORY DECLARE_ASCII("com.sun.star.document.FilterFactory" )
#define SERVICENAME_CFGUPDATEACCESS DECLARE_ASCII("com.sun.star.configuration.ConfigurationUpdateAccess") // provides read/write access to the configuration #define SERVICENAME_CFGUPDATEACCESS DECLARE_ASCII("com.sun.star.configuration.ConfigurationUpdateAccess") // provides read/write access to the configuration
#define SERVICENAME_CFGREADACCESS DECLARE_ASCII("com.sun.star.configuration.ConfigurationAccess" ) // provides readonly access to the configuration #define SERVICENAME_CFGREADACCESS DECLARE_ASCII("com.sun.star.configuration.ConfigurationAccess" ) // provides readonly access to the configuration
@ -47,10 +45,8 @@ namespace framework{
#define SERVICENAME_STRINGABBREVIATION DECLARE_ASCII("com.sun.star.util.UriAbbreviation" ) #define SERVICENAME_STRINGABBREVIATION DECLARE_ASCII("com.sun.star.util.UriAbbreviation" )
#define SERVICENAME_TABWINDOWSERVICE DECLARE_ASCII("com.sun.star.ui.dialogs.TabContainerWindow" ) #define SERVICENAME_TABWINDOWSERVICE DECLARE_ASCII("com.sun.star.ui.dialogs.TabContainerWindow" )
// used implementationnames by framework // used implementationnames by framework
#define IMPLEMENTATIONNAME_DESKTOP DECLARE_ASCII("com.sun.star.comp.framework.Desktop" ) #define IMPLEMENTATIONNAME_DESKTOP DECLARE_ASCII("com.sun.star.comp.framework.Desktop" )
#define IMPLEMENTATIONNAME_URLTRANSFORMER DECLARE_ASCII("com.sun.star.comp.framework.URLTransformer" ) #define IMPLEMENTATIONNAME_URLTRANSFORMER DECLARE_ASCII("com.sun.star.comp.framework.URLTransformer" )
#define IMPLEMENTATIONNAME_MEDIATYPEDETECTIONHELPER DECLARE_ASCII("com.sun.star.comp.framework.MediaTypeDetectionHelper") #define IMPLEMENTATIONNAME_MEDIATYPEDETECTIONHELPER DECLARE_ASCII("com.sun.star.comp.framework.MediaTypeDetectionHelper")

View File

@ -104,7 +104,6 @@ class Desktop : private cppu::BaseMutex,
// internal used types, const etcpp. // internal used types, const etcpp.
private: private:
/** used temporary to know which listener was already called or not. */ /** used temporary to know which listener was already called or not. */
typedef ::std::vector< css::uno::Reference< css::frame::XTerminateListener > > TTerminateListenerList; typedef ::std::vector< css::uno::Reference< css::frame::XTerminateListener > > TTerminateListenerList;
@ -137,7 +136,6 @@ class Desktop : private cppu::BaseMutex,
// XTypeProvider // XTypeProvider
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
/** /**
@interface XDesktop @interface XDesktop
@ -169,7 +167,6 @@ class Desktop : private cppu::BaseMutex,
virtual sal_Bool SAL_CALL terminate() virtual sal_Bool SAL_CALL terminate()
throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
/** /**
@interface XDesktop @interface XDesktop
@ -192,7 +189,6 @@ class Desktop : private cppu::BaseMutex,
virtual void SAL_CALL addTerminateListener( const css::uno::Reference< css::frame::XTerminateListener >& xListener ) virtual void SAL_CALL addTerminateListener( const css::uno::Reference< css::frame::XTerminateListener >& xListener )
throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
/** /**
@interface XDesktop @interface XDesktop
@ -322,7 +318,6 @@ class Desktop : private cppu::BaseMutex,
virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper ( ) SAL_OVERRIDE; virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper ( ) SAL_OVERRIDE;
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo ( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo ( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// private methods // private methods
private: private:
@ -330,7 +325,6 @@ class Desktop : private cppu::BaseMutex,
css::uno::Reference< css::lang::XComponent > impl_getFrameComponent ( const css::uno::Reference< css::frame::XFrame >& xFrame ) const; css::uno::Reference< css::lang::XComponent > impl_getFrameComponent ( const css::uno::Reference< css::frame::XFrame >& xFrame ) const;
static const css::uno::Sequence< css::beans::Property > impl_getStaticPropertyDescriptor( ); static const css::uno::Sequence< css::beans::Property > impl_getStaticPropertyDescriptor( );
/** calls queryTermination() on every registered termination listener. /** calls queryTermination() on every registered termination listener.
* *
* Note: Only normal termination listener (registered in list m_aListenerContainer * Note: Only normal termination listener (registered in list m_aListenerContainer
@ -351,7 +345,6 @@ class Desktop : private cppu::BaseMutex,
void impl_sendQueryTerminationEvent(TTerminateListenerList& lCalledListener, void impl_sendQueryTerminationEvent(TTerminateListenerList& lCalledListener,
sal_Bool& bVeto ); sal_Bool& bVeto );
/** calls cancelTermination() on every termination listener /** calls cancelTermination() on every termination listener
* where queryTermination() was called before. * where queryTermination() was called before.
* *
@ -367,7 +360,6 @@ class Desktop : private cppu::BaseMutex,
*/ */
void impl_sendCancelTerminationEvent(const TTerminateListenerList& lCalledListener); void impl_sendCancelTerminationEvent(const TTerminateListenerList& lCalledListener);
/** calls notifyTermination() on every registered termination listener. /** calls notifyTermination() on every registered termination listener.
* *
* Note: Only normal termination listener (registered in list m_aListenerContainer * Note: Only normal termination listener (registered in list m_aListenerContainer
@ -376,7 +368,6 @@ class Desktop : private cppu::BaseMutex,
*/ */
void impl_sendNotifyTerminationEvent(); void impl_sendNotifyTerminationEvent();
/** try to close all open frames. /** try to close all open frames.
* *
* Iterates over all child frames and try to close them. * Iterates over all child frames and try to close them.
@ -394,7 +385,6 @@ class Desktop : private cppu::BaseMutex,
*/ */
sal_Bool impl_closeFrames(sal_Bool bAllowUI); sal_Bool impl_closeFrames(sal_Bool bAllowUI);
// debug methods // debug methods
// (should be private everytime!) // (should be private everytime!)
@ -406,7 +396,6 @@ class Desktop : private cppu::BaseMutex,
sal_Bool m_bIsTerminated ; /// check flag to protect us against dispose before terminate! sal_Bool m_bIsTerminated ; /// check flag to protect us against dispose before terminate!
/// see dispose() for further information! /// see dispose() for further information!
// variables // variables
// (should be private everytime!) // (should be private everytime!)
@ -426,13 +415,11 @@ class Desktop : private cppu::BaseMutex,
OUString m_sTitle ; OUString m_sTitle ;
css::uno::Reference< css::frame::XDispatchRecorderSupplier > m_xDispatchRecorderSupplier ; css::uno::Reference< css::frame::XDispatchRecorderSupplier > m_xDispatchRecorderSupplier ;
/** special terminate listener to close pipe and block external requests /** special terminate listener to close pipe and block external requests
* during/after termination process is/was running * during/after termination process is/was running
*/ */
css::uno::Reference< css::frame::XTerminateListener > m_xPipeTerminator; css::uno::Reference< css::frame::XTerminateListener > m_xPipeTerminator;
/** special terminate listener shown inside system tray (quick starter) /** special terminate listener shown inside system tray (quick starter)
* Will hinder the office on shutdown ... but wish to allow closing * Will hinder the office on shutdown ... but wish to allow closing
* of open documents. And because thats different to a normal terminate listener * of open documents. And because thats different to a normal terminate listener
@ -440,7 +427,6 @@ class Desktop : private cppu::BaseMutex,
*/ */
css::uno::Reference< css::frame::XTerminateListener > m_xQuickLauncher; css::uno::Reference< css::frame::XTerminateListener > m_xQuickLauncher;
/** special terminate listener which loads images asynchronous for current open documents. /** special terminate listener which loads images asynchronous for current open documents.
* Because internally it uses blocking system APIs ... it cant be guaranteed that * Because internally it uses blocking system APIs ... it cant be guaranteed that
* running jobs can be cancelled successfully if the corressponding document will be closed ... * running jobs can be cancelled successfully if the corressponding document will be closed ...
@ -450,7 +436,6 @@ class Desktop : private cppu::BaseMutex,
*/ */
css::uno::Reference< css::frame::XTerminateListener > m_xSWThreadManager; css::uno::Reference< css::frame::XTerminateListener > m_xSWThreadManager;
/** special terminate listener shuting down the SfxApplication. /** special terminate listener shuting down the SfxApplication.
* Because these desktop instance closes documents and informs listener * Because these desktop instance closes documents and informs listener
* only ... it does not really shutdown the whole application. * only ... it does not really shutdown the whole application.

View File

@ -48,7 +48,6 @@ namespace framework{
class DispatchHelper : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::XServiceInfo,::com::sun::star::frame::XDispatchHelper,::com::sun::star::frame::XDispatchResultListener > class DispatchHelper : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::XServiceInfo,::com::sun::star::frame::XDispatchHelper,::com::sun::star::frame::XDispatchResultListener >
{ {
// member // member
private: private:
@ -66,23 +65,19 @@ class DispatchHelper : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::X
css::uno::Reference< css::uno::XInterface > m_xBroadcaster; css::uno::Reference< css::uno::XInterface > m_xBroadcaster;
// interface // interface
public: public:
// ctor/dtor // ctor/dtor
DispatchHelper( const css::uno::Reference< css::uno::XComponentContext >& xContext ); DispatchHelper( const css::uno::Reference< css::uno::XComponentContext >& xContext );
virtual ~DispatchHelper( ); virtual ~DispatchHelper( );
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO
// XDispatchHelper // XDispatchHelper
virtual css::uno::Any SAL_CALL executeDispatch( virtual css::uno::Any SAL_CALL executeDispatch(
const css::uno::Reference< css::frame::XDispatchProvider >& xDispatchProvider , const css::uno::Reference< css::frame::XDispatchProvider >& xDispatchProvider ,
@ -92,13 +87,11 @@ class DispatchHelper : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::X
const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) const css::uno::Sequence< css::beans::PropertyValue >& lArguments )
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XDispatchResultListener // XDispatchResultListener
virtual void SAL_CALL dispatchFinished( virtual void SAL_CALL dispatchFinished(
const css::frame::DispatchResultEvent& aResult ) const css::frame::DispatchResultEvent& aResult )
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XEventListener // XEventListener
virtual void SAL_CALL disposing( virtual void SAL_CALL disposing(
const css::lang::EventObject& aEvent ) const css::lang::EventObject& aEvent )

View File

@ -107,7 +107,6 @@ namespace framework
return aSeq; return aSeq;
} }
// XLayoutManager // XLayoutManager
virtual void SAL_CALL attachFrame( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& Frame ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL attachFrame( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& Frame ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL reset() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL reset() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
@ -147,7 +146,6 @@ namespace framework
throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL removeMergedMenuBar( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL removeMergedMenuBar( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XWindowListener // XWindowListener
virtual void SAL_CALL windowResized( const css::awt::WindowEvent& aEvent ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual void SAL_CALL windowResized( const css::awt::WindowEvent& aEvent ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
virtual void SAL_CALL windowMoved( const css::awt::WindowEvent& aEvent ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual void SAL_CALL windowMoved( const css::awt::WindowEvent& aEvent ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
@ -161,7 +159,6 @@ namespace framework
using cppu::OPropertySetHelper::disposing; using cppu::OPropertySetHelper::disposing;
virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// XUIConfigurationListener // XUIConfigurationListener
virtual void SAL_CALL elementInserted( const ::com::sun::star::ui::ConfigurationEvent& Event ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL elementInserted( const ::com::sun::star::ui::ConfigurationEvent& Event ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL elementRemoved( const ::com::sun::star::ui::ConfigurationEvent& Event ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL elementRemoved( const ::com::sun::star::ui::ConfigurationEvent& Event ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
@ -174,7 +171,6 @@ namespace framework
DECL_LINK(MenuBarClose, void *); DECL_LINK(MenuBarClose, void *);
DECL_LINK( WindowEventListener, VclSimpleEvent* ); DECL_LINK( WindowEventListener, VclSimpleEvent* );
// ILayoutNotifications // ILayoutNotifications
virtual void requestLayout( Hint eHint ) SAL_OVERRIDE; virtual void requestLayout( Hint eHint ) SAL_OVERRIDE;
@ -192,8 +188,6 @@ namespace framework
// helper // helper
// menu bar // menu bar
void impl_clearUpMenuBar(); void impl_clearUpMenuBar();
@ -201,13 +195,11 @@ namespace framework
void implts_updateMenuBarClose(); void implts_updateMenuBarClose();
sal_Bool implts_resetMenuBar(); sal_Bool implts_resetMenuBar();
// locking // locking
void implts_lock(); void implts_lock();
sal_Bool implts_unlock(); sal_Bool implts_unlock();
// query // query
::com::sun::star::uno::Reference< ::com::sun::star::ui::XUIElement > implts_findElement( const OUString& aName ); ::com::sun::star::uno::Reference< ::com::sun::star::ui::XUIElement > implts_findElement( const OUString& aName );
@ -266,7 +258,6 @@ namespace framework
DECL_LINK( OptionsChanged, void* ); DECL_LINK( OptionsChanged, void* );
DECL_LINK( SettingsChanged, void* ); DECL_LINK( SettingsChanged, void* );
// OPropertySetHelper // OPropertySetHelper
virtual sal_Bool SAL_CALL convertFastPropertyValue ( com::sun::star::uno::Any& aConvertedValue , virtual sal_Bool SAL_CALL convertFastPropertyValue ( com::sun::star::uno::Any& aConvertedValue ,

View File

@ -32,7 +32,6 @@
// namespaces // namespaces
namespace framework{ namespace framework{
/*-************************************************************************************************************ /*-************************************************************************************************************
@ -53,13 +52,10 @@ class MediaTypeDetectionHelper : public ::cppu::WeakImplHelper2< ::com::sun::
// public methods // public methods
public: public:
// constructor / destructor // constructor / destructor
/*-**************************************************************************************************** /*-****************************************************************************************************
@short standard ctor @short standard ctor
@descr These initialize a new instance of this class with all needed information for work. @descr These initialize a new instance of this class with all needed information for work.
@ -88,16 +84,12 @@ class MediaTypeDetectionHelper : public ::cppu::WeakImplHelper2< ::com::sun::
virtual ~MediaTypeDetectionHelper(); virtual ~MediaTypeDetectionHelper();
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DECLARE_XSERVICEINFO DECLARE_XSERVICEINFO
// XStringMapping // XStringMapping
/*-**************************************************************************************************** /*-****************************************************************************************************
@short - @short -
@descr - @descr -
@ -113,11 +105,9 @@ class MediaTypeDetectionHelper : public ::cppu::WeakImplHelper2< ::com::sun::
virtual sal_Bool SAL_CALL mapStrings(css::uno::Sequence< OUString >& seqParameter) virtual sal_Bool SAL_CALL mapStrings(css::uno::Sequence< OUString >& seqParameter)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// variables // variables
// should be private every time // should be private every time
private: private:
css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory; /// reference to global servicemanager css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory; /// reference to global servicemanager

View File

@ -79,8 +79,6 @@ struct KeyEventEqualsFunc
} }
}; };
/** /**
Basic string list based on a std::vector() Basic string list based on a std::vector()
It implements some additional funtionality which can be useful but It implements some additional funtionality which can be useful but
@ -114,8 +112,6 @@ class OUStringList : public ::comphelper::SequenceAsVector< OUString >
} }
}; };
/** /**
Basic string queue based on a std::queue() Basic string queue based on a std::queue()
It implements some additional funtionality which can be useful but It implements some additional funtionality which can be useful but
@ -123,8 +119,6 @@ class OUStringList : public ::comphelper::SequenceAsVector< OUString >
*/ */
typedef ::std::queue< OUString > OUStringQueue; typedef ::std::queue< OUString > OUStringQueue;
/** /**
Basic hash based on a boost::unordered_map() which provides key=[OUString] and value=[template type] pairs Basic hash based on a boost::unordered_map() which provides key=[OUString] and value=[template type] pairs
It implements some additional funtionality which can be useful but It implements some additional funtionality which can be useful but
@ -145,16 +139,12 @@ class BaseHash : public ::boost::unordered_map< OUString ,
} }
}; };
/** /**
Basic OUString hash. Basic OUString hash.
Key and values are OUStrings. Key and values are OUStrings.
*/ */
typedef BaseHash< OUString > OUStringHashMap; typedef BaseHash< OUString > OUStringHashMap;
/** /**
It can be used to map names (e.g. of properties) to her corresponding handles. It can be used to map names (e.g. of properties) to her corresponding handles.
Our helper class OPropertySetHelper works optimized with handles but sometimes we have only a property name. Our helper class OPropertySetHelper works optimized with handles but sometimes we have only a property name.
@ -162,8 +152,6 @@ typedef BaseHash< OUString > OUStringHashMap;
*/ */
typedef BaseHash< sal_Int32 > NameToHandleHash; typedef BaseHash< sal_Int32 > NameToHandleHash;
/** /**
Sometimes we need this template to implement listener container ... Sometimes we need this template to implement listener container ...
and we need it at different positions ... and we need it at different positions ...

View File

@ -72,7 +72,6 @@ class TabWindow : public ::com::sun::star::lang::XTypeProvider ,
using ::cppu::OPropertySetHelper::disposing; using ::cppu::OPropertySetHelper::disposing;
using ::cppu::OPropertySetHelper::getFastPropertyValue; using ::cppu::OPropertySetHelper::getFastPropertyValue;
// XInitialization // XInitialization
virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
@ -91,7 +90,6 @@ class TabWindow : public ::com::sun::star::lang::XTypeProvider ,
virtual void SAL_CALL addTabListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabListener >& Listener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL addTabListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabListener >& Listener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL removeTabListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabListener >& Listener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL removeTabListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabListener >& Listener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XEventListener // XEventListener
virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;

View File

@ -24,10 +24,8 @@
namespace framework{ namespace framework{
// Values for special frame search ... sTargetFrameName of findFrame() or queryDispatch() or loadComponentFromURL() // Values for special frame search ... sTargetFrameName of findFrame() or queryDispatch() or loadComponentFromURL()
#define SPECIALTARGET_ASCII_SELF "_self" // The frame himself is searched. #define SPECIALTARGET_ASCII_SELF "_self" // The frame himself is searched.
#define SPECIALTARGET_ASCII_PARENT "_parent" // The direct parent frame is searched. #define SPECIALTARGET_ASCII_PARENT "_parent" // The direct parent frame is searched.
#define SPECIALTARGET_ASCII_TOP "_top" // Search at ouer parents for the first task (if any exist) or a frame without a parent. #define SPECIALTARGET_ASCII_TOP "_top" // Search at ouer parents for the first task (if any exist) or a frame without a parent.

View File

@ -199,7 +199,6 @@ class Gate : public IGate
return bSuccessful; return bSuccessful;
} }
// private member // private member
private: private:

View File

@ -122,7 +122,6 @@ class TransactionGuard : private boost::noncopyable
} }
} }
// private methods // private methods
private: private:
@ -141,7 +140,6 @@ class TransactionGuard : private boost::noncopyable
*//*-*****************************************************************************************************/ *//*-*****************************************************************************************************/
TransactionGuard(); TransactionGuard();
// private member // private member
private: private:

View File

@ -63,14 +63,12 @@ class FWI_DLLPUBLIC TransactionManager : public ITransactionManager
virtual void registerTransaction ( EExceptionMode eMode, ERejectReason& eReason ) throw( css::uno::RuntimeException, css::lang::DisposedException ) SAL_OVERRIDE; virtual void registerTransaction ( EExceptionMode eMode, ERejectReason& eReason ) throw( css::uno::RuntimeException, css::lang::DisposedException ) SAL_OVERRIDE;
virtual void unregisterTransaction ( ) throw( css::uno::RuntimeException, css::lang::DisposedException ) SAL_OVERRIDE; virtual void unregisterTransaction ( ) throw( css::uno::RuntimeException, css::lang::DisposedException ) SAL_OVERRIDE;
// private methods // private methods
private: private:
void impl_throwExceptions( EExceptionMode eMode, ERejectReason eReason ) const throw( css::uno::RuntimeException, css::lang::DisposedException ); void impl_throwExceptions( EExceptionMode eMode, ERejectReason eReason ) const throw( css::uno::RuntimeException, css::lang::DisposedException );
// private member // private member
private: private:

View File

@ -20,7 +20,6 @@
#ifndef INCLUDED_FRAMEWORK_INC_UICONFIGURATION_IMAGEMANAGER_HXX #ifndef INCLUDED_FRAMEWORK_INC_UICONFIGURATION_IMAGEMANAGER_HXX
#define INCLUDED_FRAMEWORK_INC_UICONFIGURATION_IMAGEMANAGER_HXX #define INCLUDED_FRAMEWORK_INC_UICONFIGURATION_IMAGEMANAGER_HXX
#include <boost/unordered_map.hpp> #include <boost/unordered_map.hpp>
#include <memory> #include <memory>

View File

@ -20,7 +20,6 @@
#ifndef INCLUDED_FRAMEWORK_INC_UICONFIGURATION_MODULEIMAGEMANAGER_HXX #ifndef INCLUDED_FRAMEWORK_INC_UICONFIGURATION_MODULEIMAGEMANAGER_HXX
#define INCLUDED_FRAMEWORK_INC_UICONFIGURATION_MODULEIMAGEMANAGER_HXX #define INCLUDED_FRAMEWORK_INC_UICONFIGURATION_MODULEIMAGEMANAGER_HXX
/** Attention: stl headers must(!) be included at first. Otherwise it can make trouble /** Attention: stl headers must(!) be included at first. Otherwise it can make trouble
with solaris headers ... with solaris headers ...
*/ */

View File

@ -48,7 +48,6 @@ class FWI_DLLPUBLIC ItemContainer : public ::cppu::WeakImplHelper1< ::com::sun
ItemContainer( const com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess >& rItemAccessContainer, const ShareableMutex& rMutex ); ItemContainer( const com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess >& rItemAccessContainer, const ShareableMutex& rMutex );
virtual ~ItemContainer(); virtual ~ItemContainer();
// XInterface, XTypeProvider // XInterface, XTypeProvider
// XUnoTunnel // XUnoTunnel

View File

@ -170,8 +170,6 @@ class MenuBarManager : public com::sun::star::frame::XStatusListener
private: private:
void Destroy(); void Destroy();
struct MenuItemHandler struct MenuItemHandler

View File

@ -43,7 +43,6 @@ class MenuBarWrapper : public UIConfigElementWrapperBase,
const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& xContext ); const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& xContext );
virtual ~MenuBarWrapper(); virtual ~MenuBarWrapper();
// XInterface, XTypeProvider // XInterface, XTypeProvider
FWK_DECLARE_XINTERFACE FWK_DECLARE_XINTERFACE

View File

@ -66,7 +66,6 @@ class ProgressBarWrapper : public UIElementWrapperBase
// XUIElement // XUIElement
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getRealInterface() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getRealInterface() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// variables // variables
// (should be private everyway!) // (should be private everyway!)

View File

@ -61,7 +61,6 @@ class RootItemContainer : private cppu::BaseMutex,
FWI_DLLPUBLIC RootItemContainer( const com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess >& rItemAccessContainer ); FWI_DLLPUBLIC RootItemContainer( const com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess >& rItemAccessContainer );
virtual FWI_DLLPUBLIC ~RootItemContainer(); virtual FWI_DLLPUBLIC ~RootItemContainer();
// XInterface // XInterface
virtual void SAL_CALL acquire() throw () SAL_OVERRIDE virtual void SAL_CALL acquire() throw () SAL_OVERRIDE
{ OWeakObject::acquire(); } { OWeakObject::acquire(); }

View File

@ -42,7 +42,6 @@ class StatusIndicatorInterfaceWrapper : public ::cppu::WeakImplHelper1< ::com:
StatusIndicatorInterfaceWrapper( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& rStatusIndicatorImpl ); StatusIndicatorInterfaceWrapper( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& rStatusIndicatorImpl );
virtual ~StatusIndicatorInterfaceWrapper(); virtual ~StatusIndicatorInterfaceWrapper();
// XStatusIndicator // XStatusIndicator
virtual void SAL_CALL start ( const OUString& sText , virtual void SAL_CALL start ( const OUString& sText ,

View File

@ -66,7 +66,6 @@ class ToolBarWrapper : public ::com::sun::star::ui::XUIFunctionListener,
using cppu::OPropertySetHelper::disposing; using cppu::OPropertySetHelper::disposing;
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// protected methods // protected methods
protected: protected:

View File

@ -34,14 +34,11 @@
#include <cppuhelper/implbase1.hxx> #include <cppuhelper/implbase1.hxx>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
// Namespace // Namespace
namespace framework namespace framework
{ {
// Configuration access class for PopupMenuControllerFactory implementation // Configuration access class for PopupMenuControllerFactory implementation
class ConfigurationAccess_ControllerFactory : // interfaces class ConfigurationAccess_ControllerFactory : // interfaces

View File

@ -42,7 +42,6 @@ class AcceleratorConfigurationReader : public ::cppu::WeakImplHelper1< css::xml:
private: private:
/** @short classification of XML elements. */ /** @short classification of XML elements. */
enum EXMLElement enum EXMLElement
{ {
@ -50,7 +49,6 @@ class AcceleratorConfigurationReader : public ::cppu::WeakImplHelper1< css::xml:
E_ELEMENT_ITEM E_ELEMENT_ITEM
}; };
/** @short classification of XML attributes. */ /** @short classification of XML attributes. */
enum EXMLAttribute enum EXMLAttribute
{ {
@ -62,7 +60,6 @@ class AcceleratorConfigurationReader : public ::cppu::WeakImplHelper1< css::xml:
E_ATTRIBUTE_URL E_ATTRIBUTE_URL
}; };
/** @short some namespace defines */ /** @short some namespace defines */
enum EAcceleratorXMLNamespace enum EAcceleratorXMLNamespace
{ {
@ -70,31 +67,25 @@ class AcceleratorConfigurationReader : public ::cppu::WeakImplHelper1< css::xml:
E_NAMESPACE_XLINK E_NAMESPACE_XLINK
}; };
// member // member
private: private:
/** @short needed to read the xml configuration. */ /** @short needed to read the xml configuration. */
css::uno::Reference< css::xml::sax::XDocumentHandler > m_xReader; css::uno::Reference< css::xml::sax::XDocumentHandler > m_xReader;
/** @short reference to the outside container, where this /** @short reference to the outside container, where this
reader/writer must work on. */ reader/writer must work on. */
AcceleratorCache& m_rContainer; AcceleratorCache& m_rContainer;
/** @short used to detect if an accelerator list /** @short used to detect if an accelerator list
occurs recursive inside xml. */ occurs recursive inside xml. */
sal_Bool m_bInsideAcceleratorList; sal_Bool m_bInsideAcceleratorList;
/** @short used to detect if an accelerator item /** @short used to detect if an accelerator item
occurs recursive inside xml. */ occurs recursive inside xml. */
sal_Bool m_bInsideAcceleratorItem; sal_Bool m_bInsideAcceleratorItem;
/** @short is used to map key codes to its /** @short is used to map key codes to its
string representation. string representation.
@ -103,7 +94,6 @@ class AcceleratorConfigurationReader : public ::cppu::WeakImplHelper1< css::xml:
alive forever ...*/ alive forever ...*/
::salhelper::SingletonRef< KeyMapping > m_rKeyMapping; ::salhelper::SingletonRef< KeyMapping > m_rKeyMapping;
/** @short provide information about the parsing state. /** @short provide information about the parsing state.
@descr We use it to find out the line and column, where @descr We use it to find out the line and column, where
@ -111,12 +101,10 @@ class AcceleratorConfigurationReader : public ::cppu::WeakImplHelper1< css::xml:
*/ */
css::uno::Reference< css::xml::sax::XLocator > m_xLocator; css::uno::Reference< css::xml::sax::XLocator > m_xLocator;
// interface // interface
public: public:
/** @short connect this new reader/writer instance /** @short connect this new reader/writer instance
to an outside container, which should be used to an outside container, which should be used
flushed to the underlying XML configuration or flushed to the underlying XML configuration or
@ -127,11 +115,9 @@ class AcceleratorConfigurationReader : public ::cppu::WeakImplHelper1< css::xml:
*/ */
AcceleratorConfigurationReader(AcceleratorCache& rContainer); AcceleratorConfigurationReader(AcceleratorCache& rContainer);
/** @short does nothing real ... */ /** @short does nothing real ... */
virtual ~AcceleratorConfigurationReader(); virtual ~AcceleratorConfigurationReader();
// XDocumentHandler // XDocumentHandler
virtual void SAL_CALL startDocument() virtual void SAL_CALL startDocument()
throw(css::xml::sax::SAXException, throw(css::xml::sax::SAXException,
@ -167,20 +153,16 @@ class AcceleratorConfigurationReader : public ::cppu::WeakImplHelper1< css::xml:
throw(css::xml::sax::SAXException, throw(css::xml::sax::SAXException,
css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// helper // helper
private: private:
/** TODO document me */ /** TODO document me */
static EXMLElement implst_classifyElement(const OUString& sElement); static EXMLElement implst_classifyElement(const OUString& sElement);
/** TODO document me */ /** TODO document me */
static EXMLAttribute implst_classifyAttribute(const OUString& sAttribute); static EXMLAttribute implst_classifyAttribute(const OUString& sAttribute);
/** TODO document me */ /** TODO document me */
OUString implts_getErrorLineString(); OUString implts_getErrorLineString();
}; };

View File

@ -38,16 +38,13 @@ class AcceleratorConfigurationWriter
private: private:
/** @short needed to write the xml configuration. */ /** @short needed to write the xml configuration. */
css::uno::Reference< css::xml::sax::XDocumentHandler > m_xConfig; css::uno::Reference< css::xml::sax::XDocumentHandler > m_xConfig;
/** @short reference to the outside container, where this /** @short reference to the outside container, where this
writer must work on. */ writer must work on. */
const AcceleratorCache& m_rContainer; const AcceleratorCache& m_rContainer;
/** @short is used to map key codes to its /** @short is used to map key codes to its
string representation. string representation.
@ -56,12 +53,10 @@ class AcceleratorConfigurationWriter
alive forever ...*/ alive forever ...*/
::salhelper::SingletonRef< KeyMapping > m_rKeyMapping; ::salhelper::SingletonRef< KeyMapping > m_rKeyMapping;
// interface // interface
public: public:
/** @short connect this new writer instance /** @short connect this new writer instance
to an outside container, which should be to an outside container, which should be
flushed to the underlying XML configuration. flushed to the underlying XML configuration.
@ -75,20 +70,16 @@ class AcceleratorConfigurationWriter
AcceleratorConfigurationWriter(const AcceleratorCache& rContainer, AcceleratorConfigurationWriter(const AcceleratorCache& rContainer,
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xConfig ); const css::uno::Reference< css::xml::sax::XDocumentHandler >& xConfig );
/** @short does nothing real ... */ /** @short does nothing real ... */
virtual ~AcceleratorConfigurationWriter(); virtual ~AcceleratorConfigurationWriter();
/** @short TODO */ /** @short TODO */
virtual void flush(); virtual void flush();
// helper // helper
private: private:
/** @short TODO */ /** @short TODO */
void impl_ts_writeKeyCommandPair(const css::awt::KeyEvent& aKey , void impl_ts_writeKeyCommandPair(const css::awt::KeyEvent& aKey ,
const OUString& sCommand, const OUString& sCommand,

View File

@ -33,7 +33,6 @@
namespace framework{ namespace framework{
// Hash code function for using in all hash maps of follow implementation. // Hash code function for using in all hash maps of follow implementation.
class OReadImagesDocumentHandler : public ::cppu::WeakImplHelper1< ::com::sun::star::xml::sax::XDocumentHandler > class OReadImagesDocumentHandler : public ::cppu::WeakImplHelper1< ::com::sun::star::xml::sax::XDocumentHandler >

View File

@ -96,7 +96,6 @@ class FWE_DLLPUBLIC ReadMenuDocumentHandlerBase :
::com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > m_aItemProp; ::com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > m_aItemProp;
}; };
class FWE_DLLPUBLIC OReadMenuDocumentHandler : public ReadMenuDocumentHandlerBase class FWE_DLLPUBLIC OReadMenuDocumentHandler : public ReadMenuDocumentHandlerBase
{ {
public: public:
@ -134,7 +133,6 @@ class FWE_DLLPUBLIC OReadMenuDocumentHandler : public ReadMenuDocumentHandlerBas
com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory > m_xContainerFactory; com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory > m_xContainerFactory;
}; // OReadMenuDocumentHandler }; // OReadMenuDocumentHandler
class FWE_DLLPUBLIC OReadMenuBarHandler : public ReadMenuDocumentHandlerBase class FWE_DLLPUBLIC OReadMenuBarHandler : public ReadMenuDocumentHandlerBase
{ {
public: public:
@ -173,7 +171,6 @@ class FWE_DLLPUBLIC OReadMenuBarHandler : public ReadMenuDocumentHandlerBase
com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory > m_xContainerFactory; com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory > m_xContainerFactory;
}; // OReadMenuBarHandler }; // OReadMenuBarHandler
class FWE_DLLPUBLIC OReadMenuHandler : public ReadMenuDocumentHandlerBase class FWE_DLLPUBLIC OReadMenuHandler : public ReadMenuDocumentHandlerBase
{ {
public: public:
@ -211,7 +208,6 @@ class FWE_DLLPUBLIC OReadMenuHandler : public ReadMenuDocumentHandlerBase
com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory > m_xContainerFactory; com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory > m_xContainerFactory;
}; // OReadMenuHandler }; // OReadMenuHandler
class FWE_DLLPUBLIC OReadMenuPopupHandler : public ReadMenuDocumentHandlerBase class FWE_DLLPUBLIC OReadMenuPopupHandler : public ReadMenuDocumentHandlerBase
{ {
public: public:
@ -254,7 +250,6 @@ class FWE_DLLPUBLIC OReadMenuPopupHandler : public ReadMenuDocumentHandlerBase
NextElementClose m_nNextElementExpected; NextElementClose m_nNextElementExpected;
}; // OReadMenuPopupHandler }; // OReadMenuPopupHandler
class FWE_DLLPUBLIC OWriteMenuDocumentHandler class FWE_DLLPUBLIC OWriteMenuDocumentHandler
{ {
public: public:

View File

@ -33,7 +33,6 @@
namespace framework{ namespace framework{
// Hash code function for using in all hash maps of follow implementation. // Hash code function for using in all hash maps of follow implementation.
class FWE_DLLPUBLIC OReadStatusBarDocumentHandler : class FWE_DLLPUBLIC OReadStatusBarDocumentHandler :

View File

@ -32,7 +32,6 @@
namespace framework{ namespace framework{
// Hash code function for using in all hash maps of follow implementation. // Hash code function for using in all hash maps of follow implementation.
class FWE_DLLPUBLIC OReadToolBoxDocumentHandler : class FWE_DLLPUBLIC OReadToolBoxDocumentHandler :
@ -150,7 +149,6 @@ class FWE_DLLPUBLIC OReadToolBoxDocumentHandler :
OUString m_aCommandURL; OUString m_aCommandURL;
}; };
class FWE_DLLPUBLIC OWriteToolBoxDocumentHandler class FWE_DLLPUBLIC OWriteToolBoxDocumentHandler
{ {
public: public:

View File

@ -30,26 +30,22 @@
namespace framework namespace framework
{ {
AcceleratorCache::AcceleratorCache() AcceleratorCache::AcceleratorCache()
{ {
} }
AcceleratorCache::AcceleratorCache(const AcceleratorCache& rCopy) AcceleratorCache::AcceleratorCache(const AcceleratorCache& rCopy)
{ {
m_lCommand2Keys = rCopy.m_lCommand2Keys; m_lCommand2Keys = rCopy.m_lCommand2Keys;
m_lKey2Commands = rCopy.m_lKey2Commands; m_lKey2Commands = rCopy.m_lKey2Commands;
} }
AcceleratorCache::~AcceleratorCache() AcceleratorCache::~AcceleratorCache()
{ {
// Dont save anything automaticly here. // Dont save anything automaticly here.
// The user has to do that explicitly! // The user has to do that explicitly!
} }
void AcceleratorCache::takeOver(const AcceleratorCache& rCopy) void AcceleratorCache::takeOver(const AcceleratorCache& rCopy)
{ {
SolarMutexGuard g; SolarMutexGuard g;
@ -57,28 +53,24 @@ void AcceleratorCache::takeOver(const AcceleratorCache& rCopy)
m_lKey2Commands = rCopy.m_lKey2Commands; m_lKey2Commands = rCopy.m_lKey2Commands;
} }
AcceleratorCache& AcceleratorCache::operator=(const AcceleratorCache& rCopy) AcceleratorCache& AcceleratorCache::operator=(const AcceleratorCache& rCopy)
{ {
takeOver(rCopy); takeOver(rCopy);
return *this; return *this;
} }
sal_Bool AcceleratorCache::hasKey(const css::awt::KeyEvent& aKey) const sal_Bool AcceleratorCache::hasKey(const css::awt::KeyEvent& aKey) const
{ {
SolarMutexGuard g; SolarMutexGuard g;
return (m_lKey2Commands.find(aKey) != m_lKey2Commands.end()); return (m_lKey2Commands.find(aKey) != m_lKey2Commands.end());
} }
sal_Bool AcceleratorCache::hasCommand(const OUString& sCommand) const sal_Bool AcceleratorCache::hasCommand(const OUString& sCommand) const
{ {
SolarMutexGuard g; SolarMutexGuard g;
return (m_lCommand2Keys.find(sCommand) != m_lCommand2Keys.end()); return (m_lCommand2Keys.find(sCommand) != m_lCommand2Keys.end());
} }
AcceleratorCache::TKeyList AcceleratorCache::getAllKeys() const AcceleratorCache::TKeyList AcceleratorCache::getAllKeys() const
{ {
SolarMutexGuard g; SolarMutexGuard g;
@ -97,7 +89,6 @@ AcceleratorCache::TKeyList AcceleratorCache::getAllKeys() const
return lKeys; return lKeys;
} }
void AcceleratorCache::setKeyCommandPair(const css::awt::KeyEvent& aKey , void AcceleratorCache::setKeyCommandPair(const css::awt::KeyEvent& aKey ,
const OUString& sCommand) const OUString& sCommand)
{ {
@ -111,7 +102,6 @@ void AcceleratorCache::setKeyCommandPair(const css::awt::KeyEvent& aKey ,
rKeyList.push_back(aKey); rKeyList.push_back(aKey);
} }
AcceleratorCache::TKeyList AcceleratorCache::getKeysByCommand(const OUString& sCommand) const AcceleratorCache::TKeyList AcceleratorCache::getKeysByCommand(const OUString& sCommand) const
{ {
SolarMutexGuard g; SolarMutexGuard g;
@ -122,7 +112,6 @@ AcceleratorCache::TKeyList AcceleratorCache::getKeysByCommand(const OUString& sC
return pCommand->second; return pCommand->second;
} }
OUString AcceleratorCache::getCommandByKey(const css::awt::KeyEvent& aKey) const OUString AcceleratorCache::getCommandByKey(const css::awt::KeyEvent& aKey) const
{ {
SolarMutexGuard g; SolarMutexGuard g;
@ -133,7 +122,6 @@ OUString AcceleratorCache::getCommandByKey(const css::awt::KeyEvent& aKey) const
return pKey->second; return pKey->second;
} }
void AcceleratorCache::removeKey(const css::awt::KeyEvent& aKey) void AcceleratorCache::removeKey(const css::awt::KeyEvent& aKey)
{ {
SolarMutexGuard g; SolarMutexGuard g;
@ -156,7 +144,6 @@ void AcceleratorCache::removeKey(const css::awt::KeyEvent& aKey)
m_lCommand2Keys.erase(sCommand); m_lCommand2Keys.erase(sCommand);
} }
void AcceleratorCache::removeCommand(const OUString& sCommand) void AcceleratorCache::removeCommand(const OUString& sCommand)
{ {
SolarMutexGuard g; SolarMutexGuard g;

View File

@ -70,7 +70,6 @@ namespace framework
return sKeyBuffer.makeStringAndClear(); return sKeyBuffer.makeStringAndClear();
} }
XMLBasedAcceleratorConfiguration::XMLBasedAcceleratorConfiguration(const css::uno::Reference< css::uno::XComponentContext >& xContext) XMLBasedAcceleratorConfiguration::XMLBasedAcceleratorConfiguration(const css::uno::Reference< css::uno::XComponentContext >& xContext)
: m_xContext (xContext ) : m_xContext (xContext )
, m_aPresetHandler(xContext ) , m_aPresetHandler(xContext )
@ -78,13 +77,11 @@ XMLBasedAcceleratorConfiguration::XMLBasedAcceleratorConfiguration(const css::un
{ {
} }
XMLBasedAcceleratorConfiguration::~XMLBasedAcceleratorConfiguration() XMLBasedAcceleratorConfiguration::~XMLBasedAcceleratorConfiguration()
{ {
SAL_WARN_IF(m_pWriteCache, "fwk", "XMLBasedAcceleratorConfiguration::~XMLBasedAcceleratorConfiguration(): Changes not flushed. Ignore it ..."); SAL_WARN_IF(m_pWriteCache, "fwk", "XMLBasedAcceleratorConfiguration::~XMLBasedAcceleratorConfiguration(): Changes not flushed. Ignore it ...");
} }
css::uno::Sequence< css::awt::KeyEvent > SAL_CALL XMLBasedAcceleratorConfiguration::getAllKeyEvents() css::uno::Sequence< css::awt::KeyEvent > SAL_CALL XMLBasedAcceleratorConfiguration::getAllKeyEvents()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
@ -94,7 +91,6 @@ css::uno::Sequence< css::awt::KeyEvent > SAL_CALL XMLBasedAcceleratorConfigurati
return lKeys.getAsConstList(); return lKeys.getAsConstList();
} }
OUString SAL_CALL XMLBasedAcceleratorConfiguration::getCommandByKeyEvent(const css::awt::KeyEvent& aKeyEvent) OUString SAL_CALL XMLBasedAcceleratorConfiguration::getCommandByKeyEvent(const css::awt::KeyEvent& aKeyEvent)
throw(css::container::NoSuchElementException, throw(css::container::NoSuchElementException,
css::uno::RuntimeException, std::exception ) css::uno::RuntimeException, std::exception )
@ -108,7 +104,6 @@ OUString SAL_CALL XMLBasedAcceleratorConfiguration::getCommandByKeyEvent(const c
return rCache.getCommandByKey(aKeyEvent); return rCache.getCommandByKey(aKeyEvent);
} }
void SAL_CALL XMLBasedAcceleratorConfiguration::setKeyEvent(const css::awt::KeyEvent& aKeyEvent, void SAL_CALL XMLBasedAcceleratorConfiguration::setKeyEvent(const css::awt::KeyEvent& aKeyEvent,
const OUString& sCommand ) const OUString& sCommand )
throw(css::lang::IllegalArgumentException, throw(css::lang::IllegalArgumentException,
@ -136,7 +131,6 @@ void SAL_CALL XMLBasedAcceleratorConfiguration::setKeyEvent(const css::awt::KeyE
rCache.setKeyCommandPair(aKeyEvent, sCommand); rCache.setKeyCommandPair(aKeyEvent, sCommand);
} }
void SAL_CALL XMLBasedAcceleratorConfiguration::removeKeyEvent(const css::awt::KeyEvent& aKeyEvent) void SAL_CALL XMLBasedAcceleratorConfiguration::removeKeyEvent(const css::awt::KeyEvent& aKeyEvent)
throw(css::container::NoSuchElementException, throw(css::container::NoSuchElementException,
css::uno::RuntimeException, std::exception ) css::uno::RuntimeException, std::exception )
@ -150,7 +144,6 @@ throw(css::container::NoSuchElementException,
rCache.removeKey(aKeyEvent); rCache.removeKey(aKeyEvent);
} }
css::uno::Sequence< css::awt::KeyEvent > SAL_CALL XMLBasedAcceleratorConfiguration::getKeyEventsByCommand(const OUString& sCommand) css::uno::Sequence< css::awt::KeyEvent > SAL_CALL XMLBasedAcceleratorConfiguration::getKeyEventsByCommand(const OUString& sCommand)
throw(css::lang::IllegalArgumentException , throw(css::lang::IllegalArgumentException ,
css::container::NoSuchElementException, css::container::NoSuchElementException,
@ -173,7 +166,6 @@ css::uno::Sequence< css::awt::KeyEvent > SAL_CALL XMLBasedAcceleratorConfigurati
return lKeys.getAsConstList(); return lKeys.getAsConstList();
} }
css::uno::Sequence< css::uno::Any > SAL_CALL XMLBasedAcceleratorConfiguration::getPreferredKeyEventsForCommandList(const css::uno::Sequence< OUString >& lCommandList) css::uno::Sequence< css::uno::Any > SAL_CALL XMLBasedAcceleratorConfiguration::getPreferredKeyEventsForCommandList(const css::uno::Sequence< OUString >& lCommandList)
throw(css::lang::IllegalArgumentException , throw(css::lang::IllegalArgumentException ,
css::uno::RuntimeException, std::exception ) css::uno::RuntimeException, std::exception )
@ -208,7 +200,6 @@ css::uno::Sequence< css::uno::Any > SAL_CALL XMLBasedAcceleratorConfiguration::g
return lPreferredOnes; return lPreferredOnes;
} }
void SAL_CALL XMLBasedAcceleratorConfiguration::removeCommandFromAllKeyEvents(const OUString& sCommand) void SAL_CALL XMLBasedAcceleratorConfiguration::removeCommandFromAllKeyEvents(const OUString& sCommand)
throw(css::lang::IllegalArgumentException , throw(css::lang::IllegalArgumentException ,
css::container::NoSuchElementException, css::container::NoSuchElementException,
@ -229,7 +220,6 @@ void SAL_CALL XMLBasedAcceleratorConfiguration::removeCommandFromAllKeyEvents(co
rCache.removeCommand(sCommand); rCache.removeCommand(sCommand);
} }
void SAL_CALL XMLBasedAcceleratorConfiguration::reload() void SAL_CALL XMLBasedAcceleratorConfiguration::reload()
throw(css::uno::Exception , throw(css::uno::Exception ,
css::uno::RuntimeException, std::exception) css::uno::RuntimeException, std::exception)
@ -272,7 +262,6 @@ void SAL_CALL XMLBasedAcceleratorConfiguration::reload()
} }
} }
void SAL_CALL XMLBasedAcceleratorConfiguration::store() void SAL_CALL XMLBasedAcceleratorConfiguration::store()
throw(css::uno::Exception , throw(css::uno::Exception ,
css::uno::RuntimeException, std::exception) css::uno::RuntimeException, std::exception)
@ -300,7 +289,6 @@ void SAL_CALL XMLBasedAcceleratorConfiguration::store()
m_aPresetHandler.commitUserChanges(); m_aPresetHandler.commitUserChanges();
} }
void SAL_CALL XMLBasedAcceleratorConfiguration::storeToStorage(const css::uno::Reference< css::embed::XStorage >& xStorage) void SAL_CALL XMLBasedAcceleratorConfiguration::storeToStorage(const css::uno::Reference< css::embed::XStorage >& xStorage)
throw(css::uno::Exception , throw(css::uno::Exception ,
css::uno::RuntimeException, std::exception) css::uno::RuntimeException, std::exception)
@ -324,7 +312,6 @@ void SAL_CALL XMLBasedAcceleratorConfiguration::storeToStorage(const css::uno::R
// TODO inform listener about success, so it can flush the root and sub storage of this stream! // TODO inform listener about success, so it can flush the root and sub storage of this stream!
} }
sal_Bool SAL_CALL XMLBasedAcceleratorConfiguration::isModified() sal_Bool SAL_CALL XMLBasedAcceleratorConfiguration::isModified()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
@ -332,7 +319,6 @@ sal_Bool SAL_CALL XMLBasedAcceleratorConfiguration::isModified()
return (m_pWriteCache != 0); return (m_pWriteCache != 0);
} }
sal_Bool SAL_CALL XMLBasedAcceleratorConfiguration::isReadOnly() sal_Bool SAL_CALL XMLBasedAcceleratorConfiguration::isReadOnly()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
@ -348,14 +334,12 @@ sal_Bool SAL_CALL XMLBasedAcceleratorConfiguration::isReadOnly()
return !(xOut.is()); return !(xOut.is());
} }
void SAL_CALL XMLBasedAcceleratorConfiguration::setStorage(const css::uno::Reference< css::embed::XStorage >& /*xStorage*/) void SAL_CALL XMLBasedAcceleratorConfiguration::setStorage(const css::uno::Reference< css::embed::XStorage >& /*xStorage*/)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
SAL_INFO("fwk", "XMLBasedAcceleratorConfiguration::setStorage(): implement this HACK .-)"); SAL_INFO("fwk", "XMLBasedAcceleratorConfiguration::setStorage(): implement this HACK .-)");
} }
sal_Bool SAL_CALL XMLBasedAcceleratorConfiguration::hasStorage() sal_Bool SAL_CALL XMLBasedAcceleratorConfiguration::hasStorage()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
@ -363,21 +347,18 @@ sal_Bool SAL_CALL XMLBasedAcceleratorConfiguration::hasStorage()
return sal_False; return sal_False;
} }
void SAL_CALL XMLBasedAcceleratorConfiguration::addConfigurationListener(const css::uno::Reference< css::ui::XUIConfigurationListener >& /*xListener*/) void SAL_CALL XMLBasedAcceleratorConfiguration::addConfigurationListener(const css::uno::Reference< css::ui::XUIConfigurationListener >& /*xListener*/)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
SAL_INFO("fwk", "XMLBasedAcceleratorConfiguration::addConfigurationListener(): implement me"); SAL_INFO("fwk", "XMLBasedAcceleratorConfiguration::addConfigurationListener(): implement me");
} }
void SAL_CALL XMLBasedAcceleratorConfiguration::removeConfigurationListener(const css::uno::Reference< css::ui::XUIConfigurationListener >& /*xListener*/) void SAL_CALL XMLBasedAcceleratorConfiguration::removeConfigurationListener(const css::uno::Reference< css::ui::XUIConfigurationListener >& /*xListener*/)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
SAL_INFO("fwk", "XMLBasedAcceleratorConfiguration::removeConfigurationListener(): implement me"); SAL_INFO("fwk", "XMLBasedAcceleratorConfiguration::removeConfigurationListener(): implement me");
} }
void SAL_CALL XMLBasedAcceleratorConfiguration::reset() void SAL_CALL XMLBasedAcceleratorConfiguration::reset()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
@ -389,28 +370,24 @@ throw(css::uno::RuntimeException, std::exception)
reload(); reload();
} }
void SAL_CALL XMLBasedAcceleratorConfiguration::addResetListener(const css::uno::Reference< css::form::XResetListener >& /*xListener*/) void SAL_CALL XMLBasedAcceleratorConfiguration::addResetListener(const css::uno::Reference< css::form::XResetListener >& /*xListener*/)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
SAL_INFO("fwk", "XMLBasedAcceleratorConfiguration::addResetListener(): implement me"); SAL_INFO("fwk", "XMLBasedAcceleratorConfiguration::addResetListener(): implement me");
} }
void SAL_CALL XMLBasedAcceleratorConfiguration::removeResetListener(const css::uno::Reference< css::form::XResetListener >& /*xListener*/) void SAL_CALL XMLBasedAcceleratorConfiguration::removeResetListener(const css::uno::Reference< css::form::XResetListener >& /*xListener*/)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
SAL_INFO("fwk", "XMLBasedAcceleratorConfiguration::removeResetListener(): implement me"); SAL_INFO("fwk", "XMLBasedAcceleratorConfiguration::removeResetListener(): implement me");
} }
// IStorageListener // IStorageListener
void XMLBasedAcceleratorConfiguration::changesOccurred(const OUString& /*sPath*/) void XMLBasedAcceleratorConfiguration::changesOccurred(const OUString& /*sPath*/)
{ {
reload(); reload();
} }
void XMLBasedAcceleratorConfiguration::impl_ts_load(const css::uno::Reference< css::io::XInputStream >& xStream) void XMLBasedAcceleratorConfiguration::impl_ts_load(const css::uno::Reference< css::io::XInputStream >& xStream)
{ {
css::uno::Reference< css::uno::XComponentContext > xContext; css::uno::Reference< css::uno::XComponentContext > xContext;
@ -452,7 +429,6 @@ void XMLBasedAcceleratorConfiguration::impl_ts_load(const css::uno::Reference< c
xParser->parseStream(aSource); xParser->parseStream(aSource);
} }
void XMLBasedAcceleratorConfiguration::impl_ts_save(const css::uno::Reference< css::io::XOutputStream >& xStream) void XMLBasedAcceleratorConfiguration::impl_ts_save(const css::uno::Reference< css::io::XOutputStream >& xStream)
{ {
sal_Bool bChanged; sal_Bool bChanged;
@ -498,7 +474,6 @@ void XMLBasedAcceleratorConfiguration::impl_ts_save(const css::uno::Reference< c
} }
} }
AcceleratorCache& XMLBasedAcceleratorConfiguration::impl_getCFG(sal_Bool bWriteAccessRequested) AcceleratorCache& XMLBasedAcceleratorConfiguration::impl_getCFG(sal_Bool bWriteAccessRequested)
{ {
SolarMutexGuard g; SolarMutexGuard g;
@ -521,7 +496,6 @@ AcceleratorCache& XMLBasedAcceleratorConfiguration::impl_getCFG(sal_Bool bWriteA
return m_aReadCache; return m_aReadCache;
} }
OUString XMLBasedAcceleratorConfiguration::impl_ts_getLocale() const OUString XMLBasedAcceleratorConfiguration::impl_ts_getLocale() const
{ {
OUString sISOLocale = officecfg::Setup::L10N::ooLocale::get(); OUString sISOLocale = officecfg::Setup::L10N::ooLocale::get();
@ -537,7 +511,6 @@ OUString XMLBasedAcceleratorConfiguration::impl_ts_getLocale() const
* *
*******************************************************************************/ *******************************************************************************/
XCUBasedAcceleratorConfiguration::XCUBasedAcceleratorConfiguration(const css::uno::Reference< css::uno::XComponentContext >& xContext) XCUBasedAcceleratorConfiguration::XCUBasedAcceleratorConfiguration(const css::uno::Reference< css::uno::XComponentContext >& xContext)
: m_xContext (xContext ) : m_xContext (xContext )
, m_pPrimaryWriteCache(0 ) , m_pPrimaryWriteCache(0 )
@ -549,12 +522,10 @@ XCUBasedAcceleratorConfiguration::XCUBasedAcceleratorConfiguration(const css::un
css::uno::UNO_QUERY ); css::uno::UNO_QUERY );
} }
XCUBasedAcceleratorConfiguration::~XCUBasedAcceleratorConfiguration() XCUBasedAcceleratorConfiguration::~XCUBasedAcceleratorConfiguration()
{ {
} }
css::uno::Sequence< css::awt::KeyEvent > SAL_CALL XCUBasedAcceleratorConfiguration::getAllKeyEvents() css::uno::Sequence< css::awt::KeyEvent > SAL_CALL XCUBasedAcceleratorConfiguration::getAllKeyEvents()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
@ -572,7 +543,6 @@ css::uno::Sequence< css::awt::KeyEvent > SAL_CALL XCUBasedAcceleratorConfigurati
return lKeys.getAsConstList(); return lKeys.getAsConstList();
} }
OUString SAL_CALL XCUBasedAcceleratorConfiguration::getCommandByKeyEvent(const css::awt::KeyEvent& aKeyEvent) OUString SAL_CALL XCUBasedAcceleratorConfiguration::getCommandByKeyEvent(const css::awt::KeyEvent& aKeyEvent)
throw(css::container::NoSuchElementException, throw(css::container::NoSuchElementException,
css::uno::RuntimeException, std::exception ) css::uno::RuntimeException, std::exception )
@ -593,7 +563,6 @@ OUString SAL_CALL XCUBasedAcceleratorConfiguration::getCommandByKeyEvent(const c
return rSecondaryCache.getCommandByKey(aKeyEvent); return rSecondaryCache.getCommandByKey(aKeyEvent);
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::setKeyEvent(const css::awt::KeyEvent& aKeyEvent, void SAL_CALL XCUBasedAcceleratorConfiguration::setKeyEvent(const css::awt::KeyEvent& aKeyEvent,
const OUString& sCommand ) const OUString& sCommand )
throw(css::lang::IllegalArgumentException, throw(css::lang::IllegalArgumentException,
@ -676,7 +645,6 @@ void SAL_CALL XCUBasedAcceleratorConfiguration::setKeyEvent(const css::awt::KeyE
} }
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::removeKeyEvent(const css::awt::KeyEvent& aKeyEvent) void SAL_CALL XCUBasedAcceleratorConfiguration::removeKeyEvent(const css::awt::KeyEvent& aKeyEvent)
throw(css::container::NoSuchElementException, throw(css::container::NoSuchElementException,
css::uno::RuntimeException, std::exception ) css::uno::RuntimeException, std::exception )
@ -716,7 +684,6 @@ void SAL_CALL XCUBasedAcceleratorConfiguration::removeKeyEvent(const css::awt::K
} }
} }
css::uno::Sequence< css::awt::KeyEvent > SAL_CALL XCUBasedAcceleratorConfiguration::getKeyEventsByCommand(const OUString& sCommand) css::uno::Sequence< css::awt::KeyEvent > SAL_CALL XCUBasedAcceleratorConfiguration::getKeyEventsByCommand(const OUString& sCommand)
throw(css::lang::IllegalArgumentException , throw(css::lang::IllegalArgumentException ,
css::container::NoSuchElementException, css::container::NoSuchElementException,
@ -748,7 +715,6 @@ css::uno::Sequence< css::awt::KeyEvent > SAL_CALL XCUBasedAcceleratorConfigurati
return lKeys.getAsConstList(); return lKeys.getAsConstList();
} }
AcceleratorCache::TKeyList::const_iterator lcl_getPreferredKey(const AcceleratorCache::TKeyList& lKeys) AcceleratorCache::TKeyList::const_iterator lcl_getPreferredKey(const AcceleratorCache::TKeyList& lKeys)
{ {
AcceleratorCache::TKeyList::const_iterator pIt; AcceleratorCache::TKeyList::const_iterator pIt;
@ -767,7 +733,6 @@ AcceleratorCache::TKeyList::const_iterator lcl_getPreferredKey(const Accelerator
return lKeys.end(); return lKeys.end();
} }
css::uno::Sequence< css::uno::Any > SAL_CALL XCUBasedAcceleratorConfiguration::getPreferredKeyEventsForCommandList(const css::uno::Sequence< OUString >& lCommandList) css::uno::Sequence< css::uno::Any > SAL_CALL XCUBasedAcceleratorConfiguration::getPreferredKeyEventsForCommandList(const css::uno::Sequence< OUString >& lCommandList)
throw(css::lang::IllegalArgumentException , throw(css::lang::IllegalArgumentException ,
css::uno::RuntimeException, std::exception ) css::uno::RuntimeException, std::exception )
@ -806,7 +771,6 @@ css::uno::Sequence< css::uno::Any > SAL_CALL XCUBasedAcceleratorConfiguration::g
return lPreferredOnes; return lPreferredOnes;
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::removeCommandFromAllKeyEvents(const OUString& sCommand) void SAL_CALL XCUBasedAcceleratorConfiguration::removeCommandFromAllKeyEvents(const OUString& sCommand)
throw(css::lang::IllegalArgumentException , throw(css::lang::IllegalArgumentException ,
css::container::NoSuchElementException, css::container::NoSuchElementException,
@ -834,7 +798,6 @@ void SAL_CALL XCUBasedAcceleratorConfiguration::removeCommandFromAllKeyEvents(co
rSecondaryCache.removeCommand(sCommand); rSecondaryCache.removeCommand(sCommand);
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::reload() void SAL_CALL XCUBasedAcceleratorConfiguration::reload()
throw(css::uno::Exception , throw(css::uno::Exception ,
css::uno::RuntimeException, std::exception) css::uno::RuntimeException, std::exception)
@ -871,7 +834,6 @@ void SAL_CALL XCUBasedAcceleratorConfiguration::reload()
impl_ts_load(bPreferred, xAccess); // load the secondary keys impl_ts_load(bPreferred, xAccess); // load the secondary keys
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::store() void SAL_CALL XCUBasedAcceleratorConfiguration::store()
throw(css::uno::Exception , throw(css::uno::Exception ,
css::uno::RuntimeException, std::exception) css::uno::RuntimeException, std::exception)
@ -896,7 +858,6 @@ void SAL_CALL XCUBasedAcceleratorConfiguration::store()
impl_ts_save(bPreferred, xAccess); impl_ts_save(bPreferred, xAccess);
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::storeToStorage(const css::uno::Reference< css::embed::XStorage >& xStorage) void SAL_CALL XCUBasedAcceleratorConfiguration::storeToStorage(const css::uno::Reference< css::embed::XStorage >& xStorage)
throw(css::uno::Exception , throw(css::uno::Exception ,
css::uno::RuntimeException, std::exception) css::uno::RuntimeException, std::exception)
@ -961,28 +922,24 @@ void SAL_CALL XCUBasedAcceleratorConfiguration::storeToStorage(const css::uno::R
aWriter.flush(); aWriter.flush();
} }
sal_Bool SAL_CALL XCUBasedAcceleratorConfiguration::isModified() sal_Bool SAL_CALL XCUBasedAcceleratorConfiguration::isModified()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
return sal_False; return sal_False;
} }
sal_Bool SAL_CALL XCUBasedAcceleratorConfiguration::isReadOnly() sal_Bool SAL_CALL XCUBasedAcceleratorConfiguration::isReadOnly()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
return sal_False; return sal_False;
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::setStorage(const css::uno::Reference< css::embed::XStorage >& /*xStorage*/) void SAL_CALL XCUBasedAcceleratorConfiguration::setStorage(const css::uno::Reference< css::embed::XStorage >& /*xStorage*/)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
SAL_INFO("fwk", "XCUBasedAcceleratorConfiguration::setStorage(): implement this HACK .-)"); SAL_INFO("fwk", "XCUBasedAcceleratorConfiguration::setStorage(): implement this HACK .-)");
} }
sal_Bool SAL_CALL XCUBasedAcceleratorConfiguration::hasStorage() sal_Bool SAL_CALL XCUBasedAcceleratorConfiguration::hasStorage()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
@ -990,21 +947,18 @@ sal_Bool SAL_CALL XCUBasedAcceleratorConfiguration::hasStorage()
return sal_False; return sal_False;
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::addConfigurationListener(const css::uno::Reference< css::ui::XUIConfigurationListener >& /*xListener*/) void SAL_CALL XCUBasedAcceleratorConfiguration::addConfigurationListener(const css::uno::Reference< css::ui::XUIConfigurationListener >& /*xListener*/)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
SAL_INFO("fwk", "XCUBasedAcceleratorConfiguration::addConfigurationListener(): implement me"); SAL_INFO("fwk", "XCUBasedAcceleratorConfiguration::addConfigurationListener(): implement me");
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::removeConfigurationListener(const css::uno::Reference< css::ui::XUIConfigurationListener >& /*xListener*/) void SAL_CALL XCUBasedAcceleratorConfiguration::removeConfigurationListener(const css::uno::Reference< css::ui::XUIConfigurationListener >& /*xListener*/)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
SAL_INFO("fwk", "XCUBasedAcceleratorConfiguration::removeConfigurationListener(): implement me"); SAL_INFO("fwk", "XCUBasedAcceleratorConfiguration::removeConfigurationListener(): implement me");
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::reset() void SAL_CALL XCUBasedAcceleratorConfiguration::reset()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
@ -1026,21 +980,18 @@ void SAL_CALL XCUBasedAcceleratorConfiguration::reset()
} }
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::addResetListener(const css::uno::Reference< css::form::XResetListener >& /*xListener*/) void SAL_CALL XCUBasedAcceleratorConfiguration::addResetListener(const css::uno::Reference< css::form::XResetListener >& /*xListener*/)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
SAL_INFO("fwk", "XCUBasedAcceleratorConfiguration::addResetListener(): implement me"); SAL_INFO("fwk", "XCUBasedAcceleratorConfiguration::addResetListener(): implement me");
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::removeResetListener(const css::uno::Reference< css::form::XResetListener >& /*xListener*/) void SAL_CALL XCUBasedAcceleratorConfiguration::removeResetListener(const css::uno::Reference< css::form::XResetListener >& /*xListener*/)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
SAL_INFO("fwk", "XCUBasedAcceleratorConfiguration::removeResetListener(): implement me"); SAL_INFO("fwk", "XCUBasedAcceleratorConfiguration::removeResetListener(): implement me");
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::changesOccurred(const css::util::ChangesEvent& aEvent) void SAL_CALL XCUBasedAcceleratorConfiguration::changesOccurred(const css::util::ChangesEvent& aEvent)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
@ -1092,34 +1043,29 @@ void SAL_CALL XCUBasedAcceleratorConfiguration::changesOccurred(const css::util:
} }
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::disposing(const css::lang::EventObject& /*aSource*/) void SAL_CALL XCUBasedAcceleratorConfiguration::disposing(const css::lang::EventObject& /*aSource*/)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::dispose() void SAL_CALL XCUBasedAcceleratorConfiguration::dispose()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
// nop // nop
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& /*xListener*/ ) void SAL_CALL XCUBasedAcceleratorConfiguration::addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& /*xListener*/ )
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
// nop // nop
} }
void SAL_CALL XCUBasedAcceleratorConfiguration::removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& /*xListener*/ ) void SAL_CALL XCUBasedAcceleratorConfiguration::removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& /*xListener*/ )
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
// nop // nop
} }
void XCUBasedAcceleratorConfiguration::impl_ts_load( sal_Bool bPreferred, const css::uno::Reference< css::container::XNameAccess >& xCfg ) void XCUBasedAcceleratorConfiguration::impl_ts_load( sal_Bool bPreferred, const css::uno::Reference< css::container::XNameAccess >& xCfg )
{ {
AcceleratorCache aReadCache = AcceleratorCache(); AcceleratorCache aReadCache = AcceleratorCache();
@ -1228,7 +1174,6 @@ void XCUBasedAcceleratorConfiguration::impl_ts_load( sal_Bool bPreferred, const
m_aSecondaryReadCache.takeOver(aReadCache); m_aSecondaryReadCache.takeOver(aReadCache);
} }
void XCUBasedAcceleratorConfiguration::impl_ts_save(sal_Bool bPreferred, const css::uno::Reference< css::container::XNameAccess >& /*xCfg*/) void XCUBasedAcceleratorConfiguration::impl_ts_save(sal_Bool bPreferred, const css::uno::Reference< css::container::XNameAccess >& /*xCfg*/)
{ {
if (bPreferred) if (bPreferred)
@ -1281,7 +1226,6 @@ void XCUBasedAcceleratorConfiguration::impl_ts_save(sal_Bool bPreferred, const c
removeKeyFromConfiguration(*pIt, sal_False); removeKeyFromConfiguration(*pIt, sal_False);
} }
for ( pIt = lSecondaryWriteKeys.begin(); pIt != lSecondaryWriteKeys.end(); ++pIt ) for ( pIt = lSecondaryWriteKeys.begin(); pIt != lSecondaryWriteKeys.end(); ++pIt )
{ {
OUString sCommand = m_pSecondaryWriteCache->getCommandByKey(*pIt); OUString sCommand = m_pSecondaryWriteCache->getCommandByKey(*pIt);
@ -1311,7 +1255,6 @@ void XCUBasedAcceleratorConfiguration::impl_ts_save(sal_Bool bPreferred, const c
::comphelper::ConfigurationHelper::flush(m_xCfg); ::comphelper::ConfigurationHelper::flush(m_xCfg);
} }
void XCUBasedAcceleratorConfiguration::insertKeyToConfiguration( const css::awt::KeyEvent& aKeyEvent, const OUString& sCommand, const sal_Bool bPreferred ) void XCUBasedAcceleratorConfiguration::insertKeyToConfiguration( const css::awt::KeyEvent& aKeyEvent, const OUString& sCommand, const sal_Bool bPreferred )
{ {
css::uno::Reference< css::container::XNameAccess > xAccess; css::uno::Reference< css::container::XNameAccess > xAccess;
@ -1358,7 +1301,6 @@ void XCUBasedAcceleratorConfiguration::insertKeyToConfiguration( const css::awt:
xCommand->replaceByName(sLocale, css::uno::makeAny(sCommand)); xCommand->replaceByName(sLocale, css::uno::makeAny(sCommand));
} }
void XCUBasedAcceleratorConfiguration::removeKeyFromConfiguration( const css::awt::KeyEvent& aKeyEvent, const sal_Bool bPreferred ) void XCUBasedAcceleratorConfiguration::removeKeyFromConfiguration( const css::awt::KeyEvent& aKeyEvent, const sal_Bool bPreferred )
{ {
css::uno::Reference< css::container::XNameAccess > xAccess; css::uno::Reference< css::container::XNameAccess > xAccess;
@ -1384,7 +1326,6 @@ void XCUBasedAcceleratorConfiguration::removeKeyFromConfiguration( const css::aw
xContainer->removeByName(sKey); xContainer->removeByName(sKey);
} }
void XCUBasedAcceleratorConfiguration::reloadChanged( const OUString& sPrimarySecondary, const OUString& sGlobalModules, const OUString& sModule, const OUString& sKey ) void XCUBasedAcceleratorConfiguration::reloadChanged( const OUString& sPrimarySecondary, const OUString& sGlobalModules, const OUString& sModule, const OUString& sKey )
{ {
css::uno::Reference< css::container::XNameAccess > xAccess; css::uno::Reference< css::container::XNameAccess > xAccess;
@ -1455,7 +1396,6 @@ void XCUBasedAcceleratorConfiguration::reloadChanged( const OUString& sPrimarySe
} }
} }
AcceleratorCache& XCUBasedAcceleratorConfiguration::impl_getCFG(sal_Bool bPreferred, sal_Bool bWriteAccessRequested) AcceleratorCache& XCUBasedAcceleratorConfiguration::impl_getCFG(sal_Bool bPreferred, sal_Bool bWriteAccessRequested)
{ {
SolarMutexGuard g; SolarMutexGuard g;
@ -1501,7 +1441,6 @@ AcceleratorCache& XCUBasedAcceleratorConfiguration::impl_getCFG(sal_Bool bPrefer
} }
} }
OUString XCUBasedAcceleratorConfiguration::impl_ts_getLocale() const OUString XCUBasedAcceleratorConfiguration::impl_ts_getLocale() const
{ {
OUString sISOLocale = officecfg::Setup::L10N::ooLocale::get(); OUString sISOLocale = officecfg::Setup::L10N::ooLocale::get();

View File

@ -54,7 +54,6 @@ class DocumentAcceleratorConfiguration : public DocumentAcceleratorConfiguration
{ {
private: private:
/** points to the root storage of the outside document, /** points to the root storage of the outside document,
where we can read/save our configuration data. */ where we can read/save our configuration data. */
css::uno::Reference< css::embed::XStorage > m_xDocumentRoot; css::uno::Reference< css::embed::XStorage > m_xDocumentRoot;
@ -109,7 +108,6 @@ private:
void impl_ts_clearCache(); void impl_ts_clearCache();
}; };
DocumentAcceleratorConfiguration::DocumentAcceleratorConfiguration( DocumentAcceleratorConfiguration::DocumentAcceleratorConfiguration(
const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XComponentContext >& xContext,
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& lArguments) const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& lArguments)
@ -134,13 +132,11 @@ DocumentAcceleratorConfiguration::DocumentAcceleratorConfiguration(
impl_ts_fillCache(); impl_ts_fillCache();
} }
DocumentAcceleratorConfiguration::~DocumentAcceleratorConfiguration() DocumentAcceleratorConfiguration::~DocumentAcceleratorConfiguration()
{ {
m_aPresetHandler.removeStorageListener(this); m_aPresetHandler.removeStorageListener(this);
} }
void SAL_CALL DocumentAcceleratorConfiguration::setStorage(const css::uno::Reference< css::embed::XStorage >& xStorage) void SAL_CALL DocumentAcceleratorConfiguration::setStorage(const css::uno::Reference< css::embed::XStorage >& xStorage)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
@ -160,7 +156,6 @@ void SAL_CALL DocumentAcceleratorConfiguration::setStorage(const css::uno::Refer
impl_ts_fillCache(); impl_ts_fillCache();
} }
sal_Bool SAL_CALL DocumentAcceleratorConfiguration::hasStorage() sal_Bool SAL_CALL DocumentAcceleratorConfiguration::hasStorage()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
@ -168,7 +163,6 @@ sal_Bool SAL_CALL DocumentAcceleratorConfiguration::hasStorage()
return m_xDocumentRoot.is(); return m_xDocumentRoot.is();
} }
void DocumentAcceleratorConfiguration::impl_ts_fillCache() void DocumentAcceleratorConfiguration::impl_ts_fillCache()
{ {
css::uno::Reference< css::embed::XStorage > xDocumentRoot; css::uno::Reference< css::embed::XStorage > xDocumentRoot;
@ -209,7 +203,6 @@ void DocumentAcceleratorConfiguration::impl_ts_fillCache()
{} {}
} }
void DocumentAcceleratorConfiguration::impl_ts_clearCache() void DocumentAcceleratorConfiguration::impl_ts_clearCache()
{ {
m_aPresetHandler.forgetCachedStorages(); m_aPresetHandler.forgetCachedStorages();

View File

@ -123,8 +123,6 @@ void GlobalAcceleratorConfiguration::fillCache()
{} {}
} }
// XComponent.dispose(), #i120029#, to release the cyclic reference // XComponent.dispose(), #i120029#, to release the cyclic reference
void SAL_CALL GlobalAcceleratorConfiguration::dispose() void SAL_CALL GlobalAcceleratorConfiguration::dispose()

View File

@ -23,11 +23,9 @@
#include <com/sun/star/awt/Key.hpp> #include <com/sun/star/awt/Key.hpp>
namespace framework namespace framework
{ {
// helper // helper
KeyMapping::KeyIdentifierInfo KeyMapping::KeyIdentifierMap[] = KeyMapping::KeyIdentifierInfo KeyMapping::KeyIdentifierMap[] =
@ -140,7 +138,6 @@ KeyMapping::KeyIdentifierInfo KeyMapping::KeyIdentifierMap[] =
{0 , "" } // mark the end of this array! {0 , "" } // mark the end of this array!
}; };
KeyMapping::KeyMapping() KeyMapping::KeyMapping()
{ {
sal_Int32 i = 0; sal_Int32 i = 0;
@ -156,12 +153,10 @@ KeyMapping::KeyMapping()
} }
} }
KeyMapping::~KeyMapping() KeyMapping::~KeyMapping()
{ {
} }
sal_uInt16 KeyMapping::mapIdentifierToCode(const OUString& sIdentifier) sal_uInt16 KeyMapping::mapIdentifierToCode(const OUString& sIdentifier)
throw(css::lang::IllegalArgumentException) throw(css::lang::IllegalArgumentException)
{ {
@ -181,7 +176,6 @@ sal_uInt16 KeyMapping::mapIdentifierToCode(const OUString& sIdentifier)
return (sal_uInt16)nCode; return (sal_uInt16)nCode;
} }
OUString KeyMapping::mapCodeToIdentifier(sal_uInt16 nCode) OUString KeyMapping::mapCodeToIdentifier(sal_uInt16 nCode)
{ {
Code2IdentifierHash::const_iterator pIt = m_lCodeHash.find(nCode); Code2IdentifierHash::const_iterator pIt = m_lCodeHash.find(nCode);
@ -192,7 +186,6 @@ OUString KeyMapping::mapCodeToIdentifier(sal_uInt16 nCode)
return OUString::number(nCode); return OUString::number(nCode);
} }
sal_Bool KeyMapping::impl_st_interpretIdentifierAsPureKeyCode(const OUString& sIdentifier, sal_Bool KeyMapping::impl_st_interpretIdentifierAsPureKeyCode(const OUString& sIdentifier,
sal_uInt16& rCode ) sal_uInt16& rCode )
{ {

View File

@ -163,8 +163,6 @@ void ModuleAcceleratorConfiguration::fillCache()
{} {}
} }
// XComponent.dispose(), #i120029#, to release the cyclic reference // XComponent.dispose(), #i120029#, to release the cyclic reference
void SAL_CALL ModuleAcceleratorConfiguration::dispose() void SAL_CALL ModuleAcceleratorConfiguration::dispose()

View File

@ -39,7 +39,6 @@
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <i18nlangtag/languagetag.hxx> #include <i18nlangtag/languagetag.hxx>
static const ::sal_Int32 ID_CORRUPT_UICONFIG_SHARE = 1; static const ::sal_Int32 ID_CORRUPT_UICONFIG_SHARE = 1;
static const ::sal_Int32 ID_CORRUPT_UICONFIG_USER = 2; static const ::sal_Int32 ID_CORRUPT_UICONFIG_USER = 2;
static const ::sal_Int32 ID_CORRUPT_UICONFIG_GENERAL = 3; static const ::sal_Int32 ID_CORRUPT_UICONFIG_GENERAL = 3;
@ -47,43 +46,36 @@ static const ::sal_Int32 ID_CORRUPT_UICONFIG_GENERAL = 3;
namespace framework namespace framework
{ {
OUString PresetHandler::PRESET_DEFAULT() OUString PresetHandler::PRESET_DEFAULT()
{ {
return OUString("default"); return OUString("default");
} }
OUString PresetHandler::TARGET_CURRENT() OUString PresetHandler::TARGET_CURRENT()
{ {
return OUString("current"); return OUString("current");
} }
OUString PresetHandler::RESOURCETYPE_MENUBAR() OUString PresetHandler::RESOURCETYPE_MENUBAR()
{ {
return OUString("menubar"); return OUString("menubar");
} }
OUString PresetHandler::RESOURCETYPE_TOOLBAR() OUString PresetHandler::RESOURCETYPE_TOOLBAR()
{ {
return OUString("toolbar"); return OUString("toolbar");
} }
OUString PresetHandler::RESOURCETYPE_ACCELERATOR() OUString PresetHandler::RESOURCETYPE_ACCELERATOR()
{ {
return OUString("accelerator"); return OUString("accelerator");
} }
OUString PresetHandler::RESOURCETYPE_STATUSBAR() OUString PresetHandler::RESOURCETYPE_STATUSBAR()
{ {
return OUString("statusbar"); return OUString("statusbar");
} }
PresetHandler::PresetHandler(const css::uno::Reference< css::uno::XComponentContext >& xContext) PresetHandler::PresetHandler(const css::uno::Reference< css::uno::XComponentContext >& xContext)
: m_xContext(xContext) : m_xContext(xContext)
, m_eConfigType(E_GLOBAL) , m_eConfigType(E_GLOBAL)
@ -93,7 +85,6 @@ PresetHandler::PresetHandler(const css::uno::Reference< css::uno::XComponentCont
{ {
} }
PresetHandler::PresetHandler(const PresetHandler& rCopy) PresetHandler::PresetHandler(const PresetHandler& rCopy)
: m_aLanguageTag( rCopy.m_aLanguageTag) : m_aLanguageTag( rCopy.m_aLanguageTag)
{ {
@ -113,7 +104,6 @@ PresetHandler::PresetHandler(const PresetHandler& rCopy)
m_sRelPathUser = rCopy.m_sRelPathUser; m_sRelPathUser = rCopy.m_sRelPathUser;
} }
PresetHandler::~PresetHandler() PresetHandler::~PresetHandler()
{ {
m_xWorkingStorageShare.clear(); m_xWorkingStorageShare.clear();
@ -140,7 +130,6 @@ PresetHandler::~PresetHandler()
m_lDocumentStorages.forgetCachedStorages(); m_lDocumentStorages.forgetCachedStorages();
} }
void PresetHandler::forgetCachedStorages() void PresetHandler::forgetCachedStorages()
{ {
SolarMutexGuard g; SolarMutexGuard g;
@ -253,7 +242,6 @@ css::uno::Reference< css::embed::XStorage > PresetHandler::getOrCreateRootStorag
return xStorage; return xStorage;
} }
css::uno::Reference< css::embed::XStorage > PresetHandler::getOrCreateRootStorageUser() css::uno::Reference< css::embed::XStorage > PresetHandler::getOrCreateRootStorageUser()
{ {
css::uno::Reference< css::embed::XStorage > xRoot = m_aSharedStorages->m_lStoragesUser.getRootStorage(); css::uno::Reference< css::embed::XStorage > xRoot = m_aSharedStorages->m_lStoragesUser.getRootStorage();
@ -301,21 +289,18 @@ css::uno::Reference< css::embed::XStorage > PresetHandler::getOrCreateRootStorag
return xStorage; return xStorage;
} }
css::uno::Reference< css::embed::XStorage > PresetHandler::getWorkingStorageShare() css::uno::Reference< css::embed::XStorage > PresetHandler::getWorkingStorageShare()
{ {
SolarMutexGuard g; SolarMutexGuard g;
return m_xWorkingStorageShare; return m_xWorkingStorageShare;
} }
css::uno::Reference< css::embed::XStorage > PresetHandler::getWorkingStorageUser() css::uno::Reference< css::embed::XStorage > PresetHandler::getWorkingStorageUser()
{ {
SolarMutexGuard g; SolarMutexGuard g;
return m_xWorkingStorageUser; return m_xWorkingStorageUser;
} }
css::uno::Reference< css::embed::XStorage > PresetHandler::getParentStorageShare(const css::uno::Reference< css::embed::XStorage >& /*xChild*/) css::uno::Reference< css::embed::XStorage > PresetHandler::getParentStorageShare(const css::uno::Reference< css::embed::XStorage >& /*xChild*/)
{ {
css::uno::Reference< css::embed::XStorage > xWorking; css::uno::Reference< css::embed::XStorage > xWorking;
@ -327,7 +312,6 @@ css::uno::Reference< css::embed::XStorage > PresetHandler::getParentStorageShare
return m_aSharedStorages->m_lStoragesShare.getParentStorage(xWorking); return m_aSharedStorages->m_lStoragesShare.getParentStorage(xWorking);
} }
css::uno::Reference< css::embed::XStorage > PresetHandler::getParentStorageUser(const css::uno::Reference< css::embed::XStorage >& /*xChild*/) css::uno::Reference< css::embed::XStorage > PresetHandler::getParentStorageUser(const css::uno::Reference< css::embed::XStorage >& /*xChild*/)
{ {
css::uno::Reference< css::embed::XStorage > xWorking; css::uno::Reference< css::embed::XStorage > xWorking;
@ -339,7 +323,6 @@ css::uno::Reference< css::embed::XStorage > PresetHandler::getParentStorageUser(
return m_aSharedStorages->m_lStoragesUser.getParentStorage(xWorking); return m_aSharedStorages->m_lStoragesUser.getParentStorage(xWorking);
} }
void PresetHandler::connectToResource( PresetHandler::EConfigType eConfigType , void PresetHandler::connectToResource( PresetHandler::EConfigType eConfigType ,
const OUString& sResource , const OUString& sResource ,
const OUString& sModule , const OUString& sModule ,
@ -540,7 +523,6 @@ void PresetHandler::connectToResource( PresetHandler::EConfigType
} }
} }
void PresetHandler::copyPresetToTarget(const OUString& sPreset, void PresetHandler::copyPresetToTarget(const OUString& sPreset,
const OUString& sTarget) const OUString& sTarget)
{ {
@ -585,7 +567,6 @@ void PresetHandler::copyPresetToTarget(const OUString& sPreset,
commitUserChanges(); commitUserChanges();
} }
css::uno::Reference< css::io::XStream > PresetHandler::openPreset(const OUString& sPreset, css::uno::Reference< css::io::XStream > PresetHandler::openPreset(const OUString& sPreset,
sal_Bool bUseNoLangGlobal) sal_Bool bUseNoLangGlobal)
{ {
@ -607,7 +588,6 @@ css::uno::Reference< css::io::XStream > PresetHandler::openPreset(const OUString
return xStream; return xStream;
} }
css::uno::Reference< css::io::XStream > PresetHandler::openTarget(const OUString& sTarget , css::uno::Reference< css::io::XStream > PresetHandler::openTarget(const OUString& sTarget ,
sal_Bool bCreateIfMissing) sal_Bool bCreateIfMissing)
{ {
@ -648,7 +628,6 @@ css::uno::Reference< css::io::XStream > PresetHandler::openTarget(const OUString
return xStream; return xStream;
} }
void PresetHandler::commitUserChanges() void PresetHandler::commitUserChanges()
{ {
css::uno::Reference< css::embed::XStorage > xWorking; css::uno::Reference< css::embed::XStorage > xWorking;
@ -686,7 +665,6 @@ void PresetHandler::commitUserChanges()
} }
} }
void PresetHandler::addStorageListener(IStorageListener* pListener) void PresetHandler::addStorageListener(IStorageListener* pListener)
{ {
OUString sRelPath; OUString sRelPath;
@ -717,7 +695,6 @@ void PresetHandler::addStorageListener(IStorageListener* pListener)
} }
} }
void PresetHandler::removeStorageListener(IStorageListener* pListener) void PresetHandler::removeStorageListener(IStorageListener* pListener)
{ {
OUString sRelPath; OUString sRelPath;
@ -748,7 +725,6 @@ void PresetHandler::removeStorageListener(IStorageListener* pListener)
} }
} }
css::uno::Reference< css::embed::XStorage > PresetHandler::impl_openPathIgnoringErrors(const OUString& sPath , css::uno::Reference< css::embed::XStorage > PresetHandler::impl_openPathIgnoringErrors(const OUString& sPath ,
sal_Int32 eMode , sal_Int32 eMode ,
sal_Bool bShare) sal_Bool bShare)
@ -768,7 +744,6 @@ css::uno::Reference< css::embed::XStorage > PresetHandler::impl_openPathIgnoring
return xPath; return xPath;
} }
::std::vector< OUString >::const_iterator PresetHandler::impl_findMatchingLocalizedValue( ::std::vector< OUString >::const_iterator PresetHandler::impl_findMatchingLocalizedValue(
const ::std::vector< OUString >& lLocalizedValues, const ::std::vector< OUString >& lLocalizedValues,
OUString& rLanguageTag, OUString& rLanguageTag,
@ -799,7 +774,6 @@ css::uno::Reference< css::embed::XStorage > PresetHandler::impl_openPathIgnoring
return pFound; return pFound;
} }
css::uno::Reference< css::embed::XStorage > PresetHandler::impl_openLocalizedPathIgnoringErrors( css::uno::Reference< css::embed::XStorage > PresetHandler::impl_openLocalizedPathIgnoringErrors(
OUString& sPath , OUString& sPath ,
sal_Int32 eMode , sal_Int32 eMode ,
@ -839,7 +813,6 @@ css::uno::Reference< css::embed::XStorage > PresetHandler::impl_openLocalizedPat
return xLocalePath; return xLocalePath;
} }
::std::vector< OUString > PresetHandler::impl_getSubFolderNames(const css::uno::Reference< css::embed::XStorage >& xFolder) ::std::vector< OUString > PresetHandler::impl_getSubFolderNames(const css::uno::Reference< css::embed::XStorage >& xFolder)
{ {
css::uno::Reference< css::container::XNameAccess > xAccess(xFolder, css::uno::UNO_QUERY); css::uno::Reference< css::container::XNameAccess > xAccess(xFolder, css::uno::UNO_QUERY);
@ -868,7 +841,6 @@ css::uno::Reference< css::embed::XStorage > PresetHandler::impl_openLocalizedPat
return lSubFolders; return lSubFolders;
} }
} // namespace framework } // namespace framework
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -37,28 +37,23 @@
#include <com/sun/star/io/XSeekable.hpp> #include <com/sun/star/io/XSeekable.hpp>
#define PATH_SEPARATOR_ASCII "/" #define PATH_SEPARATOR_ASCII "/"
#define PATH_SEPARATOR_UNICODE ((sal_Unicode)'/') #define PATH_SEPARATOR_UNICODE ((sal_Unicode)'/')
#define PATH_SEPARATOR OUString(PATH_SEPARATOR_ASCII) #define PATH_SEPARATOR OUString(PATH_SEPARATOR_ASCII)
namespace framework namespace framework
{ {
StorageHolder::StorageHolder() StorageHolder::StorageHolder()
{ {
} }
StorageHolder::~StorageHolder() StorageHolder::~StorageHolder()
{ {
// TODO implement me // TODO implement me
// dispose/clear etcpp. // dispose/clear etcpp.
} }
void StorageHolder::forgetCachedStorages() void StorageHolder::forgetCachedStorages()
{ {
osl::MutexGuard g(m_mutex); osl::MutexGuard g(m_mutex);
@ -74,21 +69,18 @@ void StorageHolder::forgetCachedStorages()
m_lStorages.clear(); m_lStorages.clear();
} }
void StorageHolder::setRootStorage(const css::uno::Reference< css::embed::XStorage >& xRoot) void StorageHolder::setRootStorage(const css::uno::Reference< css::embed::XStorage >& xRoot)
{ {
osl::MutexGuard g(m_mutex); osl::MutexGuard g(m_mutex);
m_xRoot = xRoot; m_xRoot = xRoot;
} }
css::uno::Reference< css::embed::XStorage > StorageHolder::getRootStorage() const css::uno::Reference< css::embed::XStorage > StorageHolder::getRootStorage() const
{ {
osl::MutexGuard g(m_mutex); osl::MutexGuard g(m_mutex);
return m_xRoot; return m_xRoot;
} }
css::uno::Reference< css::embed::XStorage > StorageHolder::openPath(const OUString& sPath , css::uno::Reference< css::embed::XStorage > StorageHolder::openPath(const OUString& sPath ,
sal_Int32 nOpenMode) sal_Int32 nOpenMode)
{ {
@ -173,7 +165,6 @@ css::uno::Reference< css::embed::XStorage > StorageHolder::openPath(const OUStri
return xChild; return xChild;
} }
StorageHolder::TStorageList StorageHolder::getAllPathStorages(const OUString& sPath) StorageHolder::TStorageList StorageHolder::getAllPathStorages(const OUString& sPath)
{ {
OUString sNormedPath = StorageHolder::impl_st_normPath(sPath); OUString sNormedPath = StorageHolder::impl_st_normPath(sPath);
@ -213,7 +204,6 @@ StorageHolder::TStorageList StorageHolder::getAllPathStorages(const OUString& sP
return lStoragesOfPath; return lStoragesOfPath;
} }
void StorageHolder::commitPath(const OUString& sPath) void StorageHolder::commitPath(const OUString& sPath)
{ {
StorageHolder::TStorageList lStorages = getAllPathStorages(sPath); StorageHolder::TStorageList lStorages = getAllPathStorages(sPath);
@ -240,7 +230,6 @@ void StorageHolder::commitPath(const OUString& sPath)
xCommit->commit(); xCommit->commit();
} }
void StorageHolder::closePath(const OUString& rPath) void StorageHolder::closePath(const OUString& rPath)
{ {
OUString sNormedPath = StorageHolder::impl_st_normPath(rPath); OUString sNormedPath = StorageHolder::impl_st_normPath(rPath);
@ -286,7 +275,6 @@ void StorageHolder::closePath(const OUString& rPath)
} }
} }
void StorageHolder::notifyPath(const OUString& sPath) void StorageHolder::notifyPath(const OUString& sPath)
{ {
OUString sNormedPath = StorageHolder::impl_st_normPath(sPath); OUString sNormedPath = StorageHolder::impl_st_normPath(sPath);
@ -309,7 +297,6 @@ void StorageHolder::notifyPath(const OUString& sPath)
} }
} }
void StorageHolder::addStorageListener( IStorageListener* pListener, void StorageHolder::addStorageListener( IStorageListener* pListener,
const OUString& sPath ) const OUString& sPath )
{ {
@ -327,7 +314,6 @@ void StorageHolder::addStorageListener( IStorageListener* pListener,
rInfo.Listener.push_back(pListener); rInfo.Listener.push_back(pListener);
} }
void StorageHolder::removeStorageListener( IStorageListener* pListener, void StorageHolder::removeStorageListener( IStorageListener* pListener,
const OUString& sPath ) const OUString& sPath )
{ {
@ -345,7 +331,6 @@ void StorageHolder::removeStorageListener( IStorageListener* pListener,
rInfo.Listener.erase(pIt2); rInfo.Listener.erase(pIt2);
} }
OUString StorageHolder::getPathOfStorage(const css::uno::Reference< css::embed::XStorage >& xStorage) OUString StorageHolder::getPathOfStorage(const css::uno::Reference< css::embed::XStorage >& xStorage)
{ {
osl::MutexGuard g(m_mutex); osl::MutexGuard g(m_mutex);
@ -366,14 +351,12 @@ OUString StorageHolder::getPathOfStorage(const css::uno::Reference< css::embed::
return pIt->first; return pIt->first;
} }
css::uno::Reference< css::embed::XStorage > StorageHolder::getParentStorage(const css::uno::Reference< css::embed::XStorage >& xChild) css::uno::Reference< css::embed::XStorage > StorageHolder::getParentStorage(const css::uno::Reference< css::embed::XStorage >& xChild)
{ {
OUString sChildPath = getPathOfStorage(xChild); OUString sChildPath = getPathOfStorage(xChild);
return getParentStorage(sChildPath); return getParentStorage(sChildPath);
} }
css::uno::Reference< css::embed::XStorage > StorageHolder::getParentStorage(const OUString& sChildPath) css::uno::Reference< css::embed::XStorage > StorageHolder::getParentStorage(const OUString& sChildPath)
{ {
// normed path = "a/b/c/" ... we search for "a/b/" // normed path = "a/b/c/" ... we search for "a/b/"
@ -417,7 +400,6 @@ css::uno::Reference< css::embed::XStorage > StorageHolder::getParentStorage(cons
return css::uno::Reference< css::embed::XStorage >(); return css::uno::Reference< css::embed::XStorage >();
} }
void StorageHolder::operator=(const StorageHolder& rCopy) void StorageHolder::operator=(const StorageHolder& rCopy)
{ {
osl::MutexGuard g(m_mutex); osl::MutexGuard g(m_mutex);
@ -425,7 +407,6 @@ void StorageHolder::operator=(const StorageHolder& rCopy)
m_lStorages = rCopy.m_lStorages; m_lStorages = rCopy.m_lStorages;
} }
css::uno::Reference< css::embed::XStorage > StorageHolder::openSubStorageWithFallback(const css::uno::Reference< css::embed::XStorage >& xBaseStorage , css::uno::Reference< css::embed::XStorage > StorageHolder::openSubStorageWithFallback(const css::uno::Reference< css::embed::XStorage >& xBaseStorage ,
const OUString& sSubStorage , const OUString& sSubStorage ,
sal_Int32 eOpenMode , sal_Int32 eOpenMode ,
@ -465,7 +446,6 @@ css::uno::Reference< css::embed::XStorage > StorageHolder::openSubStorageWithFal
return css::uno::Reference< css::embed::XStorage >(); return css::uno::Reference< css::embed::XStorage >();
} }
css::uno::Reference< css::io::XStream > StorageHolder::openSubStreamWithFallback(const css::uno::Reference< css::embed::XStorage >& xBaseStorage , css::uno::Reference< css::io::XStream > StorageHolder::openSubStreamWithFallback(const css::uno::Reference< css::embed::XStorage >& xBaseStorage ,
const OUString& sSubStream , const OUString& sSubStream ,
sal_Int32 eOpenMode , sal_Int32 eOpenMode ,
@ -505,7 +485,6 @@ css::uno::Reference< css::io::XStream > StorageHolder::openSubStreamWithFallback
return css::uno::Reference< css::io::XStream >(); return css::uno::Reference< css::io::XStream >();
} }
OUString StorageHolder::impl_st_normPath(const OUString& sPath) OUString StorageHolder::impl_st_normPath(const OUString& sPath)
{ {
// path must start without "/" but end with "/"! // path must start without "/" but end with "/"!
@ -527,7 +506,6 @@ OUString StorageHolder::impl_st_normPath(const OUString& sPath)
return sNormedPath; return sNormedPath;
} }
OUStringList StorageHolder::impl_st_parsePath(const OUString& sPath) OUStringList StorageHolder::impl_st_parsePath(const OUString& sPath)
{ {
OUStringList lToken; OUStringList lToken;
@ -542,7 +520,6 @@ OUStringList StorageHolder::impl_st_parsePath(const OUString& sPath)
return lToken; return lToken;
} }
} // namespace framework } // namespace framework
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -55,8 +55,6 @@ FwkTabControl::FwkTabControl( Window* pParent, const ResId& rResId ) :
{ {
} }
void FwkTabControl::BroadcastEvent( sal_uLong nEvent ) void FwkTabControl::BroadcastEvent( sal_uLong nEvent )
{ {
if ( VCLEVENT_TABPAGE_ACTIVATE == nEvent || VCLEVENT_TABPAGE_DEACTIVATE == nEvent ) if ( VCLEVENT_TABPAGE_ACTIVATE == nEvent || VCLEVENT_TABPAGE_DEACTIVATE == nEvent )
@ -83,16 +81,12 @@ FwkTabPage::FwkTabPage(
{ {
} }
FwkTabPage::~FwkTabPage() FwkTabPage::~FwkTabPage()
{ {
Hide(); Hide();
DeactivatePage(); DeactivatePage();
} }
void FwkTabPage::CreateDialog() void FwkTabPage::CreateDialog()
{ {
try try
@ -130,8 +124,6 @@ void FwkTabPage::CreateDialog()
} }
} }
sal_Bool FwkTabPage::CallMethod( const OUString& rMethod ) sal_Bool FwkTabPage::CallMethod( const OUString& rMethod )
{ {
sal_Bool bRet = sal_False; sal_Bool bRet = sal_False;
@ -149,8 +141,6 @@ sal_Bool FwkTabPage::CallMethod( const OUString& rMethod )
return bRet; return bRet;
} }
void FwkTabPage::ActivatePage() void FwkTabPage::ActivatePage()
{ {
TabPage::ActivatePage(); TabPage::ActivatePage();
@ -165,8 +155,6 @@ void FwkTabPage::ActivatePage()
} }
} }
void FwkTabPage::DeactivatePage() void FwkTabPage::DeactivatePage()
{ {
TabPage::DeactivatePage(); TabPage::DeactivatePage();
@ -175,8 +163,6 @@ void FwkTabPage::DeactivatePage()
m_xPage->setVisible( sal_False ); m_xPage->setVisible( sal_False );
} }
void FwkTabPage::Resize() void FwkTabPage::Resize()
{ {
if ( m_xPage.is () ) if ( m_xPage.is () )
@ -204,15 +190,11 @@ FwkTabWindow::FwkTabWindow( Window* pParent ) :
m_aTabCtrl.Show(); m_aTabCtrl.Show();
} }
FwkTabWindow::~FwkTabWindow() FwkTabWindow::~FwkTabWindow()
{ {
ClearEntryList(); ClearEntryList();
} }
void FwkTabWindow::ClearEntryList() void FwkTabWindow::ClearEntryList()
{ {
TabEntryList::const_iterator pIt; TabEntryList::const_iterator pIt;
@ -226,8 +208,6 @@ void FwkTabWindow::ClearEntryList()
m_TabList.clear(); m_TabList.clear();
} }
bool FwkTabWindow::RemoveEntry( sal_Int32 nIndex ) bool FwkTabWindow::RemoveEntry( sal_Int32 nIndex )
{ {
TabEntryList::iterator pIt; TabEntryList::iterator pIt;
@ -249,7 +229,6 @@ bool FwkTabWindow::RemoveEntry( sal_Int32 nIndex )
return false; return false;
} }
TabEntry* FwkTabWindow::FindEntry( sal_Int32 nIndex ) const TabEntry* FwkTabWindow::FindEntry( sal_Int32 nIndex ) const
{ {
TabEntry* pEntry = NULL; TabEntry* pEntry = NULL;
@ -269,8 +248,6 @@ TabEntry* FwkTabWindow::FindEntry( sal_Int32 nIndex ) const
return pEntry; return pEntry;
} }
IMPL_LINK_NOARG(FwkTabWindow, ActivatePageHdl) IMPL_LINK_NOARG(FwkTabWindow, ActivatePageHdl)
{ {
const sal_uInt16 nId = m_aTabCtrl.GetCurPageId(); const sal_uInt16 nId = m_aTabCtrl.GetCurPageId();
@ -293,16 +270,12 @@ IMPL_LINK_NOARG(FwkTabWindow, ActivatePageHdl)
return 1; return 1;
} }
IMPL_LINK_NOARG(FwkTabWindow, DeactivatePageHdl) IMPL_LINK_NOARG(FwkTabWindow, DeactivatePageHdl)
{ {
m_aTabCtrl.BroadcastEvent( VCLEVENT_TABPAGE_DEACTIVATE ); m_aTabCtrl.BroadcastEvent( VCLEVENT_TABPAGE_DEACTIVATE );
return 1; return 1;
} }
void FwkTabWindow::AddEventListener( const Link& rEventListener ) void FwkTabWindow::AddEventListener( const Link& rEventListener )
{ {
m_aTabCtrl.AddEventListener( rEventListener ); m_aTabCtrl.AddEventListener( rEventListener );
@ -313,8 +286,6 @@ void FwkTabWindow::RemoveEventListener( const Link& rEventListener )
m_aTabCtrl.RemoveEventListener( rEventListener ); m_aTabCtrl.RemoveEventListener( rEventListener );
} }
FwkTabPage* FwkTabWindow::AddTabPage( sal_Int32 nIndex, const uno::Sequence< beans::NamedValue >& rProperties ) FwkTabPage* FwkTabWindow::AddTabPage( sal_Int32 nIndex, const uno::Sequence< beans::NamedValue >& rProperties )
{ {
OUString sTitle, sToolTip, sPageURL; OUString sTitle, sToolTip, sPageURL;
@ -356,16 +327,12 @@ FwkTabPage* FwkTabWindow::AddTabPage( sal_Int32 nIndex, const uno::Sequence< bea
return pEntry->m_pPage; return pEntry->m_pPage;
} }
void FwkTabWindow::ActivatePage( sal_Int32 nIndex ) void FwkTabWindow::ActivatePage( sal_Int32 nIndex )
{ {
m_aTabCtrl.SetCurPageId( static_cast< sal_uInt16 >( nIndex ) ); m_aTabCtrl.SetCurPageId( static_cast< sal_uInt16 >( nIndex ) );
ActivatePageHdl( &m_aTabCtrl ); ActivatePageHdl( &m_aTabCtrl );
} }
void FwkTabWindow::RemovePage( sal_Int32 nIndex ) void FwkTabWindow::RemovePage( sal_Int32 nIndex )
{ {
TabEntry* pEntry = FindEntry(nIndex); TabEntry* pEntry = FindEntry(nIndex);
@ -377,7 +344,6 @@ void FwkTabWindow::RemovePage( sal_Int32 nIndex )
} }
} }
void FwkTabWindow::Resize() void FwkTabWindow::Resize()
{ {
Size aPageSize = GetSizePixel(); Size aPageSize = GetSizePixel();

View File

@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include "classes/fwlresid.hxx" #include "classes/fwlresid.hxx"
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
@ -41,8 +40,6 @@ ResMgr* FwlResId::GetResManager()
return pResMgr; return pResMgr;
} }
FwlResId::FwlResId( sal_uInt16 nId ) : FwlResId::FwlResId( sal_uInt16 nId ) :
ResId( nId, *FwlResId::GetResManager() ) ResId( nId, *FwlResId::GetResManager() )
{ {

View File

@ -121,7 +121,6 @@ MenuManager::MenuManager(
sal_Int32 nAddonsURLPrefixLength = ADDONSPOPUPMENU_URL_PREFIX.getLength(); sal_Int32 nAddonsURLPrefixLength = ADDONSPOPUPMENU_URL_PREFIX.getLength();
sal_uInt16 nItemCount = pMenu->GetItemCount(); sal_uInt16 nItemCount = pMenu->GetItemCount();
m_aMenuItemHandlerVector.reserve(nItemCount); m_aMenuItemHandlerVector.reserve(nItemCount);
OUString aItemCommand; OUString aItemCommand;
@ -203,7 +202,6 @@ MenuManager::MenuManager(
AddMenu(pSubMenu,OUString(),nItemId,sal_True,sal_False); AddMenu(pSubMenu,OUString(),nItemId,sal_True,sal_False);
if ( bShowMenuImages && !pMenu->GetItemImage( nItemId )) if ( bShowMenuImages && !pMenu->GetItemImage( nItemId ))
{ {
Image aImage = GetImageFromURL( rFrame, aItemCommand, false ); Image aImage = GetImageFromURL( rFrame, aItemCommand, false );
@ -260,7 +258,6 @@ MenuManager::MenuManager(
SetHdl(); SetHdl();
} }
void MenuManager::SetHdl() void MenuManager::SetHdl()
{ {
m_pVCLMenu->SetHighlightHdl( LINK( this, MenuManager, Highlight )); m_pVCLMenu->SetHighlightHdl( LINK( this, MenuManager, Highlight ));
@ -288,7 +285,6 @@ MenuManager::~MenuManager()
delete m_pVCLMenu; delete m_pVCLMenu;
} }
MenuManager::MenuItemHandler* MenuManager::GetMenuItemHandler( sal_uInt16 nItemId ) MenuManager::MenuItemHandler* MenuManager::GetMenuItemHandler( sal_uInt16 nItemId )
{ {
SolarMutexGuard g; SolarMutexGuard g;
@ -304,7 +300,6 @@ MenuManager::MenuItemHandler* MenuManager::GetMenuItemHandler( sal_uInt16 nItemI
return 0; return 0;
} }
void SAL_CALL MenuManager::statusChanged( const FeatureStateEvent& Event ) void SAL_CALL MenuManager::statusChanged( const FeatureStateEvent& Event )
throw ( RuntimeException, std::exception ) throw ( RuntimeException, std::exception )
{ {
@ -365,7 +360,6 @@ throw ( RuntimeException, std::exception )
} }
} }
void MenuManager::RemoveListener() void MenuManager::RemoveListener()
{ {
SolarMutexGuard g; SolarMutexGuard g;
@ -402,7 +396,6 @@ void MenuManager::ClearMenuDispatch(const EventObject& Source,bool _bRemoveOnly)
} }
} }
void SAL_CALL MenuManager::disposing( const EventObject& Source ) throw ( RuntimeException, std::exception ) void SAL_CALL MenuManager::disposing( const EventObject& Source ) throw ( RuntimeException, std::exception )
{ {
if ( Source.Source == m_xFrame ) if ( Source.Source == m_xFrame )
@ -443,7 +436,6 @@ void SAL_CALL MenuManager::disposing( const EventObject& Source ) throw ( Runtim
} }
} }
void MenuManager::UpdateSpecialFileMenu( Menu* pMenu ) void MenuManager::UpdateSpecialFileMenu( Menu* pMenu )
{ {
// update picklist // update picklist
@ -676,7 +668,6 @@ void MenuManager::UpdateSpecialWindowMenu( Menu* pMenu,const Reference< XCompone
} }
} }
void MenuManager::CreatePicklistArguments( Sequence< PropertyValue >& aArgsList, const MenuItemHandler* pMenuItemHandler ) void MenuManager::CreatePicklistArguments( Sequence< PropertyValue >& aArgsList, const MenuItemHandler* pMenuItemHandler )
{ {
int NUM_OF_PICKLIST_ARGS = 3; int NUM_OF_PICKLIST_ARGS = 3;
@ -715,11 +706,8 @@ void MenuManager::CreatePicklistArguments( Sequence< PropertyValue >& aArgsList,
aArgsList[NUM_OF_PICKLIST_ARGS-1].Value = a; aArgsList[NUM_OF_PICKLIST_ARGS-1].Value = a;
} }
// vcl handler // vcl handler
IMPL_LINK( MenuManager, Activate, Menu *, pMenu ) IMPL_LINK( MenuManager, Activate, Menu *, pMenu )
{ {
if ( pMenu == m_pVCLMenu ) if ( pMenu == m_pVCLMenu )
@ -820,7 +808,6 @@ IMPL_LINK( MenuManager, Activate, Menu *, pMenu )
return 1; return 1;
} }
IMPL_LINK( MenuManager, Deactivate, Menu *, pMenu ) IMPL_LINK( MenuManager, Deactivate, Menu *, pMenu )
{ {
if ( pMenu == m_pVCLMenu ) if ( pMenu == m_pVCLMenu )
@ -829,7 +816,6 @@ IMPL_LINK( MenuManager, Deactivate, Menu *, pMenu )
return 1; return 1;
} }
IMPL_LINK( MenuManager, Select, Menu *, pMenu ) IMPL_LINK( MenuManager, Select, Menu *, pMenu )
{ {
URL aTargetURL; URL aTargetURL;
@ -903,7 +889,6 @@ IMPL_LINK( MenuManager, Select, Menu *, pMenu )
return 1; return 1;
} }
IMPL_LINK_NOARG(MenuManager, Highlight) IMPL_LINK_NOARG(MenuManager, Highlight)
{ {
return 0; return 0;

View File

@ -40,7 +40,6 @@
#include <unotools/moduleoptions.hxx> #include <unotools/moduleoptions.hxx>
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
using namespace com::sun::star; using namespace com::sun::star;
namespace framework{ namespace framework{
@ -54,8 +53,6 @@ const char URL_CLOSEDOC[] = ".uno:CloseDoc";
const char URL_CLOSEWIN[] = ".uno:CloseWin"; const char URL_CLOSEWIN[] = ".uno:CloseWin";
const char URL_CLOSEFRAME[] = ".uno:CloseFrame"; const char URL_CLOSEFRAME[] = ".uno:CloseFrame";
CloseDispatcher::CloseDispatcher(const css::uno::Reference< css::uno::XComponentContext >& rxContext , CloseDispatcher::CloseDispatcher(const css::uno::Reference< css::uno::XComponentContext >& rxContext ,
const css::uno::Reference< css::frame::XFrame >& xFrame , const css::uno::Reference< css::frame::XFrame >& xFrame ,
const OUString& sTarget) const OUString& sTarget)
@ -78,12 +75,10 @@ CloseDispatcher::CloseDispatcher(const css::uno::Reference< css::uno::XComponent
} }
} }
CloseDispatcher::~CloseDispatcher() CloseDispatcher::~CloseDispatcher()
{ {
} }
void SAL_CALL CloseDispatcher::dispatch(const css::util::URL& aURL , void SAL_CALL CloseDispatcher::dispatch(const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments) const css::uno::Sequence< css::beans::PropertyValue >& lArguments)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
@ -91,7 +86,6 @@ void SAL_CALL CloseDispatcher::dispatch(const css::util::URL&
dispatchWithNotification(aURL, lArguments, css::uno::Reference< css::frame::XDispatchResultListener >()); dispatchWithNotification(aURL, lArguments, css::uno::Reference< css::frame::XDispatchResultListener >());
} }
css::uno::Sequence< sal_Int16 > SAL_CALL CloseDispatcher::getSupportedCommandGroups() css::uno::Sequence< sal_Int16 > SAL_CALL CloseDispatcher::getSupportedCommandGroups()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
@ -101,7 +95,6 @@ css::uno::Sequence< sal_Int16 > SAL_CALL CloseDispatcher::getSupportedCommandGro
return lGroups; return lGroups;
} }
css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL CloseDispatcher::getConfigurableDispatchInformation(sal_Int16 nCommandGroup) css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL CloseDispatcher::getConfigurableDispatchInformation(sal_Int16 nCommandGroup)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
@ -126,21 +119,18 @@ css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL CloseDispatcher::
return css::uno::Sequence< css::frame::DispatchInformation >(); return css::uno::Sequence< css::frame::DispatchInformation >();
} }
void SAL_CALL CloseDispatcher::addStatusListener(const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/, void SAL_CALL CloseDispatcher::addStatusListener(const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/,
const css::util::URL& /*aURL*/ ) const css::util::URL& /*aURL*/ )
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
} }
void SAL_CALL CloseDispatcher::removeStatusListener(const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/, void SAL_CALL CloseDispatcher::removeStatusListener(const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/,
const css::util::URL& /*aURL*/ ) const css::util::URL& /*aURL*/ )
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
} }
void SAL_CALL CloseDispatcher::dispatchWithNotification(const css::util::URL& aURL , void SAL_CALL CloseDispatcher::dispatchWithNotification(const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) const css::uno::Reference< css::frame::XDispatchResultListener >& xListener )
@ -228,7 +218,6 @@ void SAL_CALL CloseDispatcher::dispatchWithNotification(const css::util::URL&
m_aAsyncCallback.Post(0); m_aAsyncCallback.Post(0);
} }
/** /**
@short asynchronous callback @short asynchronous callback
@descr We start all actions inside this object asnychronoue. @descr We start all actions inside this object asnychronoue.
@ -426,7 +415,6 @@ IMPL_LINK_NOARG(CloseDispatcher, impl_asyncCallback)
return 0; return 0;
} }
sal_Bool CloseDispatcher::implts_prepareFrameForClosing(const css::uno::Reference< css::frame::XFrame >& xFrame , sal_Bool CloseDispatcher::implts_prepareFrameForClosing(const css::uno::Reference< css::frame::XFrame >& xFrame ,
sal_Bool bAllowSuspend , sal_Bool bAllowSuspend ,
sal_Bool bCloseAllOtherViewsToo, sal_Bool bCloseAllOtherViewsToo,
@ -479,7 +467,6 @@ sal_Bool CloseDispatcher::implts_prepareFrameForClosing(const css::uno::Referenc
return sal_True; return sal_True;
} }
sal_Bool CloseDispatcher::implts_closeFrame() sal_Bool CloseDispatcher::implts_closeFrame()
{ {
css::uno::Reference< css::frame::XFrame > xFrame; css::uno::Reference< css::frame::XFrame > xFrame;
@ -506,7 +493,6 @@ sal_Bool CloseDispatcher::implts_closeFrame()
return sal_True; return sal_True;
} }
sal_Bool CloseDispatcher::implts_establishBackingMode() sal_Bool CloseDispatcher::implts_establishBackingMode()
{ {
css::uno::Reference< css::uno::XComponentContext > xContext; css::uno::Reference< css::uno::XComponentContext > xContext;
@ -538,7 +524,6 @@ sal_Bool CloseDispatcher::implts_establishBackingMode()
return sal_True; return sal_True;
} }
sal_Bool CloseDispatcher::implts_terminateApplication() sal_Bool CloseDispatcher::implts_terminateApplication()
{ {
css::uno::Reference< css::uno::XComponentContext > xContext; css::uno::Reference< css::uno::XComponentContext > xContext;
@ -552,7 +537,6 @@ sal_Bool CloseDispatcher::implts_terminateApplication()
return xDesktop->terminate(); return xDesktop->terminate();
} }
void CloseDispatcher::implts_notifyResultListener(const css::uno::Reference< css::frame::XDispatchResultListener >& xListener, void CloseDispatcher::implts_notifyResultListener(const css::uno::Reference< css::frame::XDispatchResultListener >& xListener,
sal_Int16 nState , sal_Int16 nState ,
const css::uno::Any& aResult ) const css::uno::Any& aResult )
@ -568,7 +552,6 @@ void CloseDispatcher::implts_notifyResultListener(const css::uno::Reference< css
xListener->dispatchFinished(aEvent); xListener->dispatchFinished(aEvent);
} }
css::uno::Reference< css::frame::XFrame > CloseDispatcher::static_impl_searchRightTargetFrame(const css::uno::Reference< css::frame::XFrame >& xFrame , css::uno::Reference< css::frame::XFrame > CloseDispatcher::static_impl_searchRightTargetFrame(const css::uno::Reference< css::frame::XFrame >& xFrame ,
const OUString& sTarget) const OUString& sTarget)
{ {

View File

@ -25,12 +25,10 @@
#include <com/sun/star/frame/CommandGroup.hpp> #include <com/sun/star/frame/CommandGroup.hpp>
#include <com/sun/star/frame/AppDispatchProvider.hpp> #include <com/sun/star/frame/AppDispatchProvider.hpp>
#include <comphelper/sequenceasvector.hxx> #include <comphelper/sequenceasvector.hxx>
namespace framework{ namespace framework{
DispatchInformationProvider::DispatchInformationProvider(const css::uno::Reference< css::uno::XComponentContext >& xContext , DispatchInformationProvider::DispatchInformationProvider(const css::uno::Reference< css::uno::XComponentContext >& xContext ,
const css::uno::Reference< css::frame::XFrame >& xFrame) const css::uno::Reference< css::frame::XFrame >& xFrame)
: m_xContext (xContext ) : m_xContext (xContext )
@ -38,12 +36,10 @@ DispatchInformationProvider::DispatchInformationProvider(const css::uno::Referen
{ {
} }
DispatchInformationProvider::~DispatchInformationProvider() DispatchInformationProvider::~DispatchInformationProvider()
{ {
} }
css::uno::Sequence< sal_Int16 > SAL_CALL DispatchInformationProvider::getSupportedCommandGroups() css::uno::Sequence< sal_Int16 > SAL_CALL DispatchInformationProvider::getSupportedCommandGroups()
throw (css::uno::RuntimeException, std::exception) throw (css::uno::RuntimeException, std::exception)
{ {
@ -75,7 +71,6 @@ css::uno::Sequence< sal_Int16 > SAL_CALL DispatchInformationProvider::getSupport
return lGroups.getAsConstList(); return lGroups.getAsConstList();
} }
css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL DispatchInformationProvider::getConfigurableDispatchInformation(sal_Int16 nCommandGroup) css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL DispatchInformationProvider::getConfigurableDispatchInformation(sal_Int16 nCommandGroup)
throw (css::uno::RuntimeException, std::exception) throw (css::uno::RuntimeException, std::exception)
{ {
@ -125,7 +120,6 @@ css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL DispatchInformati
return lReturn; return lReturn;
} }
css::uno::Sequence< css::uno::Reference< css::frame::XDispatchInformationProvider > > DispatchInformationProvider::implts_getAllSubProvider() css::uno::Sequence< css::uno::Reference< css::frame::XDispatchInformationProvider > > DispatchInformationProvider::implts_getAllSubProvider()
{ {
css::uno::Reference< css::frame::XFrame > xFrame(m_xFrame); css::uno::Reference< css::frame::XFrame > xFrame(m_xFrame);

View File

@ -176,11 +176,8 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryDeskt
return NULL; return NULL;
} }
// I) handle special cases which not right for using findFrame() first // I) handle special cases which not right for using findFrame() first
// I.I) "_blank" // I.I) "_blank"
// It's not the right place to create a new task here - because we are queried for a dispatch object // It's not the right place to create a new task here - because we are queried for a dispatch object
// only, which can handle such request. Such dispatcher should create the required task on demand. // only, which can handle such request. Such dispatcher should create the required task on demand.
@ -193,7 +190,6 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryDeskt
xDispatcher = implts_getOrCreateDispatchHelper( E_BLANKDISPATCHER, xDesktop ); xDispatcher = implts_getOrCreateDispatchHelper( E_BLANKDISPATCHER, xDesktop );
} }
// I.II) "_default" // I.II) "_default"
// This is a combination of search an empty task for recycling - or create a new one. // This is a combination of search an empty task for recycling - or create a new one.
@ -206,7 +202,6 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryDeskt
xDispatcher = implts_getOrCreateDispatchHelper( E_STARTMODULEDISPATCHER, xDesktop ); xDispatcher = implts_getOrCreateDispatchHelper( E_STARTMODULEDISPATCHER, xDesktop );
} }
// I.III) "_self", "", "_top" // I.III) "_self", "", "_top"
// The desktop can't load any document - but he can handle some special protocols like "uno", "slot" ... // The desktop can't load any document - but he can handle some special protocols like "uno", "slot" ...
// Why is "top" here handled too? Because the desktop is the topest frame. Normaly it's superflous // Why is "top" here handled too? Because the desktop is the topest frame. Normaly it's superflous
@ -221,7 +216,6 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryDeskt
xDispatcher = implts_searchProtocolHandler(aURL); xDispatcher = implts_searchProtocolHandler(aURL);
} }
// I.IV) no further special targets exist // I.IV) no further special targets exist
// Now we have to search for the right target frame by calling findFrame() - but should provide our code // Now we have to search for the right target frame by calling findFrame() - but should provide our code
// against creation of a new task if no frame could be found. // against creation of a new task if no frame could be found.
@ -248,8 +242,6 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryDeskt
return xDispatcher; return xDispatcher;
} }
css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryFrameDispatch( const css::uno::Reference< css::frame::XFrame > xFrame , css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryFrameDispatch( const css::uno::Reference< css::frame::XFrame > xFrame ,
const css::util::URL& aURL , const css::util::URL& aURL ,
const OUString& sTargetFrameName , const OUString& sTargetFrameName ,
@ -257,18 +249,13 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryFrame
{ {
css::uno::Reference< css::frame::XDispatch > xDispatcher; css::uno::Reference< css::frame::XDispatch > xDispatcher;
// 0) Some URLs are dispatched in a generic way (e.g. by the menu) using the default target "". // 0) Some URLs are dispatched in a generic way (e.g. by the menu) using the default target "".
// But they are specified to use her own fix target. Detect such URLs here and use the correct target. // But they are specified to use her own fix target. Detect such URLs here and use the correct target.
OUString sTargetName = sTargetFrameName; OUString sTargetName = sTargetFrameName;
// I) handle special cases which not right for using findFrame() first // I) handle special cases which not right for using findFrame() first
// I.I) "_blank", "_default" // I.I) "_blank", "_default"
// It's not the right place to create a new task here. Only the desktop can do that. // It's not the right place to create a new task here. Only the desktop can do that.
// Normaly the functionality for "_blank" is provided by findFrame() - but that would create it directly // Normaly the functionality for "_blank" is provided by findFrame() - but that would create it directly
@ -284,7 +271,6 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryFrame
xDispatcher = xParent->queryDispatch(aURL, sTargetName, 0); // it's a special target - ignore search flags xDispatcher = xParent->queryDispatch(aURL, sTargetName, 0); // it's a special target - ignore search flags
} }
// I.II) "_menubar" // I.II) "_menubar"
// Special mode on frame or task to receive the local menu. Not supported by findFrame() // Special mode on frame or task to receive the local menu. Not supported by findFrame()
@ -293,7 +279,6 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryFrame
xDispatcher = implts_getOrCreateDispatchHelper( E_MENUDISPATCHER, xFrame ); xDispatcher = implts_getOrCreateDispatchHelper( E_MENUDISPATCHER, xFrame );
} }
// I.IV) "_beamer" // I.IV) "_beamer"
// Special sub frame of a top frame only. Search or create it. ... OK it's currently a little bit HACKI. // Special sub frame of a top frame only. Search or create it. ... OK it's currently a little bit HACKI.
// Only the sfx (means the controller) can create it it. // Only the sfx (means the controller) can create it it.
@ -315,7 +300,6 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryFrame
} }
} }
// I.V) "_parent" // I.V) "_parent"
// Our parent frame (if it exist) should handle this URL. // Our parent frame (if it exist) should handle this URL.
@ -327,7 +311,6 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryFrame
xDispatcher = xParent->queryDispatch(aURL, SPECIALTARGET_SELF, 0); xDispatcher = xParent->queryDispatch(aURL, SPECIALTARGET_SELF, 0);
} }
// I.VI) "_top" // I.VI) "_top"
// This request must be forwarded to any parent frame, till we reach a top frame. // This request must be forwarded to any parent frame, till we reach a top frame.
// If no parent exist, we can handle itself. // If no parent exist, we can handle itself.
@ -351,7 +334,6 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryFrame
} }
} }
// I.VII) "_self", "" // I.VII) "_self", ""
// Our owner frame should handle this URL. But we can't do it for all of them. // Our owner frame should handle this URL. But we can't do it for all of them.
// So we ask the internal setted controller first. If he disagree we try to find a registered // So we ask the internal setted controller first. If he disagree we try to find a registered
@ -412,7 +394,6 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryFrame
} }
} }
// I.VI) no further special handlings exist // I.VI) no further special handlings exist
// Now we have to search for the right target frame by calling findFrame() - but should provide our code // Now we have to search for the right target frame by calling findFrame() - but should provide our code
// against creation of a new task if no frame could be found. // against creation of a new task if no frame could be found.
@ -458,8 +439,6 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryFrame
return xDispatcher; return xDispatcher;
} }
/** /**
@short search for a registered protocol handler and ask him for a dispatch object @short search for a registered protocol handler and ask him for a dispatch object
@descr Wes earch a suitable handler inside our cfg package org.openoffice.Office.ProtocolHandler. @descr Wes earch a suitable handler inside our cfg package org.openoffice.Office.ProtocolHandler.
@ -524,8 +503,6 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_searchProt
return xDispatcher; return xDispatcher;
} }
/** /**
@short get or create new dispatch helper @short get or create new dispatch helper
@descr Sometimes we need some helper implementations to support dispatching of special URLs or commands. @descr Sometimes we need some helper implementations to support dispatching of special URLs or commands.
@ -626,8 +603,6 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_getOrCreat
return xDispatchHelper; return xDispatchHelper;
} }
/** /**
@short check URL for support by our used loader or handler @short check URL for support by our used loader or handler
@descr If we must return our own dispatch helper implementations (self, blank, create dispatcher!) @descr If we must return our own dispatch helper implementations (self, blank, create dispatcher!)

View File

@ -23,14 +23,10 @@
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
namespace framework{ namespace framework{
sal_Bool InterceptionHelper::m_bPreferrFirstInterceptor = sal_True; sal_Bool InterceptionHelper::m_bPreferrFirstInterceptor = sal_True;
InterceptionHelper::InterceptionHelper(const css::uno::Reference< css::frame::XFrame >& xOwner, InterceptionHelper::InterceptionHelper(const css::uno::Reference< css::frame::XFrame >& xOwner,
const css::uno::Reference< css::frame::XDispatchProvider >& xSlave) const css::uno::Reference< css::frame::XDispatchProvider >& xSlave)
: m_xOwnerWeak (xOwner ) : m_xOwnerWeak (xOwner )

View File

@ -29,7 +29,6 @@
namespace framework{ namespace framework{
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DEFINE_XSERVICEINFO_MULTISERVICE_2(MailToDispatcher , DEFINE_XSERVICEINFO_MULTISERVICE_2(MailToDispatcher ,
@ -47,8 +46,6 @@ DEFINE_INIT_SERVICE(MailToDispatcher,
} }
) )
/** /**
@short standard ctor @short standard ctor
@descr These initialize a new instance of ths class with needed information for work. @descr These initialize a new instance of ths class with needed information for work.
@ -61,8 +58,6 @@ MailToDispatcher::MailToDispatcher( const css::uno::Reference< css::uno::XCompon
{ {
} }
/** /**
@short standard dtor @short standard dtor
@descr - @descr -
@ -71,8 +66,6 @@ MailToDispatcher::~MailToDispatcher()
{ {
} }
/** /**
@short decide if this dispatch implementation can be used for requested URL or not @short decide if this dispatch implementation can be used for requested URL or not
@descr A protocol handler is registerd for an URL pattern inside configuration and will @descr A protocol handler is registerd for an URL pattern inside configuration and will
@ -92,8 +85,6 @@ css::uno::Reference< css::frame::XDispatch > SAL_CALL MailToDispatcher::queryDis
return xDispatcher; return xDispatcher;
} }
/** /**
@short do the same like dispatch() but for multiple requests at the same time @short do the same like dispatch() but for multiple requests at the same time
@descr - @descr -
@ -112,8 +103,6 @@ css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL Mail
return lDispatcher; return lDispatcher;
} }
/** /**
@short dispatch URL with arguments @short dispatch URL with arguments
@descr We use threadsafe internal method to do so. It returns a state value - but we ignore it. @descr We use threadsafe internal method to do so. It returns a state value - but we ignore it.
@ -135,8 +124,6 @@ void SAL_CALL MailToDispatcher::dispatch( const css::util::URL&
// No notification for status listener! // No notification for status listener!
} }
/** /**
@short dispatch with guaranteed notifications about success @short dispatch with guaranteed notifications about success
@descr We use threadsafe internal method to do so. Return state of this function will be used @descr We use threadsafe internal method to do so. Return state of this function will be used
@ -172,8 +159,6 @@ void SAL_CALL MailToDispatcher::dispatchWithNotification( const css::util::URL&
} }
} }
/** /**
@short threadsafe helper for dispatch calls @short threadsafe helper for dispatch calls
@descr We support two interfaces for the same process - dispatch URLs. That the reason for this internal @descr We support two interfaces for the same process - dispatch URLs. That the reason for this internal
@ -215,8 +200,6 @@ sal_Bool MailToDispatcher::implts_dispatch( const css::util::URL&
return bSuccess; return bSuccess;
} }
/** /**
@short add/remove listener for state events @short add/remove listener for state events
@descr Because we use an external process to forward such mail URLs, and this process doesn't @descr Because we use an external process to forward such mail URLs, and this process doesn't
@ -234,8 +217,6 @@ void SAL_CALL MailToDispatcher::addStatusListener( const css::uno::Reference< cs
// not supported yet // not supported yet
} }
void SAL_CALL MailToDispatcher::removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/ , void SAL_CALL MailToDispatcher::removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/ ,
const css::util::URL& /*aURL*/ ) throw( css::uno::RuntimeException, std::exception ) const css::util::URL& /*aURL*/ ) throw( css::uno::RuntimeException, std::exception )
{ {

View File

@ -84,7 +84,6 @@ MenuDispatcher::MenuDispatcher( const uno::Reference< XComponentContext >&
xOwner->addFrameActionListener( uno::Reference< XFrameActionListener >( (OWeakObject *)this, UNO_QUERY )); xOwner->addFrameActionListener( uno::Reference< XFrameActionListener >( (OWeakObject *)this, UNO_QUERY ));
} }
// destructor // destructor
MenuDispatcher::~MenuDispatcher() MenuDispatcher::~MenuDispatcher()
@ -94,7 +93,6 @@ MenuDispatcher::~MenuDispatcher()
// and a dtor isn't the best place to do that! // and a dtor isn't the best place to do that!
} }
// XDispatch // XDispatch
void SAL_CALL MenuDispatcher::dispatch( const URL& /*aURL*/ , void SAL_CALL MenuDispatcher::dispatch( const URL& /*aURL*/ ,
@ -102,7 +100,6 @@ void SAL_CALL MenuDispatcher::dispatch( const URL& /
{ {
} }
// XDispatch // XDispatch
void SAL_CALL MenuDispatcher::addStatusListener( const uno::Reference< XStatusListener >& xControl, void SAL_CALL MenuDispatcher::addStatusListener( const uno::Reference< XStatusListener >& xControl,
@ -116,7 +113,6 @@ void SAL_CALL MenuDispatcher::addStatusListener( const uno::Reference< XStat
m_aListenerContainer.addInterface( aURL.Complete, xControl ); m_aListenerContainer.addInterface( aURL.Complete, xControl );
} }
// XDispatch // XDispatch
void SAL_CALL MenuDispatcher::removeStatusListener( const uno::Reference< XStatusListener >& xControl, void SAL_CALL MenuDispatcher::removeStatusListener( const uno::Reference< XStatusListener >& xControl,
@ -130,10 +126,8 @@ void SAL_CALL MenuDispatcher::removeStatusListener( const uno::Reference< X
m_aListenerContainer.removeInterface( aURL.Complete, xControl ); m_aListenerContainer.removeInterface( aURL.Complete, xControl );
} }
// XFrameActionListener // XFrameActionListener
void SAL_CALL MenuDispatcher::frameAction( const FrameActionEvent& aEvent ) throw ( RuntimeException, std::exception ) void SAL_CALL MenuDispatcher::frameAction( const FrameActionEvent& aEvent ) throw ( RuntimeException, std::exception )
{ {
SolarMutexResettableGuard aGuard; SolarMutexResettableGuard aGuard;
@ -169,7 +163,6 @@ void SAL_CALL MenuDispatcher::frameAction( const FrameActionEvent& aEvent ) thro
} }
} }
// XEventListener // XEventListener
void SAL_CALL MenuDispatcher::disposing( const EventObject& ) throw( RuntimeException, std::exception ) void SAL_CALL MenuDispatcher::disposing( const EventObject& ) throw( RuntimeException, std::exception )
{ {
@ -206,7 +199,6 @@ void SAL_CALL MenuDispatcher::disposing( const EventObject& ) throw( RuntimeExce
} }
} }
// private method // private method
void MenuDispatcher::impl_setAccelerators( Menu* pMenu, const Accelerator& aAccel ) void MenuDispatcher::impl_setAccelerators( Menu* pMenu, const Accelerator& aAccel )
@ -226,7 +218,6 @@ void MenuDispatcher::impl_setAccelerators( Menu* pMenu, const Accelerator& aAcce
} }
} }
// private method // private method
sal_Bool MenuDispatcher::impl_setMenuBar( MenuBar* pMenuBar, sal_Bool bMenuFromResource ) sal_Bool MenuDispatcher::impl_setMenuBar( MenuBar* pMenuBar, sal_Bool bMenuFromResource )
@ -306,7 +297,6 @@ static sal_Bool impldbg_checkParameter_MenuDispatcher( const uno::Reference<
return xContext.is() && xOwner.is(); return xContext.is() && xOwner.is();
} }
// We need a valid URL. What is meaning with "register for nothing"?! // We need a valid URL. What is meaning with "register for nothing"?!
// xControl must correct to - nobody can advised otherwise! // xControl must correct to - nobody can advised otherwise!
static sal_Bool impldbg_checkParameter_addStatusListener( const uno::Reference< XStatusListener >& xControl, static sal_Bool impldbg_checkParameter_addStatusListener( const uno::Reference< XStatusListener >& xControl,
@ -327,7 +317,6 @@ static sal_Bool impldbg_checkParameter_addStatusListener( const uno::Reference
return bOK ; return bOK ;
} }
// The same goes for these case! We have added valid listener for correct URL only. // The same goes for these case! We have added valid listener for correct URL only.
// We can't remove invalid listener for nothing! // We can't remove invalid listener for nothing!
static sal_Bool impldbg_checkParameter_removeStatusListener( const uno::Reference< XStatusListener >& xControl, static sal_Bool impldbg_checkParameter_removeStatusListener( const uno::Reference< XStatusListener >& xControl,

View File

@ -31,10 +31,8 @@
namespace framework{ namespace framework{
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DEFINE_XSERVICEINFO_MULTISERVICE ( Oxt_Handler , DEFINE_XSERVICEINFO_MULTISERVICE ( Oxt_Handler ,
::cppu::OWeakObject , ::cppu::OWeakObject ,
SERVICENAME_CONTENTHANDLER , SERVICENAME_CONTENTHANDLER ,

View File

@ -31,7 +31,6 @@ namespace framework{
#define PROTOCOL_VALUE "service:" #define PROTOCOL_VALUE "service:"
#define PROTOCOL_LENGTH 8 #define PROTOCOL_LENGTH 8
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DEFINE_XSERVICEINFO_MULTISERVICE(ServiceHandler , DEFINE_XSERVICEINFO_MULTISERVICE(ServiceHandler ,
@ -49,8 +48,6 @@ DEFINE_INIT_SERVICE(ServiceHandler,
} }
) )
/** /**
@short standard ctor @short standard ctor
@descr These initialize a new instance of ths class with needed information for work. @descr These initialize a new instance of ths class with needed information for work.
@ -63,8 +60,6 @@ ServiceHandler::ServiceHandler( const css::uno::Reference< css::lang::XMultiServ
{ {
} }
/** /**
@short standard dtor @short standard dtor
@descr - @descr -
@ -73,8 +68,6 @@ ServiceHandler::~ServiceHandler()
{ {
} }
/** /**
@short decide if this dispatch implementation can be used for requested URL or not @short decide if this dispatch implementation can be used for requested URL or not
@descr A protocol handler is registerd for an URL pattern inside configuration and will @descr A protocol handler is registerd for an URL pattern inside configuration and will
@ -94,8 +87,6 @@ css::uno::Reference< css::frame::XDispatch > SAL_CALL ServiceHandler::queryDispa
return xDispatcher; return xDispatcher;
} }
/** /**
@short do the same like dispatch() but for multiple requests at the same time @short do the same like dispatch() but for multiple requests at the same time
@descr - @descr -
@ -114,8 +105,6 @@ css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL Serv
return lDispatcher; return lDispatcher;
} }
/** /**
@short dispatch URL with arguments @short dispatch URL with arguments
@descr We use threadsafe internal method to do so. It returns a state value - but we ignore it. @descr We use threadsafe internal method to do so. It returns a state value - but we ignore it.
@ -136,8 +125,6 @@ void SAL_CALL ServiceHandler::dispatch( const css::util::URL&
// No notification for status listener! // No notification for status listener!
} }
/** /**
@short dispatch with guaranteed notifications about success @short dispatch with guaranteed notifications about success
@descr We use threadsafe internal method to do so. Return state of this function will be used @descr We use threadsafe internal method to do so. Return state of this function will be used
@ -174,8 +161,6 @@ void SAL_CALL ServiceHandler::dispatchWithNotification( const css::util::URL&
} }
} }
/** /**
@short threadsafe helper for dispatch calls @short threadsafe helper for dispatch calls
@descr We support two interfaces for the same process - dispatch URLs. That the reason for this internal @descr We support two interfaces for the same process - dispatch URLs. That the reason for this internal
@ -245,8 +230,6 @@ css::uno::Reference< css::uno::XInterface > ServiceHandler::implts_dispatch( con
return xService; return xService;
} }
/** /**
@short add/remove listener for state events @short add/remove listener for state events
@descr We use an internal container to hold such registered listener. This container lives if we live. @descr We use an internal container to hold such registered listener. This container lives if we live.
@ -264,8 +247,6 @@ void SAL_CALL ServiceHandler::addStatusListener( const css::uno::Reference< css:
// not supported yet // not supported yet
} }
void SAL_CALL ServiceHandler::removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/ , void SAL_CALL ServiceHandler::removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/ ,
const css::util::URL& /*aURL*/ ) throw( css::uno::RuntimeException, std::exception ) const css::util::URL& /*aURL*/ ) throw( css::uno::RuntimeException, std::exception )
{ {

View File

@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <dispatch/startmoduledispatcher.hxx> #include <dispatch/startmoduledispatcher.hxx>
#include <pattern/frame.hxx> #include <pattern/frame.hxx>
@ -42,7 +41,6 @@
#include <unotools/moduleoptions.hxx> #include <unotools/moduleoptions.hxx>
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
namespace framework{ namespace framework{
#ifdef fpf #ifdef fpf
@ -50,8 +48,6 @@ namespace framework{
#endif #endif
namespace fpf = ::framework::pattern::frame; namespace fpf = ::framework::pattern::frame;
StartModuleDispatcher::StartModuleDispatcher(const css::uno::Reference< css::uno::XComponentContext >& rxContext, StartModuleDispatcher::StartModuleDispatcher(const css::uno::Reference< css::uno::XComponentContext >& rxContext,
const css::uno::Reference< css::frame::XFrame >& xFrame , const css::uno::Reference< css::frame::XFrame >& xFrame ,
const OUString& sTarget) const OUString& sTarget)
@ -62,12 +58,10 @@ StartModuleDispatcher::StartModuleDispatcher(const css::uno::Reference< css::uno
{ {
} }
StartModuleDispatcher::~StartModuleDispatcher() StartModuleDispatcher::~StartModuleDispatcher()
{ {
} }
void SAL_CALL StartModuleDispatcher::dispatch(const css::util::URL& aURL , void SAL_CALL StartModuleDispatcher::dispatch(const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments) const css::uno::Sequence< css::beans::PropertyValue >& lArguments)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
@ -75,7 +69,6 @@ void SAL_CALL StartModuleDispatcher::dispatch(const css::util::URL&
dispatchWithNotification(aURL, lArguments, css::uno::Reference< css::frame::XDispatchResultListener >()); dispatchWithNotification(aURL, lArguments, css::uno::Reference< css::frame::XDispatchResultListener >());
} }
void SAL_CALL StartModuleDispatcher::dispatchWithNotification(const css::util::URL& aURL , void SAL_CALL StartModuleDispatcher::dispatchWithNotification(const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& /*lArguments*/, const css::uno::Sequence< css::beans::PropertyValue >& /*lArguments*/,
const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) const css::uno::Reference< css::frame::XDispatchResultListener >& xListener )
@ -95,35 +88,30 @@ void SAL_CALL StartModuleDispatcher::dispatchWithNotification(const css::util::U
implts_notifyResultListener(xListener, nResult, css::uno::Any()); implts_notifyResultListener(xListener, nResult, css::uno::Any());
} }
css::uno::Sequence< ::sal_Int16 > SAL_CALL StartModuleDispatcher::getSupportedCommandGroups() css::uno::Sequence< ::sal_Int16 > SAL_CALL StartModuleDispatcher::getSupportedCommandGroups()
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
return css::uno::Sequence< ::sal_Int16 >(); return css::uno::Sequence< ::sal_Int16 >();
} }
css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL StartModuleDispatcher::getConfigurableDispatchInformation(::sal_Int16 /*nCommandGroup*/) css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL StartModuleDispatcher::getConfigurableDispatchInformation(::sal_Int16 /*nCommandGroup*/)
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
return css::uno::Sequence< css::frame::DispatchInformation >(); return css::uno::Sequence< css::frame::DispatchInformation >();
} }
void SAL_CALL StartModuleDispatcher::addStatusListener(const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/, void SAL_CALL StartModuleDispatcher::addStatusListener(const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/,
const css::util::URL& /*aURL*/ ) const css::util::URL& /*aURL*/ )
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
} }
void SAL_CALL StartModuleDispatcher::removeStatusListener(const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/, void SAL_CALL StartModuleDispatcher::removeStatusListener(const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/,
const css::util::URL& /*aURL*/ ) const css::util::URL& /*aURL*/ )
throw(css::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
} }
sal_Bool StartModuleDispatcher::implts_isBackingModePossible () sal_Bool StartModuleDispatcher::implts_isBackingModePossible ()
{ {
if ( ! SvtModuleOptions().IsModuleInstalled(SvtModuleOptions::E_SSTARTMODULE)) if ( ! SvtModuleOptions().IsModuleInstalled(SvtModuleOptions::E_SSTARTMODULE))
@ -151,7 +139,6 @@ sal_Bool StartModuleDispatcher::implts_isBackingModePossible ()
return bIsPossible; return bIsPossible;
} }
sal_Bool StartModuleDispatcher::implts_establishBackingMode() sal_Bool StartModuleDispatcher::implts_establishBackingMode()
{ {
css::uno::Reference< css::frame::XDesktop2> xDesktop = css::frame::Desktop::create( m_xContext ); css::uno::Reference< css::frame::XDesktop2> xDesktop = css::frame::Desktop::create( m_xContext );
@ -167,7 +154,6 @@ sal_Bool StartModuleDispatcher::implts_establishBackingMode()
return sal_True; return sal_True;
} }
void StartModuleDispatcher::implts_notifyResultListener(const css::uno::Reference< css::frame::XDispatchResultListener >& xListener, void StartModuleDispatcher::implts_notifyResultListener(const css::uno::Reference< css::frame::XDispatchResultListener >& xListener,
::sal_Int16 nState , ::sal_Int16 nState ,
const css::uno::Any& aResult ) const css::uno::Any& aResult )

View File

@ -35,7 +35,6 @@ namespace framework{
#define PROTOCOL_VALUE "systemexecute:" #define PROTOCOL_VALUE "systemexecute:"
#define PROTOCOL_LENGTH 14 #define PROTOCOL_LENGTH 14
// XInterface, XTypeProvider, XServiceInfo // XInterface, XTypeProvider, XServiceInfo
DEFINE_XSERVICEINFO_MULTISERVICE_2(SystemExec , DEFINE_XSERVICEINFO_MULTISERVICE_2(SystemExec ,
@ -53,21 +52,15 @@ DEFINE_INIT_SERVICE(SystemExec,
} }
) )
SystemExec::SystemExec( const css::uno::Reference< css::uno::XComponentContext >& rxContext ) SystemExec::SystemExec( const css::uno::Reference< css::uno::XComponentContext >& rxContext )
: m_xContext ( rxContext ) : m_xContext ( rxContext )
{ {
} }
SystemExec::~SystemExec() SystemExec::~SystemExec()
{ {
} }
css::uno::Reference< css::frame::XDispatch > SAL_CALL SystemExec::queryDispatch( const css::util::URL& aURL , css::uno::Reference< css::frame::XDispatch > SAL_CALL SystemExec::queryDispatch( const css::util::URL& aURL ,
const OUString&, const OUString&,
sal_Int32 ) throw( css::uno::RuntimeException, std::exception ) sal_Int32 ) throw( css::uno::RuntimeException, std::exception )
@ -78,8 +71,6 @@ css::uno::Reference< css::frame::XDispatch > SAL_CALL SystemExec::queryDispatch(
return xDispatcher; return xDispatcher;
} }
css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL SystemExec::queryDispatches( const css::uno::Sequence< css::frame::DispatchDescriptor >& lDescriptor ) throw( css::uno::RuntimeException, std::exception ) css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL SystemExec::queryDispatches( const css::uno::Sequence< css::frame::DispatchDescriptor >& lDescriptor ) throw( css::uno::RuntimeException, std::exception )
{ {
sal_Int32 nCount = lDescriptor.getLength(); sal_Int32 nCount = lDescriptor.getLength();
@ -94,16 +85,12 @@ css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL Syst
return lDispatcher; return lDispatcher;
} }
void SAL_CALL SystemExec::dispatch( const css::util::URL& aURL , void SAL_CALL SystemExec::dispatch( const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException, std::exception ) const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException, std::exception )
{ {
dispatchWithNotification(aURL, lArguments, css::uno::Reference< css::frame::XDispatchResultListener >()); dispatchWithNotification(aURL, lArguments, css::uno::Reference< css::frame::XDispatchResultListener >());
} }
void SAL_CALL SystemExec::dispatchWithNotification( const css::util::URL& aURL , void SAL_CALL SystemExec::dispatchWithNotification( const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >&, const css::uno::Sequence< css::beans::PropertyValue >&,
const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) throw( css::uno::RuntimeException, std::exception ) const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) throw( css::uno::RuntimeException, std::exception )
@ -136,24 +123,18 @@ void SAL_CALL SystemExec::dispatchWithNotification( const css::util::URL&
} }
} }
void SAL_CALL SystemExec::addStatusListener( const css::uno::Reference< css::frame::XStatusListener >&, void SAL_CALL SystemExec::addStatusListener( const css::uno::Reference< css::frame::XStatusListener >&,
const css::util::URL& ) throw( css::uno::RuntimeException, std::exception ) const css::util::URL& ) throw( css::uno::RuntimeException, std::exception )
{ {
// not supported yet // not supported yet
} }
void SAL_CALL SystemExec::removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >&, void SAL_CALL SystemExec::removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >&,
const css::util::URL& ) throw( css::uno::RuntimeException, std::exception ) const css::util::URL& ) throw( css::uno::RuntimeException, std::exception )
{ {
// not supported yet // not supported yet
} }
void SystemExec::impl_notifyResultListener(const css::uno::Reference< css::frame::XDispatchResultListener >& xListener, void SystemExec::impl_notifyResultListener(const css::uno::Reference< css::frame::XDispatchResultListener >& xListener,
const sal_Int16 nState ) const sal_Int16 nState )
{ {

Some files were not shown because too many files have changed in this diff Show More