20#ifndef INCLUDED_OOX_OLE_VBACONTROL_HXX 
   21#define INCLUDED_OOX_OLE_VBACONTROL_HXX 
   25#include <com/sun/star/uno/Reference.hxx> 
   29#include <rtl/textenc.h> 
   30#include <rtl/ustring.hxx> 
   34    namespace awt { 
class XControlModel; }
 
   35    namespace container { 
class XNameContainer; }
 
   36    namespace frame { 
class XModel; }
 
   37    namespace uno { 
class XComponentContext; }
 
   41    class BinaryInputStream;
 
   87                            sal_Int32 nCtrlIndex ) 
const;
 
  136                            sal_Int32 nCtrlIndex,
 
  137                            const css::uno::Reference< css::container::XNameContainer >& rxParentNC,
 
  149                            const css::uno::Reference< css::awt::XControlModel >& rxCtrlModel,
 
  151                            sal_Int32 nCtrlIndex ) 
const;
 
  190                            const css::uno::Reference< css::uno::XComponentContext >& rxContext,
 
  191                            const css::uno::Reference< css::frame::XModel >& rxDocModel,
 
  193                            bool bDefaultColorBgr );
 
  198                           const css::uno::Reference< css::container::XNameContainer >& rxDialogLib,
 
  200                           const OUString& rModuleName,
 
  201                           rtl_TextEncoding eTextEnc );
 
  204    css::uno::Reference< css::uno::XComponentContext > 
mxContext;
 
Provides helper functions for colors, device measurement conversion, graphics, and graphic objects ha...
 
A helper that maps property identifiers to property values.
 
container_type::value_type value_type
 
Base class for storage access implementations.
 
A base class with useful helper functions for something that is able to convert ActiveX and ComCtl fo...
 
Common properties for all controls that are part of a VBA user form or of another container control i...
 
const AxPairData & getPosition() const
Returns the position of the control in its parent.
 
const OUString & getControlSource() const
 
sal_uInt32 mnStreamLen
Size of control stream data.
 
AxPairData maPos
Position in parent container.
 
const OUString & getName() const
Returns the programmatical name of the control.
 
void importProperty(sal_Int32 nPropId, const OUString &rValue)
Allows to set single properties specified by XML token identifier.
 
sal_uInt32 mnFlags
Various flags.
 
sal_uInt16 mnGroupId
Group identifier for grouped controls.
 
sal_Int32 mnId
Control identifier.
 
OUString maToolTip
Tool tip for the control.
 
ControlModelRef createControlModel(const AxClassTable &rClassTable) const
Tries to create the control model according to the site model.
 
sal_Int32 mnHelpContextId
Help context identifier.
 
OUString maRowSource
Source data for the control in a spreadsheet.
 
sal_uInt32 getStreamLength() const
Returns the length of the stream data for stream based controls.
 
OUString maTag
User defined tag.
 
sal_uInt16 mnClassIdOrCache
Class name identifier or GUID cache index.
 
bool isContainer() const
Returns true, if this control is a container control.
 
void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv, ApiControlType eCtrlType, sal_Int32 nCtrlIndex) const
Converts all form site properties.
 
void moveRelative(const AxPairData &rDistance)
Moves the control relative to its current position by the passed distance.
 
OUString getSubStorageName() const
Returns the name of the substorage for the container control data.
 
bool importBinaryModel(BinaryInputStream &rInStrm)
Imports the site model data from the passed input stream.
 
const OUString & getRowSource() const
 
sal_Int16 getTabIndex() const
Returns the tab index of the control.
 
OUString maControlSource
Linked cell for the control value in a spreadsheet.
 
sal_Int16 mnTabIndex
Tab order index.
 
sal_Int32 getId() const
Returns the unique identifier of this control.
 
OUString maName
Name of the control.
 
::std::pair< sal_Int32, sal_Int32 > AxPairData
A pair of integer values as a property.
 
ApiControlType
Enumerates all UNO API control types supported by these filters.
 
std::shared_ptr< VbaSiteModel > VbaSiteModelRef
 
std::shared_ptr< ControlModelBase > ControlModelRef
 
::std::vector< OUString > AxClassTable
 
std::map< sal_Int32, STLPropertyMapEntry > PropertyMap