1 #ifndef __FRAMEWORK_CLASSES_STATUSBARCONFIGURATION_HXX_
2 #define __FRAMEWORK_CLASSES_STATUSBARCONFIGURATION_HXX_
4 #include <svtools/svarray.hxx>
5 #include <tools/string.hxx>
6 #include <tools/stream.hxx>
7 #include <vcl/status.hxx>
8 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
9 #include <com/sun/star/io/XInputStream.hpp>
10 #include <com/sun/star/io/XOutputStream.hpp>
11 #include <com/sun/star/container/XIndexAccess.hpp>
12 #include <com/sun/star/container/XIndexContainer.hpp>
17 struct StatusBarItemDescriptor
19 String aURL
; // URL command to dispatch
20 long nItemBits
; // properties for this statusbar item (WinBits)
21 long nWidth
; // width of a statusbar item
22 long nOffset
; // offset
26 StatusBarItemDescriptor() : nItemBits( SIB_CENTER
| SIB_IN
)
28 ,nOffset( STATUSBAR_OFFSET
) {}
31 typedef StatusBarItemDescriptor
* StatusBarItemDescriptorPtr
;
32 SV_DECL_PTRARR_DEL( StatusBarDescriptor
, StatusBarItemDescriptorPtr
, 10, 2)
34 class StatusBarConfiguration
37 static sal_Bool
LoadStatusBar(
38 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& xServiceFactory
,
39 SvStream
& rInStream
, StatusBarDescriptor
& aItems
);
41 static sal_Bool
StoreStatusBar(
42 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& xServiceFactory
,
43 SvStream
& rOutStream
, const StatusBarDescriptor
& aItems
);
45 static sal_Bool
LoadStatusBar(
46 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& xServiceFactory
,
47 const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
>& xInputStream
,
48 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XIndexContainer
>& rStatusbarConfiguration
);
50 static sal_Bool
StoreStatusBar(
51 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& xServiceFactory
,
52 const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XOutputStream
>& xOutputStream
,
53 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XIndexAccess
>& rStatusbarConfiguration
);
56 } // namespace framework
58 #endif // __FRAMEWORK_CLASSES_STATUSBARCONFIGURATION_HXX_