4 #include <svx/mstoolbar.hxx>
6 namespace css
= ::com::sun::star
;
9 // hmm I don't normally use these packed structures
10 // but.. hey always good to do something different
11 class TBCCmd
: public TBBase
14 TBCCmd() : cmdID(0), A(0), B(0), cmdType(0), C(0), reserved3(0) {}
20 sal_uInt16 reserved3
:8;
21 bool Read( SvStream
* pS
);
25 class TBC
: public TBBase
28 boost::shared_ptr
<TBCCmd
> tbcCmd
; // optional
29 boost::shared_ptr
<TBCData
> tbcd
;
34 bool Read(SvStream
*pS
);
35 bool ImportToolBarControl( CTBWrapper
&, const com::sun::star::uno::Reference
< com::sun::star::container::XIndexContainer
>& toolbarcontainer
, CustomToolBarImportHelper
& helper
, bool bIsMenuBar
);
38 class CTB
: public TBBase
42 std::vector
<TBVisualData
> rVisualData
;
44 std::vector
< TBC
> rTBC
;
45 bool ImportCustomToolBar_Impl( CTBWrapper
&, CustomToolBarImportHelper
& );
51 bool Read(SvStream
*pS
);
53 bool ImportCustomToolBar( CTBWrapper
&, CustomToolBarImportHelper
& );
54 bool ImportMenuTB( CTBWrapper
&, const css::uno::Reference
< css::container::XIndexContainer
>&, CustomToolBarImportHelper
& );
55 rtl::OUString
GetName() { return tb
.getName().getString(); }
60 class CTBS
: public TBBase
72 CTBS
& operator = ( const CTBS
&);
76 bool Read(SvStream
*pS
);
79 class CTBWrapper
: public TBBase
83 std::vector
< CTB
> rCTB
;
88 bool Read(SvStream
*pS
);
90 bool ImportCustomToolBar( SfxObjectShell
& rDocSh
);
91 CTB
* GetCustomizationData( const rtl::OUString
& name
);
95 #endif //_XLTOOLBAR_HXX