unioffice/common/axcontrol/axcontrol.go
2024-11-22 00:17:48 +00:00

445 lines
72 KiB
Go

//
// Copyright 2020 FoxyUtils ehf. All rights reserved.
//
// This is a commercial product and requires a license to operate.
// A trial license can be obtained at https://unidoc.io
//
// DO NOT EDIT: generated by unitwist Go source code obfuscator.
//
// Use of this source code is governed by the UniDoc End User License Agreement
// terms that can be accessed at https://unidoc.io/eula/
package axcontrol ;import (_c "bytes";_f "encoding/binary";_gc "errors";_b "fmt";_gf "github.com/unidoc/unioffice/common/tempstorage";_gb "github.com/unidoc/unioffice/internal/mscfb";_bg "github.com/unidoc/unioffice/internal/mscfb/rw";_bb "github.com/unidoc/unioffice/schema/schemas.microsoft.com/office/activeX";
_a "io";);func _fcf (_bbb *_bg .Reader )(*CommandButtonControl ,error ){_fb :=&CommandButtonControl {};if _acb :=_fb .readPropMask (_bbb );_acb !=nil {return nil ,_acb ;};if _gfc :=_fb .readDataBlock (_bbb );_gfc !=nil {return nil ,_gfc ;};if _bgg :=_fb .readExtraDataBlock (_bbb );
_bgg !=nil {return nil ,_bgg ;};if _ge :=_fb .readStreamDataPM (_bbb ,_fb ._cgb ._geg ,_fb ._cgb ._affe );_ge !=nil {return nil ,_ge ;};if _fg :=_fb .readTheRest (_bbb );_fg !=nil {return nil ,_fg ;};return _fb ,nil ;};
// GetWidth returns width of the morphDataControl in HIMETRIC (0.01mm)
func (_feb *morphDataControl )GetWidth ()uint32 {return _feb ._ebgg ._bcab };func _beeg (_acca *_bg .Reader )(*morphDataControl ,error ){_agga :=&morphDataControl {};if _ged :=_agga .readPropMask (_acca );_ged !=nil {return nil ,_ged ;};if _dbfd :=_agga .readDataBlock (_acca );
_dbfd !=nil {return nil ,_dbfd ;};if _afce :=_agga .readExtraDataBlock (_acca );_afce !=nil {return nil ,_afce ;};if _def :=_agga .readStreamDataMP (_acca ,_agga ._bdfd ._cbge ,_agga ._bdfd ._aeb );_def !=nil {return nil ,_def ;};switch _agga ._dgf ._eeeg {case _daab ,_bed :if _gegdf :=_agga .readColumnInfo (_acca );
_gegdf !=nil {return nil ,_gegdf ;};if _eda :=_agga .readColumnInfoPropMask (_acca );_eda !=nil {return nil ,_eda ;};if _ggbcc :=_agga .readColumnInfoDataBlock (_acca );_ggbcc !=nil {return nil ,_ggbcc ;};};if _efdg :=_agga .readTheRest (_acca );_efdg !=nil {return nil ,_efdg ;
};return _agga ,nil ;};
// GetMax gets a button max value.
func (_ccgc *SpinButtonControl )GetMax ()int32 {return _ccgc ._cagc ._eafb };type morphDataColumnInfoDataBlock struct{};
// GetForeColor gets a button text color value for a system palette from a commandButton control.
func (_gff *CommandButtonControl )GetForeColor ()uint32 {return _gff ._dgg ._gfa };type scrollBarDataBlock struct{_ffb uint32 ;_eeg uint32 ;_fbgf uint32 ;_accaa uint8 ;_bcd int32 ;_dafc int32 ;_eag int32 ;_bfdce int32 ;_dcac int32 ;_fgagc int32 ;_gag int32 ;
_debe uint32 ;_cdef uint32 ;_ddfc uint32 ;_bgce uint16 ;};type morphDataDataBlock struct{_dacd uint32 ;_cbdb uint32 ;_efccf uint32 ;_cee uint32 ;_dcbe byte ;_fdbf byte ;_eeeg byte ;_bfgb byte ;_dggag rune ;_ffd uint32 ;_ecfe uint16 ;_caab int16 ;_cbac int16 ;
_ggf uint16 ;_aebf uint16 ;_geaf uint8 ;_fag uint8 ;_abbd uint8 ;_caabd uint8 ;_ffc uint8 ;_gbcc uint32 ;_ffeg bool ;_gffd uint32 ;_eadb bool ;_fbd uint32 ;_fafa uint32 ;_gdf uint32 ;_afg uint16 ;_gdgf uint16 ;_bba rune ;_ebb uint32 ;_dbfc bool ;};
// SetMin sets a button min value.
func (_abbda *ScrollBarControl )SetMin (min int32 ){_abbda ._abdb ._fefe =true ;_abbda ._gfgfc ._bcd =min ;};type scrollBarPropMask struct{_gab bool ;_aca bool ;_caea bool ;_efe bool ;_gfaa bool ;_fefe bool ;_bdfdf bool ;_fcega bool ;_ecda bool ;_cegec bool ;
_fecd bool ;_deb bool ;_fddc bool ;_cgc bool ;_fddcc bool ;_cgdg bool ;};
// SetHeight sets height of the Label in HIMETRIC (0.01mm)
func (_adb *LabelControl )SetHeight (height uint32 ){_adb ._efa ._edeb =true ;_adb ._gdda ._dceb =height };type labelPropMask struct{_fgee bool ;_agcb bool ;_bdec bool ;_dbfb bool ;_egd bool ;_edeb bool ;_gec bool ;_gfgf bool ;_efdc bool ;_bgca bool ;_dgcee bool ;
_dbff bool ;_eecc bool ;};
// CheckBoxDataControl is a representation of a check box ActiveX form.
type CheckBoxDataControl struct{*morphDataControlBoolValue };func (_edg *guidAndPicture )getStdPictureBytes ()[]byte {if _edg !=nil &&_edg ._gcfb !=nil &&_edg ._gcfb ._ead !=nil {return _edg ._gcfb ._ead .Bytes ();};return nil ;};type stdPicture struct{_cf uint32 ;
_fab uint32 ;_ead *_c .Buffer ;};
// SetMin sets a button min value.
func (_bcdg *SpinButtonControl )SetMin (min int32 ){_bcdg ._cdeg ._edab =true ;_bcdg ._cagc ._gba =min };
// GetCaption gets a caption string from a morph control.
func (_cdag *morphDataControl )GetCaption ()string {if _cdag ._gfb &&_cdag ._bdfd ._gaed {return _cdag ._ebgg ._fcdb ;};return "";};
// ControlChoice represents an ActiveX control inside a wrapper.
type ControlChoice struct{CheckBox *CheckBoxDataControl ;TextBox *TextBoxDataControl ;ListBox *ListBoxDataControl ;ComboBox *ComboBoxDataControl ;OptionButton *OptionButtonDataControl ;ToggleButton *ToggleButtonDataControl ;Label *LabelControl ;Image *ImageControl ;
SpinButton *SpinButtonControl ;CommandButton *CommandButtonControl ;ScrollBar *ScrollBarControl ;_cga *controlBase ;};
// SetHeight sets height of the ScrollBar in HIMETRIC (0.01mm)
func (_bbgb *ScrollBarControl )SetHeight (height uint32 ){_bbgb ._abdb ._gfaa =true ;_bbgb ._cdcbf ._efad =height ;};func (_aaf *LabelControl )readPropMask (_fcbf *_bg .Reader )error {var _egea uint32 ;if _addc :=_f .Read (_fcbf ,_f .LittleEndian ,&_egea );
_addc !=nil {return _addc ;};_aaf ._efa =&labelPropMask {};_aaf ._efa ._fgee ,_egea =_bg .PopRightUI32 (_egea );_aaf ._efa ._agcb ,_egea =_bg .PopRightUI32 (_egea );_aaf ._efa ._bdec ,_egea =_bg .PopRightUI32 (_egea );_aaf ._efa ._dbfb ,_egea =_bg .PopRightUI32 (_egea );
_aaf ._efa ._egd ,_egea =_bg .PopRightUI32 (_egea );_aaf ._efa ._edeb ,_egea =_bg .PopRightUI32 (_egea );_aaf ._efa ._gec ,_egea =_bg .PopRightUI32 (_egea );_aaf ._efa ._gfgf ,_egea =_bg .PopRightUI32 (_egea );_aaf ._efa ._efdc ,_egea =_bg .PopRightUI32 (_egea );
_aaf ._efa ._bgca ,_egea =_bg .PopRightUI32 (_egea );_aaf ._efa ._dgcee ,_egea =_bg .PopRightUI32 (_egea );_aaf ._efa ._dbff ,_egea =_bg .PopRightUI32 (_egea );_aaf ._efa ._eecc ,_egea =_bg .PopRightUI32 (_egea );return nil ;};func (_bac *morphDataControl )writeColumnInfoDataBlock (_bbc *_bg .Writer )error {return nil };
type labelExtraDataBlock struct{_ebe uint32 ;_dceb uint32 ;_bca string ;};func (_eed *controlBase )setPictureBytes (_eedb []byte ){if _eed ._bdcg ._afab ==nil {_eed ._bdcg ._afab =&guidAndPicture {};};_eed ._bdcg ._afab .setStdPictureBytes (_eedb );};
// ImageControl is a representation of an image ActiveX form.
type ImageControl struct{controlBase ;_bda *imagePropMask ;_fdb *imageDataBlock ;_dede *imageExtraDataBlock ;_efbc *streamData ;};func _bbba (_bcb *_bg .Reader )(*LabelControl ,error ){_agaf :=&LabelControl {};if _edgf :=_agaf .readPropMask (_bcb );_edgf !=nil {return nil ,_edgf ;
};if _dce :=_agaf .readDataBlock (_bcb );_dce !=nil {return nil ,_dce ;};if _ceg :=_agaf .readExtraDataBlock (_bcb );_ceg !=nil {return nil ,_ceg ;};if _fdg :=_agaf .readStreamDataPM (_bcb ,_agaf ._efa ._dgcee ,_agaf ._efa ._eecc );_fdg !=nil {return nil ,_fdg ;
};if _cage :=_agaf .readTheRest (_bcb );_cage !=nil {return nil ,_cage ;};return _agaf ,nil ;};func _bbfdb (_baca *_bg .Reader )(*ScrollBarControl ,error ){_cffg :=&ScrollBarControl {};if _eaa :=_cffg .readPropMask (_baca );_eaa !=nil {return nil ,_eaa ;
};if _cbda :=_cffg .readDataBlock (_baca );_cbda !=nil {return nil ,_cbda ;};if _fffe :=_cffg .readExtraDataBlock (_baca );_fffe !=nil {return nil ,_fffe ;};if _eeccc :=_cffg .readStreamDataM (_baca ,_cffg ._abdb ._cgdg );_eeccc !=nil {return nil ,_eeccc ;
};if _dcc :=_cffg .readTheRest (_baca );_dcc !=nil {return nil ,_dcc ;};return _cffg ,nil ;};type morphDataControl struct{controlBase ;_bdfd *morphDataPropMask ;_dgf *morphDataDataBlock ;_ebgg *morphDataExtraDataBlock ;_cbb *streamData ;_cde *morphDataColumnInfo ;
_fbcd *morphDataColumnInfoPropMask ;_agfa *morphDataColumnInfoDataBlock ;};
// Control represents an ActiveX control wrapper.
type Control struct{TargetAttr string ;Ocx *_bb .Ocx ;Choice *ControlChoice ;_cg string ;_ca uint8 ;_e uint8 ;_ef uint16 ;};type morphDataColumnInfoPropMask struct{};
// GetMin gets a button min value.
func (_feg *SpinButtonControl )GetMin ()int32 {return _feg ._cagc ._gba };func (_ded *guidAndPicture )export (_gaf *_bg .Writer )error {if _ ,_bgdef :=_a .Copy (_gaf ,_c .NewBuffer (_ded ._cgad ));_bgdef !=nil {return _bgdef ;};if _fgd :=_gaf .WriteProperty (_ded ._gcfb ._cf );
_fgd !=nil {return _fgd ;};if _fdf :=_gaf .WriteProperty (_ded ._gcfb ._fab );_fdf !=nil {return _fdf ;};_ ,_fae :=_a .Copy (_gaf ,_ded ._gcfb ._ead );if _fae !=nil {return _fae ;};return nil ;};func (_geb *controlBase )getMouseIconBytes ()[]byte {return _geb ._bdcg ._ddbff .getStdPictureBytes ()};
var _fce =[]byte {0x04,0x52,0xE3,0x0B,0x91,0x8F,0xCE,0x11,0x9D,0xE3,0,0xAA,0,0x4B,0xB8,0x51};func (_fee *CommandButtonControl )readExtraDataBlock (_bbbe *_bg .Reader )error {_fee ._bc =&commandButtonExtraDataBlock {};if _fee ._dgg ._fe > 0{_eb ,_ebd :=_bbbe .ReadStringProperty (_fee ._dgg ._fe );
if _ebd !=nil {return _ebd ;};_fee ._bc ._ffea =_eb ;};if _fee ._cgb ._fcg {var _gdd uint64 ;if _cec :=_bbbe .ReadPairProperty (&_gdd );_cec !=nil {return _cec ;};_fee ._bc ._agfe =uint32 (_gdd );_fee ._bc ._efd =uint32 (_gdd >>32);};return nil ;};
// SetHeight sets height of the SpinButton in HIMETRIC (0.01mm)
func (_cgdge *SpinButtonControl )SetHeight (height uint32 ){_cgdge ._cdeg ._bfba =true ;_cgdge ._acfe ._bdef =height ;};
// SetForeColor sets a button text color value from a system palette for a spinButton control.
func (_abbf *SpinButtonControl )SetForeColor (foreColor uint32 ){_abbf ._cdeg ._aaeb =true ;_abbf ._cagc ._gggga =foreColor ;};func (_gfgg *LabelControl )readExtraDataBlock (_fcgd *_bg .Reader )error {_gfgg ._gdda =&labelExtraDataBlock {};if _gfgg ._gegc ._fgdc > 0{_ecd ,_bbdd :=_fcgd .ReadStringProperty (_gfgg ._gegc ._fgdc );
if _bbdd !=nil {return _bbdd ;};_gfgg ._gdda ._bca =_ecd ;};if _gfgg ._efa ._edeb {var _ggcc uint64 ;if _gegd :=_fcgd .ReadPairProperty (&_ggcc );_gegd !=nil {return _gegd ;};_gfgg ._gdda ._dceb =uint32 (_ggcc );_gfgg ._gdda ._ebe =uint32 (_ggcc >>32);
};return nil ;};
// ToggleButtonDataControl is a representation of a toggle button ActiveX form.
type ToggleButtonDataControl struct{*morphDataControlBoolValue };
// ListBoxDataControl is a representation of a list box ActiveX form.
type ListBoxDataControl struct{*morphDataControlStringValue };
// SetBackColor sets a button text color value from a system palette for a spinButton control.
func (_cbgf *SpinButtonControl )SetBackColor (backColor uint32 ){_cbgf ._cdeg ._dffa =true ;_cbgf ._cagc ._ggdg =backColor ;};
// ScrollBarControl is a representation of a scrollBar ActiveX form.
type ScrollBarControl struct{controlBase ;_abdb *scrollBarPropMask ;_gfgfc *scrollBarDataBlock ;_cdcbf *scrollBarExtraDataBlock ;_ccffd *streamData ;};func (_eeda *SpinButtonControl )export (_gbee *_bg .Writer )error {if _fdde :=_eeda .writePropMask (_gbee );
_fdde !=nil {return _fdde ;};if _bgcd :=_eeda .writeDataBlock (_gbee );_bgcd !=nil {return _bgcd ;};if _ecdaa :=_eeda .writeExtraDataBlock (_gbee );_ecdaa !=nil {return _ecdaa ;};_eeda ._dfa =uint16 (_gbee .Len ()-4);if _afbb :=_eeda .writeStreamDataM (_gbee );
_afbb !=nil {return _afbb ;};return _eeda .writeTheRest (_gbee );};type imagePropMask struct{_ggg bool ;_gcd bool ;_gcca bool ;_cdae bool ;_gdge bool ;_cfa bool ;_cbd bool ;_adg bool ;_fceg bool ;_eec bool ;_fad bool ;_dgd bool ;_bfbb bool ;};type morphDataControlStringValue struct{*morphDataControl };
// SetCaption sets a caption string for a label control.
func (_bde *LabelControl )SetCaption (caption string ){_bde ._efa ._dbfb =true ;_bde ._gegc ._fgdc =uint32 (len (caption ));_bde ._gdda ._bca =caption ;};func (_aaba *morphDataControl )readPropMask (_bab *_bg .Reader )error {var _fed uint64 ;if _afbf :=_f .Read (_bab ,_f .LittleEndian ,&_fed );
_afbf !=nil {return _afbf ;};_aaba ._bdfd =&morphDataPropMask {};_aaba ._bdfd ._dgad ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._fbca ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._bcf ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._cfc ,_fed =_bg .PopRightUI64 (_fed );
_aaba ._bdfd ._dbb ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._feeg ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._abda ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._cfee ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._dcgd ,_fed =_bg .PopRightUI64 (_fed );
_aaba ._bdfd ._dcec ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._ddd ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._bebc ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._ceba ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._efcd ,_fed =_bg .PopRightUI64 (_fed );
_aaba ._bdfd ._bgeg ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._fadb ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._abg ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._gbd ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._faa ,_fed =_bg .PopRightUI64 (_fed );
_fed >>=1;_aaba ._bdfd ._ddad ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._gcff ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._ebc ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._gaed ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._bbfd ,_fed =_bg .PopRightUI64 (_fed );
_aaba ._bdfd ._dgga ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._faab ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._cbge ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._aeb ,_fed =_bg .PopRightUI64 (_fed );_aaba ._bdfd ._dgced ,_fed =_bg .PopRightUI64 (_fed );
_fed >>=1;_fed >>=1;_aaba ._bdfd ._abb ,_fed =_bg .PopRightUI64 (_fed );return nil ;};
// SetPosition sets a button position value.
func (_ecaa *SpinButtonControl )SetPosition (position int32 ){_ecaa ._cdeg ._decf =true ;_ecaa ._cagc ._ebba =position ;};func (_cfb *guidAndPicture )importFromReader (_cff *_bg .Reader )error {_gea :=_c .NewBuffer ([]byte {});if _ ,_afa :=_a .CopyN (_gea ,_cff ,int64 (_bgde ));
_afa !=nil {return _afa ;};_gcee :=_gea .Bytes ();for _dgce :=0;_dgce < _bgde ;_dgce ++{if _gcee [_dgce ]!=_fce [_dgce ]{return _b .Errorf ("\u0049\u006e\u0076\u0061\u006c\u0069d\u0020\u0047\u0055\u0049\u0044\u0020\u0076\u0061\u006c\u0075\u0065\u0020\u0025v\u0020\u0061\u0074\u0020\u0069\u006e\u0064e\u0078\u0020\u0025\u0076",_gcee [_dgce ],_dgce );
};};_cfb ._cgad =_gcee ;_cfb ._gcfb =&stdPicture {};if _dffd :=_cff .ReadProperty (&_cfb ._gcfb ._cf );_dffd !=nil {return _dffd ;};if _cfb ._gcfb ._cf !=_cabe {return _b .Errorf ("\u0049\u006e\u0076\u0061li\u0064\u0020\u0070\u0072\u0065\u0061\u006d\u0062\u006c\u0065\u0020\u0025\u0076",_cfb ._gcfb ._cf );
};if _fef :=_cff .ReadProperty (&_cfb ._gcfb ._fab );_fef !=nil {return _fef ;};if _cfb ._gcfb ._fab !=0{_ggb :=_c .NewBuffer ([]byte {});if _ ,_cfd :=_a .Copy (_ggb ,_cff );_cfd !=nil {return _cfd ;};_cfb ._gcfb ._ead =_ggb ;};return nil ;};type commandButtonExtraDataBlock struct{_efd uint32 ;
_agfe uint32 ;_ffea string ;};type imageExtraDataBlock struct{_cdc uint32 ;_bef uint32 ;};type morphDataExtraDataBlock struct{_bcab uint32 ;_dca uint32 ;_acgd string ;_fcdb string ;_bgcgf string ;};type morphDataControlBoolValue struct{*morphDataControl };
var _bgde =len (_fce );func (_adbg *morphDataControl )getValueString ()string {if _adbg ._bdfd ._ebc {return _adbg ._ebgg ._acgd ;};return "";};
// ExportToByteArray makes a byte array from a control as it is stored in .bin files.
func (_ffe *Control )ExportToByteArray ()([]byte ,error ){_ede ,_agc :=_gf .Open (_ffe ._cg );if _agc !=nil {return nil ,_agc ;};defer _ede .Close ();_ee ,_agc :=_gb .New (_ede );if _agc !=nil {return nil ,_agc ;};_aba :=_bg .NewWriter ();if _dfe :=_f .Write (_aba ,_f .LittleEndian ,&_ffe ._ca );
_dfe !=nil {return nil ,_dfe ;};if _agg :=_f .Write (_aba ,_f .LittleEndian ,&_ffe ._e );_agg !=nil {return nil ,_agg ;};if _ga :=_f .Write (_aba ,_f .LittleEndian ,uint16 (0));_ga !=nil {return nil ,_ga ;};var _dag error ;if _edf :=_ffe .Choice ;_edf !=nil {if _edf .CheckBox !=nil {_dag =_edf .CheckBox .export (_aba );
}else if _edf .TextBox !=nil {_dag =_edf .TextBox .export (_aba );}else if _edf .ComboBox !=nil {_dag =_edf .ComboBox .export (_aba );}else if _edf .ListBox !=nil {_dag =_edf .ListBox .export (_aba );}else if _edf .OptionButton !=nil {_dag =_edf .OptionButton .export (_aba );
}else if _edf .ToggleButton !=nil {_dag =_edf .ToggleButton .export (_aba );}else if _edf .Label !=nil {_dag =_edf .Label .export (_aba );}else if _edf .SpinButton !=nil {_dag =_edf .SpinButton .export (_aba );}else if _edf .CommandButton !=nil {_dag =_edf .CommandButton .export (_aba );
}else if _edf .ScrollBar !=nil {_dag =_edf .ScrollBar .export (_aba );}else {_dag =_edf ._cga .writeTheRest (_aba );};};if _dag !=nil {return nil ,_dag ;};if _fc :=_aba .WriteByteAt (byte (_ffe ._ef ),2);_fc !=nil {return nil ,_fc ;};if _be :=_aba .WriteByteAt (byte (_ffe ._ef >>8),3);
_be !=nil {return nil ,_be ;};_aae ,_agc :=_ee .GetEntry ("\u0063\u006f\u006e\u0074\u0065\u006e\u0074\u0073");if _agc !=nil {return nil ,_agc ;};if _ae :=_aae .SetEntryContent (_aba .Bytes ());_ae !=nil {return nil ,_ae ;};return _ee .Export ();};func (_cgbb *SpinButtonControl )readDataBlock (_fba *_bg .Reader )error {_cgbb ._cagc =&spinButtonDataBlock {};
if _cgbb ._cdeg ._aaeb {if _ebac :=_fba .ReadProperty (&_cgbb ._cagc ._gggga );_ebac !=nil {return _ebac ;};};if _cgbb ._cdeg ._dffa {if _affa :=_fba .ReadProperty (&_cgbb ._cagc ._ggdg );_affa !=nil {return _affa ;};};if _cgbb ._cdeg ._gfcf {if _ecge :=_fba .ReadProperty (&_cgbb ._cagc ._fcbg );
_ecge !=nil {return _ecge ;};};if _cgbb ._cdeg ._edab {if _abfg :=_fba .ReadProperty (&_cgbb ._cagc ._gba );_abfg !=nil {return _abfg ;};};if _cgbb ._cdeg ._dgbg {if _ddbf :=_fba .ReadProperty (&_cgbb ._cagc ._eafb );_ddbf !=nil {return _ddbf ;};};if _cgbb ._cdeg ._decf {if _addg :=_fba .ReadProperty (&_cgbb ._cagc ._ebba );
_addg !=nil {return _addg ;};};if _cgbb ._cdeg ._dcfd {if _cbdc :=_fba .ReadProperty (&_cgbb ._cagc ._adedg );_cbdc !=nil {return _cbdc ;};};if _cgbb ._cdeg ._gcbc {if _aeeb :=_fba .ReadProperty (&_cgbb ._cagc ._efcb );_aeeb !=nil {return _aeeb ;};};if _cgbb ._cdeg ._dcad {if _ddgb :=_fba .ReadProperty (&_cgbb ._cagc ._bff );
_ddgb !=nil {return _ddgb ;};};if _cgbb ._cdeg ._effb {if _gdbb :=_fba .ReadProperty (&_cgbb ._cagc ._fffa );_gdbb !=nil {return _gdbb ;};};if _cgbb ._cdeg ._fdgb {if _caef :=_fba .ReadProperty (&_cgbb ._cagc ._cadb );_caef !=nil {return _caef ;};};if _cgbb ._cdeg ._afaa {if _ccgg :=_fba .ReadProperty (&_cgbb ._cagc ._ccffg );
_ccgg !=nil {return _ccgg ;};};if _cgbb ._cdeg ._cfaa {if _dgcea :=_fba .ReadProperty (&_cgbb ._cagc ._bgba );_dgcea !=nil {return _dgcea ;};};return nil ;};
// GetHeight returns height of the morphDataControl in HIMETRIC (0.01mm)
func (_fadf *morphDataControl )GetHeight ()uint32 {return _fadf ._ebgg ._dca };type guidAndPicture struct{_cgad []byte ;_gcfb *stdPicture ;};
// OptionButtonDataControl is a representation of an option button ActiveX form.
type OptionButtonDataControl struct{*morphDataControlBoolValue };type morphDataPropMask struct{_dgad bool ;_fbca bool ;_bcf bool ;_cfc bool ;_dbb bool ;_feeg bool ;_abda bool ;_cfee bool ;_dcgd bool ;_dcec bool ;_ddd bool ;_bebc bool ;_ceba bool ;_efcd bool ;
_bgeg bool ;_fadb bool ;_abg bool ;_gbd bool ;_faa bool ;_ddad bool ;_gcff bool ;_ebc bool ;_gaed bool ;_bbfd bool ;_dgga bool ;_faab bool ;_cbge bool ;_aeb bool ;_dgced bool ;_abb bool ;};
// SpinButtonControl is a representation of a spinButton ActiveX form.
type SpinButtonControl struct{controlBase ;_cdeg *spinButtonPropMask ;_cagc *spinButtonDataBlock ;_acfe *spinButtonExtraDataBlock ;_gagf *streamData ;};func (_cgaba *CommandButtonControl )writeExtraDataBlock (_bgcg *_bg .Writer )error {if _cgaba ._dgg ._fe > 0{if _gfg :=_bgcg .WriteStringProperty (_cgaba ._bc ._ffea );
_gfg !=nil {return _gfg ;};};if _cgaba ._cgb ._fcg {_bgcb :=uint64 (_cgaba ._bc ._efd )<<32|uint64 (_cgaba ._bc ._agfe );if _aggd :=_bgcg .WritePropertyNoAlign (_bgcb );_aggd !=nil {return _aggd ;};};return nil ;};
// GetForeColor gets a button text color value for a system palette from a scrollBar control.
func (_afga *ScrollBarControl )GetForeColor ()uint32 {return _afga ._gfgfc ._ffb };
// SetBackColor sets a button text color value from a system palette for a scrollBar control.
func (_cfeb *ScrollBarControl )SetBackColor (backColor uint32 ){_cfeb ._abdb ._aca =true ;_cfeb ._gfgfc ._eeg =backColor ;};const _cgbe =6;func (_eab *controlBase )getPictureBytes ()[]byte {return _eab ._bdcg ._afab .getStdPictureBytes ()};func (_fgeg *ImageControl )writePropMask (_edb *_bg .Writer )error {_adf :=uint32 (0);
_adf >>=2;_adf =_bg .PushLeftUI32 (_adf ,_fgeg ._bda ._ggg );_adf =_bg .PushLeftUI32 (_adf ,_fgeg ._bda ._gcd );_adf =_bg .PushLeftUI32 (_adf ,_fgeg ._bda ._gcca );_adf =_bg .PushLeftUI32 (_adf ,_fgeg ._bda ._cdae );_adf =_bg .PushLeftUI32 (_adf ,_fgeg ._bda ._gdge );
_adf =_bg .PushLeftUI32 (_adf ,_fgeg ._bda ._cfa );_adf =_bg .PushLeftUI32 (_adf ,_fgeg ._bda ._cbd );_adf =_bg .PushLeftUI32 (_adf ,_fgeg ._bda ._adg );_adf =_bg .PushLeftUI32 (_adf ,_fgeg ._bda ._fceg );_adf =_bg .PushLeftUI32 (_adf ,_fgeg ._bda ._eec );
_adf =_bg .PushLeftUI32 (_adf ,_fgeg ._bda ._fad );_adf =_bg .PushLeftUI32 (_adf ,_fgeg ._bda ._dgd );_adf =_bg .PushLeftUI32 (_adf ,_fgeg ._bda ._bfbb );_adf >>=17;return _f .Write (_edb ,_f .LittleEndian ,_adf );};func (_ffa *ImageControl )writeExtraDataBlock (_cfe *_bg .Writer )error {if _ffa ._bda ._adg {_cgbf :=uint64 (_ffa ._dede ._cdc )<<32|uint64 (_ffa ._dede ._bef );
if _eea :=_cfe .WritePropertyNoAlign (_cgbf );_eea !=nil {return _eea ;};};return nil ;};func (_dfgd *ScrollBarControl )writePropMask (_ffcc *_bg .Writer )error {_cbc :=uint32 (0);_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._gab );_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._aca );
_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._caea );_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._gfaa );_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._efe );_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._fefe );_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._bdfdf );
_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._fcega );_cbc >>=1;_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._ecda );_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._cegec );_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._fecd );_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._deb );
_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._fddc );_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._cgc );_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._fddcc );_cbc =_bg .PushLeftUI32 (_cbc ,_dfgd ._abdb ._cgdg );_cbc >>=15;return _f .Write (_ffcc ,_f .LittleEndian ,_cbc );
};
// SetHeight sets height of the morphDataControl in HIMETRIC (0.01mm)
func (_egc *morphDataControl )SetHeight (height uint32 ){_egc ._bdfd ._dcgd =true ;_egc ._ebgg ._dca =height ;};func (_acf *LabelControl )writeExtraDataBlock (_afbd *_bg .Writer )error {if _acf ._gegc ._fgdc > 0{if _fdga :=_afbd .WriteStringProperty (_acf ._gdda ._bca );
_fdga !=nil {return _fdga ;};};if _acf ._efa ._edeb {_eff :=uint64 (_acf ._gdda ._ebe )<<32|uint64 (_acf ._gdda ._dceb );if _baa :=_afbd .WritePropertyNoAlign (_eff );_baa !=nil {return _baa ;};};return nil ;};const (FmPictureSizeModeClip FmPictureSizeMode =iota ;
FmPictureSizeModeStretch ;_ ;FmPictureSizeModeZoom ;);func (_fcb *CommandButtonControl )readDataBlock (_dec *_bg .Reader )error {_fcb ._dgg =&commandButtonDataBlock {};if _fcb ._cgb ._cd {if _bbe :=_dec .ReadProperty (&_fcb ._dgg ._gfa );_bbe !=nil {return _bbe ;
};};if _fcb ._cgb ._deaa {if _gcag :=_dec .ReadProperty (&_fcb ._dgg ._dbfa );_gcag !=nil {return _gcag ;};};if _fcb ._cgb ._ce {if _bdg :=_dec .ReadProperty (&_fcb ._dgg ._fge );_bdg !=nil {return _bdg ;};};if _fcb ._cgb ._egb {var _gac uint32 ;if _ea :=_dec .ReadProperty (&_gac );
_ea !=nil {return _ea ;};_fcb ._dgg ._aea ,_fcb ._dgg ._fe =_ccg (_gac );};if _fcb ._cgb ._afe {if _cae :=_dec .ReadProperty (&_fcb ._dgg ._cge );_cae !=nil {return _cae ;};};if _fcb ._cgb ._ddb {if _bdf :=_dec .ReadProperty (&_fcb ._dgg ._bfg );_bdf !=nil {return _bdf ;
};};if _fcb ._cgb ._geg {if _edc :=_dec .ReadProperty (&_fcb ._dgg ._fa );_edc !=nil {return _edc ;};};if _fcb ._cgb ._gca {if _fdd :=_dec .ReadProperty (&_fcb ._dgg ._ace );_fdd !=nil {return _fdd ;};};if _fcb ._cgb ._affe {if _gae :=_dec .ReadProperty (&_fcb ._dgg ._gfd );
_gae !=nil {return _gae ;};};return nil ;};
// GetCaption gets a caption string from a label control.
func (_fde *LabelControl )GetCaption ()string {return _fde ._gdda ._bca };type spinButtonDataBlock struct{_gggga uint32 ;_ggdg uint32 ;_fcbg uint32 ;_gba int32 ;_eafb int32 ;_ebba int32 ;_adedg int32 ;_efcb int32 ;_bff int32 ;_fffa uint32 ;_cadb uint32 ;
_ccffg uint16 ;_bgba uint8 ;};const (FmPictureAlignmentTopLeft FmPictureAlignment =iota ;FmPictureAlignmentTopRight ;FmPictureAlignmentCenter ;FmPictureAlignmentBottomLeft ;FmPictureAlignmentBottomRight ;);func (_gce *controlBase )writeTheRest (_cggg *_bg .Writer )error {_ ,_fgecd :=_cggg .Write (_gce ._feef );
return _fgecd ;};const _bfabc =4;func (_ccff *morphDataControl )setValueString (_fcd string ){_ccff ._bdfd ._ebc =true ;_ccff ._dgf ._gbcc =uint32 (len (_fcd ));_ccff ._ebgg ._acgd =_fcd ;};
// SetMax sets a button max value.
func (_bggcg *ScrollBarControl )SetMax (max int32 ){_bggcg ._abdb ._bdfdf =true ;_bggcg ._gfgfc ._dafc =max ;};func (_bgef *ImageControl )writeDataBlock (_ccb *_bg .Writer )error {if _bgef ._bda ._gcd {if _egbc :=_ccb .WriteProperty (_bgef ._fdb ._eddg );
_egbc !=nil {return _egbc ;};};if _bgef ._bda ._gcca {if _cag :=_ccb .WriteProperty (_bgef ._fdb ._eee );_cag !=nil {return _cag ;};};if _bgef ._bda ._cdae {if _ebg :=_ccb .WriteProperty (_bgef ._fdb ._fec );_ebg !=nil {return _ebg ;};};if _bgef ._bda ._gdge {if _efc :=_ccb .WriteProperty (_bgef ._fdb ._baef );
_efc !=nil {return _efc ;};};if _bgef ._bda ._cfa {if _bee :=_ccb .WriteProperty (_bgef ._fdb ._ggbc );_bee !=nil {return _bee ;};};if _bgef ._bda ._cbd {if _fbfa :=_ccb .WriteProperty (_bgef ._fdb ._ffge );_fbfa !=nil {return _fbfa ;};};if _bgef ._bda ._fceg {if _gadd :=_ccb .WriteProperty (_bgef ._fdb ._egef );
_gadd !=nil {return _gadd ;};};if _bgef ._bda ._eec {if _efcc :=_ccb .WriteProperty (_bgef ._fdb ._adeb );_efcc !=nil {return _efcc ;};};if _bgef ._bda ._dgd {if _ddf :=_ccb .WriteProperty (_bgef ._fdb ._bdbd );_ddf !=nil {return _ddf ;};};if _bgef ._bda ._bfbb {if _bag :=_ccb .WriteProperty (_bgef ._fdb ._beg );
_bag !=nil {return _bag ;};};return _ccb .AlignLength (4);};func (_cbaca *ScrollBarControl )readPropMask (_cggae *_bg .Reader )error {var _aaef uint32 ;if _bbdb :=_f .Read (_cggae ,_f .LittleEndian ,&_aaef );_bbdb !=nil {return _bbdb ;};_cbaca ._abdb =&scrollBarPropMask {};
_cbaca ._abdb ._gab ,_aaef =_bg .PopRightUI32 (_aaef );_cbaca ._abdb ._aca ,_aaef =_bg .PopRightUI32 (_aaef );_cbaca ._abdb ._caea ,_aaef =_bg .PopRightUI32 (_aaef );_cbaca ._abdb ._gfaa ,_aaef =_bg .PopRightUI32 (_aaef );_cbaca ._abdb ._efe ,_aaef =_bg .PopRightUI32 (_aaef );
_cbaca ._abdb ._fefe ,_aaef =_bg .PopRightUI32 (_aaef );_cbaca ._abdb ._bdfdf ,_aaef =_bg .PopRightUI32 (_aaef );_cbaca ._abdb ._fcega ,_aaef =_bg .PopRightUI32 (_aaef );_aaef >>=1;_cbaca ._abdb ._ecda ,_aaef =_bg .PopRightUI32 (_aaef );_cbaca ._abdb ._cegec ,_aaef =_bg .PopRightUI32 (_aaef );
_cbaca ._abdb ._fecd ,_aaef =_bg .PopRightUI32 (_aaef );_cbaca ._abdb ._deb ,_aaef =_bg .PopRightUI32 (_aaef );_cbaca ._abdb ._fddc ,_aaef =_bg .PopRightUI32 (_aaef );_cbaca ._abdb ._cgc ,_aaef =_bg .PopRightUI32 (_aaef );_cbaca ._abdb ._fddcc ,_aaef =_bg .PopRightUI32 (_aaef );
_cbaca ._abdb ._cgdg ,_aaef =_bg .PopRightUI32 (_aaef );return nil ;};
// CommandButtonControl is a representation of a commandButton ActiveX form.
type CommandButtonControl struct{controlBase ;_cgb *commandButtonPropMask ;_dgg *commandButtonDataBlock ;_bc *commandButtonExtraDataBlock ;_bdb *streamData ;};func (_gfeg *LabelControl )writeDataBlock (_gcda *_bg .Writer )error {if _gfeg ._efa ._fgee {if _eae :=_gcda .WriteProperty (_gfeg ._gegc ._cdgg );
_eae !=nil {return _eae ;};};if _gfeg ._efa ._agcb {if _cef :=_gcda .WriteProperty (_gfeg ._gegc ._ceb );_cef !=nil {return _cef ;};};if _gfeg ._efa ._bdec {if _bbef :=_gcda .WriteProperty (_gfeg ._gegc ._gbfd );_bbef !=nil {return _bbef ;};};if _gfeg ._efa ._dbfb {_bgefb :=_dea (_gfeg ._gegc ._fgdc ,_gfeg ._gegc ._bdeca );
if _bbecg :=_gcda .WriteProperty (_bgefb );_bbecg !=nil {return _bbecg ;};};if _gfeg ._efa ._egd {if _cege :=_gcda .WriteProperty (_gfeg ._gegc ._afae );_cege !=nil {return _cege ;};};if _gfeg ._efa ._gec {if _caa :=_gcda .WriteProperty (_gfeg ._gegc ._dbga );
_caa !=nil {return _caa ;};};if _gfeg ._efa ._gfgf {if _dfb :=_gcda .WriteProperty (_gfeg ._gegc ._ecgf );_dfb !=nil {return _dfb ;};};if _gfeg ._efa ._efdc {if _edea :=_gcda .WriteProperty (_gfeg ._gegc ._dbgd );_edea !=nil {return _edea ;};};if _gfeg ._efa ._bgca {if _adde :=_gcda .WriteProperty (_gfeg ._gegc ._egag );
_adde !=nil {return _adde ;};};if _gfeg ._efa ._dgcee {if _abdc :=_gcda .WriteProperty (_gfeg ._gegc ._cgf );_abdc !=nil {return _abdc ;};};if _gfeg ._efa ._dbff {if _bfab :=_gcda .WriteProperty (_gfeg ._gegc ._fff );_bfab !=nil {return _bfab ;};};if _gfeg ._efa ._eecc {if _gcg :=_gcda .WriteProperty (_gfeg ._gegc ._aded );
_gcg !=nil {return _gcg ;};};return _gcda .AlignLength (4);};
// GetValue gets a value from a control which value can be represented as boolean (on/off).
func (_edbf *morphDataControlBoolValue )GetValue ()bool {return _edbf .getValueBool ()};func (_ccd *morphDataControl )writeColumnInfo (_cggaa *_bg .Writer )error {return nil };
// GetBackColor gets a button text color value for a system palette from a scrollBar control.
func (_edfc *ScrollBarControl )GetBackColor ()uint32 {return _edfc ._gfgfc ._eeg };
// GetValue gets a value from a control which value can be represented as a string.
func (_cgbg *morphDataControlStringValue )GetValue ()string {return _cgbg .getValueString ()};func (_efde *LabelControl )writePropMask (_dad *_bg .Writer )error {_dcbb :=uint32 (0);_dcbb =_bg .PushLeftUI32 (_dcbb ,_efde ._efa ._fgee );_dcbb =_bg .PushLeftUI32 (_dcbb ,_efde ._efa ._agcb );
_dcbb =_bg .PushLeftUI32 (_dcbb ,_efde ._efa ._bdec );_dcbb =_bg .PushLeftUI32 (_dcbb ,_efde ._efa ._dbfb );_dcbb =_bg .PushLeftUI32 (_dcbb ,_efde ._efa ._egd );_dcbb =_bg .PushLeftUI32 (_dcbb ,_efde ._efa ._edeb );_dcbb =_bg .PushLeftUI32 (_dcbb ,_efde ._efa ._gec );
_dcbb =_bg .PushLeftUI32 (_dcbb ,_efde ._efa ._gfgf );_dcbb =_bg .PushLeftUI32 (_dcbb ,_efde ._efa ._efdc );_dcbb =_bg .PushLeftUI32 (_dcbb ,_efde ._efa ._bgca );_dcbb =_bg .PushLeftUI32 (_dcbb ,_efde ._efa ._dgcee );_dcbb =_bg .PushLeftUI32 (_dcbb ,_efde ._efa ._dbff );
_dcbb =_bg .PushLeftUI32 (_dcbb ,_efde ._efa ._eecc );_dcbb >>=19;return _f .Write (_dad ,_f .LittleEndian ,_dcbb );};func (_abag *ScrollBarControl )export (_caee *_bg .Writer )error {if _gced :=_abag .writePropMask (_caee );_gced !=nil {return _gced ;
};if _dbfdf :=_abag .writeDataBlock (_caee );_dbfdf !=nil {return _dbfdf ;};if _febe :=_abag .writeExtraDataBlock (_caee );_febe !=nil {return _febe ;};_abag ._dfa =uint16 (_caee .Len ()-4);if _dbc :=_abag .writeStreamDataM (_caee );_dbc !=nil {return _dbc ;
};return _abag .writeTheRest (_caee );};
// GetHeight returns height of the Label in HIMETRIC (0.01mm)
func (_bfdc *LabelControl )GetHeight ()uint32 {return _bfdc ._gdda ._dceb };
// GetForeColor gets a button text color value for a system palette from a spinButton control.
func (_ddc *SpinButtonControl )GetForeColor ()uint32 {return _ddc ._cagc ._gggga };
// ImportFromFile makes a Control from a file in a storage.
func ImportFromFile (storagePath string )(*Control ,error ){_bge ,_fd :=_gf .Open (storagePath );if _fd !=nil {return nil ,_fd ;};defer _bge .Close ();_bgd ,_fd :=_gb .New (_bge );if _fd !=nil {return nil ,_fd ;};_d ,_fd :=_gdc (_bgd );if _fd !=nil {return nil ,_fd ;
};_df ,_fd :=_bgd .GetEntry ("\u0063\u006f\u006e\u0074\u0065\u006e\u0074\u0073");if _fd !=nil {return nil ,_fd ;};_ag :=make ([]byte ,_df .Size );_ ,_fd =_df .Read (_ag );if _fd !=nil {return nil ,_fd ;};_bf :=&Control {_cg :storagePath };_ac ,_fd :=_bg .NewReader (_ag );
if _fd !=nil {return nil ,_fd ;};if _agf :=_f .Read (_ac ,_f .LittleEndian ,&_bf ._ca );_agf !=nil {return nil ,_agf ;};if _dg :=_f .Read (_ac ,_f .LittleEndian ,&_bf ._e );_dg !=nil {return nil ,_dg ;};if _de :=_f .Read (_ac ,_f .LittleEndian ,&_bf ._ef );
_de !=nil {return nil ,_de ;};switch _d {case "\u0043\u0068\u0065\u0063\u006b\u0042\u006f\u0078":_ff ,_da :=_beeg (_ac );if _da !=nil {return nil ,_da ;};_ff ._gfb =true ;_bf .Choice =&ControlChoice {CheckBox :&CheckBoxDataControl {&morphDataControlBoolValue {_ff }}};
case "\u0054e\u0078\u0074\u0042\u006f\u0078":_ba ,_dgb :=_beeg (_ac );if _dgb !=nil {return nil ,_dgb ;};_ba ._gfb =true ;_bf .Choice =&ControlChoice {TextBox :&TextBoxDataControl {&morphDataControlStringValue {_ba }}};case "\u0043\u006f\u006d\u0062\u006f\u0042\u006f\u0078":_ab ,_efb :=_beeg (_ac );
if _efb !=nil {return nil ,_efb ;};_ab ._gfb =true ;_bf .Choice =&ControlChoice {ComboBox :&ComboBoxDataControl {&morphDataControlStringValue {_ab }}};case "\u004ci\u0073\u0074\u0042\u006f\u0078":_cc ,_dd :=_beeg (_ac );if _dd !=nil {return nil ,_dd ;};
_cc ._gfb =true ;_bf .Choice =&ControlChoice {ListBox :&ListBoxDataControl {&morphDataControlStringValue {_cc }}};case "\u004f\u0070\u0074i\u006f\u006e\u0042\u0075\u0074\u0074\u006f\u006e":_dgc ,_gd :=_beeg (_ac );if _gd !=nil {return nil ,_gd ;};_dgc ._gfb =true ;
_bf .Choice =&ControlChoice {OptionButton :&OptionButtonDataControl {&morphDataControlBoolValue {_dgc }}};case "\u0054\u006f\u0067g\u006c\u0065\u0042\u0075\u0074\u0074\u006f\u006e":_acg ,_gbg :=_beeg (_ac );if _gbg !=nil {return nil ,_gbg ;};_acg ._gfb =true ;
_bf .Choice =&ControlChoice {ToggleButton :&ToggleButtonDataControl {&morphDataControlBoolValue {_acg }}};case "\u004c\u0061\u0062e\u006c":_bd ,_ad :=_bbba (_ac );if _ad !=nil {return nil ,_ad ;};_bf .Choice =&ControlChoice {Label :_bd };case "\u0053\u0070\u0069\u006e\u0042\u0075\u0074\u0074\u006f\u006e":_bdc ,_bgc :=_abgg (_ac );
if _bgc !=nil {return nil ,_bgc ;};_bf .Choice =&ControlChoice {SpinButton :_bdc };case "\u0043\u006f\u006d\u006d\u0061\u006e\u0064\u0042\u0075\u0074\u0074\u006f\u006e":_eg ,_ed :=_fcf (_ac );if _ed !=nil {return nil ,_ed ;};_bf .Choice =&ControlChoice {CommandButton :_eg };
case "\u0053c\u0072\u006f\u006c\u006c\u0042\u0061r":_acd ,_bae :=_bbfdb (_ac );if _bae !=nil {return nil ,_bae ;};_bf .Choice =&ControlChoice {ScrollBar :_acd };default:_ec :=&controlBase {};if _aa :=_ec .readTheRest (_ac );_aa !=nil {return nil ,_aa ;
};_bf .Choice =&ControlChoice {_cga :_ec };};return _bf ,nil ;};func (_bec *morphDataControl )writeColumnInfoPropMask (_gdgee *_bg .Writer )error {return nil };const _cabe uint32 =0x0000746C;func (_dfag *controlBase )writeStreamDataPM (_geabb *_bg .Writer )error {if _dfag ._bdcg !=nil {if _dfag ._bdcg ._afab !=nil {if _geee :=_dfag ._bdcg ._afab .export (_geabb );
_geee !=nil {return _geee ;};};if _dfag ._bdcg ._ddbff !=nil {if _dbfe :=_dfag ._bdcg ._ddbff .export (_geabb );_dbfe !=nil {return _dbfe ;};};};return nil ;};func (_dega *LabelControl )export (_efbd *_bg .Writer )error {if _cba :=_dega .writePropMask (_efbd );
_cba !=nil {return _cba ;};if _geab :=_dega .writeDataBlock (_efbd );_geab !=nil {return _geab ;};if _fcbe :=_dega .writeExtraDataBlock (_efbd );_fcbe !=nil {return _fcbe ;};_dega ._dfa =uint16 (_efbd .Len ()-4);if _cdcb :=_dega .writeStreamDataPM (_efbd );
_cdcb !=nil {return _cdcb ;};return _dega .writeTheRest (_efbd );};
// SetValue sets a value for a control which value can be represented as boolean (on/off).
func (_dedf *morphDataControlBoolValue )SetValue (value bool ){_dedf .setValueBool (value )};func (_agea *ScrollBarControl )readDataBlock (_dbce *_bg .Reader )error {_agea ._gfgfc =&scrollBarDataBlock {};if _agea ._abdb ._gab {if _bdgd :=_dbce .ReadProperty (&_agea ._gfgfc ._ffb );
_bdgd !=nil {return _bdgd ;};};if _agea ._abdb ._aca {if _dggf :=_dbce .ReadProperty (&_agea ._gfgfc ._eeg );_dggf !=nil {return _dggf ;};};if _agea ._abdb ._caea {if _cad :=_dbce .ReadProperty (&_agea ._gfgfc ._fbgf );_cad !=nil {return _cad ;};};if _agea ._abdb ._efe {if _fbbc :=_dbce .ReadProperty (&_agea ._gfgfc ._accaa );
_fbbc !=nil {return _fbbc ;};};if _agea ._abdb ._fefe {if _eeaf :=_dbce .ReadProperty (&_agea ._gfgfc ._bcd );_eeaf !=nil {return _eeaf ;};};if _agea ._abdb ._bdfdf {if _ffbg :=_dbce .ReadProperty (&_agea ._gfgfc ._dafc );_ffbg !=nil {return _ffbg ;};};
if _agea ._abdb ._fcega {if _ffeb :=_dbce .ReadProperty (&_agea ._gfgfc ._eag );_ffeb !=nil {return _ffeb ;};};if _agea ._abdb ._ecda {if _cecf :=_dbce .ReadProperty (&_agea ._gfgfc ._bfdce );_cecf !=nil {return _cecf ;};};if _agea ._abdb ._cegec {if _fdgf :=_dbce .ReadProperty (&_agea ._gfgfc ._dcac );
_fdgf !=nil {return _fdgf ;};};if _agea ._abdb ._fecd {if _gcgf :=_dbce .ReadProperty (&_agea ._gfgfc ._fgagc );_gcgf !=nil {return _gcgf ;};};if _agea ._abdb ._deb {if _dafb :=_dbce .ReadProperty (&_agea ._gfgfc ._gag );_dafb !=nil {return _dafb ;};};
if _agea ._abdb ._fddc {if _eabb :=_dbce .ReadProperty (&_agea ._gfgfc ._debe );_eabb !=nil {return _eabb ;};};if _agea ._abdb ._cgc {if _eged :=_dbce .ReadProperty (&_agea ._gfgfc ._cdef );_eged !=nil {return _eged ;};};if _agea ._abdb ._fddcc {if _aabb :=_dbce .ReadProperty (&_agea ._gfgfc ._ddfc );
_aabb !=nil {return _aabb ;};};if _agea ._abdb ._cgdg {if _bdd :=_dbce .ReadProperty (&_agea ._gfgfc ._bgce );_bdd !=nil {return _bdd ;};};return nil ;};
// GetCaption gets a caption string from a commandButton control.
func (_bce *CommandButtonControl )GetCaption ()string {return _bce ._bc ._ffea };
// SetWidth sets width of the Label in HIMETRIC (0.01mm)
func (_fddd *LabelControl )SetWidth (width uint32 ){_fddd ._efa ._edeb =true ;_fddd ._gdda ._ebe =width };func (_acge *controlBase )readStreamDataM (_dffb *_bg .Reader ,_gabg bool )error {_acge ._bdcg =&streamData {};if _gabg {_acge ._bdcg ._ddbff =&guidAndPicture {};
if _gafg :=_acge ._bdcg ._ddbff .importFromReader (_dffb );_gafg !=nil {return _gafg ;};};return nil ;};
// TextBoxDataControl is a representation of a text box ActiveX form.
type TextBoxDataControl struct{*morphDataControlStringValue };func (_dccf *ScrollBarControl )writeDataBlock (_eeb *_bg .Writer )error {if _dccf ._abdb ._gab {if _becb :=_eeb .WriteProperty (_dccf ._gfgfc ._ffb );_becb !=nil {return _becb ;};};if _dccf ._abdb ._aca {if _cgdd :=_eeb .WriteProperty (_dccf ._gfgfc ._eeg );
_cgdd !=nil {return _cgdd ;};};if _dccf ._abdb ._caea {if _fcc :=_eeb .WriteProperty (_dccf ._gfgfc ._fbgf );_fcc !=nil {return _fcc ;};};if _dccf ._abdb ._efe {if _ffee :=_eeb .WriteProperty (_dccf ._gfgfc ._accaa );_ffee !=nil {return _ffee ;};};if _dccf ._abdb ._fefe {if _gbdb :=_eeb .WriteProperty (_dccf ._gfgfc ._bcd );
_gbdb !=nil {return _gbdb ;};};if _dccf ._abdb ._bdfdf {if _gdae :=_eeb .WriteProperty (_dccf ._gfgfc ._dafc );_gdae !=nil {return _gdae ;};};if _dccf ._abdb ._fcega {if _dadd :=_eeb .WriteProperty (_dccf ._gfgfc ._eag );_dadd !=nil {return _dadd ;};};
if _dccf ._abdb ._ecda {if _bacf :=_eeb .WriteProperty (_dccf ._gfgfc ._bfdce );_bacf !=nil {return _bacf ;};};if _dccf ._abdb ._cegec {if _gfggd :=_eeb .WriteProperty (_dccf ._gfgfc ._dcac );_gfggd !=nil {return _gfggd ;};};if _dccf ._abdb ._fecd {if _efccb :=_eeb .WriteProperty (_dccf ._gfgfc ._fgagc );
_efccb !=nil {return _efccb ;};};if _dccf ._abdb ._deb {if _bea :=_eeb .WriteProperty (_dccf ._gfgfc ._gag );_bea !=nil {return _bea ;};};if _dccf ._abdb ._fddc {if _dafe :=_eeb .WriteProperty (_dccf ._gfgfc ._debe );_dafe !=nil {return _dafe ;};};if _dccf ._abdb ._cgc {if _dafa :=_eeb .WriteProperty (_dccf ._gfgfc ._cdef );
_dafa !=nil {return _dafa ;};};if _dccf ._abdb ._fddcc {if _ebbb :=_eeb .WriteProperty (_dccf ._gfgfc ._ddfc );_ebbb !=nil {return _ebbb ;};};if _dccf ._abdb ._cgdg {if _deca :=_eeb .WriteProperty (_dccf ._gfgfc ._bgce );_deca !=nil {return _deca ;};};
return _eeb .AlignLength (4);};type morphDataColumnInfo struct{};func (_eaea *SpinButtonControl )writeDataBlock (_fgba *_bg .Writer )error {if _eaea ._cdeg ._aaeb {if _dagd :=_fgba .WriteProperty (_eaea ._cagc ._gggga );_dagd !=nil {return _dagd ;};};if _eaea ._cdeg ._dffa {if _gffc :=_fgba .WriteProperty (_eaea ._cagc ._ggdg );
_gffc !=nil {return _gffc ;};};if _eaea ._cdeg ._gfcf {if _cagef :=_fgba .WriteProperty (_eaea ._cagc ._fcbg );_cagef !=nil {return _cagef ;};};if _eaea ._cdeg ._edab {if _geaa :=_fgba .WriteProperty (_eaea ._cagc ._gba );_geaa !=nil {return _geaa ;};};
if _eaea ._cdeg ._dgbg {if _fdbfg :=_fgba .WriteProperty (_eaea ._cagc ._eafb );_fdbfg !=nil {return _fdbfg ;};};if _eaea ._cdeg ._decf {if _dbad :=_fgba .WriteProperty (_eaea ._cagc ._ebba );_dbad !=nil {return _dbad ;};};if _eaea ._cdeg ._dcfd {if _befaa :=_fgba .WriteProperty (_eaea ._cagc ._adedg );
_befaa !=nil {return _befaa ;};};if _eaea ._cdeg ._gcbc {if _gfaaa :=_fgba .WriteProperty (_eaea ._cagc ._efcb );_gfaaa !=nil {return _gfaaa ;};};if _eaea ._cdeg ._dcad {if _cdec :=_fgba .WriteProperty (_eaea ._cagc ._bff );_cdec !=nil {return _cdec ;};
};if _eaea ._cdeg ._effb {if _gfgga :=_fgba .WriteProperty (_eaea ._cagc ._fffa );_gfgga !=nil {return _gfgga ;};};if _eaea ._cdeg ._fdgb {if _fabe :=_fgba .WriteProperty (_eaea ._cagc ._cadb );_fabe !=nil {return _fabe ;};};if _eaea ._cdeg ._afaa {if _fcca :=_fgba .WriteProperty (_eaea ._cagc ._ccffg );
_fcca !=nil {return _fcca ;};};if _eaea ._cdeg ._cfaa {if _gcdc :=_fgba .WriteProperty (_eaea ._cagc ._bgba );_gcdc !=nil {return _gcdc ;};};return _fgba .AlignLength (4);};func (_acdc *ImageControl )readExtraDataBlock (_dda *_bg .Reader )error {_acdc ._dede =&imageExtraDataBlock {};
if _acdc ._bda ._adg {var _bdbc uint64 ;if _bgb :=_dda .ReadPairProperty (&_bdbc );_bgb !=nil {return _bgb ;};_acdc ._dede ._bef =uint32 (_bdbc );_acdc ._dede ._cdc =uint32 (_bdbc >>32);};return nil ;};func (_ffcf *morphDataControl )readColumnInfoPropMask (_bedb *_bg .Reader )error {return nil };
const _bed =3;const _bgge =1;func (_cfae *morphDataControl )setValueBool (_bcee bool ){_cfae ._bdfd ._ebc =true ;_cfae ._dgf ._gbcc =1;_cfae ._dgf ._ffeg =true ;_abf :="\u0030";if _bcee {_abf ="\u0031";};_cfae ._ebgg ._acgd =_abf ;};
// GetMax gets a button max value.
func (_dbffd *ScrollBarControl )GetMax ()int32 {return _dbffd ._gfgfc ._dafc };type controlBase struct{_dfa uint16 ;_gfb bool ;_bdcg *streamData ;_feef []byte ;};
// GetPosition gets a button position value.
func (_daf *ScrollBarControl )GetPosition ()int32 {return _daf ._gfgfc ._eag };func (_ecg *CommandButtonControl )writeDataBlock (_dff *_bg .Writer )error {if _ecg ._cgb ._cd {if _ade :=_dff .WriteProperty (_ecg ._dgg ._gfa );_ade !=nil {return _ade ;};
};if _ecg ._cgb ._deaa {if _aed :=_dff .WriteProperty (_ecg ._dgg ._dbfa );_aed !=nil {return _aed ;};};if _ecg ._cgb ._ce {if _cab :=_dff .WriteProperty (_ecg ._dgg ._fge );_cab !=nil {return _cab ;};};if _ecg ._cgb ._egb {_agd :=_dea (_ecg ._dgg ._fe ,_ecg ._dgg ._aea );
if _gdg :=_dff .WriteProperty (_agd );_gdg !=nil {return _gdg ;};};if _ecg ._cgb ._afe {if _cac :=_dff .WriteProperty (_ecg ._dgg ._cge );_cac !=nil {return _cac ;};};if _ecg ._cgb ._ddb {if _faf :=_dff .WriteProperty (_ecg ._dgg ._bfg );_faf !=nil {return _faf ;
};};if _ecg ._cgb ._geg {if _egg :=_dff .WriteProperty (_ecg ._dgg ._fa );_egg !=nil {return _egg ;};};if _ecg ._cgb ._gca {if _gccg :=_dff .WriteProperty (_ecg ._dgg ._ace );_gccg !=nil {return _gccg ;};};if _ecg ._cgb ._affe {if _fea :=_dff .WriteProperty (_ecg ._dgg ._gfd );
_fea !=nil {return _fea ;};};return _dff .AlignLength (4);};func (_cbbe *SpinButtonControl )readPropMask (_ffffa *_bg .Reader )error {var _gdddg uint32 ;if _ddcf :=_f .Read (_ffffa ,_f .LittleEndian ,&_gdddg );_ddcf !=nil {return _ddcf ;};_cbbe ._cdeg =&spinButtonPropMask {};
_cbbe ._cdeg ._aaeb ,_gdddg =_bg .PopRightUI32 (_gdddg );_cbbe ._cdeg ._dffa ,_gdddg =_bg .PopRightUI32 (_gdddg );_cbbe ._cdeg ._gfcf ,_gdddg =_bg .PopRightUI32 (_gdddg );_cbbe ._cdeg ._bfba ,_gdddg =_bg .PopRightUI32 (_gdddg );_gdddg >>=1;_cbbe ._cdeg ._edab ,_gdddg =_bg .PopRightUI32 (_gdddg );
_cbbe ._cdeg ._dgbg ,_gdddg =_bg .PopRightUI32 (_gdddg );_cbbe ._cdeg ._decf ,_gdddg =_bg .PopRightUI32 (_gdddg );_cbbe ._cdeg ._dcfd ,_gdddg =_bg .PopRightUI32 (_gdddg );_cbbe ._cdeg ._gcbc ,_gdddg =_bg .PopRightUI32 (_gdddg );_cbbe ._cdeg ._dcad ,_gdddg =_bg .PopRightUI32 (_gdddg );
_cbbe ._cdeg ._effb ,_gdddg =_bg .PopRightUI32 (_gdddg );_cbbe ._cdeg ._fdgb ,_gdddg =_bg .PopRightUI32 (_gdddg );_cbbe ._cdeg ._afaa ,_gdddg =_bg .PopRightUI32 (_gdddg );_cbbe ._cdeg ._cfaa ,_gdddg =_bg .PopRightUI32 (_gdddg );return nil ;};type imageDataBlock struct{_eddg uint32 ;
_eee uint32 ;_fec byte ;_baef uint8 ;_ggbc byte ;_ffge byte ;_egef uint16 ;_adeb byte ;_bdbd uint32 ;_beg uint16 ;};
// GetBackColor gets a button text color value for a system palette from a label control.
func (_bbec *LabelControl )GetBackColor ()uint32 {return _bbec ._gegc ._ceb };
// SetForeColor sets a button text color value from a system palette for a scrollBar control.
func (_efag *ScrollBarControl )SetForeColor (foreColor uint32 ){_efag ._abdb ._gab =true ;_efag ._gfgfc ._ffb =foreColor ;};
// GetMin gets a button min value.
func (_ebcc *ScrollBarControl )GetMin ()int32 {return _ebcc ._gfgfc ._bcd };
// SetWidth sets width of the morphDataControl in HIMETRIC (0.01mm)
func (_aad *morphDataControl )SetWidth (width uint32 ){_aad ._bdfd ._dcgd =true ;_aad ._ebgg ._bcab =width ;};func (_dead *CommandButtonControl )writePropMask (_gcf *_bg .Writer )error {_cbg :=uint32 (0);_cbg =_bg .PushLeftUI32 (_cbg ,_dead ._cgb ._cd );
_cbg =_bg .PushLeftUI32 (_cbg ,_dead ._cgb ._deaa );_cbg =_bg .PushLeftUI32 (_cbg ,_dead ._cgb ._ce );_cbg =_bg .PushLeftUI32 (_cbg ,_dead ._cgb ._egb );_cbg =_bg .PushLeftUI32 (_cbg ,_dead ._cgb ._afe );_cbg =_bg .PushLeftUI32 (_cbg ,_dead ._cgb ._fcg );
_cbg =_bg .PushLeftUI32 (_cbg ,_dead ._cgb ._ddb );_cbg =_bg .PushLeftUI32 (_cbg ,_dead ._cgb ._geg );_cbg =_bg .PushLeftUI32 (_cbg ,_dead ._cgb ._gca );_cbg =_bg .PushLeftUI32 (_cbg ,_dead ._cgb ._bbbf );_cbg =_bg .PushLeftUI32 (_cbg ,_dead ._cgb ._affe );
_cbg >>=21;return _f .Write (_gcf ,_f .LittleEndian ,_cbg );};
// GetHeight returns height of the SpinButton in HIMETRIC (0.01mm)
func (_dcba *SpinButtonControl )GetHeight ()uint32 {return _dcba ._acfe ._bdef };
// SetHeight sets height of the CommandButton in HIMETRIC (0.01mm)
func (_fda *CommandButtonControl )SetHeight (height uint32 ){_fda ._cgb ._fcg =true ;_fda ._bc ._agfe =height ;};
// LabelControl is a representation of a label ActiveX form.
type LabelControl struct{controlBase ;_efa *labelPropMask ;_gegc *labelDataBlock ;_gdda *labelExtraDataBlock ;_dcg *streamData ;};
// GetWidth returns width of the SpinButton in HIMETRIC (0.01mm)
func (_dbgc *SpinButtonControl )GetWidth ()uint32 {return _dbgc ._acfe ._ceeb };func _aga (_gfde *_bg .Reader )(*ImageControl ,error ){_ega :=&ImageControl {};if _aec :=_ega .readPropMask (_gfde );_aec !=nil {return nil ,_aec ;};if _cdg :=_ega .readDataBlock (_gfde );
_cdg !=nil {return nil ,_cdg ;};if _faba :=_ega .readExtraDataBlock (_gfde );_faba !=nil {return nil ,_faba ;};if _fcfg :=_ega .readStreamDataPM (_gfde ,_ega ._bda ._fceg ,_ega ._bda ._bfbb );_fcfg !=nil {return nil ,_fcfg ;};if _efdd :=_ega .readTheRest (_gfde );
_efdd !=nil {return nil ,_efdd ;};return _ega ,nil ;};func (_bbd *LabelControl )readDataBlock (_fbga *_bg .Reader )error {_bbd ._gegc =&labelDataBlock {};if _bbd ._efa ._fgee {if _cfde :=_fbga .ReadProperty (&_bbd ._gegc ._cdgg );_cfde !=nil {return _cfde ;
};};if _bbd ._efa ._agcb {if _daa :=_fbga .ReadProperty (&_bbd ._gegc ._ceb );_daa !=nil {return _daa ;};};if _bbd ._efa ._bdec {if _egeb :=_fbga .ReadProperty (&_bbd ._gegc ._gbfd );_egeb !=nil {return _egeb ;};};if _bbd ._efa ._dbfb {var _agb uint32 ;
if _bdaf :=_fbga .ReadProperty (&_agb );_bdaf !=nil {return _bdaf ;};_bbd ._gegc ._bdeca ,_bbd ._gegc ._fgdc =_ccg (_agb );};if _bbd ._efa ._egd {if _cgag :=_fbga .ReadProperty (&_bbd ._gegc ._afae );_cgag !=nil {return _cgag ;};};if _bbd ._efa ._gec {if _gaff :=_fbga .ReadProperty (&_bbd ._gegc ._dbga );
_gaff !=nil {return _gaff ;};};if _bbd ._efa ._gfgf {if _gee :=_fbga .ReadProperty (&_bbd ._gegc ._ecgf );_gee !=nil {return _gee ;};};if _bbd ._efa ._efdc {if _bfa :=_fbga .ReadProperty (&_bbd ._gegc ._dbgd );_bfa !=nil {return _bfa ;};};if _bbd ._efa ._bgca {if _eede :=_fbga .ReadProperty (&_bbd ._gegc ._egag );
_eede !=nil {return _eede ;};};if _bbd ._efa ._dgcee {if _abd :=_fbga .ReadProperty (&_bbd ._gegc ._cgf );_abd !=nil {return _abd ;};};if _bbd ._efa ._dbff {if _dcd :=_fbga .ReadProperty (&_bbd ._gegc ._fff );_dcd !=nil {return _dcd ;};};if _bbd ._efa ._eecc {if _fcfc :=_fbga .ReadProperty (&_bbd ._gegc ._aded );
_fcfc !=nil {return _fcfc ;};};return nil ;};type commandButtonDataBlock struct{_gfa uint32 ;_dbfa uint32 ;_fge uint32 ;_fe uint32 ;_aea bool ;_cge uint32 ;_bfg uint8 ;_fa uint16 ;_ace rune ;_gfd uint16 ;};func (_gaea *morphDataControl )export (_ddbe *_bg .Writer )error {if _dfg :=_gaea .writePropMask (_ddbe );
_dfg !=nil {return _dfg ;};if _ccfa :=_gaea .writeDataBlock (_ddbe );_ccfa !=nil {return _ccfa ;};if _gcgb :=_gaea .writeExtraDataBlock (_ddbe );_gcgb !=nil {return _gcgb ;};_gaea ._dfa =uint16 (_ddbe .Len ()-4);if _eef :=_gaea .writeStreamDataMP (_ddbe );
_eef !=nil {return _eef ;};return _gaea .writeTheRest (_ddbe );};
// SetWidth sets width of the SpinButton in HIMETRIC (0.01mm)
func (_ebab *SpinButtonControl )SetWidth (width uint32 ){_ebab ._cdeg ._bfba =true ;_ebab ._acfe ._ceeb =width ;};func (_ebce *morphDataControl )readColumnInfo (_degc *_bg .Reader )error {return nil };func (_afb *controlBase )setMouseIconBytes (_dac []byte ){if _afb ._bdcg ._ddbff ==nil {_afb ._bdcg ._ddbff =&guidAndPicture {};
};_afb ._bdcg ._ddbff .setStdPictureBytes (_dac );};func (_fbf *CommandButtonControl )export (_ecf *_bg .Writer )error {if _acc :=_fbf .writePropMask (_ecf );_acc !=nil {return _acc ;};if _gfe :=_fbf .writeDataBlock (_ecf );_gfe !=nil {return _gfe ;};if _aff :=_fbf .writeExtraDataBlock (_ecf );
_aff !=nil {return _aff ;};_fbf ._dfa =uint16 (_ecf .Len ()-4);if _dbg :=_fbf .writeStreamDataPM (_ecf );_dbg !=nil {return _dbg ;};return _fbf .writeTheRest (_ecf );};
// FmPictureSizeMode represents one of the three picture size modes according to MS-OFORMS document.
type FmPictureSizeMode byte ;func (_fbea *SpinButtonControl )writePropMask (_gggg *_bg .Writer )error {_fadfd :=uint32 (0);_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._aaeb );_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._dffa );_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._gfcf );
_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._bfba );_fadfd >>=1;_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._edab );_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._dgbg );_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._decf );_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._dcfd );
_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._gcbc );_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._dcad );_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._effb );_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._fdgb );_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._afaa );
_fadfd =_bg .PushLeftUI32 (_fadfd ,_fbea ._cdeg ._cfaa );_fadfd >>=17;return _f .Write (_gggg ,_f .LittleEndian ,_fadfd );};func (_bacb *SpinButtonControl )writeExtraDataBlock (_bdafa *_bg .Writer )error {if _bacb ._cdeg ._bfba {_fgfg :=uint64 (_bacb ._acfe ._ceeb )<<32|uint64 (_bacb ._acfe ._bdef );
if _fdfc :=_bdafa .WritePropertyNoAlign (_fgfg );_fdfc !=nil {return _fdfc ;};};return nil ;};
// GetBackColor gets a button text color value for a system palette from a spinButton control.
func (_cdfd *SpinButtonControl )GetBackColor ()uint32 {return _cdfd ._cagc ._ggdg };const _dgbc =5;func _gdc (_af *_gb .Reader )(string ,error ){_db ,_gdcc :=_af .GetEntry ("\u0043o\u006d\u0070\u004f\u0062\u006a");if _gdcc !=nil {return "",_gdcc ;};_ccga :=make ([]byte ,_db .Size );
_ ,_gdcc =_db .Read (_ccga );if _gdcc !=nil {return "",_gdcc ;};_dbf :=_c .Split (_ccga ,[]byte ("\u002e"));if len (_dbf )< 2{return "",_gc .New ("\u0055\u006e\u006bn\u006f\u0077\u006e\u0020\u0066\u006f\u0072\u006d");};return string (_dbf [len (_dbf )-2]),nil ;
};func (_dbd *morphDataControl )writeExtraDataBlock (_agfeg *_bg .Writer )error {if _dbd ._bdfd ._dcgd {_cce :=uint64 (_dbd ._ebgg ._bcab )<<32|uint64 (_dbd ._ebgg ._dca );if _gcef :=_agfeg .WritePropertyNoAlign (_cce );_gcef !=nil {return _gcef ;};};if _dbd ._dgf ._gbcc > 0{if _fdce :=_agfeg .WriteStringProperty (_dbd ._ebgg ._acgd );
_fdce !=nil {return _fdce ;};};if _dbd ._dgf ._gffd > 0{if _agbf :=_agfeg .WriteStringProperty (_dbd ._ebgg ._fcdb );_agbf !=nil {return _agbf ;};};if _dbd ._dgf ._ebb > 0{if _aee :=_agfeg .WriteStringProperty (_dbd ._ebgg ._bgcgf );_aee !=nil {return _aee ;
};};return nil ;};func (_dbfg *ImageControl )readDataBlock (_aef *_bg .Reader )error {_dbfg ._fdb =&imageDataBlock {};if _dbfg ._bda ._gcd {if _eca :=_aef .ReadProperty (&_dbfg ._fdb ._eddg );_eca !=nil {return _eca ;};};if _dbfg ._bda ._gcca {if _egbg :=_aef .ReadProperty (&_dbfg ._fdb ._eee );
_egbg !=nil {return _egbg ;};};if _dbfg ._bda ._cdae {if _fabd :=_aef .ReadProperty (&_dbfg ._fdb ._fec );_fabd !=nil {return _fabd ;};};if _dbfg ._bda ._gdge {if _dcb :=_aef .ReadProperty (&_dbfg ._fdb ._baef );_dcb !=nil {return _dcb ;};};if _dbfg ._bda ._cfa {if _gddd :=_aef .ReadProperty (&_dbfg ._fdb ._ggbc );
_gddd !=nil {return _gddd ;};};if _dbfg ._bda ._cbd {if _dffeg :=_aef .ReadProperty (&_dbfg ._fdb ._ffge );_dffeg !=nil {return _dffeg ;};};if _dbfg ._bda ._fceg {if _bfd :=_aef .ReadProperty (&_dbfg ._fdb ._egef );_bfd !=nil {return _bfd ;};};if _dbfg ._bda ._eec {if _fbg :=_aef .ReadProperty (&_dbfg ._fdb ._adeb );
_fbg !=nil {return _fbg ;};};if _dbfg ._bda ._dgd {if _ffed :=_aef .ReadProperty (&_dbfg ._fdb ._bdbd );_ffed !=nil {return _ffed ;};};if _dbfg ._bda ._bfbb {if _gbc :=_aef .ReadProperty (&_dbfg ._fdb ._beg );_gbc !=nil {return _gbc ;};};return nil ;};
// SetValue sets a value for a control which value can be represented as a string.
func (_bcef *morphDataControlStringValue )SetValue (value string ){_bcef .setValueString (value )};
// GetBackColor gets a button text color value for a system palette from a commandButton control.
func (_cb *CommandButtonControl )GetBackColor ()uint32 {return _cb ._dgg ._dbfa };func (_dga *morphDataControl )getValueBool ()bool {return _dga ._bdfd ._ebc &&_dga ._ebgg ._acgd =="\u0031";};func (_aafff *SpinButtonControl )readExtraDataBlock (_aada *_bg .Reader )error {_aafff ._acfe =&spinButtonExtraDataBlock {};
if _aafff ._cdeg ._bfba {var _fcba uint64 ;if _dfbb :=_aada .ReadPairProperty (&_fcba );_dfbb !=nil {return _dfbb ;};_aafff ._acfe ._bdef =uint32 (_fcba );_aafff ._acfe ._ceeb =uint32 (_fcba >>32);};return nil ;};
// SetForeColor sets a button text color value from a system palette for a commandButton control.
func (_edfd *CommandButtonControl )SetForeColor (foreColor uint32 ){_edfd ._cgb ._cd =true ;_edfd ._dgg ._gfa =foreColor ;};func _abgg (_ebae *_bg .Reader )(*SpinButtonControl ,error ){_dba :=&SpinButtonControl {};if _agcg :=_dba .readPropMask (_ebae );
_agcg !=nil {return nil ,_agcg ;};if _aeef :=_dba .readDataBlock (_ebae );_aeef !=nil {return nil ,_aeef ;};if _eaf :=_dba .readExtraDataBlock (_ebae );_eaf !=nil {return nil ,_eaf ;};if _acfc :=_dba .readStreamDataM (_ebae ,_dba ._cdeg ._afaa );_acfc !=nil {return nil ,_acfc ;
};if _dadg :=_dba .readTheRest (_ebae );_dadg !=nil {return nil ,_dadg ;};return _dba ,nil ;};
// FmPictureAlignment represents one of the five picture aignments according to MS-OFORMS document.
type FmPictureAlignment byte ;
// SetWidth sets width of the ScrollBar in HIMETRIC (0.01mm)
func (_gfggg *ScrollBarControl )SetWidth (width uint32 ){_gfggg ._abdb ._gfaa =true ;_gfggg ._cdcbf ._fdab =width ;};
// GetHeight returns height of the ScrollBar in HIMETRIC (0.01mm)
func (_ecce *ScrollBarControl )GetHeight ()uint32 {return _ecce ._cdcbf ._efad };
// GetWidth returns width of the CommandButton in HIMETRIC (0.01mm)
func (_cgg *CommandButtonControl )GetWidth ()uint32 {return _cgg ._bc ._efd };type scrollBarExtraDataBlock struct{_fdab uint32 ;_efad uint32 ;};
// GetWidth returns width of the ScrollBar in HIMETRIC (0.01mm)
func (_aaa *ScrollBarControl )GetWidth ()uint32 {return _aaa ._cdcbf ._fdab };
// SetWidth sets width of the CommandButton in HIMETRIC (0.01mm)
func (_beb *CommandButtonControl )SetWidth (width uint32 ){_beb ._cgb ._fcg =true ;_beb ._bc ._efd =width ;};func _ccg (_aab uint32 )(bool ,uint32 ){if _aab ==0{return false ,0;};_ggc :=_aab >=1<<31;if _ggc {_aab -=1<<31;};return _ggc ,_aab ;};func (_cbbd *morphDataControl )writeDataBlock (_cgd *_bg .Writer )error {if _cbbd ._bdfd ._dgad {if _edgg :=_cgd .WriteProperty (_cbbd ._dgf ._dacd );
_edgg !=nil {return _edgg ;};};if _cbbd ._bdfd ._fbca {if _cgga :=_cgd .WriteProperty (_cbbd ._dgf ._cbdb );_cgga !=nil {return _cgga ;};};if _cbbd ._bdfd ._bcf {if _bcg :=_cgd .WriteProperty (_cbbd ._dgf ._efccf );_bcg !=nil {return _bcg ;};};if _cbbd ._bdfd ._cfc {if _bggc :=_cgd .WriteProperty (_cbbd ._dgf ._cee );
_bggc !=nil {return _bggc ;};};if _cbbd ._bdfd ._dbb {if _cgebd :=_cgd .WriteProperty (_cbbd ._dgf ._dcbe );_cgebd !=nil {return _cgebd ;};};if _cbbd ._bdfd ._feeg {if _adbe :=_cgd .WriteProperty (_cbbd ._dgf ._fdbf );_adbe !=nil {return _adbe ;};};if _cbbd ._bdfd ._abda {if _adc :=_cgd .WriteProperty (_cbbd ._dgf ._eeeg );
_adc !=nil {return _adc ;};};if _cbbd ._bdfd ._cfee {if _acfg :=_cgd .WriteProperty (_cbbd ._dgf ._bfgb );_acfg !=nil {return _acfg ;};};if _cbbd ._bdfd ._dcec {if _bcbc :=_cgd .WriteProperty (_cbbd ._dgf ._dggag );_bcbc !=nil {return _bcbc ;};};if _cbbd ._bdfd ._ddd {if _gbfa :=_cgd .WriteProperty (_cbbd ._dgf ._ffd );
_gbfa !=nil {return _gbfa ;};};if _cbbd ._bdfd ._bebc {if _eggd :=_cgd .WriteProperty (_cbbd ._dgf ._ecfe );_eggd !=nil {return _eggd ;};};if _cbbd ._bdfd ._ceba {if _fbb :=_cgd .WriteProperty (_cbbd ._dgf ._caab );_fbb !=nil {return _fbb ;};};if _cbbd ._bdfd ._efcd {if _cdgb :=_cgd .WriteProperty (_cbbd ._dgf ._cbac );
_cdgb !=nil {return _cdgb ;};};if _cbbd ._bdfd ._bgeg {if _gddaa :=_cgd .WriteProperty (_cbbd ._dgf ._ggf );_gddaa !=nil {return _gddaa ;};};if _cbbd ._bdfd ._fadb {if _dde :=_cgd .WriteProperty (_cbbd ._dgf ._aebf );_dde !=nil {return _dde ;};};if _cbbd ._bdfd ._abg {if _baff :=_cgd .WriteProperty (_cbbd ._dgf ._geaf );
_baff !=nil {return _baff ;};};if _cbbd ._bdfd ._gbd {if _cbag :=_cgd .WriteProperty (_cbbd ._dgf ._fag );_cbag !=nil {return _cbag ;};};if _cbbd ._bdfd ._faa {if _fbe :=_cgd .WriteProperty (_cbbd ._dgf ._abbd );_fbe !=nil {return _fbe ;};};if _cbbd ._bdfd ._ddad {if _dge :=_cgd .WriteProperty (_cbbd ._dgf ._caabd );
_dge !=nil {return _dge ;};};if _cbbd ._bdfd ._gcff {if _accg :=_cgd .WriteProperty (_cbbd ._dgf ._ffc );_accg !=nil {return _accg ;};};if _cbbd ._bdfd ._ebc {_fffg :=_dea (_cbbd ._dgf ._gbcc ,_cbbd ._dgf ._ffeg );if _age :=_cgd .WriteProperty (_fffg );
_age !=nil {return _age ;};};if _cbbd ._bdfd ._gaed {_dgaa :=_dea (_cbbd ._dgf ._gffd ,_cbbd ._dgf ._eadb );if _ffdd :=_cgd .WriteProperty (_dgaa );_ffdd !=nil {return _ffdd ;};};if _cbbd ._bdfd ._bbfd {if _gda :=_cgd .WriteProperty (_cbbd ._dgf ._fbd );
_gda !=nil {return _gda ;};};if _cbbd ._bdfd ._dgga {if _dfc :=_cgd .WriteProperty (_cbbd ._dgf ._fafa );_dfc !=nil {return _dfc ;};};if _cbbd ._bdfd ._faab {if _cdac :=_cgd .WriteProperty (_cbbd ._dgf ._gdf );_cdac !=nil {return _cdac ;};};if _cbbd ._bdfd ._cbge {if _gdff :=_cgd .WriteProperty (_cbbd ._dgf ._afg );
_gdff !=nil {return _gdff ;};};if _cbbd ._bdfd ._aeb {if _dcf :=_cgd .WriteProperty (_cbbd ._dgf ._gdgf );_dcf !=nil {return _dcf ;};};if _cbbd ._bdfd ._dgced {if _cbba :=_cgd .WriteProperty (_cbbd ._dgf ._bba );_cbba !=nil {return _cbba ;};};if _cbbd ._bdfd ._abb {_gef :=_dea (_cbbd ._dgf ._ebb ,_cbbd ._dgf ._dbfc );
if _cea :=_cgd .WriteProperty (_gef );_cea !=nil {return _cea ;};};return _cgd .AlignLength (4);};
// SetBackColor sets a button text color value from a system palette for a commandButton control.
func (_dgcd *CommandButtonControl )SetBackColor (backColor uint32 ){_dgcd ._cgb ._deaa =true ;_dgcd ._dgg ._dbfa =backColor ;};func (_fbab *controlBase )readStreamDataPM (_fgbe *_bg .Reader ,_gdbbf ,_fedc bool )error {_fbab ._bdcg =&streamData {};if _gdbbf {_fbab ._bdcg ._afab =&guidAndPicture {};
if _afcf :=_fbab ._bdcg ._afab .importFromReader (_fgbe );_afcf !=nil {return _afcf ;};};if _fedc {_fbab ._bdcg ._ddbff =&guidAndPicture {};if _fdef :=_fbab ._bdcg ._ddbff .importFromReader (_fgbe );_fdef !=nil {return _fdef ;};};return nil ;};
// SetMax sets a button max value.
func (_fgb *SpinButtonControl )SetMax (max int32 ){_fgb ._cdeg ._dgbg =true ;_fgb ._cagc ._eafb =max };func (_dbbb *morphDataControl )readExtraDataBlock (_egbd *_bg .Reader )error {_dbbb ._ebgg =&morphDataExtraDataBlock {};if _dbbb ._bdfd ._dcgd {var _egcc uint64 ;
if _cedd :=_egbd .ReadPairProperty (&_egcc );_cedd !=nil {return _cedd ;};_dbbb ._ebgg ._dca =uint32 (_egcc );_dbbb ._ebgg ._bcab =uint32 (_egcc >>32);};if _dbbb ._dgf ._gbcc > 0{_ece ,_gdea :=_egbd .ReadStringProperty (_dbbb ._dgf ._gbcc );if _gdea !=nil {return _gdea ;
};_dbbb ._ebgg ._acgd =_ece ;};if _dbbb ._dgf ._gffd > 0{_cgdc ,_gfff :=_egbd .ReadStringProperty (_dbbb ._dgf ._gffd );if _gfff !=nil {return _gfff ;};_dbbb ._ebgg ._fcdb =_cgdc ;};if _dbbb ._dgf ._ebb > 0{_ffff ,_gcdag :=_egbd .ReadStringProperty (_dbbb ._dgf ._ebb );
if _gcdag !=nil {return _gcdag ;};_dbbb ._ebgg ._bgcgf =_ffff ;};return nil ;};type labelDataBlock struct{_cdgg uint32 ;_ceb uint32 ;_gbfd uint32 ;_fgdc uint32 ;_bdeca bool ;_afae uint32 ;_dbga uint8 ;_ecgf uint32 ;_dbgd uint16 ;_egag uint16 ;_cgf uint16 ;
_fff rune ;_aded uint16 ;};
// SetCaption sets a caption string for a morph control.
func (_ced *morphDataControl )SetCaption (caption string ){if _ced ._gfb {_ced ._bdfd ._gaed =true ;_ced ._dgf ._gffd =uint32 (len (caption ));_ced ._ebgg ._fcdb =caption ;};};func _dea (_gbf uint32 ,_ffg bool )uint32 {if _gbf ==0{return 0;};if _ffg {_gbf |=1<<31;
};return _gbf ;};
// SetBackColor sets a button text color value from a system palette for a label control.
func (_fafc *LabelControl )SetBackColor (backColor uint32 ){_fafc ._efa ._agcb =true ;_fafc ._gegc ._ceb =backColor ;};
// GetPosition gets a button position value.
func (_aabae *SpinButtonControl )GetPosition ()int32 {return _aabae ._cagc ._ebba };
// SetPosition sets a button position value.
func (_ddea *ScrollBarControl )SetPosition (position int32 ){_ddea ._abdb ._fcega =true ;_ddea ._gfgfc ._eag =position ;};type commandButtonPropMask struct{_cd bool ;_deaa bool ;_ce bool ;_egb bool ;_afe bool ;_fcg bool ;_ddb bool ;_geg bool ;_gca bool ;
_bbbf bool ;_affe bool ;};func (_dc *ImageControl )export (_dbe *_bg .Writer )error {if _bfb :=_dc .writePropMask (_dbe );_bfb !=nil {return _bfb ;};if _bgf :=_dc .writeDataBlock (_dbe );_bgf !=nil {return _bgf ;};if _add :=_dc .writeExtraDataBlock (_dbe );
_add !=nil {return _add ;};_dc ._dfa =uint16 (_dbe .Len ()-4);if _ffec :=_dc .writeStreamDataPM (_dbe );_ffec !=nil {return _ffec ;};return _dc .writeTheRest (_dbe );};
// SetCaption sets a caption string for a commandButton control.
func (_edd *CommandButtonControl )SetCaption (caption string ){_edd ._cgb ._egb =true ;_edd ._dgg ._fe =uint32 (len (caption ));_edd ._bc ._ffea =caption ;};const _daab =2;type spinButtonExtraDataBlock struct{_ceeb uint32 ;_bdef uint32 ;};
// GetWidth returns width of the Label in HIMETRIC (0.01mm)
func (_fbc *LabelControl )GetWidth ()uint32 {return _fbc ._gdda ._ebe };func (_bcac *controlBase )readStreamDataMP (_dgcf *_bg .Reader ,_cacd ,_aedd bool )error {_bcac ._bdcg =&streamData {};if _cacd {_bcac ._bdcg ._ddbff =&guidAndPicture {};if _cfbd :=_bcac ._bdcg ._ddbff .importFromReader (_dgcf );
_cfbd !=nil {return _cfbd ;};};if _aedd {_bcac ._bdcg ._afab =&guidAndPicture {};if _ecgg :=_bcac ._bdcg ._afab .importFromReader (_dgcf );_ecgg !=nil {return _ecgg ;};};return nil ;};func (_cgab *CommandButtonControl )readPropMask (_gffg *_bg .Reader )error {var _gad uint32 ;
if _ddg :=_f .Read (_gffg ,_f .LittleEndian ,&_gad );_ddg !=nil {return _ddg ;};_cgab ._cgb =&commandButtonPropMask {};_cgab ._cgb ._cd ,_gad =_bg .PopRightUI32 (_gad );_cgab ._cgb ._deaa ,_gad =_bg .PopRightUI32 (_gad );_cgab ._cgb ._ce ,_gad =_bg .PopRightUI32 (_gad );
_cgab ._cgb ._egb ,_gad =_bg .PopRightUI32 (_gad );_cgab ._cgb ._afe ,_gad =_bg .PopRightUI32 (_gad );_cgab ._cgb ._fcg ,_gad =_bg .PopRightUI32 (_gad );_cgab ._cgb ._ddb ,_gad =_bg .PopRightUI32 (_gad );_cgab ._cgb ._geg ,_gad =_bg .PopRightUI32 (_gad );
_cgab ._cgb ._gca ,_gad =_bg .PopRightUI32 (_gad );_cgab ._cgb ._bbbf ,_gad =_bg .PopRightUI32 (_gad );_cgab ._cgb ._affe ,_gad =_bg .PopRightUI32 (_gad );return nil ;};
// GetForeColor gets a button text color value for a system palette from a label control.
func (_bbf *LabelControl )GetForeColor ()uint32 {return _bbf ._gegc ._cdgg };
// SetForeColor sets a button text color value from a system palette for a label control.
func (_gdbd *LabelControl )SetForeColor (foreColor uint32 ){_gdbd ._efa ._fgee =true ;_gdbd ._gegc ._cdgg =foreColor ;};type spinButtonPropMask struct{_aaeb bool ;_dffa bool ;_gfcf bool ;_bfba bool ;_edab bool ;_dgbg bool ;_decf bool ;_dcfd bool ;_gcbc bool ;
_dcad bool ;_effb bool ;_fdgb bool ;_afaa bool ;_cfaa bool ;};
// ComboBoxDataControl is a representation of a combo box ActiveX form.
type ComboBoxDataControl struct{*morphDataControlStringValue };func (_ccf *controlBase )readTheRest (_fgf *_bg .Reader )error {_afc :=_c .NewBuffer ([]byte {});_ ,_fgec :=_a .Copy (_afc ,_fgf );if _fgec !=nil {return _fgec ;};_ccf ._feef =_afc .Bytes ();
return nil ;};func (_cgfd *morphDataControl )writePropMask (_eaeg *_bg .Writer )error {_agafb :=uint64 (0);_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._dgad );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._fbca );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._bcf );
_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._cfc );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._dbb );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._feeg );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._abda );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._cfee );
_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._dcgd );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._dcec );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._ddd );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._bebc );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._ceba );
_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._efcd );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._bgeg );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._fadb );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._abg );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._gbd );
_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._faa );_agafb >>=1;_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._ddad );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._gcff );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._ebc );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._gaed );
_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._bbfd );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._dgga );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._faab );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._cbge );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._aeb );
_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._dgced );_agafb >>=1;_agafb =_bg .PushLeftUI64 (_agafb ,true );_agafb =_bg .PushLeftUI64 (_agafb ,_cgfd ._bdfd ._abb );_agafb >>=31;return _f .Write (_eaeg ,_f .LittleEndian ,_agafb );};func (_bgcf *ScrollBarControl )writeExtraDataBlock (_aaab *_bg .Writer )error {if _bgcf ._abdb ._gfaa {_afcb :=uint64 (_bgcf ._cdcbf ._fdab )<<32|uint64 (_bgcf ._cdcbf ._efad );
if _aaff :=_aaab .WritePropertyNoAlign (_afcb );_aaff !=nil {return _aaff ;};};return nil ;};func (_efea *controlBase )writeStreamDataM (_faec *_bg .Writer )error {if _efea ._bdcg !=nil {if _efea ._bdcg ._ddbff !=nil {if _bfag :=_efea ._bdcg ._ddbff .export (_faec );
_bfag !=nil {return _bfag ;};};};return nil ;};func (_fced *ImageControl )readPropMask (_cgeb *_bg .Reader )error {var _gcb uint32 ;if _egaa :=_f .Read (_cgeb ,_f .LittleEndian ,&_gcb );_egaa !=nil {return _egaa ;};_fced ._bda =&imagePropMask {};_gcb >>=2;
_fced ._bda ._ggg ,_gcb =_bg .PopRightUI32 (_gcb );_fced ._bda ._gcd ,_gcb =_bg .PopRightUI32 (_gcb );_fced ._bda ._gcca ,_gcb =_bg .PopRightUI32 (_gcb );_fced ._bda ._cdae ,_gcb =_bg .PopRightUI32 (_gcb );_fced ._bda ._gdge ,_gcb =_bg .PopRightUI32 (_gcb );
_fced ._bda ._cfa ,_gcb =_bg .PopRightUI32 (_gcb );_fced ._bda ._cbd ,_gcb =_bg .PopRightUI32 (_gcb );_fced ._bda ._adg ,_gcb =_bg .PopRightUI32 (_gcb );_fced ._bda ._fceg ,_gcb =_bg .PopRightUI32 (_gcb );_fced ._bda ._eec ,_gcb =_bg .PopRightUI32 (_gcb );
_fced ._bda ._fad ,_gcb =_bg .PopRightUI32 (_gcb );_fced ._bda ._dgd ,_gcb =_bg .PopRightUI32 (_gcb );_fced ._bda ._bfbb ,_gcb =_bg .PopRightUI32 (_gcb );return nil ;};func (_ceaa *morphDataControl )readColumnInfoDataBlock (_dgde *_bg .Reader )error {return nil };
// GetHeight returns height of the CommandButton in HIMETRIC (0.01mm)
func (_ege *CommandButtonControl )GetHeight ()uint32 {return _ege ._bc ._agfe };func (_cdd *morphDataControl )readDataBlock (_ecc *_bg .Reader )error {_cdd ._dgf =&morphDataDataBlock {};if _cdd ._bdfd ._dgad {if _efbe :=_ecc .ReadProperty (&_cdd ._dgf ._dacd );
_efbe !=nil {return _efbe ;};};if _cdd ._bdfd ._fbca {if _fgag :=_ecc .ReadProperty (&_cdd ._dgf ._cbdb );_fgag !=nil {return _fgag ;};};if _cdd ._bdfd ._bcf {if _dcdd :=_ecc .ReadProperty (&_cdd ._dgf ._efccf );_dcdd !=nil {return _dcdd ;};};if _cdd ._bdfd ._cfc {if _fcegf :=_ecc .ReadProperty (&_cdd ._dgf ._cee );
_fcegf !=nil {return _fcegf ;};};if _cdd ._bdfd ._dbb {if _eccd :=_ecc .ReadProperty (&_cdd ._dgf ._dcbe );_eccd !=nil {return _eccd ;};};if _cdd ._bdfd ._feeg {if _gbe :=_ecc .ReadProperty (&_cdd ._dgf ._fdbf );_gbe !=nil {return _gbe ;};};if _cdd ._bdfd ._abda {if _bfe :=_ecc .ReadProperty (&_cdd ._dgf ._eeeg );
_bfe !=nil {return _bfe ;};};if _cdd ._bdfd ._cfee {if _gfegb :=_ecc .ReadProperty (&_cdd ._dgf ._bfgb );_gfegb !=nil {return _gfegb ;};};if _cdd ._bdfd ._dcec {if _bad :=_ecc .ReadProperty (&_cdd ._dgf ._dggag );_bad !=nil {return _bad ;};};if _cdd ._bdfd ._ddd {if _eedg :=_ecc .ReadProperty (&_cdd ._dgf ._ffd );
_eedg !=nil {return _eedg ;};};if _cdd ._bdfd ._bebc {if _cdb :=_ecc .ReadProperty (&_cdd ._dgf ._ecfe );_cdb !=nil {return _cdb ;};};if _cdd ._bdfd ._ceba {if _gfge :=_ecc .ReadProperty (&_cdd ._dgf ._caab );_gfge !=nil {return _gfge ;};};if _cdd ._bdfd ._efcd {if _gfcc :=_ecc .ReadProperty (&_cdd ._dgf ._cbac );
_gfcc !=nil {return _gfcc ;};};if _cdd ._bdfd ._bgeg {if _geeg :=_ecc .ReadProperty (&_cdd ._dgf ._ggf );_geeg !=nil {return _geeg ;};};if _cdd ._bdfd ._fadb {if _eba :=_ecc .ReadProperty (&_cdd ._dgf ._aebf );_eba !=nil {return _eba ;};};if _cdd ._bdfd ._abg {if _afgf :=_ecc .ReadProperty (&_cdd ._dgf ._geaf );
_afgf !=nil {return _afgf ;};};if _cdd ._bdfd ._gbd {if _caf :=_ecc .ReadProperty (&_cdd ._dgf ._fag );_caf !=nil {return _caf ;};};if _cdd ._bdfd ._faa {if _ddag :=_ecc .ReadProperty (&_cdd ._dgf ._abbd );_ddag !=nil {return _ddag ;};};if _cdd ._bdfd ._ddad {if _ecb :=_ecc .ReadProperty (&_cdd ._dgf ._caabd );
_ecb !=nil {return _ecb ;};};if _cdd ._bdfd ._gcff {if _gggf :=_ecc .ReadProperty (&_cdd ._dgf ._ffc );_gggf !=nil {return _gggf ;};};if _cdd ._bdfd ._ebc {var _gege uint32 ;if _fgc :=_ecc .ReadProperty (&_gege );_fgc !=nil {return _fgc ;};_cdd ._dgf ._ffeg ,_cdd ._dgf ._gbcc =_ccg (_gege );
};if _cdd ._bdfd ._gaed {var _baf uint32 ;if _bbg :=_ecc .ReadProperty (&_baf );_bbg !=nil {return _bbg ;};_cdd ._dgf ._eadb ,_cdd ._dgf ._gffd =_ccg (_baf );};if _cdd ._bdfd ._bbfd {if _cdeb :=_ecc .ReadProperty (&_cdd ._dgf ._fbd );_cdeb !=nil {return _cdeb ;
};};if _cdd ._bdfd ._dgga {if _dcdg :=_ecc .ReadProperty (&_cdd ._dgf ._fafa );_dcdg !=nil {return _dcdg ;};};if _cdd ._bdfd ._faab {if _ggd :=_ecc .ReadProperty (&_cdd ._dgf ._gdf );_ggd !=nil {return _ggd ;};};if _cdd ._bdfd ._cbge {if _cdf :=_ecc .ReadProperty (&_cdd ._dgf ._afg );
_cdf !=nil {return _cdf ;};};if _cdd ._bdfd ._aeb {if _ffedf :=_ecc .ReadProperty (&_cdd ._dgf ._gdgf );_ffedf !=nil {return _ffedf ;};};if _cdd ._bdfd ._dgced {if _fcga :=_ecc .ReadProperty (&_cdd ._dgf ._bba );_fcga !=nil {return _fcga ;};};if _cdd ._bdfd ._abb {var _agce uint32 ;
if _gafd :=_ecc .ReadProperty (&_agce );_gafd !=nil {return _gafd ;};_cdd ._dgf ._dbfc ,_cdd ._dgf ._ebb =_ccg (_agce );};return nil ;};type streamData struct{_ddbff *guidAndPicture ;_afab *guidAndPicture ;};func (_bbgd *controlBase )writeStreamDataMP (_gebd *_bg .Writer )error {if _bbgd ._bdcg !=nil {if _bbgd ._bdcg ._ddbff !=nil {if _dcfe :=_bbgd ._bdcg ._ddbff .export (_gebd );
_dcfe !=nil {return _dcfe ;};};if _bbgd ._bdcg ._afab !=nil {if _cecc :=_bbgd ._bdcg ._afab .export (_gebd );_cecc !=nil {return _cecc ;};};};return nil ;};func (_ddfb *ScrollBarControl )readExtraDataBlock (_befa *_bg .Reader )error {_ddfb ._cdcbf =&scrollBarExtraDataBlock {};
if _ddfb ._abdb ._gfaa {var _cbbf uint64 ;if _gfca :=_befa .ReadPairProperty (&_cbbf );_gfca !=nil {return _gfca ;};_ddfb ._cdcbf ._efad =uint32 (_cbbf );_ddfb ._cdcbf ._fdab =uint32 (_cbbf >>32);};return nil ;};func (_fdc *guidAndPicture )setStdPictureBytes (_dffe []byte ){if _dffe ==nil {return ;
};if _fdc ._cgad ==nil {_fdc ._cgad =_fce ;};if _fdc ._gcfb ==nil {_fdc ._gcfb =&stdPicture {_cf :_cabe };};_fdc ._gcfb ._fab =uint32 (len (_dffe ));_fdc ._gcfb ._ead =_c .NewBuffer (_dffe );};