bff8af1f20
2008/04/01 15:18:15 thb 1.2.758.2: #i85898# Stripping all external header guards 2008/04/01 10:57:44 thb 1.2.758.1: #i85898# Stripping all external header guards
48 lines
1.5 KiB
C++
48 lines
1.5 KiB
C++
#ifndef __FRAMEWORK_CLASSES_STATUSBARCONFIGURATION_HXX_
|
|
#define __FRAMEWORK_CLASSES_STATUSBARCONFIGURATION_HXX_
|
|
|
|
#include <svtools/svarray.hxx>
|
|
#include <tools/string.hxx>
|
|
#include <tools/stream.hxx>
|
|
#include <vcl/status.hxx>
|
|
|
|
// #110897#
|
|
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
|
|
|
|
namespace framework
|
|
{
|
|
|
|
struct StatusBarItemDescriptor
|
|
{
|
|
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)
|
|
|
|
class StatusBarConfiguration
|
|
{
|
|
public:
|
|
// #110897#
|
|
static sal_Bool LoadStatusBar(
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
|
|
SvStream& rInStream, StatusBarDescriptor& aItems );
|
|
|
|
// #110897#
|
|
static sal_Bool StoreStatusBar(
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
|
|
SvStream& rOutStream, const StatusBarDescriptor& aItems );
|
|
};
|
|
|
|
} // namespace framework
|
|
|
|
#endif // __FRAMEWORK_CLASSES_STATUSBARCONFIGURATION_HXX_
|