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>
10 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
15 struct StatusBarItemDescriptor
17 String aURL
; // URL command to dispatch
18 long nItemBits
; // properties for this statusbar item (WinBits)
19 long nWidth
; // width of a statusbar item
20 long nOffset
; // offset
24 StatusBarItemDescriptor() : nItemBits( SIB_CENTER
| SIB_IN
)
26 ,nOffset( STATUSBAR_OFFSET
) {}
29 typedef StatusBarItemDescriptor
* StatusBarItemDescriptorPtr
;
30 SV_DECL_PTRARR_DEL( StatusBarDescriptor
, StatusBarItemDescriptorPtr
, 10, 2)
32 class StatusBarConfiguration
36 static sal_Bool
LoadStatusBar(
37 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& xServiceFactory
,
38 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
);
46 } // namespace framework
48 #endif // __FRAMEWORK_CLASSES_STATUSBARCONFIGURATION_HXX_