2010-04-17 20:34:49 +02:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
************************************************************************/
|
2004-02-25 16:40:39 +00:00
|
|
|
#ifndef __FRAMEWORK_CLASSES_STATUSBARCONFIGURATION_HXX_
|
|
|
|
#define __FRAMEWORK_CLASSES_STATUSBARCONFIGURATION_HXX_
|
|
|
|
|
2010-04-16 23:01:28 +02:00
|
|
|
#include <fwedllapi.h>
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <svl/svarray.hxx>
|
2004-02-25 16:40:39 +00:00
|
|
|
#include <tools/string.hxx>
|
|
|
|
#include <tools/stream.hxx>
|
|
|
|
#include <vcl/status.hxx>
|
2004-05-03 12:19:32 +00:00
|
|
|
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
|
2004-09-09 16:08:36 +00:00
|
|
|
#include <com/sun/star/io/XInputStream.hpp>
|
|
|
|
#include <com/sun/star/io/XOutputStream.hpp>
|
|
|
|
#include <com/sun/star/container/XIndexAccess.hpp>
|
|
|
|
#include <com/sun/star/container/XIndexContainer.hpp>
|
2004-05-03 12:19:32 +00:00
|
|
|
|
2004-02-25 16:40:39 +00:00
|
|
|
namespace framework
|
|
|
|
{
|
|
|
|
|
2010-04-16 23:01:28 +02:00
|
|
|
struct FWE_DLLPUBLIC StatusBarItemDescriptor
|
2004-02-25 16:40:39 +00:00
|
|
|
{
|
|
|
|
String aURL; // URL command to dispatch
|
|
|
|
long nItemBits; // properties for this statusbar item (WinBits)
|
|
|
|
long nWidth; // width of a statusbar item
|
|
|
|
long nOffset; // offset
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
StatusBarItemDescriptor() : nItemBits( SIB_CENTER | SIB_IN )
|
|
|
|
,nWidth( 0 )
|
|
|
|
,nOffset( STATUSBAR_OFFSET ) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef StatusBarItemDescriptor* StatusBarItemDescriptorPtr;
|
|
|
|
SV_DECL_PTRARR_DEL( StatusBarDescriptor, StatusBarItemDescriptorPtr, 10, 2)
|
|
|
|
|
2010-04-16 23:01:28 +02:00
|
|
|
class FWE_DLLPUBLIC StatusBarConfiguration
|
2004-02-25 16:40:39 +00:00
|
|
|
{
|
|
|
|
public:
|
2004-05-03 12:19:32 +00:00
|
|
|
static sal_Bool LoadStatusBar(
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
|
|
|
|
SvStream& rInStream, StatusBarDescriptor& aItems );
|
|
|
|
|
|
|
|
static sal_Bool StoreStatusBar(
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
|
|
|
|
SvStream& rOutStream, const StatusBarDescriptor& aItems );
|
2004-09-09 16:08:36 +00:00
|
|
|
|
|
|
|
static sal_Bool LoadStatusBar(
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInputStream,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer >& rStatusbarConfiguration );
|
|
|
|
|
|
|
|
static sal_Bool StoreStatusBar(
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& xOutputStream,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess >& rStatusbarConfiguration );
|
2004-02-25 16:40:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace framework
|
|
|
|
|
|
|
|
#endif // __FRAMEWORK_CLASSES_STATUSBARCONFIGURATION_HXX_
|