9#ifndef INCLUDED_FILTER_MSFILTER_MSTOOLBAR_HXX
10#define INCLUDED_FILTER_MSFILTER_MSTOOLBAR_HXX
16#include <com/sun/star/uno/Any.hxx>
17#include <com/sun/star/uno/Reference.hxx>
19#include <rtl/ustring.hxx>
25 namespace beans {
struct PropertyValue; }
26 namespace container {
class XIndexAccess; }
27 namespace graphic {
class XGraphic; }
28 namespace ui {
class XUIConfigurationManager; }
29 namespace ui {
class XUIConfigurationManagerSupplier; }
49 css::uno::Reference< css::graphic::XGraphic >
image;
53 css::uno::Reference< css::ui::XUIConfigurationManagerSupplier >
m_xCfgSupp;
54 css::uno::Reference< css::ui::XUIConfigurationManager >
m_xAppCfgMgr;
56 static void ScaleImage( css::uno::Reference< css::graphic::XGraphic >& xGraphic,
tools::Long nNewSize );
61 css::uno::Reference< css::ui::XUIConfigurationManager > getCfgManager();
62 const css::uno::Reference< css::ui::XUIConfigurationManager >&
getAppCfgManager()
const {
return m_xAppCfgMgr;}
65 static css::uno::Any createCommandFromMacro( std::u16string_view sCmd );
67 void addIcon(
const css::uno::Reference< css::graphic::XGraphic >& xImage,
const OUString& sString );
69 OUString MSOCommandToOOCommand( sal_Int16 msoCmd );
70 OUString MSOTCIDToOOCommand( sal_Int16 msoTCID );
72 bool createMenu(
const OUString& rName,
const css::uno::Reference< css::container::XIndexAccess >& xMenuDesc );
80#ifdef DEBUG_FILTER_MSTOOLBAR
81 static void indent_printf(FILE* fp,
const char* format, ... );
94#ifdef DEBUG_FILTER_MSTOOLBAR
95 virtual void Print( FILE* ) {}
139#ifdef DEBUG_FILTER_MSTOOLBAR
140 virtual void Print( FILE* )
override;
142 OUString
const & getOnAction()
const;
169#ifdef DEBUG_FILTER_MSTOOLBAR
170 virtual void Print( FILE* )
override;
179 std::shared_ptr< WString >
name;
204 std::shared_ptr< TBCCDData >
data;
213 std::shared_ptr< TBCBitMap >
icon;
257 std::shared_ptr< sal_uInt16 >
width;
274#ifdef DEBUG_FILTER_MSTOOLBAR
275 virtual void Print( FILE* )
override;
290#ifdef DEBUG_FILTER_MSTOOLBAR
291 virtual void Print( FILE* )
override;
293 void ImportToolBarControl(
CustomToolBarImportHelper&, std::vector< css::beans::PropertyValue >&,
bool& bBeginGroup,
bool bIsMenuBar );
311#ifdef DEBUG_FILTER_MSTOOLBAR
312 virtual void Print( FILE* )
override;
316 bool IsEnabled()
const;
317 bool IsMenuToolbar()
const {
return ( ( ltbtr & 0x2000000 ) == 0x2000000 ); }
329#ifdef DEBUG_FILTER_MSTOOLBAR
330 virtual void Print( FILE* fo )
override;
348#ifdef DEBUG_FILTER_MSTOOLBAR
349 virtual void Print( FILE* )
override;
virtual ~MSOCommandConvertor()
virtual OUString MSOCommandToOOCommand(sal_Int16 msoCmd)=0
virtual OUString MSOTCIDToOOCommand(sal_Int16 msoTCID)=0
bool Read(SvStream &rS) override
SvStream & ReadInt16(sal_Int16 &rInt16)
virtual bool Read(SvStream &rS)=0
sal_uInt32 GetOffset() const
TBBase(TBBase &&)=default
TBBase(TBBase const &)=default
std::shared_ptr< TBCBitMap > icon
std::shared_ptr< TBCBitMap > iconMask
bool Read(SvStream &rS) override
std::shared_ptr< sal_uInt16 > iBtnFace
TBCBitMap * getIconMask()
std::shared_ptr< WString > wstrAcc
sal_uInt16 * getBtnFace()
virtual ~TBCBitMap() override
bool Read(SvStream &rS) override
virtual ~TBCCDData() override
bool Read(SvStream &rS) override
std::vector< WString > wstrList
std::shared_ptr< TBCCDData > data
TBCComboDropdownSpecific(const TBCHeader &header)
bool Read(SvStream &rS) override
TBCGeneralInfo & getGeneralInfo()
TBCGeneralInfo controlGeneralInfo
TBCData(const TBCData &)=delete
std::shared_ptr< TBBase > controlSpecificInfo
OUString const & CustomText()
bool IsMenuToolbar() const
const OUString & getString() const
#define MSFILTER_DLLPUBLIC
Shape IDs per cluster in DGG atom.