sync master with lastest vba changes
[ooovba.git] / framework / inc / classes / statusbarconfiguration.hxx
blob5c369368c98fbe6dfad33555b19dad36fa0386ae
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>
9 // #110897#
10 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
12 namespace framework
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
22 public:
24 StatusBarItemDescriptor() : nItemBits( SIB_CENTER | SIB_IN )
25 ,nWidth( 0 )
26 ,nOffset( STATUSBAR_OFFSET ) {}
29 typedef StatusBarItemDescriptor* StatusBarItemDescriptorPtr;
30 SV_DECL_PTRARR_DEL( StatusBarDescriptor, StatusBarItemDescriptorPtr, 10, 2)
32 class StatusBarConfiguration
34 public:
35 // #110897#
36 static sal_Bool LoadStatusBar(
37 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
38 SvStream& rInStream, StatusBarDescriptor& aItems );
40 // #110897#
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_