22#include <com/sun/star/beans/XPropertySet.hpp>
23#include <osl/diagnose.h>
26#include <svx/svxids.hrc>
40 Reference< XPropertySet > xFrameProps( _rxFrame, UNO_QUERY );
41 if ( xFrameProps.is() )
42 xFrameProps->getPropertyValue(
"LayoutManager") >>=
m_xLayouter;
50 Reference< XLayoutManager > xManager(
m_xLayouter );
51 OSL_ENSURE( xManager. is(),
"FormToolboxes::toggleToolbox: couldn't obtain the layout manager!" );
55 if ( xManager->isElementVisible( sToolboxResource ) )
57 xManager->hideElement( sToolboxResource );
58 xManager->destroyElement( sToolboxResource );
62 xManager->createElement( sToolboxResource );
63 xManager->showElement( sToolboxResource );
83 OSL_ENSURE( _nSlotId == SID_FM_FORM_DESIGN_TOOLS ,
84 "FormToolboxes::getToolboxResourceName: unsupported slot!" );
86 return "private:resource/toolbar/formdesign";
#define TOOLS_WARN_EXCEPTION(area, stream)