summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-06-26 17:51:23 +0200
committerThomas Arnhold <thomas@arnhold.org>2012-06-27 13:34:23 +0200
commit6fcac7dfc4f2ad85e08aea781cfab28443e3781e (patch)
treefbbf82cb46dde6f13b6f5f11664c2c908b5709e1 /framework
parente5c28b86bed03c70bbe3054ccfcc6cb96291c580 (diff)
Remove unused include files
Those never get included at any point in the code. Change-Id: I17736e005635b9e57759cfc95176a99e7c5e8988
Diffstat (limited to 'framework')
-rw-r--r--framework/inc/classes/servicemanager.hxx282
-rw-r--r--framework/inc/dispatch/blankdispatcher.hxx123
-rw-r--r--framework/inc/dispatch/createdispatcher.hxx121
-rw-r--r--framework/inc/dispatch/selfdispatcher.hxx106
-rw-r--r--framework/inc/helper/fixeddocumentproperties.hxx60
-rw-r--r--framework/inc/helper/otasksaccess.hxx248
-rw-r--r--framework/inc/helper/otasksenumeration.hxx264
-rw-r--r--framework/inc/helper/timerhelper.hxx46
-rw-r--r--framework/inc/macros/debug/memorymeasure.hxx224
-rw-r--r--framework/inc/services/detectorfactory.hxx460
-rw-r--r--framework/inc/services/pluginframe.hxx367
-rw-r--r--framework/source/inc/pattern/storages.hxx96
12 files changed, 0 insertions, 2397 deletions
diff --git a/framework/inc/classes/servicemanager.hxx b/framework/inc/classes/servicemanager.hxx
deleted file mode 100644
index e8692a934be4..000000000000
--- a/framework/inc/classes/servicemanager.hxx
+++ /dev/null
@@ -1,282 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef __FRAMEWORK_CLASSES_SERVICEMANAGER_HXX_
-#define __FRAMEWORK_CLASSES_SERVICEMANAGER_HXX_
-
-//_________________________________________________________________________________________________________________
-// my own includes
-//_________________________________________________________________________________________________________________
-
-#include <macros/debug.hxx>
-
-//_________________________________________________________________________________________________________________
-// interface includes
-//_________________________________________________________________________________________________________________
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-
-//_________________________________________________________________________________________________________________
-// other includes
-//_________________________________________________________________________________________________________________
-#include <com/sun/star/uno/Reference.hxx>
-#include <rtl/ustring.hxx>
-#include <osl/mutex.hxx>
-
-//_________________________________________________________________________________________________________________
-// namespace
-//_________________________________________________________________________________________________________________
-
-namespace framework{
-
-#define REFERENCE ::com::sun::star::uno::Reference
-#define XMULTISERVICEFACTORY ::com::sun::star::lang::XMultiServiceFactory
-#define MUTEX ::osl::Mutex
-
-//_________________________________________________________________________________________________________________
-// exported const
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// exported definitions
-//_________________________________________________________________________________________________________________
-
-/*-************************************************************************************************************//**
- @short create a new global servicemanager
- @descr A global servicemanager is neccessary to instanciate UNO-services. To do this, you need
- a factory to create new objects with special type. That's the reason for a servicemanager.
-
- @implements -
- @base -
-
- @devstatus ready to use
-*//*-*************************************************************************************************************/
-
-class ServiceManager
-{
- //-------------------------------------------------------------------------------------------------------------
- // public methods
- //-------------------------------------------------------------------------------------------------------------
-
- public:
-
- //---------------------------------------------------------------------------------------------------------
- // constructor / destructor
- //---------------------------------------------------------------------------------------------------------
-
- /*-****************************************************************************************************//**
- @short standard constructor
- @descr This method don't initialize the new global servicemanager!
- But we increase an internal ref count. These is needed in dtor to release
- all created static references to created service mamanger!
-
- @seealso dtor
-
- @param -
- @return -
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- ServiceManager();
-
- /*-****************************************************************************************************//**
- @short standard destructor to delete instance
- @descr Here is a good place to destroy the global manager instances!
-
- @seealso ctor
-
- @param -
- @return -
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- virtual ~ServiceManager();
-
- /*-****************************************************************************************************//**
- @short initialize global uno service manager and return it
- @descr This method create a new manager only at first call. We confiscate this with a static
- pointer, which will be initialized only, if it NULL!
- Then you can call this method everytime to get a reference to the manager.
- If you will initialize an uno application you must set returned reference in ::comphelper::setProcessServiceFactory()!
- The created manager use "applicat.rdb" and "userXX.rdb" automaticly.
-
- @seealso -
-
- @param -
- @return A reference to the global servicemanager. It can be NULL!
-
- @onerror We return a null-reference.
- *//*-*****************************************************************************************************/
-
- REFERENCE< XMULTISERVICEFACTORY > getGlobalUNOServiceManager();
-
- /*-****************************************************************************************************//**
- @short initialize global uno service manager and return it
- @descr Do the same like getGlobalUNOServiceManager() before, but use "applicat.rdb" only!
-
- @seealso -
-
- @param -
- @return A reference to the global servicemanager. It can be NULL!
-
- @onerror We return a null-reference.
- *//*-*****************************************************************************************************/
-
- REFERENCE< XMULTISERVICEFACTORY > getSimpleGlobalUNOServiceManager();
-
- /*-****************************************************************************************************//**
- @short return a reference to a uno servicemanager instance which use your specified user registry file
- @descr This do the same like method before - but instead of "userXX.rdb" we use your file.
- These is neccessary, if you will run more then one uno application at the same time in same environment!
- All created servicemanager use the same "applicat.rdb" but different user registries.
-
- @ATTENTION Given file name must be a full qualified system file name. If file not already exist we create a new one!
- "applicat.rdb", "userXX.rdb" are not valid values!
-
- @seealso method generateGlobalUNOServiceManager()
- @seealso method generatePrivateUNOServiceManager()
-
- @param "sUserRegistryFile", full qualified system file name of user registry
- @return A reference to the created servicemanager. It can be NULL!
-
- @onerror We return a null-reference.
- *//*-*****************************************************************************************************/
-
- REFERENCE< XMULTISERVICEFACTORY > getSharedUNOServiceManager( const ::rtl::OUString& sUserRegistryFile );
-
- /*-****************************************************************************************************//**
- @short return a reference to a uno servicemanager instance which use your specified user registry file only
- @descr This do the same like methods before - but use your file as the only one registry.
- "applicat.rdb" is used here!
-
- @ATTENTION Given file name must be a full qualified system file name. If file not already exist we create a new one!
- "applicat.rdb", "userXX.rdb" are not valid values!
- If file was new created - you must register services at runtime himself.
- Otherwise no service could be created by these manager ...
-
- @seealso method generateGlobalUNOServiceManager()
- @seealso method generateSharedUNOServiceManager()
-
- @param "sUserRegistryFile", full qualified system file name of user registry
- @return A reference to the created servicemanager. It can be NULL!
-
- @onerror We return a null-reference.
- *//*-*****************************************************************************************************/
-
- REFERENCE< XMULTISERVICEFACTORY > getPrivateUNOServiceManager( const ::rtl::OUString& sUserRegistryFile );
-
- //-------------------------------------------------------------------------------------------------------------
- // protected methods
- //-------------------------------------------------------------------------------------------------------------
-
- protected:
-
- //-------------------------------------------------------------------------------------------------------------
- // private methods
- //-------------------------------------------------------------------------------------------------------------
-
- private:
-
- /*-****************************************************************************************************//**
- @short create our own global mutex to prevent us against multithreaded problems
- @descr We use some static member. For correct access to it we must use the global osl mutex ...
- but its not fine to do so! These block ALL other operations, which need these mutex too.
- That's the reason to create our own static mutex. Only first creation is protected
- by the global mutex, using isn't it!
-
- @seealso using
-
- @param -
- @return reference to created static own global mutex
-
- @onerror No error should occure.
- *//*-*****************************************************************************************************/
-
- MUTEX& impl_getOwnGlobalMutex();
-
- /*-****************************************************************************************************//**
- @short create a new global servicemanager instance
- @descr Is a helper-method for getManager().
-
- @seealso method getManager()
-
- @param "sRegistryFile", file name of user registry.
- @return A reference to a new initialized servicemanager with a valid registry.
- It can be NULL, if an error occurred.
-
- @onerror Return a NULL-reference.
- *//*-*****************************************************************************************************/
-
- REFERENCE< XMULTISERVICEFACTORY > impl_createManager( const ::rtl::OUString& sRegistryFile );
-
- //-------------------------------------------------------------------------------------------------------------
- // debug methods
- // (should be private everyway!)
- //-------------------------------------------------------------------------------------------------------------
-
- /*-****************************************************************************************************//**
- @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
- of this class. The return value is used directly for an ASSERT(...).
-
- @seealso ASSERTs in implementation!
-
- @param references to checking variables
- @return sal_False on invalid parameter<BR>
- sal_True otherway
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- #ifdef ENABLE_ASSERTIONS
-
- private:
-
- #endif // #ifdef ENABLE_ASSERTIONS
-
- //-------------------------------------------------------------------------------------------------------------
- // private variables
- // (should be private everyway!)
- //-------------------------------------------------------------------------------------------------------------
-
- private:
-
- static REFERENCE< XMULTISERVICEFACTORY >* m_pGlobalServiceManager ;
- static REFERENCE< XMULTISERVICEFACTORY >* m_pSimpleGlobalServiceManager ;
- static REFERENCE< XMULTISERVICEFACTORY >* m_pSharedServiceManager ;
- static REFERENCE< XMULTISERVICEFACTORY >* m_pPrivateServiceManager ;
- static sal_Int32 m_nRefCount ;
-
-}; // class ServiceManager
-
-} // namespace framework
-
-#endif // #ifndef __FRAMEWORK_CLASSES_SERVICEMANAGER_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/dispatch/blankdispatcher.hxx b/framework/inc/dispatch/blankdispatcher.hxx
deleted file mode 100644
index 439e43aaa343..000000000000
--- a/framework/inc/dispatch/blankdispatcher.hxx
+++ /dev/null
@@ -1,123 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef __FRAMEWORK_DISPATCH_BLANKDISPATCHER_HXX_
-#define __FRAMEWORK_DISPATCH_BLANKDISPATCHER_HXX_
-
-//_________________________________________________________________________________________________________________
-// my own includes
-//_________________________________________________________________________________________________________________
-
-#include <dispatch/basedispatcher.hxx>
-
-//_________________________________________________________________________________________________________________
-// interface includes
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// other includes
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// namespace
-//_________________________________________________________________________________________________________________
-
-namespace framework{
-
-//_________________________________________________________________________________________________________________
-// exported const
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// exported definitions
-//_________________________________________________________________________________________________________________
-
-/*-************************************************************************************************************//**
- @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.
- XInterface will be ambigous and we hold a weakreference to ouer OWNER - not to ouer SUPERCLASS!
-
- @implements XInterface
- XDispatch
- XStatusListener
- XLoadEventListener
- XEventListener
-
- @base BaseDispatcher
- OWeakObject
-
- @devstatus ready to use
- @threadsafe yes
-*//*-*************************************************************************************************************/
-class BlankDispatcher : // -interfaces ... are supported by our BaseDispatcher!
- // -baseclasses ... order is neccessary for right initialization!
- public BaseDispatcher
-{
- //-------------------------------------------------------------------------------------------------------------
- // public methods
- //-------------------------------------------------------------------------------------------------------------
- public:
- // ctor
- BlankDispatcher ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory ,
- const css::uno::Reference< css::frame::XFrame >& xDesktop,
- sal_Bool bIsDefaultDispatcher );
- // XDispatch
- virtual void SAL_CALL dispatch ( const css::util::URL& aURL ,
- const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException );
-
- //-------------------------------------------------------------------------------------------------------------
- // protected methods
- //-------------------------------------------------------------------------------------------------------------
- protected:
- virtual void SAL_CALL reactForLoadingState ( const css::util::URL& aURL ,
- const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ,
- const css::uno::Reference< css::frame::XFrame >& xTarget ,
- sal_Bool bState ,
- const css::uno::Any& aAsyncInfo );
-
- virtual void SAL_CALL reactForHandlingState( const css::util::URL& aURL ,
- const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ,
- sal_Bool bState ,
- const css::uno::Any& aAsyncInfo );
-
- //-------------------------------------------------------------------------------------------------------------
- // protected methods
- //-------------------------------------------------------------------------------------------------------------
- private:
- sal_Bool implts_findAndActivateAlreadyLoadedTask( const css::util::URL& aURL ,
- const css::uno::Sequence< css::beans::PropertyValue >& lArguments ,
- const css::uno::Reference< css::frame::XFrame > xDesktop );
-
- css::uno::Reference< css::frame::XFrame > implts_findAndLockRecycleTask( const css::util::URL& aURL ,
- const css::uno::Sequence< css::beans::PropertyValue >& lArguments ,
- const css::uno::Reference< css::frame::XFrame > xDesktop );
-
- //-------------------------------------------------------------------------------------------------------------
- // variables
- // (should be private everyway!)
- //-------------------------------------------------------------------------------------------------------------
- private:
- sal_Bool m_bIsDefaultDispatcher;
-}; // class BlankDispatcher
-
-} // namespace framework
-
-#endif // #ifndef __FRAMEWORK_DISPATCH_BLANKDISPATCHER_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/dispatch/createdispatcher.hxx b/framework/inc/dispatch/createdispatcher.hxx
deleted file mode 100644
index a6d411e6b971..000000000000
--- a/framework/inc/dispatch/createdispatcher.hxx
+++ /dev/null
@@ -1,121 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef __FRAMEWORK_DISPATCH_CREATEDISPATCHER_HXX_
-#define __FRAMEWORK_DISPATCH_CREATEDISPATCHER_HXX_
-
-//_________________________________________________________________________________________________________________
-// my own includes
-//_________________________________________________________________________________________________________________
-
-#include <dispatch/basedispatcher.hxx>
-
-//_________________________________________________________________________________________________________________
-// interface includes
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// other includes
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// namespace
-//_________________________________________________________________________________________________________________
-
-namespace framework{
-
-//_________________________________________________________________________________________________________________
-// exported const
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// exported definitions
-//_________________________________________________________________________________________________________________
-
-/*-************************************************************************************************************//**
- @short helper to create new frames by using non special target name and CREATE flag
- @descr If user whish to find any frame by name or will create it, if it not already exist ...
- these dispatch helper should be used. Because - a frame must be created at dispatch call ...
- not on queryDispatch()! So we hold weakreferences to the possible parent frame, safe the name
- of new frame. If user call dispatch at us - we check a weakreference to our last created frame
- (he should have same name!) ... if he exist - we do nothing ... if not - we create it again.
- But if possible parent for new created task doesn't exist - we couldn't do anything!
- Then we wait for our own dispose and do nothing.
-
- @attention Use this class as member only! Never use it as baseclass.
- XInterface will be ambigous and we hold a weakreference to ouer OWNER - not to ouer SUPERCLASS!
-
- @implements XInterface
- XDispatch
- XStatusListener
- XLoadEventListener
- XEventListener
-
- @base BaseDispatcher
-
- @devstatus ready to use
- @threadsafe yes
-*//*-*************************************************************************************************************/
-class CreateDispatcher : // -interfaces ... are supported by our BaseDispatcher!
- // -baseclasses ... order is neccessary for right initialization!
- public BaseDispatcher
-{
- //-------------------------------------------------------------------------------------------------------------
- // public methods
- //-------------------------------------------------------------------------------------------------------------
- public:
- // ctor
- CreateDispatcher ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory ,
- const css::uno::Reference< css::frame::XFrame >& xParent ,
- const rtl::OUString& sName );
- // XDispatch
- virtual void SAL_CALL dispatch ( const css::util::URL& aURL ,
- const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException );
-
- //-------------------------------------------------------------------------------------------------------------
- // protected methods
- //-------------------------------------------------------------------------------------------------------------
- protected:
- virtual void SAL_CALL reactForLoadingState ( const css::util::URL& aURL ,
- const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ,
- const css::uno::Reference< css::frame::XFrame >& xTarget ,
- sal_Bool bState ,
- const css::uno::Any& aAsyncInfo = css::uno::Any() );
-
- virtual void SAL_CALL reactForHandlingState( const css::util::URL& aURL ,
- const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ,
- sal_Bool bState ,
- const css::uno::Any& aAsyncInfo = css::uno::Any() )
- { LOG_WARNING( "CreateDispatcher::reactForHandlingState()", "Who call this function! It's a non used pure virtual function overload ..." ) }
-
- //-------------------------------------------------------------------------------------------------------------
- // variables
- // (should be private everyway!)
- //-------------------------------------------------------------------------------------------------------------
- private:
- css::uno::WeakReference< css::frame::XFrame > m_xTarget ; /// new created frame (Don't hold hard reference ... target frame couldn't die then!)
- ::rtl::OUString m_sTargetName ; /// name of new created frame
-
-}; // class CreateDispatcher
-
-} // namespace framework
-
-#endif // #ifndef __FRAMEWORK_DISPATCH_CREATEDISPATCHER_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/dispatch/selfdispatcher.hxx b/framework/inc/dispatch/selfdispatcher.hxx
deleted file mode 100644
index ffbaae7d0742..000000000000
--- a/framework/inc/dispatch/selfdispatcher.hxx
+++ /dev/null
@@ -1,106 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef __FRAMEWORK_DISPATCH_SELFDISPATCHER_HXX_
-#define __FRAMEWORK_DISPATCH_SELFDISPATCHER_HXX_
-
-//_________________________________________________________________________________________________________________
-// my own includes
-//_________________________________________________________________________________________________________________
-
-#include <dispatch/basedispatcher.hxx>
-
-//_________________________________________________________________________________________________________________
-// interface includes
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// other includes
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// namespace
-//_________________________________________________________________________________________________________________
-
-namespace framework{
-
-//_________________________________________________________________________________________________________________
-// exported const
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// exported definitions
-//_________________________________________________________________________________________________________________
-
-/*-************************************************************************************************************//**
- @short helper to dispatch into an existing owner frame
- @descr You should use it as dispatcher for "_self", flag::SELF ... cases, to load a document into an
- owner frame without creation of a new one.
- Use this class as member only! Never use it as baseclass.
- XInterface will be ambigous and we hold a weakreference to ouer OWNER - not to ouer SUPERCLASS!
-
- @implements XInterface
- XDispatch
- XStatusListener
- XLoadEventListener
- XEventListener
-
- @base BaseDispatcher
- OWeakObject
-
- @devstatus ready to use
- @threadsafe yes
-*//*-*************************************************************************************************************/
-class SelfDispatcher : // -interfaces ... are supported by our BaseDispatcher!
- // -baseclasses ... order is neccessary for right initialization!
- public BaseDispatcher
-{
- //-------------------------------------------------------------------------------------------------------------
- // public methods
- //-------------------------------------------------------------------------------------------------------------
- public:
- // ctor
- SelfDispatcher ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory ,
- const css::uno::Reference< css::frame::XFrame >& xTarget );
- // XDispatch
- virtual void SAL_CALL dispatch ( const css::util::URL& aURL ,
- const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException );
-
- //-------------------------------------------------------------------------------------------------------------
- // protected methods
- //-------------------------------------------------------------------------------------------------------------
- protected:
- virtual void SAL_CALL reactForLoadingState ( const css::util::URL& aURL ,
- const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ,
- const css::uno::Reference< css::frame::XFrame >& xTarget ,
- sal_Bool bState ,
- const css::uno::Any& aAsyncInfo );
-
- virtual void SAL_CALL reactForHandlingState( const css::util::URL& aURL ,
- const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ,
- sal_Bool bState ,
- const css::uno::Any& aAsyncInfo );
-
-}; // class SelfDispatcher
-
-} // namespace framework
-
-#endif // #ifndef __FRAMEWORK_DISPATCH_SELFDISPATCHER_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/helper/fixeddocumentproperties.hxx b/framework/inc/helper/fixeddocumentproperties.hxx
deleted file mode 100644
index 1e99305eee26..000000000000
--- a/framework/inc/helper/fixeddocumentproperties.hxx
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef __FRAMEWORK_HELPER_FIXEDDOCUMENTPROPERTIES_HXX_
-#define __FRAMEWORK_HELPER_FIXEDDOCUMENTPROPERTIES_HXX_
-
-#include <sal/types.h>
-#include <rtl/ustring.hxx>
-#include <com/sun/star/uno/Sequence.h>
-#include <com/sun/star/util/DateTime.hpp>
-
-namespace framework
-{
-
-struct FixedDocumentProperties
-{
- // fixed Properties (sort by name and used by OPropertySetHelper)
- ::rtl::OUString m_sAuthor ; /// Creator of this document
- sal_Bool m_bAutoloadEnabled ; /// Automatic reload enabled/disabled ?
- sal_Int32 m_nAutoloadSecs ; /// Time cycle for automatic reload
- ::rtl::OUString m_sAutoloadURL ; /// URL for automatic reload
- ::rtl::OUString m_sBlindCopiesTo ; /// Address for BCC
- ::rtl::OUString m_sCopiesTo ; /// Address CC
- com::sun::star::util::DateTime m_aCreationDate ; /// Time and date of document creation
- ::rtl::OUString m_sDefaultTarget ; /// Name of default target
- ::rtl::OUString m_sDescription ; /// Short description and comments
- sal_Int16 m_nEditingCycles ; /// Document number
- sal_Int32 m_nEditingDuration ; /// Duration since last edit
- com::sun::star::uno::Sequence< sal_Int8 > m_seqExtraData ; /// Buffer of bytes for some extra data
- ::rtl::OUString m_sInReplyTo ; /// Address for reply to ...
- sal_Bool m_bIsEncrypted ; /// Document is en/decrypted
- ::rtl::OUString m_sKeywords ; /// Some keywords
- ::rtl::OUString m_sMIMEType ; /// MIME-type of document
- ::rtl::OUString m_sModifiedBy ; /// Name of user who has modified as last one
- com::sun::star::util::DateTime m_aModifyDate ; /// Date and time of last modification
- ::rtl::OUString m_sNewsgroups ; /// Document is a message of newsgroup
- ::rtl::OUString m_sOriginal ; /// Message ID
- sal_Bool m_bPortableGraphics ; /// Use of portable graphics
- com::sun::star::util::DateTime m_aPrintDate ; /// Date and time of last print
- ::rtl::OUString m_sPrintedBy ; /// Name of user who has printed as last one
- sal_uInt16 m_nPriority ; /// Priority of message, if document a message!
- sal_Bool m_bQueryTemplate ; /// Search for template ?
- ::rtl::OUString m_sRecipient ; /// Name of recipient
- ::rtl::OUString m_sReferences ; /// Some references to other things
- ::rtl::OUString m_sReplyTo ; /// Address to reply
- sal_Bool m_bSaveGraphicsCompressed ; /// Compressed/non compressed graphics
- sal_Bool m_bSaveOriginalGraphics ; /// Include graphics
- sal_Bool m_bSaveVersionOnClose ; /// Save version on close of document ?
- ::rtl::OUString m_sTemplate ; /// Name of template
- sal_Bool m_bTemplateConfig ; /// Exist template config ?
- com::sun::star::util::DateTime m_aTemplateDate ; /// Date and time of template
- ::rtl::OUString m_sTemplateFileName ; /// File name of template
- ::rtl::OUString m_sTheme ; /// Name of theme
- ::rtl::OUString m_sTitle ; /// Title of document
- sal_Bool m_bUserData ; /// Exist user data ?
-};
-
-}
-
-#endif // __FRAMEWORK_SERVICES_FIXEDDOCUMENTPROPERTIES_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/helper/otasksaccess.hxx b/framework/inc/helper/otasksaccess.hxx
deleted file mode 100644
index fdf29f24b84e..000000000000
--- a/framework/inc/helper/otasksaccess.hxx
+++ /dev/null
@@ -1,248 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef __FRAMEWORK_HELPER_OTASKSACCESS_HXX_
-#define __FRAMEWORK_HELPER_OTASKSACCESS_HXX_
-
-//_________________________________________________________________________________________________________________
-// my own includes
-//_________________________________________________________________________________________________________________
-
-#include <classes/framecontainer.hxx>
-#include <threadhelp/threadhelpbase.hxx>
-#include <macros/generic.hxx>
-#include <macros/xinterface.hxx>
-#include <macros/xtypeprovider.hxx>
-#include <macros/debug.hxx>
-
-//_________________________________________________________________________________________________________________
-// interface includes
-//_________________________________________________________________________________________________________________
-#include <com/sun/star/container/XEnumerationAccess.hpp>
-#include <com/sun/star/container/XElementAccess.hpp>
-#include <com/sun/star/container/XEnumeration.hpp>
-#include <com/sun/star/frame/XDesktop.hpp>
-
-//_________________________________________________________________________________________________________________
-// other includes
-//_________________________________________________________________________________________________________________
-#include <cppuhelper/weak.hxx>
-#include <cppuhelper/weakref.hxx>
-
-//_________________________________________________________________________________________________________________
-// namespace
-//_________________________________________________________________________________________________________________
-
-namespace framework{
-
-//_________________________________________________________________________________________________________________
-// exported const
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// exported definitions
-//_________________________________________________________________________________________________________________
-
-/*-************************************************************************************************************//**
- @short implement XEnumerationAccess interface as helper to create many oneway enumeration of tasks
- @descr We share mutex and framecontainer with ouer owner and have full access to his child tasks.
- (Ouer owner can be the Desktop only!) We create oneway enumerations on demand. These "lists"
- can be used for one time only. Step during the list from first to last element.
- (The type of created enumerations is OTasksEnumeration.)
-
- @implements XInterface
- XEnumerationAccess
- XElementAccess
-
- @base OWeakObject
-
- @devstatus deprecated
-*//*-*************************************************************************************************************/
-
-class OTasksAccess : public css::lang::XTypeProvider ,
- public css::container::XEnumerationAccess , // => XElementAccess
- private ThreadHelpBase ,
- public ::cppu::OWeakObject
-{
- //-------------------------------------------------------------------------------------------------------------
- // public methods
- //-------------------------------------------------------------------------------------------------------------
-
- public:
-
- //---------------------------------------------------------------------------------------------------------
- // constructor / destructor
- //---------------------------------------------------------------------------------------------------------
-
- /*-****************************************************************************************************//**
- @short constructor to initialize this instance
- @descr A desktop will create an enumeration-access-object. An enumeration is a oneway-list and a
- snapshot of the tasklist of current tasks of desktop.
- But we need a instance to create more then one enumerations to the same tasklist!
-
- @seealso class Desktop
- @seealso class OTasksEnumeration
-
- @param "xOwner" is a reference to ouer owner and must be the desktop!
- @param "pTasks" is a pointer to the taskcontainer of the desktop. We need it to create a new enumeration.
- @return -
-
- @onerror Do nothing and reset this object to default with an empty list.
- *//*-*****************************************************************************************************/
-
- OTasksAccess( const css::uno::Reference< css::frame::XDesktop >& xOwner ,
- FrameContainer* pTasks );
-
- //---------------------------------------------------------------------------------------------------------
- // XInterface
- //---------------------------------------------------------------------------------------------------------
-
- DECLARE_XINTERFACE
- DECLARE_XTYPEPROVIDER
-
- //---------------------------------------------------------------------------------------------------------
- // XEnumerationAccess
- //---------------------------------------------------------------------------------------------------------
-
- /*-****************************************************************************************************//**
- @short create a new enumeration of tasks
- @descr You can call this method to get a new snapshot to all tasks of the desktop as an enumeration.
-
- @seealso interface XEnumerationAccess
- @seealso interface XEnumeration
- @seealso class Desktop
-
- @param -
- @return If the desktop and some tasks exist => a valid reference to an enumeration<BR>
- An NULL-reference, other way.
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw( css::uno::RuntimeException );
-
- //---------------------------------------------------------------------------------------------------------
- // XElementAccess
- //---------------------------------------------------------------------------------------------------------
-
- /*-****************************************************************************************************//**
- @short get the type of elements in enumeration
- @descr -
-
- @seealso interface XElementAccess
- @seealso class TasksEnumeration
-
- @param -
- @return The uno-type XTask.
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- virtual css::uno::Type SAL_CALL getElementType() throw( css::uno::RuntimeException );
-
- /*-****************************************************************************************************//**
- @short get state of tasklist of enumeration.
- @descr -
-
- @seealso interface XElementAccess
-
- @param -
- @return sal_True ,if more then 0 elements exist.
- @return sal_False ,otherwise.
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- virtual sal_Bool SAL_CALL hasElements() throw( css::uno::RuntimeException );
-
- //-------------------------------------------------------------------------------------------------------------
- // protected methods
- //-------------------------------------------------------------------------------------------------------------
-
- protected:
-
- /*-****************************************************************************************************//**
- @short standard destructor
- @descr This method destruct an instance of this class and clear some member.
- Don't use an instance of this class as normal member. Use it dynamicly with a pointer.
- We hold a weakreference to ouer owner and not to ouer superclass!
- Thats the reason for a protected dtor.
-
- @seealso class Desktop
-
- @param -
- @return -
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- virtual ~OTasksAccess();
-
- //-------------------------------------------------------------------------------------------------------------
- // private methods
- //-------------------------------------------------------------------------------------------------------------
-
- private:
-
- //-------------------------------------------------------------------------------------------------------------
- // debug methods
- // (should be private everyway!)
- //-------------------------------------------------------------------------------------------------------------
-
- /*-****************************************************************************************************//**
- @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
- of this class. The return value is used directly for an ASSERT(...).
-
- @seealso ASSERTs in implementation!
-
- @param references to checking variables
- @return sal_False ,on invalid parameter.
- @return sal_True ,otherwise
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- #ifdef ENABLE_ASSERTIONS
-
- private:
-
- static sal_Bool impldbg_checkParameter_OTasksAccessCtor( const css::uno::Reference< css::frame::XDesktop >& xOwner ,
- FrameContainer* pTasks );
-
- #endif // #ifdef ENABLE_ASSERTIONS
-
- //-------------------------------------------------------------------------------------------------------------
- // variables
- // (should be private everyway!)
- //-------------------------------------------------------------------------------------------------------------
-
- private:
-
- css::uno::WeakReference< css::frame::XDesktop > m_xOwner ; /// weak reference to the desktop object!
- FrameContainer* m_pTasks ; /// pointer to list of current tasks on desktop (is a member of class Desktop!)
- /// This pointer is valid only, if weakreference can be locked.
-
-}; // class OTasksAccess
-
-} // namespace framework
-
-#endif // #ifndef __FRAMEWORK_HELPER_OTASKSACCESS_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/helper/otasksenumeration.hxx b/framework/inc/helper/otasksenumeration.hxx
deleted file mode 100644
index b8f747a7e7c7..000000000000
--- a/framework/inc/helper/otasksenumeration.hxx
+++ /dev/null
@@ -1,264 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef __FRAMEWORK_HELPER_OTASKSENUMERATION_HXX_
-#define __FRAMEWORK_HELPER_OTASKSENUMERATION_HXX_
-
-//_________________________________________________________________________________________________________________
-// my own includes
-//_________________________________________________________________________________________________________________
-
-#include <threadhelp/threadhelpbase.hxx>
-#include <macros/generic.hxx>
-#include <macros/xinterface.hxx>
-#include <macros/xtypeprovider.hxx>
-#include <macros/debug.hxx>
-#include <general.h>
-
-//_________________________________________________________________________________________________________________
-// interface includes
-//_________________________________________________________________________________________________________________
-#include <com/sun/star/lang/XEventListener.hpp>
-#include <com/sun/star/container/XEnumeration.hpp>
-#include <com/sun/star/frame/XTask.hpp>
-#include <com/sun/star/frame/XFrame.hpp>
-
-//_________________________________________________________________________________________________________________
-// other includes
-//_________________________________________________________________________________________________________________
-#include <cppuhelper/weak.hxx>
-
-//_________________________________________________________________________________________________________________
-// namespace
-//_________________________________________________________________________________________________________________
-
-namespace framework{
-
-//_________________________________________________________________________________________________________________
-// exported const
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// exported definitions
-//_________________________________________________________________________________________________________________
-
-/*-************************************************************************************************************//**
- @short implement a helper for a oneway enumeration of tasks
- @descr You can step during this list only for one time! Its a snapshot.
- Don't forget to release the reference. You are the owner of an instance of this implementation.
- You cant use this as a baseclass. Please use it as a dynamical object for return.
-
- @implements XInterface
- XTypeProvider
- XEventListener
- XEnumeration
-
- @base ThreadHelpBase
- OWeakObject
-
- @devstatus ready to use
-*//*-*************************************************************************************************************/
-
-class OTasksEnumeration : public css::lang::XTypeProvider ,
- public css::lang::XEventListener ,
- public css::container::XEnumeration ,
- public ThreadHelpBase ,
- public ::cppu::OWeakObject
-{
- //-------------------------------------------------------------------------------------------------------------
- // public methods
- //-------------------------------------------------------------------------------------------------------------
-
- public:
-
- //---------------------------------------------------------------------------------------------------------
- // constructor / destructor
- //---------------------------------------------------------------------------------------------------------
-
- /*-****************************************************************************************************//**
- @short constructor to initialize this enumeration
- @descr An enumeration is a list with oneway-access! You can get every member only for one time.
- This method allow to initialize this oneway list with values.
-
- @seealso -
-
- @param "seqTasks" is a sequence of interfaces, which are tasks.
- @return -
-
- @onerror Do nothing and reset this object to default with an empty list.
- *//*-*****************************************************************************************************/
-
- OTasksEnumeration( const css::uno::Sequence< css::uno::Reference< css::frame::XFrame > >& seqTasks );
-
- //---------------------------------------------------------------------------------------------------------
- // XInterface
- //---------------------------------------------------------------------------------------------------------
-
- DECLARE_XINTERFACE
- DECLARE_XTYPEPROVIDER
-
- //---------------------------------------------------------------------------------------------------------
- // XEventListener
- //---------------------------------------------------------------------------------------------------------
-
- /*-****************************************************************************************************//**
- @short last chance to release all references and free memory
- @descr This method is called, if the enumeration is used completly and has no more elements.
- Then we must destroy ouer list and release all references to other objects.
-
- @seealso interface XEventListener
-
- @param "aEvent" describe the source of this event.
- @return -
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException );
-
- //---------------------------------------------------------------------------------------------------------
- // XEnumeration
- //---------------------------------------------------------------------------------------------------------
-
- /*-****************************************************************************************************//**
- @short check count of accessible elements of enumeration
- @descr You can call this method to get information about accessible elements in future.
- Elements you have already getted are not accessible!
-
- @seealso interface XEnumeration
-
- @param -
- @return sal_True = if more elements accessible<BR>
- sal_False = other way
-
- @onerror sal_False<BR>
- (List is emtpy and there no accessible elements ...)
- *//*-*****************************************************************************************************/
-
- virtual sal_Bool SAL_CALL hasMoreElements() throw( css::uno::RuntimeException );
-
- /*-****************************************************************************************************//**
- @short give the next element, if some exist
- @descr If a call "hasMoreElements()" return true, you can get the next element of list.
-
- @seealso interface XEnumeration
-
- @param -
- @return A Reference to a task, safed in an Any-structure.
-
- @onerror If end of enumeration is arrived or there are no elements in list => a NoSuchElementException is thrown.
- *//*-*****************************************************************************************************/
-
- virtual css::uno::Any SAL_CALL nextElement() throw( css::container::NoSuchElementException ,
- css::lang::WrappedTargetException ,
- css::uno::RuntimeException );
-
- //-------------------------------------------------------------------------------------------------------------
- // protected methods
- //-------------------------------------------------------------------------------------------------------------
-
- protected:
-
- /*-****************************************************************************************************//**
- @short standard destructor
- @descr This method destruct an instance of this class and clear some member.
- We make it protected, because its not supported to use this class as normal instance!
- You must create it dynamical in memory and use a pointer.
-
- @seealso -
-
- @param -
- @return -
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- virtual ~OTasksEnumeration();
-
- /*-****************************************************************************************************//**
- @short reset instance to default values
-
- @descr There are two ways to delete an instance of this class.<BR>
- 1) delete with destructor<BR>
- 2) dispose from parent or factory ore ...<BR>
- This method do the same for both ways! It free used memory and release references ...
-
- @seealso method dispose()
- @seealso destructor ~TaskEnumeration()
-
- @param -
-
- @return -
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- virtual void impl_resetObject();
-
- //-------------------------------------------------------------------------------------------------------------
- // private methods
- //-------------------------------------------------------------------------------------------------------------
-
- private:
-
- //-------------------------------------------------------------------------------------------------------------
- // debug methods
- // (should be private everyway!)
- //-------------------------------------------------------------------------------------------------------------
-
- /*-****************************************************************************************************//**
- @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
- of this class. The return value is used directly for an ASSERT(...).
-
- @seealso ASSERT in implementation!
-
- @param references to checking variables
- @return sal_False on invalid parameter<BR>
- sal_True otherway
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- #ifdef ENABLE_ASSERTIONS
-
- private:
-
- static sal_Bool impldbg_checkParameter_OTasksEnumerationCtor ( const css::uno::Sequence< css::uno::Reference< css::frame::XFrame > >& seqTasks );
- static sal_Bool impldbg_checkParameter_disposing ( const css::lang::EventObject& aEvent );
-
- #endif // #ifdef ENABLE_ASSERTIONS
-
- //-------------------------------------------------------------------------------------------------------------
- // variables
- // (should be private everyway!)
- //-------------------------------------------------------------------------------------------------------------
-
- private:
-
- sal_uInt32 m_nPosition ; /// current position in enumeration
- css::uno::Sequence< css::uno::Reference< css::frame::XTask > > m_seqTasks ; /// list of current tasks
-
-}; // class OTasksEnumeration
-
-} // namespace framework
-
-#endif // #ifndef __FRAMEWORK_HELPER_OTASKSENUMERATION_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/helper/timerhelper.hxx b/framework/inc/helper/timerhelper.hxx
deleted file mode 100644
index 50108cffd73b..000000000000
--- a/framework/inc/helper/timerhelper.hxx
+++ /dev/null
@@ -1,46 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef __FRAMEWORK_HELPER_TIMERHELPER_HXX_
-#define __FRAMEWORK_HELPER_TIMERHELPER_HXX_
-
-#include <threadhelp/threadhelpbase.hxx>
-#include <salhelper/timer.hxx>
-#include <osl/mutex.hxx>
-
-//........................................................................
-namespace framework
-{
-//........................................................................
-
- //====================================================================
- //= ITimerListener
- //====================================================================
- class ITimerListener
- {
- public:
- virtual void timerExpired() = 0;
- };
-//........................................................................
-} // namespace framework
-//........................................................................
-
-#endif // _FRAMEWORK_HELPER_TIMERHELPER_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/macros/debug/memorymeasure.hxx b/framework/inc/macros/debug/memorymeasure.hxx
deleted file mode 100644
index 6655146733db..000000000000
--- a/framework/inc/macros/debug/memorymeasure.hxx
+++ /dev/null
@@ -1,224 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef __FRAMEWORK_MACROS_DEBUG_MEMORYMEASURE_HXX_
-#define __FRAMEWORK_MACROS_DEBUG_MEMORYMEASURE_HXX_
-
-//*************************************************************************************************************
-// special macros for time measures
-// 1) LOGFILE_MEMORYMEASURE used it to define log file for this operations (default will be set automaticly)
-// 2) MAKE_MEMORY_SNAPSHOT make snapshot of currently set memory informations of OS
-// 3) LOG_MEMORYMEASURE write measured time to logfile
-//*************************************************************************************************************
-
-#ifdef ENABLE_MEMORYMEASURE
-
- #if !defined( WNT )
- #error "Macros to measure memory access not available under platforms different from windows!"
- #endif
-
- //_________________________________________________________________________________________________________________
- // includes
- //_________________________________________________________________________________________________________________
-
- #ifndef _RTL_STRBUF_HXX_
- #include <rtl/strbuf.hxx>
- #endif
-
- #include <vector>
-
- /*_____________________________________________________________________________________________________________
- LOGFILE_MEMORYMEASURE
-
- For follow macros we need a special log file. If user forget to specify anyone, we must do it for him!
- _____________________________________________________________________________________________________________*/
-
- #ifndef LOGFILE_MEMORYMEASURE
- #define LOGFILE_MEMORYMEASURE "memorymeasure.log"
- #endif
-
- /*_____________________________________________________________________________________________________________
- class MemoryMeasure
-
- We use this baseclass to collect all snapshots in one object and analyze this information at one point.
- Macros of this file are used to enable using of this class by special compile-parameter only!
- _____________________________________________________________________________________________________________*/
-
- class _DBGMemoryMeasure
- {
- //---------------------------------------------------------------------------------------------------------
- private:
- struct _MemoryInfo
- {
- MEMORYSTATUS aStatus ;
- ::rtl::OString sComment ;
- };
-
- //---------------------------------------------------------------------------------------------------------
- public:
- //_____________________________________________________________________________________________________
- inline _DBGMemoryMeasure()
- {
- }
-
- //_____________________________________________________________________________________________________
- // clear used container!
- inline ~_DBGMemoryMeasure()
- {
- ::std::vector< _MemoryInfo >().swap( m_lSnapshots );
- }
-
- //_____________________________________________________________________________________________________
- inline void makeSnapshot( const ::rtl::OString& sComment )
- {
- _MemoryInfo aInfo;
- aInfo.sComment = sComment;
- GlobalMemoryStatus ( &(aInfo.aStatus) );
- m_lSnapshots.push_back( aInfo );
- }
-
- //_____________________________________________________________________________________________________
- inline ::rtl::OString getLog()
- {
- ::rtl::OStringBuffer sBuffer( 10000 );
-
- if( !m_lSnapshots.empty() )
- {
- // Write informations to return buffer
- ::std::vector< _MemoryInfo >::const_iterator pItem1;
- ::std::vector< _MemoryInfo >::const_iterator pItem2;
-
- pItem1 = m_lSnapshots.begin();
- pItem2 = pItem1;
- ++pItem2;
-
- while( pItem1!=m_lSnapshots.end() )
- {
- sBuffer.append( "snap [ " );
- sBuffer.append( pItem1->sComment );
- sBuffer.append( " ]\n\tavail phys\t=\t" );
- sBuffer.append( (sal_Int32)pItem1->aStatus.dwAvailPhys );
- sBuffer.append( "\n\tavail page\t=\t" );
- sBuffer.append( (sal_Int32)pItem1->aStatus.dwAvailPageFile );
- sBuffer.append( "\n\tavail virt\t=\t" );
- sBuffer.append( (sal_Int32)pItem1->aStatus.dwAvailVirtual );
- sBuffer.append( "\n\tdifference\t=\t[ " );
-
- if( pItem1 == m_lSnapshots.begin() )
- {
- sBuffer.append( (sal_Int32)pItem1->aStatus.dwAvailPhys );
- sBuffer.append( ", " );
- sBuffer.append( (sal_Int32)pItem1->aStatus.dwAvailPageFile );
- sBuffer.append( ", " );
- sBuffer.append( (sal_Int32)pItem1->aStatus.dwAvailVirtual );
- sBuffer.append( " ]\n\n" );
- }
- else if( pItem2 != m_lSnapshots.end() )
- {
- sBuffer.append( (sal_Int32)(pItem2->aStatus.dwAvailPhys - pItem1->aStatus.dwAvailPhys ) );
- sBuffer.append( ", " );
- sBuffer.append( (sal_Int32)(pItem2->aStatus.dwAvailPageFile - pItem1->aStatus.dwAvailPageFile ) );
- sBuffer.append( ", " );
- sBuffer.append( (sal_Int32)(pItem2->aStatus.dwAvailVirtual - pItem1->aStatus.dwAvailVirtual ) );
- sBuffer.append( " ]\n\n" );
- }
- else
- {
- sBuffer.append( "0, 0, 0 ]\n\n" );
- }
- if( pItem1!=m_lSnapshots.end() ) ++pItem1;
- if( pItem2!=m_lSnapshots.end() ) ++pItem2;
- }
- // clear current list ... make it empty for further snapshots!
- ::std::vector< _MemoryInfo >().swap( m_lSnapshots );
- }
-
- return sBuffer.makeStringAndClear();
- }
-
- //---------------------------------------------------------------------------------------------------------
- private:
- ::std::vector< _MemoryInfo > m_lSnapshots;
- };
-
- /*_____________________________________________________________________________________________________________
- START_MEMORY_MEASURE
-
- Create new object to measure memory access.
- _____________________________________________________________________________________________________________*/
-
- #define START_MEMORYMEASURE( AOBJECT ) \
- _DBGMemoryMeasure AOBJECT;
-
- /*_____________________________________________________________________________________________________________
- MAKE_MEMORY_SNAPSHOT
-
- Make snapshot of currently set memory informations of OS.
- see _DBGMemoryMeasure for further informations
- _____________________________________________________________________________________________________________*/
-
- #define MAKE_MEMORY_SNAPSHOT( AOBJECT, SCOMMENT ) \
- AOBJECT.makeSnapshot( SCOMMENT );
-
- /*_____________________________________________________________________________________________________________
- LOG_MEMORYMEASURE( SOPERATION, SCOMMENT, AOBJECT )
-
- Write measured values to logfile.
- _____________________________________________________________________________________________________________*/
-
- #define LOG_MEMORYMEASURE( SOPERATION, SCOMMENT, AOBJECT ) \
- { \
- ::rtl::OStringBuffer _sBuffer( 256 ); \
- _sBuffer.append( SOPERATION ); \
- _sBuffer.append( "\n" ); \
- _sBuffer.append( SCOMMENT ); \
- _sBuffer.append( "\n\n" ); \
- _sBuffer.append( AOBJECT.getLog() ); \
- WRITE_LOGFILE( LOGFILE_MEMORYMEASURE, _sBuffer.makeStringAndClear() ) \
- }
-
-#else // #ifdef ENABLE_MEMORYMEASURE
-
- /*_____________________________________________________________________________________________________________
- If right testmode is'nt set - implements these macros empty!
- _____________________________________________________________________________________________________________*/
-
- #undef LOGFILE_MEMORYMEASURE
- #define START_MEMORYMEASURE( AOBJECT )
- #define MAKE_MEMORY_SNAPSHOT( AOBJECT, SCOMMENT )
- #define LOG_MEMORYMEASURE( SOPERATION, SCOMMENT, AOBJECT )
-
-#endif // #ifdef ENABLE_MEMORYMEASURE
-
-//*****************************************************************************************************************
-// end of file
-//*****************************************************************************************************************
-
-#endif // #ifndef __FRAMEWORK_MACROS_DEBUG_MEMORYMEASURE_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/services/detectorfactory.hxx b/framework/inc/services/detectorfactory.hxx
deleted file mode 100644
index b269fc62e8b0..000000000000
--- a/framework/inc/services/detectorfactory.hxx
+++ /dev/null
@@ -1,460 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef __FRAMEWORK_SERVICES_DETECTORFACTORY_HXX_
-#define __FRAMEWORK_SERVICES_DETECTORFACTORY_HXX_
-
-//_______________________________________________
-// includes of own project
-
-#include <classes/filtercache.hxx>
-#include <threadhelp/threadhelpbase.hxx>
-#include <macros/xinterface.hxx>
-#include <macros/xtypeprovider.hxx>
-#include <macros/xserviceinfo.hxx>
-#include <macros/generic.hxx>
-#include <macros/debug.hxx>
-#include <general.h>
-
-//_______________________________________________
-// includes of interfaces
-#include <com/sun/star/beans/PropertyValue.hpp>
-#include <com/sun/star/lang/XInitialization.hpp>
-#include <com/sun/star/lang/WrappedTargetException.hpp>
-#include <com/sun/star/lang/IllegalArgumentException.hpp>
-#include <com/sun/star/container/ElementExistException.hpp>
-#include <com/sun/star/container/NoSuchElementException.hpp>
-#include <com/sun/star/container/XNameContainer.hpp>
-#include <com/sun/star/container/NoSuchElementException.hpp>
-#include <com/sun/star/io/XInputStream.hpp>
-#include <com/sun/star/util/XFlushable.hpp>
-
-//_______________________________________________
-// includes of other projects
-#include <cppuhelper/interfacecontainer.hxx>
-#include <cppuhelper/weak.hxx>
-
-//_______________________________________________
-// namespace
-
-namespace framework{
-
-//_______________________________________________
-// exported const
-
-//_______________________________________________
-// exported definitions
-
-/// @HTML
-/** @short factory to create detect service objects and initialize it in the right way.
-
- @descr This class can be used to create new detect services for specified contents.
- It uses cached values of the configuration to lay down, which detector match
- a given name. Further this class provides full access to the configuration data
- of such detect services and following implementations will support some special
- query modes.
-
- @author as96863
-
- @docdate 07.03.2003 by as96863
-
- @todo <ul>
- <li>implementation of query mode</li>
- <li>simple restore mechanism of last consistent cache state,
- if flush failed</li>
- </ul>
- */
-/// @NOHTML
-
-class DetectorFactory : // interfaces
- public css::lang::XTypeProvider ,
- public css::lang::XServiceInfo ,
- public css::lang::XMultiServiceFactory ,
- public css::container::XNameContainer , // => XNameReplace => XNameAccess => XElementAccess
- public css::util::XFlushable ,
- // base classes
- // Order is neccessary for right initialization of it!
- private ThreadHelpBase ,
- public ::cppu::OWeakObject
-{
- //-------------------------------------------
- // member
-
- private:
-
- /** reference to the global uno service manager.
- It will be used to create own needed services on demand. */
- css::uno::Reference< css::lang::XMultiServiceFactory > m_xSMGR;
-
- /** singleton, which contains all needed configuration data and provides
- read/write access on it. */
- FilterCache m_aCache;
-
- /** contains all registered listener. */
- ::cppu::OMultiTypeInterfaceContainerHelper m_aListenerContainer;
-
- //-------------------------------------------
- // interface
-
- public:
-
- //---------------------------------------
- // XInterface, XTypeProvider, XServiceInfo
-
- DECLARE_XINTERFACE
- DECLARE_XTYPEPROVIDER
- DECLARE_XSERVICEINFO
-
- //---------------------------------------
-
- /** @short initialize new instance of this class.
-
- @param xSMGR
- reference to the global uno service manager, which created this new factory instance.
- It must be used during runtime to create own needed services.
- */
-
- DetectorFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR );
-
- //---------------------------------------
-
- /** @short release internal structures.
- */
-
- virtual ~DetectorFactory();
-
- //---------------------------------------
- // XMultiServiceFactory
-
- /** @short create a new detect service and initialize it with it's own configuration data.
-
- @param sName
- means the uno implementation name of a detect service.
-
- @exception com::sun::star::uno::Exception
- if the requested service could not be created or initialized.
- */
-
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( const ::rtl::OUString& sName )
- throw(css::uno::Exception ,
- css::uno::RuntimeException);
-
- //---------------------------------------
- // XMultiServiceFactory
-
- /** @short does the same as createInstance() method, but initialize created detect service with some
- additional data.
-
- @param sName
- means the uno implementation name of a detect service.
-
- @param lArguments
- the optional arguments, which are passed to the created detect service against
- it's own configuration data.
-
- @exception com::sun::star::uno::Exception
- if the requested service could not be created or initialized.
- */
-
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const ::rtl::OUString& sName ,
- const css::uno::Sequence< css::uno::Any >& lArguments )
- throw(css::uno::Exception ,
- css::uno::RuntimeException);
-
- //---------------------------------------
- // XMultiServiceFactory
-
- /** @short return list of all well know detect services, which can be created by this factory.
-
- @attention Because this service implements read/write access to the configuration too,
- this list is dynamic. Means: in multithreaded environments some items of this
- return list could be invalid next time!
-
- @return A list of all registered detect services.
- */
-
- virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getAvailableServiceNames()
- throw(css::uno::RuntimeException);
-
- //---------------------------------------
- // XNameContainer
-
- /** @short add new detect service entry to this container.
-
- @descr This will change all internal structures only!
- Updating of the configuration layer and notify of all registered
- listener will be done inside API call XFlushable::flush() on this
- container.
-
- @param sName
- means the uno implementation name of this new detect service entry.
-
- @param aPropertySet [sequence< com::sun::star::beans::PropertyValue >!]
- describe this new entry. For a list of all supported properties
- have a look on method >>getByName()<<.
- Note: Missing values will be created with defaults!
-
- @exception com::sun::star::lang::IllegalArgumentException
- if one of the incoming parameters seams to be invalid.
- That doesn't include the check, if this item already exist!
-
- @exception com::sun::star::container::ElementExistException
- if this item already exist inside this container.
-
- @exception com::sun::star::lang::WrappedTargetException
- f creation of the internal structures failed.
- */
-
- virtual void SAL_CALL insertByName( const ::rtl::OUString& sName ,
- const css::uno::Any& aPropertySet )
- throw(css::lang::IllegalArgumentException ,
- css::container::ElementExistException,
- css::lang::WrappedTargetException ,
- css::uno::RuntimeException );
-
- //---------------------------------------
- // XNameContainer
-
- /** @short remove a detect service entry from this container.
-
- @descr This will change all internal structures only!
- Updating of the configuration layer and notify of all registered
- listener will be done inside API call XFlushable::flush() on this
- container.
-
- @param sName
- means the uno implementation name of a detect service entry.
-
- @exception com::sun::star::container::NoSuchElementException
- if the requested item does not exist inside this container.
-
- @exception com::sun::star::lang::WrappedTargetException
- if creation of the internal structures failed.
- */
-
- virtual void SAL_CALL removeByName( const ::rtl::OUString& sName )
- throw(css::container::NoSuchElementException,
- css::lang::WrappedTargetException ,
- css::uno::RuntimeException );
-
- //---------------------------------------
- // XNameReplace
-
- /** @short change a detect service entry inside this container.
-
- @descr This will change all internal structures only!
- Updating of the configuration layer and notify of all registered
- listener will be done inside API call XFlushable::flush() on this
- container.
-
- @param sName
- means the uno implementation name of a detect service entry.
-
- @param aPropertySet [sequence< com::sun::star::beans::PropertyValue >!]
- describe the changes on this entry. For a list of all supported properties
- have a look on method getByName().
- Note: Missing properties will be untouched.
-
- @exception com::sun::star::lang::IllegalArgumentException
- if one of the incoming parameters seams to be invalid.
- That doesn't include the check, if this item exist!
-
- @exception com::sun::star::container::NoSuchElementException
- if the requested item does not exist inside this container.
-
- @exception com::sun::star::lang::WrappedTargetException
- if updating of the internal structures failed.
- */
-
- virtual void SAL_CALL replaceByName( const ::rtl::OUString& sName ,
- const css::uno::Any& aPropertySet )
- throw(css::lang::IllegalArgumentException ,
- css::container::NoSuchElementException,
- css::lang::WrappedTargetException ,
- css::uno::RuntimeException );
-
- //---------------------------------------
- // XNameAccess
-
- /// @HTML
- /** @short return properties of queried detector item.
-
- @descr Use this method to get all informations about a detector item of this cache.
- A sequence< com::sun::star::beans::PropertyValue > packed inside an Any will be returned.
- Following properties are defined:
- <table border=1>
- <tr>
- <td><b>Property</b></td>
- <td><b>Value<b></td>
- <td><b>Description<b></td>
- </tr>
- <tr>
- <td>Name</td>
- <td>[string]</td>
- <td>the uno implementation name for this detect service</td>
- </tr>
- <tr>
- <td>Types</td>
- <td>[sequence< string >]</td>
- <td>a list of all internbal type names, which this detect service is registered for</td>
- </tr>
- </table>
-
- @param sName
- the uno implementation name the requested detector.
-
- @return A property set, which describe this detect service.
- It uses a sequence< com::sun::star::beans::PropertyValue > internaly.
-
- @exception com::sun::star::container::NoSuchElementException
- if the requested entry does not exist inside this container.
- */
- /// @NOHTML
-
- virtual css::uno::Any SAL_CALL getByName( const ::rtl::OUString& sName )
- throw(css::container::NoSuchElementException,
- css::lang::WrappedTargetException ,
- css::uno::RuntimeException );
-
- //---------------------------------------
- // XNameAccess
-
- /** @short return list of all well know container entries available on this container.
-
- @attention Because this service implements read/write access to the configuration too,
- this list is dynamic. Means: in multithreaded environments some items of this
- return list could be invalid next time!
-
- @return A list of all well known container items.
- */
-
- virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames()
- throw(css::uno::RuntimeException);
-
- //---------------------------------------
- // XNameAccess
-
- /** @short check if searched entry exist inside this container.
-
- @attention In multithreaded environments it's not guaranteed, that a
- queried item exist next time realy! It can be deleted by
- another thread ...
-
- @param sName
- the name of the queried container entry.
-
- @return sal_True if the requested item exist; sal_False otherwise.
- */
-
- virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& sName )
- throw(css::uno::RuntimeException);
-
- //---------------------------------------
- // XElementAccess
-
- /** @short return the uno type, which is used for all container items.
-
- @return Type of sequence< com::sun::star::beans::PropertyValue > everytime - because it's fix.
- */
-
- virtual css::uno::Type SAL_CALL getElementType()
- throw(css::uno::RuntimeException);
-
- //---------------------------------------
- // XElementAccess
-
- /** @short return fill state of this cache.
-
- @return sal_True if any item exist inside this conatiner; sal_False otherwhise.
- */
-
- virtual sal_Bool SAL_CALL hasElements()
- throw(css::uno::RuntimeException);
-
- //---------------------------------------
- // XFlushable
-
- /** @short update the configuration layer and notify all registered listener.
-
- @descr All container interface methods update the internal structures of
- this container only. But the underlying configuration layer and
- may some possible other caches was not updated.
- Calling of flush() will do that.
- At the same time all currently registered flush listener will be informed,
- so they can update her structures too.
- Note: Before all these operations are started realy, all changes will be
- verified and if neccessary some corrections will be done.
- In case the cache will be invalid and could not be repaired an exception is thrown!
- Normaly this container will not work correctly afterwards ...
-
- @exception com::sun::star::uno::RuntimeException
- if the changes on this container was invald and could not be repaired.
- */
-
- virtual void SAL_CALL flush()
- throw(css::uno::RuntimeException);
-
- //---------------------------------------
- // XFlushable
-
- /** @short register listener for container updates.
-
- @param xListener
- reference to listener, which wish to be registered.
-
- @exception com::sun::star::uno::RuntimeException
- if the given listener is an invalid reference.
- Note: multiple calls of this method for the same listener won't be checked!
- */
-
- virtual void SAL_CALL addFlushListener( const css::uno::Reference< css::util::XFlushListener >& xListener )
- throw(css::uno::RuntimeException);
-
- //---------------------------------------
- // XFlushable
-
- /** @short deregister listener for container updates.
-
- @param xListener
- reference to listener, which wish to be deregistered.
-
- @exception com::sun::star::uno::RuntimeException
- if the given listener is an invalid reference.
- Note: multiple calls of this method for the same listener won't be checked!
- */
-
- virtual void SAL_CALL removeFlushListener( const css::uno::Reference< css::util::XFlushListener >& xListener )
- throw(css::uno::RuntimeException);
-
-}; // class DetectorFactory
-
-} // namespace framework
-
-#endif // #ifndef __FRAMEWORK_SERVICES_DETECTORFACTORY_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/services/pluginframe.hxx b/framework/inc/services/pluginframe.hxx
deleted file mode 100644
index 1cb98cbe38fc..000000000000
--- a/framework/inc/services/pluginframe.hxx
+++ /dev/null
@@ -1,367 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef __FRAMEWORK_SERVICES_PLUGINFRAME_HXX_
-#define __FRAMEWORK_SERVICES_PLUGINFRAME_HXX_
-
-//_________________________________________________________________________________________________________________
-// my own includes
-//_________________________________________________________________________________________________________________
-
-#include <services/frame.hxx>
-
-//_________________________________________________________________________________________________________________
-// interface includes
-//_________________________________________________________________________________________________________________
-#include <com/sun/star/mozilla/XPluginInstance.hpp>
-#include <com/sun/star/mozilla/XPluginInstancePeer.hpp>
-#include <com/sun/star/mozilla/XPluginWindowPeer.hpp>
-#include <com/sun/star/io/XInputStream.hpp>
-#include <com/sun/star/lang/XInitialization.hpp>
-#include <com/sun/star/awt/XWindow.hpp>
-#include <com/sun/star/frame/XDispatchResultListener.hpp>
-#include <com/sun/star/frame/FeatureStateEvent.hpp>
-#include <com/sun/star/lang/EventObject.hpp>
-
-//_________________________________________________________________________________________________________________
-// other includes
-//_________________________________________________________________________________________________________________
-
-#include <vcl/threadex.hxx>
-#include <unotools/cmdoptions.hxx>
-
-
-//_________________________________________________________________________________________________________________
-// namespace
-//_________________________________________________________________________________________________________________
-
-namespace framework{
-
-//_________________________________________________________________________________________________________________
-// exported const
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// exported definitions
-//_________________________________________________________________________________________________________________
-
-/*-************************************************************************************************************//**
- @short implements an special frame - a plugin frame
- @descr -
-
- @implements XInitialization
- XPluginInstance
- XDispatchResultListener
- @base Frame
-*//*-*************************************************************************************************************/
-
-class PlugInFrame : public css::lang::XInitialization ,
- public css::mozilla::XPluginInstance ,
- public css::frame::XDispatchResultListener , // => XEVENTLISTENER
- public Frame // Order of baseclasses is neccessary for right initialization!
-{
- //-------------------------------------------------------------------------------------------------------------
- // public methods
- //-------------------------------------------------------------------------------------------------------------
-
- public:
-
- //---------------------------------------------------------------------------------------------------------
- // constructor / destructor
- //---------------------------------------------------------------------------------------------------------
-
- /*-****************************************************************************************************//**
- @short standard constructor to create instance
- @descr This constructor initialize a new instance of this class,
- and will be set valid values on his member and baseclasses.
-
- @seealso -
-
- @param -
- @return -
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- PlugInFrame( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory );
-
- /*-****************************************************************************************************//**
- @short standard destructor
- @descr This method destruct an instance of this class and clear some member.
-
- @seealso -
-
- @param -
- @return -
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- virtual ~PlugInFrame();
-
- //---------------------------------------------------------------------------------------------------------
- // XInterface, XTypeProvider, XServiceInfo
- //---------------------------------------------------------------------------------------------------------
-
- DECLARE_XINTERFACE
- DECLARE_XTYPEPROVIDER
- DECLARE_XSERVICEINFO
-
- //---------------------------------------------------------------------------------------------------------
- // XInitialization
- //---------------------------------------------------------------------------------------------------------
-
- void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& seqArguments ) throw( css::uno::Exception ,
- css::uno::RuntimeException );
-
- //---------------------------------------------------------------------------------------------------------
- // XPluginInstance
- //---------------------------------------------------------------------------------------------------------
-
- void SAL_CALL start () throw( css::uno::RuntimeException );
- void SAL_CALL implcb_start () throw( css::uno::RuntimeException );
- void SAL_CALL stop () throw( css::uno::RuntimeException );
- void SAL_CALL implcb_stop () throw( css::uno::RuntimeException );
- void SAL_CALL destroy () throw( css::uno::RuntimeException );
- void SAL_CALL implcb_destroy() throw( css::uno::RuntimeException );
- void SAL_CALL createWindow ( const css::uno::Any& aPlatformWindowHandle ,
- sal_Bool bEmbedded ) throw( css::uno::RuntimeException );
- void SAL_CALL implcb_createWindow ( const css::uno::Any& aPlatformWindowHandle ,
- sal_Bool bEmbedded ) throw( css::uno::RuntimeException );
- void SAL_CALL newStream ( const ::rtl::OUString& sMIMEDescription,
- const ::rtl::OUString& sURL ,
- const ::rtl::OUString& sFilter ,
- const css::uno::Reference< css::io::XInputStream >& xStream ,
- const css::uno::Any& aSessionId ) throw( css::uno::RuntimeException );
- void SAL_CALL implcb_newStream
- ( const ::rtl::OUString& sMIMEDescription,
- const ::rtl::OUString& sURL ,
- const ::rtl::OUString& sFilter ,
- const css::uno::Reference< css::io::XInputStream >& xStream ,
- const css::uno::Any& aSessionId ) throw( css::uno::RuntimeException );
- void SAL_CALL newURL ( const ::rtl::OUString& sMIMEDescription,
- const ::rtl::OUString& sURL ,
- const ::rtl::OUString& sFilter ,
- const css::uno::Any& aSessionId ) throw( css::uno::RuntimeException );
- void SAL_CALL implcb_newURL ( const ::rtl::OUString& sMIMEDescription,
- const ::rtl::OUString& sURL ,
- const ::rtl::OUString& sFilter ,
- const css::uno::Any& aSessionId ) throw( css::uno::RuntimeException );
- virtual void SAL_CALL getHttpServerURL( ::rtl::OUString& sHost ,
- sal_uInt16& nPort ,
- ::rtl::OUString& sPrefix ) throw( css::uno::RuntimeException );
-
- //---------------------------------------------------------------------------------------------------------
- // XDispatchProvider
- //---------------------------------------------------------------------------------------------------------
-
- virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch( const css::util::URL& aURL ,
- const ::rtl::OUString& sTargetFrameName,
- sal_Int32 nSearchFlags ) throw( css::uno::RuntimeException );
- virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches( const css::uno::Sequence< css::frame::DispatchDescriptor >& seqDescripts ) throw( css::uno::RuntimeException );
-
- //---------------------------------------------------------------------------------------------------------
- // XDispatchResultListener
- //---------------------------------------------------------------------------------------------------------
-
- virtual void SAL_CALL dispatchFinished ( const css::frame::DispatchResultEvent& aEvent ) throw( css::uno::RuntimeException );
-
- //---------------------------------------------------------------------------------------------------------
- // XEventListener
- //---------------------------------------------------------------------------------------------------------
-
- void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException );
-
- //-------------------------------------------------------------------------------------------------------------
- // protected methods
- //-------------------------------------------------------------------------------------------------------------
-
- protected:
-
- //-------------------------------------------------------------------------------------------------------------
- // private methods
- //-------------------------------------------------------------------------------------------------------------
-
- private:
-
- void impl_tryToLoadDocument();
- sal_Bool impl_registerRemoteFactories( const css::uno::Reference< css::lang::XMultiServiceFactory >& xRemoteServiceManager );
-
- //-------------------------------------------------------------------------------------------------------------
- // debug methods
- // (should be private everyway!)
- //-------------------------------------------------------------------------------------------------------------
-
- /*-****************************************************************************************************//**
- @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
- of this class. The return value is used directly for an ASSERT(...).
-
- @seealso ASSERTs in implementation!
-
- @param references to checking variables
- @return sal_False on invalid parameter<BR>
- sal_True otherway
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- #ifdef ENABLE_ASSERTIONS
-
- private:
-
- static sal_Bool impldbg_checkParameter_initialize ( const css::uno::Sequence< css::uno::Any >& seqArguments );
- static sal_Bool impldbg_checkParameter_createWindow ( const css::uno::Any& aPlatformWindowHandle ,
- sal_Bool bEmbedded );
- static sal_Bool impldbg_checkParameter_newStream ( const ::rtl::OUString& sMIMEDescription ,
- const ::rtl::OUString& sURL ,
- const ::rtl::OUString& sFilter ,
- const css::uno::Reference< css::io::XInputStream >& xStream );
- static sal_Bool impldbg_checkParameter_newURL ( const ::rtl::OUString& sMIMEDescription ,
- const ::rtl::OUString& sURL ,
- const ::rtl::OUString& sFilter );
- static sal_Bool impldbg_checkParameter_getHttpServerURL ( ::rtl::OUString& sHost ,
- sal_uInt16& nPort ,
- ::rtl::OUString& sPrefix );
- static sal_Bool impldbg_checkParameter_queryDispatch ( const css::util::URL& aURL ,
- const ::rtl::OUString& sTargetFrameName ,
- sal_Int32 nSearchFlags );
- static sal_Bool impldbg_checkParameter_queryDispatches ( const css::uno::Sequence< css::frame::DispatchDescriptor >& seqDescripts );
- static sal_Bool impldbg_checkParameter_statusChanged ( const css::frame::FeatureStateEvent& aEvent );
- static sal_Bool impldbg_checkParameter_disposing ( const css::lang::EventObject& aEvent );
-
- #endif // #ifdef ENABLE_ASSERTIONS
-
- //-------------------------------------------------------------------------------------------------------------
- // variables
- // (should be private everyway!)
- //-------------------------------------------------------------------------------------------------------------
-
- private:
-
- css::uno::Reference< css::mozilla::XPluginInstancePeer > m_xPlugInInstancePeer ; /// Reference to UNO interface of PlugIn dll for communication with browser
- css::uno::Reference< css::mozilla::XPluginWindowPeer > m_xPlugInWindowPeer ; /// Reference to set child window at plugin window
- css::uno::Sequence< css::beans::PropertyValue > m_seqProperties ; /// Sequence of properties as arguments for load document
- css::util::URL m_aURL ; /// URL for document to load
- sal_Bool m_bILoad ; /// PlugInFrame has a valid loader which load the document and wait for finished/cancelled
- sal_Bool m_bIHaveDocument ; /// We have a document loaded successful.
- css::uno::Reference< css::frame::XDispatchProvider > m_xPlugInDispatcher ; /// Dispatcher to forward dispatches to browser
- static sal_Bool m_bRemoteFactoriesExist ; /// indicates, if remote factories was already registered (neccessary one times only!)
- SvtCommandOptions m_aCommandOptions ; /// ref counted class to support disabling commands defined by configuration file
-
-}; // class PlugInFrame
-
-/*-************************************************************************************************************//**
- @short used to forward all asynchronous calls which use VCL internal to the main thread
- @descr We need this asynchronous mechanism to prevent us against dead locks. Sometimes our main thread
- can call us for event handling like FOCUS, ACTIVATE and something else. But at the same time we will call
- the main thread to CREATE A WINDOW, SET IT VISIBLE ... Then we have a problem. We must send us himself a event
- to run our code synchronized with our main thread!
-
- @implements
- @base -
-*//*-*************************************************************************************************************/
-
-enum eIMPL_PluginCommand
-{
- START ,
- STOP ,
- CREATEWINDOW ,
- DESTROY ,
- NEWSTREAM ,
- NEWURL
-};
-
-class cIMPL_MainThreadExecutorRequest
-{
- public:
- cIMPL_MainThreadExecutorRequest( eIMPL_PluginCommand eCommand ,
- PlugInFrame* pPluginInstance );
-
- cIMPL_MainThreadExecutorRequest( eIMPL_PluginCommand eCommand ,
- PlugInFrame* pPluginInstance ,
- const css::uno::Any& aPlatformWindowHandle ,
- sal_Bool bEmbedded );
-
- cIMPL_MainThreadExecutorRequest( eIMPL_PluginCommand eCommand ,
- PlugInFrame* pPluginInstance ,
- const ::rtl::OUString& sMIMEDescription ,
- const ::rtl::OUString& sURL ,
- const ::rtl::OUString& sFilter ,
- const css::uno::Reference< css::io::XInputStream >& xStream ,
- const css::uno::Any& aSessionId );
-
- /*-****************************************************************************************************//**
- @short -
- @descr -
-
- @seealso -
-
- @param -
- @return -
-
- @onerror -
- *//*-*****************************************************************************************************/
-
- virtual long doIt();
-
- //-------------------------------------------------------------------------------------------------------------
- // private variables
- //-------------------------------------------------------------------------------------------------------------
- private:
-
- eIMPL_PluginCommand m_eCommand ; /// switch to specify forward function
- PlugInFrame* m_pPluginInstance ; /// instance wich has started this swicth mechanism and wish to called back from us
- css::uno::Reference< css::uno::XInterface > m_xPluginInstance ; /// reference to our plugin frame to prevent that plugin frame dies before we call back
- css::uno::Any m_aPlatformWindowHandle ; /// parameter for XPluginInstance->createWindow()
- sal_Bool m_bEmbedded ; /// parameter for XPluginInstance->createWindow()
- ::rtl::OUString m_sMIMEDescription ; /// parameter for XPluginInstance->newStream()/newURL()
- ::rtl::OUString m_sURL ; /// parameter for XPluginInstance->newStream()/newURL()
- ::rtl::OUString m_sFilter ; /// parameter for XPluginInstance->newStream()/newURL()
- css::uno::Reference< css::io::XInputStream > m_xStream ; /// parameter for XPluginInstance->newStream()/newURL()
- css::uno::Any m_aSessionId ; /// parameter for XPluginInstance->newStream()/newURL()
-};
-
-class cIMPL_MainThreadExecutor
-{
- //-------------------------------------------------------------------------------------------------------------
- // public methods
- //-------------------------------------------------------------------------------------------------------------
- public:
- static void execute( cIMPL_MainThreadExecutorRequest* pRequest );
-
- /*-****************************************************************************************************//**
- @short -
- @descr -
-
- @seealso -
-
- @param -
- @return -
-
- @onerror -
- *//*-*****************************************************************************************************/
- DECL_STATIC_LINK( cIMPL_MainThreadExecutor, worker, cIMPL_MainThreadExecutorRequest* );
-};
-
-} // namespace framework
-
-#endif // #ifndef __FRAMEWORK_SERVICES_PLUGINFRAME_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/source/inc/pattern/storages.hxx b/framework/source/inc/pattern/storages.hxx
deleted file mode 100644
index 0b5fa07184be..000000000000
--- a/framework/source/inc/pattern/storages.hxx
+++ /dev/null
@@ -1,96 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef __FRAMEWORK_PATTERN_STORAGES_HXX_
-#define __FRAMEWORK_PATTERN_STORAGES_HXX_
-
-//_______________________________________________
-// own includes
-
-#include <services.h>
-#include <general.h>
-
-//_______________________________________________
-// interface includes
-#include <com/sun/star/io/XOutputStream.hpp>
-#include <com/sun/star/io/XSeekable.hpp>
-#include <com/sun/star/embed/ElementModes.hpp>
-#include <com/sun/star/embed/XStorage.hpp>
-#include <com/sun/star/embed/XPackageStructureCreator.hpp>
-#include <com/sun/star/lang/XSingleServiceFactory.hpp>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-
-//_______________________________________________
-// other includes
-
-//_______________________________________________
-// namespaces
-
-#ifndef css
-namespace css = ::com::sun::star;
-#endif
-
-namespace framework{
- namespace pattern{
- namespace storages{
-
-//_______________________________________________
-// definitions
-
-//-----------------------------------------------
-css::uno::Reference< css::embed::XStorage > createTempStorageBasedOnFolder(const ::rtl::OUString& sFolder ,
- const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR ,
- sal_Bool bReadOnly)
-{
- // error during opening the temp file isnt realy a runtime error -> handle it gracefully
- css::uno::Reference< css::io::XOutputStream > xTempFile(xSMGR->createInstance(SERVICENAME_TEMPFILE), css::uno::UNO_QUERY);
- if (!xTempFile.is())
- return css::uno::Reference< css::embed::XStorage >();
-
- // creation of needed resources is mandatory -> error = runtime error
- css::uno::Reference< css::embed::XPackageStructureCreator > xPackageCreator(xSMGR->createInstance(SERVICENAME_PACKAGESTRUCTURECREATOR), css::uno::UNO_QUERY_THROW);
- css::uno::Reference< css::lang::XSingleServiceFactory > xStorageFactory(xSMGR->createInstance(SERVICENAME_STORAGEFACTORY) , css::uno::UNO_QUERY_THROW);
-
- // create zip package
- xPackageCreator->convertToPackage(sFolder, xTempFile);
-
- // seek it back - so it can be used in a defined way.
- css::uno::Reference< css::io::XSeekable > xSeekable(xTempFile, css::uno::UNO_QUERY_THROW);
- xSeekable->seek(0);
-
- // open the temp. zip package - using the right open mode
- sal_Int32 nOpenMode = css::embed::ElementModes::ELEMENT_READWRITE;
- if (bReadOnly)
- nOpenMode = css::embed::ElementModes::ELEMENT_READ;
-
- css::uno::Sequence< css::uno::Any > lArgs(2);
- lArgs[0] <<= xTempFile;
- lArgs[1] <<= nOpenMode;
-
- css::uno::Reference< css::embed::XStorage > xStorage(xStorageFactory->createInstanceWithArguments(lArgs), css::uno::UNO_QUERY_THROW);
- return xStorage;
-}
-
- } // namespace storages
- } // namespace pattern
-} // namespace framework
-
-#endif // __FRAMEWORK_PATTERN_STORAGES_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */