22#include <com/sun/star/awt/FontSlant.hpp>
23#include <com/sun/star/awt/FontStrikeout.hpp>
24#include <com/sun/star/awt/FontUnderline.hpp>
25#include <com/sun/star/awt/FontWeight.hpp>
26#include <com/sun/star/awt/ImagePosition.hpp>
27#include <com/sun/star/awt/ImageScaleMode.hpp>
28#include <com/sun/star/awt/Point.hpp>
29#include <com/sun/star/awt/ScrollBarOrientation.hpp>
30#include <com/sun/star/awt/Size.hpp>
31#include <com/sun/star/awt/TextAlign.hpp>
32#include <com/sun/star/awt/VisualEffect.hpp>
33#include <com/sun/star/awt/XControlModel.hpp>
34#include <com/sun/star/beans/NamedValue.hpp>
35#include <com/sun/star/beans/XPropertySet.hpp>
36#include <com/sun/star/container/XIndexContainer.hpp>
37#include <com/sun/star/drawing/XDrawPage.hpp>
38#include <com/sun/star/form/XForm.hpp>
39#include <com/sun/star/form/XFormComponent.hpp>
40#include <com/sun/star/form/XFormsSupplier.hpp>
41#include <com/sun/star/form/binding/XBindableValue.hpp>
42#include <com/sun/star/form/binding/XListEntrySink.hpp>
43#include <com/sun/star/form/binding/XListEntrySource.hpp>
44#include <com/sun/star/form/binding/XValueBinding.hpp>
45#include <com/sun/star/frame/XModel.hpp>
46#include <com/sun/star/lang/XMultiServiceFactory.hpp>
47#include <com/sun/star/sheet/XCellRangeAddressable.hpp>
48#include <com/sun/star/sheet/XCellRangeReferrer.hpp>
49#include <com/sun/star/style/VerticalAlignment.hpp>
50#include <com/sun/star/table/CellAddress.hpp>
51#include <com/sun/star/table/CellRangeAddress.hpp>
52#include <rtl/tencinfo.h>
53#include <osl/diagnose.h>
55#include <vcl/font.hxx>
64#include <oox/token/properties.hxx>
65#include <oox/token/tokens.hxx>
77using namespace ::com::sun::star::form::binding;
87const sal_uInt32 COMCTL_ID_SIZE = 0x12344321;
89const sal_uInt32 COMCTL_ID_COMMONDATA = 0xABCDEF01;
90const sal_uInt32 COMCTL_COMMON_FLATBORDER = 0x00000001;
91const sal_uInt32 COMCTL_COMMON_ENABLED = 0x00000002;
92const sal_uInt32 COMCTL_COMMON_3DBORDER = 0x00000004;
94const sal_uInt32 COMCTL_ID_COMPLEXDATA = 0xBDECDE1F;
95const sal_uInt32 COMCTL_COMPLEX_FONT = 0x00000001;
96const sal_uInt32 COMCTL_COMPLEX_MOUSEICON = 0x00000002;
98const sal_uInt32 COMCTL_ID_SCROLLBAR_60 = 0x99470A83;
99const sal_uInt32 COMCTL_SCROLLBAR_HOR = 0x00000010;
101const sal_uInt32 COMCTL_ID_PROGRESSBAR_50 = 0xE6E17E84;
102const sal_uInt32 COMCTL_ID_PROGRESSBAR_60 = 0x97AB8A01;
104const sal_uInt32 AX_CMDBUTTON_DEFFLAGS = 0x0000001B;
105const sal_uInt32 AX_LABEL_DEFFLAGS = 0x0080001B;
106const sal_uInt32 AX_IMAGE_DEFFLAGS = 0x0000001B;
107const sal_uInt32 AX_MORPHDATA_DEFFLAGS = 0x2C80081B;
108const sal_uInt32 AX_SPINBUTTON_DEFFLAGS = 0x0000001B;
109const sal_uInt32 AX_SCROLLBAR_DEFFLAGS = 0x0000001B;
111const sal_uInt16 AX_POS_TOPLEFT = 0;
112const sal_uInt16 AX_POS_TOP = 1;
113const sal_uInt16 AX_POS_TOPRIGHT = 2;
114const sal_uInt16 AX_POS_LEFT = 3;
115const sal_uInt16 AX_POS_CENTER = 4;
116const sal_uInt16 AX_POS_RIGHT = 5;
117const sal_uInt16 AX_POS_BOTTOMLEFT = 6;
118const sal_uInt16 AX_POS_BOTTOM = 7;
119const sal_uInt16 AX_POS_BOTTOMRIGHT = 8;
121#define AX_PICPOS_IMPL( label, image ) ((AX_POS_##label << 16) | AX_POS_##image)
122const sal_uInt32 AX_PICPOS_LEFTTOP =
AX_PICPOS_IMPL( TOPRIGHT, TOPLEFT );
123const sal_uInt32 AX_PICPOS_LEFTCENTER =
AX_PICPOS_IMPL( RIGHT, LEFT );
124const sal_uInt32 AX_PICPOS_LEFTBOTTOM =
AX_PICPOS_IMPL( BOTTOMRIGHT, BOTTOMLEFT );
125const sal_uInt32 AX_PICPOS_RIGHTTOP =
AX_PICPOS_IMPL( TOPLEFT, TOPRIGHT );
126const sal_uInt32 AX_PICPOS_RIGHTCENTER =
AX_PICPOS_IMPL( LEFT, RIGHT );
127const sal_uInt32 AX_PICPOS_RIGHTBOTTOM =
AX_PICPOS_IMPL( BOTTOMLEFT, BOTTOMRIGHT );
128const sal_uInt32 AX_PICPOS_ABOVELEFT =
AX_PICPOS_IMPL( BOTTOMLEFT, TOPLEFT );
129const sal_uInt32 AX_PICPOS_ABOVECENTER =
AX_PICPOS_IMPL( BOTTOM, TOP );
130const sal_uInt32 AX_PICPOS_ABOVERIGHT =
AX_PICPOS_IMPL( BOTTOMRIGHT, TOPRIGHT );
131const sal_uInt32 AX_PICPOS_BELOWLEFT =
AX_PICPOS_IMPL( TOPLEFT, BOTTOMLEFT );
132const sal_uInt32 AX_PICPOS_BELOWCENTER =
AX_PICPOS_IMPL( TOP, BOTTOM );
133const sal_uInt32 AX_PICPOS_BELOWRIGHT =
AX_PICPOS_IMPL( TOPRIGHT, BOTTOMRIGHT );
134const sal_uInt32 AX_PICPOS_CENTER =
AX_PICPOS_IMPL( CENTER, CENTER );
137const sal_Int32 AX_MATCHENTRY_FIRSTLETTER = 0;
138const sal_Int32 AX_MATCHENTRY_COMPLETE = 1;
139const sal_Int32 AX_MATCHENTRY_NONE = 2;
141const sal_Int32 AX_ORIENTATION_AUTO = -1;
142const sal_Int32 AX_ORIENTATION_VERTICAL = 0;
143const sal_Int32 AX_ORIENTATION_HORIZONTAL = 1;
145const sal_Int32 AX_PROPTHUMB_ON = -1;
147const sal_uInt32 AX_TABSTRIP_TABS = 0;
148const sal_uInt32 AX_TABSTRIP_NONE = 2;
150const sal_uInt32 AX_CONTAINER_ENABLED = 0x00000004;
151const sal_uInt32 AX_CONTAINER_NOCLASSTABLE = 0x00008000;
153const sal_uInt32 AX_CONTAINER_DEFFLAGS = 0x00000004;
155const sal_Int32 AX_CONTAINER_DEFWIDTH = 4000;
156const sal_Int32 AX_CONTAINER_DEFHEIGHT = 3000;
158const sal_Int32 AX_CONTAINER_CYCLEALL = 0;
160const sal_Int32 AX_CONTAINER_SCR_NONE = 0x00;
162const sal_Int16 API_BORDER_NONE = 0;
163const sal_Int16 API_BORDER_SUNKEN = 1;
164const sal_Int16 API_BORDER_FLAT = 2;
166const sal_Int16 API_STATE_UNCHECKED = 0;
167const sal_Int16 API_STATE_CHECKED = 1;
168const sal_Int16 API_STATE_DONTKNOW = 2;
171bool lclExtractRangeFromName( CellRangeAddress& orRangeAddr,
const Reference< XModel >& rxDocModel,
const OUString& rAddressString )
175 PropertySet aPropSet( rxDocModel );
176 Reference< XNameAccess > xRangesNA( aPropSet.getAnyProperty( PROP_NamedRanges ), UNO_QUERY_THROW );
177 Reference< XCellRangeReferrer > xReferrer( xRangesNA->getByName( rAddressString ), UNO_QUERY_THROW );
178 Reference< XCellRangeAddressable > xAddressable( xReferrer->getReferredCells(), UNO_QUERY_THROW );
179 orRangeAddr = xAddressable->getRangeAddress();
182 catch (
const Exception&)
189bool lclExtractAddressFromName( CellAddress& orAddress,
const Reference< XModel >& rxDocModel,
const OUString& rAddressString )
191 CellRangeAddress aRangeAddr;
192 if( lclExtractRangeFromName( aRangeAddr, rxDocModel, rAddressString ) &&
193 (aRangeAddr.StartColumn == aRangeAddr.EndColumn) &&
194 (aRangeAddr.StartRow == aRangeAddr.EndRow) )
196 orAddress.Sheet = aRangeAddr.Sheet;
197 orAddress.Column = aRangeAddr.StartColumn;
198 orAddress.Row = aRangeAddr.StartRow;
204void lclPrepareConverter( PropertySet& rConverter,
const Reference< XModel >& rxDocModel,
205 const OUString& rAddressString, sal_Int32 nRefSheet,
bool bRange )
207 if( !rConverter.is() )
try
209 Reference< XMultiServiceFactory > xModelFactory( rxDocModel, UNO_QUERY_THROW );
210 OUString aServiceName = bRange ?
211 OUString(
"com.sun.star.table.CellRangeAddressConversion" ) :
212 OUString(
"com.sun.star.table.CellAddressConversion" );
213 rConverter.set( xModelFactory->createInstance( aServiceName ) );
215 catch (
const Exception&)
219 rConverter.setProperty( PROP_XLA1Representation, rAddressString );
220 rConverter.setProperty( PROP_ReferenceSheet, nRefSheet );
226 const GraphicHelper& rGraphicHelper,
bool bDefaultColorBgr ) :
227 mxDocModel( rxDocModel ),
228 mrGraphicHelper( rGraphicHelper ),
229 mbDefaultColorBgr( bDefaultColorBgr )
231 OSL_ENSURE(
mxDocModel.is(),
"ControlConverter::ControlConverter - missing document model" );
244 rPropMap.
setProperty( PROP_PositionX, aAppFontPos.X );
245 rPropMap.
setProperty( PROP_PositionY, aAppFontPos.Y );
267 nOleColor = nDefault;
271 if( rPicData.hasElements() )
281 sal_Int32 nScrollOrient = bHorizontal ? ScrollBarOrientation::HORIZONTAL : ScrollBarOrientation::VERTICAL;
282 rPropMap.
setProperty( PROP_Orientation, nScrollOrient );
287 sal_Int32 nScrollOrient = ScrollBarOrientation::HORIZONTAL;
288 if ( rPropSet.
getProperty( nScrollOrient, PROP_Orientation ) )
289 bHorizontal = ( nScrollOrient == ScrollBarOrientation::HORIZONTAL );
294 VerticalAlignment eAlign = VerticalAlignment_TOP;
295 switch( nVerticalAlign )
297 case XML_Top: eAlign = VerticalAlignment_TOP;
break;
298 case XML_Center: eAlign = VerticalAlignment_MIDDLE;
break;
299 case XML_Bottom: eAlign = VerticalAlignment_BOTTOM;
break;
301 rPropMap.
setProperty( PROP_VerticalAlign, eAlign );
306 sal_Int32 nScrollBars )
const
310 rPropMap.
setProperty( PROP_ScrollHeight, tmpSize.Height );
311 rPropMap.
setProperty( PROP_ScrollWidth, tmpSize.Width );
314 rPropMap.
setProperty( PROP_HScroll, ( nScrollBars & 0x1 ) == 0x1 );
315 rPropMap.
setProperty( PROP_VScroll, ( nScrollBars & 0x2 ) == 0x2 );
319 sal_Int32 nMin, sal_Int32 nMax, sal_Int32 nPosition,
320 sal_Int32 nSmallChange, sal_Int32 nLargeChange,
bool bAwtModel )
322 rPropMap.
setProperty( PROP_ScrollValueMin, ::std::min( nMin, nMax ) );
323 rPropMap.
setProperty( PROP_ScrollValueMax, ::std::max( nMin, nMax ) );
324 rPropMap.
setProperty( PROP_LineIncrement, nSmallChange );
325 rPropMap.
setProperty( PROP_BlockIncrement, nLargeChange );
326 rPropMap.
setProperty( bAwtModel ? PROP_ScrollValue : PROP_DefaultScrollValue, nPosition );
330 const OUString& rCtrlSource,
const OUString& rRowSource, sal_Int32 nRefSheet )
const
333 if( !rCtrlSource.isEmpty() )
try
336 Reference< XBindableValue > xBindable( rxCtrlModel, UNO_QUERY_THROW );
339 CellAddress aAddress;
340 if( !lclExtractAddressFromName( aAddress,
mxDocModel, rCtrlSource ) )
348 Sequence< Any > aArgs{
Any(NamedValue(
"BoundCell",
Any(aAddress))) };
351 Reference< XMultiServiceFactory > xModelFactory(
mxDocModel, UNO_QUERY_THROW );
352 Reference< XValueBinding > xBinding( xModelFactory->createInstanceWithArguments(
"com.sun.star.table.CellValueBinding", aArgs ), UNO_QUERY_THROW );
353 xBindable->setValueBinding( xBinding );
361 if( rRowSource.isEmpty() )
367 Reference< XListEntrySink > xEntrySink( rxCtrlModel, UNO_QUERY_THROW );
370 CellRangeAddress aRangeAddr;
371 if( !lclExtractRangeFromName( aRangeAddr,
mxDocModel, rRowSource ) )
379 Sequence< Any > aArgs{
Any(NamedValue(
"CellRange",
Any(aRangeAddr))) };
382 Reference< XMultiServiceFactory > xModelFactory(
mxDocModel, UNO_QUERY_THROW );
383 Reference< XListEntrySource > xEntrySource( xModelFactory->createInstanceWithArguments(
"com.sun.star.table.CellRangeListSource", aArgs ), UNO_QUERY_THROW );
384 xEntrySink->setListEntrySource( xEntrySource );
398 switch( eTranspMode )
407 convertColor( rPropMap, PROP_BackgroundColor, nBackColor );
413 sal_uInt32 nBorderColor, sal_Int32 nBorderStyle, sal_Int32 nSpecialEffect )
const
422 sal_uInt32& nBorderColor, sal_Int32& nBorderStyle, sal_Int32& nSpecialEffect )
424 sal_Int16
nBorder = API_BORDER_NONE;
430 case API_BORDER_FLAT:
433 case API_BORDER_SUNKEN:
436 case API_BORDER_NONE:
445 sal_Int16 nVisualEffect = (nSpecialEffect ==
AX_SPECIALEFFECT_FLAT) ? VisualEffect::FLAT : VisualEffect::LOOK3D;
446 rPropMap.
setProperty( PROP_VisualEffect, nVisualEffect );
452 rPropSet.
getProperty( nVisualEffect, PROP_VisualEffect );
454 if (nVisualEffect == VisualEffect::LOOK3D )
464 sal_Int16 nImagePos = ImagePosition::LeftCenter;
467 case AX_PICPOS_LEFTTOP: nImagePos = ImagePosition::LeftTop;
break;
468 case AX_PICPOS_LEFTCENTER: nImagePos = ImagePosition::LeftCenter;
break;
469 case AX_PICPOS_LEFTBOTTOM: nImagePos = ImagePosition::LeftBottom;
break;
470 case AX_PICPOS_RIGHTTOP: nImagePos = ImagePosition::RightTop;
break;
471 case AX_PICPOS_RIGHTCENTER: nImagePos = ImagePosition::RightCenter;
break;
472 case AX_PICPOS_RIGHTBOTTOM: nImagePos = ImagePosition::RightBottom;
break;
473 case AX_PICPOS_ABOVELEFT: nImagePos = ImagePosition::AboveLeft;
break;
474 case AX_PICPOS_ABOVECENTER: nImagePos = ImagePosition::AboveCenter;
break;
475 case AX_PICPOS_ABOVERIGHT: nImagePos = ImagePosition::AboveRight;
break;
476 case AX_PICPOS_BELOWLEFT: nImagePos = ImagePosition::BelowLeft;
break;
477 case AX_PICPOS_BELOWCENTER: nImagePos = ImagePosition::BelowCenter;
break;
478 case AX_PICPOS_BELOWRIGHT: nImagePos = ImagePosition::BelowRight;
break;
479 case AX_PICPOS_CENTER: nImagePos = ImagePosition::Centered;
break;
480 default: OSL_FAIL(
"ControlConverter::convertAxPicture - unknown picture position" );
482 rPropMap.
setProperty( PROP_ImagePosition, nImagePos );
486 sal_Int32 nPicSizeMode )
const
492 sal_Int16 nScaleMode = ImageScaleMode::NONE;
493 switch( nPicSizeMode )
498 default: OSL_FAIL(
"ControlConverter::convertAxPicture - unknown picture size mode" );
500 rPropMap.
setProperty( PROP_ScaleMode, nScaleMode );
504 std::u16string_view rValue, sal_Int32 nMultiSelect,
ApiDefaultStateMode eDefStateMode,
bool bAwtModel )
510 sal_Int16
nState = bSupportsTriState ? API_STATE_DONTKNOW : API_STATE_UNCHECKED;
511 if( rValue.size() == 1 )
switch( rValue[ 0 ] )
513 case '0':
nState = API_STATE_UNCHECKED;
break;
514 case '1':
nState = API_STATE_CHECKED;
break;
517 sal_Int32 nPropId = bAwtModel ? PROP_State : PROP_DefaultState;
524 if( bSupportsTriState )
533 sal_Int16
nState = API_STATE_DONTKNOW;
540 if (
nState == API_STATE_UNCHECKED )
542 else if (
nState == API_STATE_CHECKED )
546 if( bSupportsTriState )
548 bool bTriStateEnabled =
false;
549 bool bPropertyExists = rPropSet.
getProperty( bTriStateEnabled, PROP_TriState );
550 if( bPropertyExists && bTriStateEnabled )
556 const AxPairData& rSize, sal_Int32 nOrientation )
558 bool bHorizontal =
true;
559 switch( nOrientation )
561 case AX_ORIENTATION_AUTO: bHorizontal = rSize.first > rSize.second;
break;
562 case AX_ORIENTATION_VERTICAL: bHorizontal =
false;
break;
563 case AX_ORIENTATION_HORIZONTAL: bHorizontal =
true;
break;
564 default: OSL_FAIL(
"ControlConverter::convertAxOrientation - unknown orientation" );
570 sal_Int32& nOrientation )
572 bool bHorizontal =
true;
576 nOrientation = AX_ORIENTATION_HORIZONTAL;
578 nOrientation = AX_ORIENTATION_VERTICAL;
613 default: OSL_FAIL(
"ControlModelBase::getServiceName - no AWT model service supported" );
615 else switch( eCtrlType )
619 case API_CONTROL_IMAGE:
return "com.sun.star.form.component.DatabaseImageControl";
629 default: OSL_FAIL(
"ControlModelBase::getServiceName - no form component service supported" );
656 sal_uInt16 nVersion ) :
657 maFontData(
"Tahoma", 82500 ),
660 mnDataPartId5( nDataPartId5 ),
661 mnDataPartId6( nDataPartId6 ),
662 mbCommonPart( true ),
663 mbComplexPart( true )
673 sal_uInt32 nCommonPartSize = 0;
679 if( !rInStrm.
isEof() &&
683 return !rInStrm.
isEof();
703 OSL_FAIL(
"ComCtlObjectBase::getDataPartId - unexpected version" );
713 bool bPartId = nPartId == nExpPartId;
714 OSL_ENSURE( bPartId,
"ComCtlObjectBase::readPartHeader - unexpected part identifier" );
716 OSL_ENSURE( bVersion,
"ComCtlObjectBase::readPartHeader - unexpected part version" );
717 return !rInStrm.
isEof() && bPartId && bVersion;
726 return !rInStrm.
isEof();
733 sal_Int64 nEndPos = rInStrm.
tell() + nPartSize;
734 if( (nPartSize >= 16) &&
readPartHeader( rInStrm, COMCTL_ID_COMMONDATA, 5, 0 ) )
738 rInStrm.
seek( nEndPos );
739 return !rInStrm.
isEof();
752 return bReadOk && !rInStrm.
isEof();
759 mnScrollBarFlags( 0x00000011 ),
775 rPropMap.
setProperty( PROP_Border, API_BORDER_NONE );
808 (
getFlag(
mnFlags, COMCTL_COMMON_FLATBORDER ) ? API_BORDER_FLAT : API_BORDER_NONE);
838 sal_Int32 nSepPos = rValue.indexOf(
';' );
839 OSL_ENSURE( nSepPos >= 0,
"AxControlModelBase::importProperty - missing separator in 'Size' property" );
851 mbSupportsAlign( bSupportsAlign )
860 case XML_FontEffects:
865 case XML_ParagraphAlign:
898 rtl_TextEncoding eFontEnc = RTL_TEXTENCODING_DONTKNOW;
901 if( eFontEnc != RTL_TEXTENCODING_DONTKNOW )
907 sal_Int32 nAlign = awt::TextAlign::LEFT;
913 default: OSL_FAIL(
"AxFontDataModel::convertProperties - unknown text alignment" );
916 rPropMap.
setProperty( PROP_Align,
static_cast< sal_Int16
>( nAlign ) );
926 float fontWeight = float(0);
929 FontSlant nSlant = FontSlant_NONE;
933 sal_Int16 nUnderLine = awt::FontUnderline::NONE;
936 sal_Int16 nStrikeout = awt::FontStrikeout::NONE ;
940 float fontHeight = 0.0;
943 if ( fontHeight == 0 )
946 fontHeight =
static_cast< float >( aDefaultVCLFont.
GetFontHeight() );
952 sal_Int16 nAlign = 0;
960 default: OSL_FAIL(
"AxFontDataModel::convertFromProperties - unknown text alignment" );
968 mnFlags( AX_CMDBUTTON_DEFFLAGS ),
969 mnPicturePos( AX_PICPOS_ABOVECENTER ),
970 mnVerticalAlign( XML_Center ),
971 mbFocusOnClick( true )
979 case XML_Caption:
maCaption = rValue;
break;
1041 0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
1042 0xFF, 0xFF, 0xFF, 0xFF, 0x40, 0x32, 0x05, 0xD7,
1043 0x69, 0xCE, 0xCD, 0x11, 0xA7, 0x77, 0x00, 0xDD,
1044 0x01, 0x14, 0x3C, 0x57, 0x22, 0x00, 0x00, 0x00,
1045 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
1046 0x74, 0x20, 0x46, 0x6F, 0x72, 0x6d, 0x73, 0x20,
1047 0x32, 0x2e, 0x30, 0x20, 0x43, 0x6F, 0x6D, 0x6D,
1048 0x61, 0x6E, 0x64, 0x42, 0x75, 0x74, 0x74, 0x6F,
1049 0x6E, 0x00, 0x10, 0x00, 0x00, 0x00, 0x45, 0x6D,
1050 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x20, 0x4F,
1051 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00, 0x16, 0x00,
1052 0x00, 0x00, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x2E,
1053 0x43, 0x6F, 0x6D, 0x6D, 0x61, 0x6E, 0x64, 0x42,
1054 0x75, 0x74, 0x74, 0x6F, 0x6E, 0x2E, 0x31, 0x00,
1055 0xF4, 0x39, 0xB2, 0x71, 0x00, 0x00, 0x00, 0x00,
1056 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
1058 rOutStream.
writeMemory( aCompObj,
sizeof( aCompObj ) );
1085 if ( rPropSet.
getProperty( bRes, PROP_MultiLine ) )
1102 mnVerticalAlign( XML_Top )
1110 case XML_Caption:
maCaption = rValue;
break;
1171 if ( rPropSet.
getProperty( bRes, PROP_MultiLine ) )
1190 0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
1191 0xFF, 0xFF, 0xFF, 0xFF, 0x23, 0x9E, 0x8C, 0x97,
1192 0xB0, 0xD4, 0xCE, 0x11, 0xBF, 0x2D, 0x00, 0xAA,
1193 0x00, 0x3F, 0x40, 0xD0, 0x1A, 0x00, 0x00, 0x00,
1194 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
1195 0x74, 0x20, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x20,
1196 0x32, 0x2E, 0x30, 0x20, 0x4C, 0x61, 0x62, 0x65,
1197 0x6C, 0x00, 0x10, 0x00, 0x00, 0x00, 0x45, 0x6D,
1198 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x20, 0x4F,
1199 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00, 0x0E, 0x00,
1200 0x00, 0x00, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x2E,
1201 0x4C, 0x61, 0x62, 0x65, 0x6C, 0x2E, 0x31, 0x00,
1202 0xF4, 0x39, 0xB2, 0x71, 0x00, 0x00, 0x00, 0x00,
1203 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
1205 rOutStream.
writeMemory( aCompObj,
sizeof( aCompObj ) );
1233 mbPicTiling( false )
1312 0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
1313 0xFF, 0xFF, 0xFF, 0xFF, 0x41, 0x92, 0x59, 0x4C,
1314 0x26, 0x69, 0x1B, 0x10, 0x99, 0x92, 0x00, 0x00,
1315 0x0B, 0x65, 0xC6, 0xF9, 0x1A, 0x00, 0x00, 0x00,
1316 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
1317 0x74, 0x20, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x20,
1318 0x32, 0x2E, 0x30, 0x20, 0x49, 0x6D, 0x61, 0x67,
1319 0x65, 0x00, 0x10, 0x00, 0x00, 0x00, 0x45, 0x6D,
1320 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x20, 0x4F,
1321 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00, 0x0E, 0x00,
1322 0x00, 0x00, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x2E,
1323 0x49, 0x6D, 0x61, 0x67, 0x65, 0x2E, 0x31, 0x00,
1324 0xF4, 0x39, 0xB2, 0x71, 0x00, 0x00, 0x00, 0x00,
1325 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
1327 rOutStream.
writeMemory( aCompObj,
sizeof( aCompObj ) );
1348 mnVariousPropertyBits( 0 )
1394 mnFlags( AX_MORPHDATA_DEFFLAGS ),
1395 mnPicturePos( AX_PICPOS_ABOVECENTER ),
1402 mnMatchEntry( AX_MATCHENTRY_NONE ),
1405 mnPasswordChar( 0 ),
1407 mnVerticalAlign( XML_Center )
1415 case XML_Caption:
maCaption = rValue;
break;
1416 case XML_Value:
maValue = rValue;
break;
1488 if (
mnFlags != AX_MORPHDATA_DEFFLAGS )
1573 rPropMap.
setProperty( PROP_GroupName, sGroupName );
1601 if ( rPropSet.
getProperty( bRes, PROP_MultiLine ) )
1628 0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
1629 0xFF, 0xFF, 0xFF, 0xFF, 0x60, 0x1D, 0xD2, 0x8B,
1630 0x42, 0xEC, 0xCE, 0x11, 0x9E, 0x0D, 0x00, 0xAA,
1631 0x00, 0x60, 0x02, 0xF3, 0x21, 0x00, 0x00, 0x00,
1632 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
1633 0x74, 0x20, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x20,
1634 0x32, 0x2E, 0x30, 0x20, 0x54, 0x6F, 0x67, 0x67,
1635 0x6C, 0x65, 0x42, 0x75, 0x74, 0x74, 0x6F, 0x6E,
1636 0x00, 0x10, 0x00, 0x00, 0x00, 0x45, 0x6D, 0x62,
1637 0x65, 0x64, 0x64, 0x65, 0x64, 0x20, 0x4F, 0x62,
1638 0x6A, 0x65, 0x63, 0x74, 0x00, 0x15, 0x00, 0x00,
1639 0x00, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x2E, 0x54,
1640 0x6F, 0x67, 0x67, 0x6C, 0x65, 0x42, 0x75, 0x74,
1641 0x74, 0x6F, 0x6E, 0x2E, 0x31, 0x00, 0xF4, 0x39,
1642 0xB2, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1643 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
1645 rOutStream.
writeMemory( aCompObj,
sizeof( aCompObj ) );
1676 if ( rPropSet.
getProperty( bRes, PROP_MultiLine ) )
1692 0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
1693 0xFF, 0xFF, 0xFF, 0xFF, 0x40, 0x1D, 0xD2, 0x8B,
1694 0x42, 0xEC, 0xCE, 0x11, 0x9E, 0x0D, 0x00, 0xAA,
1695 0x00, 0x60, 0x02, 0xF3, 0x1D, 0x00, 0x00, 0x00,
1696 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
1697 0x74, 0x20, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x20,
1698 0x32, 0x2E, 0x30, 0x20, 0x43, 0x68, 0x65, 0x63,
1699 0x6B, 0x42, 0x6F, 0x78, 0x00, 0x10, 0x00, 0x00,
1700 0x00, 0x45, 0x6D, 0x62, 0x65, 0x64, 0x64, 0x65,
1701 0x64, 0x20, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74,
1702 0x00, 0x11, 0x00, 0x00, 0x00, 0x46, 0x6F, 0x72,
1703 0x6D, 0x73, 0x2E, 0x43, 0x68, 0x65, 0x63, 0x6B,
1704 0x42, 0x6F, 0x78, 0x2E, 0x31, 0x00, 0xF4, 0x39,
1705 0xB2, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1706 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
1708 rOutStream.
writeMemory( aCompObj,
sizeof( aCompObj ) );
1739 if ( rPropSet.
getProperty( bRes, PROP_MultiLine ) )
1755 0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
1756 0xFF, 0xFF, 0xFF, 0xFF, 0x50, 0x1D, 0xD2, 0x8B,
1757 0x42, 0xEC, 0xCE, 0x11, 0x9E, 0x0D, 0x00, 0xAA,
1758 0x00, 0x60, 0x02, 0xF3, 0x21, 0x00, 0x00, 0x00,
1759 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
1760 0x74, 0x20, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x20,
1761 0x32, 0x2E, 0x30, 0x20, 0x4F, 0x70, 0x74, 0x69,
1762 0x6F, 0x6E, 0x42, 0x75, 0x74, 0x74, 0x6F, 0x6E,
1763 0x00, 0x10, 0x00, 0x00, 0x00, 0x45, 0x6D, 0x62,
1764 0x65, 0x64, 0x64, 0x65, 0x64, 0x20, 0x4F, 0x62,
1765 0x6A, 0x65, 0x63, 0x74, 0x00, 0x15, 0x00, 0x00,
1766 0x00, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x2E, 0x4F,
1767 0x70, 0x74, 0x69, 0x6F, 0x6E, 0x42, 0x75, 0x74,
1768 0x74, 0x6F, 0x6E, 0x2E, 0x31, 0x00, 0xF4, 0x39,
1769 0xB2, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1770 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
1772 rOutStream.
writeMemory( aCompObj,
sizeof( aCompObj ) );
1808 if ( rPropSet.
getProperty( bRes, PROP_MultiLine ) ) {
1812 if ( rPropSet.
getProperty( bRes, PROP_HideInactiveSelection ) )
1814 if ( rPropSet.
getProperty( bRes, PROP_ReadOnly ) )
1821 if ( rPropSet.
getProperty( nTmp, PROP_MaxTextLen ) )
1823 if ( rPropSet.
getProperty( nTmp, PROP_EchoChar ) )
1842 0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
1843 0xFF, 0xFF, 0xFF, 0xFF, 0x10, 0x1D, 0xD2, 0x8B,
1844 0x42, 0xEC, 0xCE, 0x11, 0x9E, 0x0D, 0x00, 0xAA,
1845 0x00, 0x60, 0x02, 0xF3, 0x1C, 0x00, 0x00, 0x00,
1846 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
1847 0x74, 0x20, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x20,
1848 0x32, 0x2E, 0x30, 0x20, 0x54, 0x65, 0x78, 0x74,
1849 0x42, 0x6F, 0x78, 0x00, 0x10, 0x00, 0x00, 0x00,
1850 0x45, 0x6D, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64,
1851 0x20, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00,
1852 0x10, 0x00, 0x00, 0x00, 0x46, 0x6F, 0x72, 0x6D,
1853 0x73, 0x2E, 0x54, 0x65, 0x78, 0x74, 0x42, 0x6F,
1854 0x78, 0x2E, 0x31, 0x00, 0xF4, 0x39, 0xB2, 0x71,
1855 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1856 0x00, 0x00, 0x00, 0x00
1858 rOutStream.
writeMemory( aCompObj,
sizeof( aCompObj ) );
1887 if ( rPropSet.
getProperty( bRes, PROP_HideInactiveSelection ) )
1905 0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
1906 0xFF, 0xFF, 0xFF, 0xFF, 0x10, 0x1D, 0xD2, 0x8B,
1907 0x42, 0xEC, 0xCE, 0x11, 0x9E, 0x0D, 0x00, 0xAA,
1908 0x00, 0x60, 0x02, 0xF3, 0x1C, 0x00, 0x00, 0x00,
1909 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
1910 0x74, 0x20, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x20,
1911 0x32, 0x2E, 0x30, 0x20, 0x54, 0x65, 0x78, 0x74,
1912 0x42, 0x6F, 0x78, 0x00, 0x10, 0x00, 0x00, 0x00,
1913 0x45, 0x6D, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64,
1914 0x20, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00,
1915 0x10, 0x00, 0x00, 0x00, 0x46, 0x6F, 0x72, 0x6D,
1916 0x73, 0x2E, 0x54, 0x65, 0x78, 0x74, 0x42, 0x6F,
1917 0x78, 0x2E, 0x31, 0x00, 0xF4, 0x39, 0xB2, 0x71,
1918 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1919 0x00, 0x00, 0x00, 0x00
1921 rOutStream.
writeMemory( aCompObj,
sizeof( aCompObj ) );
1938 rPropMap.
setProperty( PROP_MultiSelection, bMultiSelect );
1948 if ( rPropSet.
getProperty( bRes, PROP_MultiSelection ) )
1961 0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
1962 0xFF, 0xFF, 0xFF, 0xFF, 0x20, 0x1D, 0xD2, 0x8B,
1963 0x42, 0xEC, 0xCE, 0x11, 0x9E, 0x0D, 0x00, 0xAA,
1964 0x00, 0x60, 0x02, 0xF3, 0x1C, 0x00, 0x00, 0x00,
1965 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
1966 0x74, 0x20, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x20,
1967 0x32, 0x2E, 0x30, 0x20, 0x4C, 0x69, 0x73, 0x74,
1968 0x42, 0x6F, 0x78, 0x00, 0x10, 0x00, 0x00, 0x00,
1969 0x45, 0x6D, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64,
1970 0x20, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00,
1971 0x10, 0x00, 0x00, 0x00, 0x46, 0x6F, 0x72, 0x6D,
1972 0x73, 0x2E, 0x4C, 0x69, 0x73, 0x74, 0x42, 0x6F,
1973 0x78, 0x2E, 0x31, 0x00, 0xF4, 0x39, 0xB2, 0x71,
1974 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1975 0x00, 0x00, 0x00, 0x00
1977 rOutStream.
writeMemory( aCompObj,
sizeof( aCompObj ) );
2000 rPropMap.
setProperty( PROP_Autocomplete, bAutoComplete );
2003 rPropMap.
setProperty( PROP_Dropdown, bShowDropdown );
2017 if ( rPropSet.
getProperty( bRes, PROP_HideInactiveSelection ) )
2022 if ( rPropSet.
getProperty( nTmp, PROP_MaxTextLen ) )
2024 if ( rPropSet.
getProperty( bRes, PROP_Autocomplete ) )
2031 if ( rPropSet.
getProperty( bRes, PROP_Dropdown ) )
2049 0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
2050 0xFF, 0xFF, 0xFF, 0xFF, 0x30, 0x1D, 0xD2, 0x8B,
2051 0x42, 0xEC, 0xCE, 0x11, 0x9E, 0x0D, 0x00, 0xAA,
2052 0x00, 0x60, 0x02, 0xF3, 0x1D, 0x00, 0x00, 0x00,
2053 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
2054 0x74, 0x20, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x20,
2055 0x32, 0x2E, 0x30, 0x20, 0x43, 0x6F, 0x6D, 0x62,
2056 0x6F, 0x42, 0x6F, 0x78, 0x00, 0x10, 0x00, 0x00,
2057 0x00, 0x45, 0x6D, 0x62, 0x65, 0x64, 0x64, 0x65,
2058 0x64, 0x20, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74,
2059 0x00, 0x11, 0x00, 0x00, 0x00, 0x46, 0x6F, 0x72,
2060 0x6D, 0x73, 0x2E, 0x43, 0x6F, 0x6D, 0x62, 0x6F,
2061 0x42, 0x6F, 0x78, 0x2E, 0x31, 0x00, 0xF4, 0x39,
2062 0xB2, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2063 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
2065 rOutStream.
writeMemory( aCompObj,
sizeof( aCompObj ) );
2071 mnFlags( AX_SPINBUTTON_DEFFLAGS ),
2072 mnOrientation( AX_ORIENTATION_AUTO ),
2160 rPropMap.
setProperty( PROP_Border, API_BORDER_NONE );
2189 0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
2190 0xFF, 0xFF, 0xFF, 0xFF, 0xB0, 0x6F, 0x17, 0x79,
2191 0xF2, 0xB7, 0xCE, 0x11, 0x97, 0xEF, 0x00, 0xAA,
2192 0x00, 0x6D, 0x27, 0x76, 0x1F, 0x00, 0x00, 0x00,
2193 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
2194 0x74, 0x20, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x20,
2195 0x32, 0x2E, 0x30, 0x20, 0x53, 0x70, 0x69, 0x6E,
2196 0x42, 0x75, 0x74, 0x74, 0x6F, 0x6E, 0x00, 0x10,
2197 0x00, 0x00, 0x00, 0x45, 0x6D, 0x62, 0x65, 0x64,
2198 0x64, 0x65, 0x64, 0x20, 0x4F, 0x62, 0x6A, 0x65,
2199 0x63, 0x74, 0x00, 0x13, 0x00, 0x00, 0x00, 0x46,
2200 0x6F, 0x72, 0x6D, 0x73, 0x2E, 0x53, 0x70, 0x69,
2201 0x6E, 0x42, 0x75, 0x74, 0x74, 0x6F, 0x6E, 0x2E,
2202 0x31, 0x00, 0xF4, 0x39, 0xB2, 0x71, 0x00, 0x00,
2203 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2207 rOutStream.
writeMemory( aCompObj,
sizeof( aCompObj ) );
2213 mnFlags( AX_SCROLLBAR_DEFFLAGS ),
2214 mnOrientation( AX_ORIENTATION_AUTO ),
2215 mnPropThumb( AX_PROPTHUMB_ON ),
2304 0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
2305 0xFF, 0xFF, 0xFF, 0xFF, 0xE0, 0x81, 0xD1, 0xDF,
2306 0x2F, 0x5E, 0xCE, 0x11, 0xA4, 0x49, 0x00, 0xAA,
2307 0x00, 0x4A, 0x80, 0x3D, 0x1E, 0x00, 0x00, 0x00,
2308 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66,
2309 0x74, 0x20, 0x46, 0x6F, 0x72, 0x6D, 0x73, 0x20,
2310 0x32, 0x2E, 0x30, 0x20, 0x53, 0x63, 0x72, 0x6F,
2311 0x6C, 0x6C, 0x42, 0x61, 0x72, 0x00, 0x10, 0x00,
2312 0x00, 0x00, 0x45, 0x6D, 0x62, 0x65, 0x64, 0x64,
2313 0x65, 0x64, 0x20, 0x4F, 0x62, 0x6A, 0x65, 0x63,
2314 0x74, 0x00, 0x12, 0x00, 0x00, 0x00, 0x46, 0x6F,
2315 0x72, 0x6D, 0x73, 0x2E, 0x53, 0x63, 0x72, 0x6F,
2316 0x6C, 0x6C, 0x42, 0x61, 0x72, 0x2E, 0x31, 0x00,
2317 0xF4, 0x39, 0xB2, 0x71, 0x00, 0x00, 0x00, 0x00,
2318 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
2320 rOutStream.
writeMemory( aCompObj,
sizeof( aCompObj ) );
2327 rPropMap.
setProperty( PROP_Border, API_BORDER_NONE );
2331 double fInterval = fabs(
static_cast< double >(
mnMax -
mnMin ) );
2333 rPropMap.
setProperty( PROP_VisibleSize, nThumbLen );
2363 maLogicalSize( AX_CONTAINER_DEFWIDTH, AX_CONTAINER_DEFHEIGHT ),
2364 maScrollPos( 0, 0 ),
2367 mnFlags( AX_CONTAINER_DEFFLAGS ),
2370 mnScrollBars( AX_CONTAINER_SCR_NONE ),
2371 mnCycleType( AX_CONTAINER_CYCLEALL ),
2375 mbPicTiling( false ),
2376 mbFontSupport( bFontSupport )
2385 if( nPropId == XML_Caption )
2435 orClassTable.clear();
2441 orClassTable.emplace_back( );
2500 mnTabStyle( AX_TABSTRIP_TABS )
2512 for ( sal_Int32 nPage = 0; nPage < nPages; ++nPage )
2521 sal_uInt32 nPageCount = 0;
2569 if (rInStrm.
size()<=0)
2575 OUString data = sStringContents.replaceAll(
"\x0D\x0A" ,
"\x0A" );
2577 std::vector< OUString > listValues;
2578 std::vector< sal_Int16 > selectedIndices;
2581 sal_Int32 nLineIdx {0};
2590 std::u16string_view sLine(
o3tl::getToken(data, 0,
'\n', nLineIdx ) );
2594 if ( !sLine.empty() )
2597 if ( displayValue.getLength() )
2601 displayValue = displayValue.replaceAll(
"<",
"<" );
2602 displayValue = displayValue.replaceAll(
">",
">" );
2603 displayValue = displayValue.replaceAll(
""",
"\"" );
2604 displayValue = displayValue.replaceAll(
"&",
"&" );
2605 listValues.push_back( displayValue );
2606 if( sLine.find(
u"OPTION SELECTED" ) != std::u16string_view::npos )
2607 selectedIndices.push_back(
static_cast< sal_Int16
>( listValues.size() ) - 1 );
2612 if ( !listValues.empty() )
2616 sal_Int32
index = 0;
2617 for (
auto const& listValue : listValues)
2618 psListData[
index++ ] = listValue;
2620 if ( !selectedIndices.empty() )
2622 msIndices.realloc( selectedIndices.size() );
2624 sal_Int32
index = 0;
2625 for (
auto const& selectedIndice : selectedIndices)
2626 psIndices[
index++ ] = selectedIndice;
2651 SAL_WARN(
"oox",
"HtmlTextBoxModel::importBinaryModel - string contents of stream: " << sStringContents );
2698 aPropMap.
setProperty( PROP_GenerateVbaEvents,
true);
2704 mxModel->convertProperties( aPropMap, rConv );
2718 mxModel->convertFromProperties( aPropSet, rConv );
2723 const Reference< XDrawPage >& rxDrawPage,
const GraphicHelper& rGraphicHelper ) :
2724 maControlConv( rxDocModel, rGraphicHelper, true ),
2725 mxModelFactory( rxDocModel, UNO_QUERY ),
2726 mxFormsSupp( rxDrawPage, UNO_QUERY )
2728 OSL_ENSURE(
mxModelFactory.is(),
"EmbeddedForm::EmbeddedForm - missing service factory" );
2733 Reference< XControlModel > xRet;
2738 Reference< XFormComponent > xFormComp(
mxModelFactory->createInstance( aServiceName ), UNO_QUERY_THROW );
2739 Reference< XControlModel > xCtrlModel( xFormComp, UNO_QUERY_THROW );
2745 Reference< XIndexContainer > xFormIC(
createXForm(), UNO_SET_THROW );
2746 rnCtrlIndex = xFormIC->getCount();
2747 xFormIC->insertByIndex( rnCtrlIndex,
Any( xFormComp ) );
2762 Reference< XNameContainer > xFormsNC(
mxFormsSupp->getForms(), UNO_SET_THROW );
2763 OUString aFormName =
"Standard";
2764 if( xFormsNC->hasByName( aFormName ) )
2766 mxFormIC.set( xFormsNC->getByName( aFormName ), UNO_QUERY_THROW );
2770 Reference< XForm > xForm(
mxModelFactory->createInstance(
"com.sun.star.form.component.Form" ), UNO_QUERY_THROW );
2771 xFormsNC->insertByName( aFormName,
Any( xForm ) );
2772 mxFormIC.set( xForm, UNO_QUERY_THROW );
geometry::RealSize2D maSize
#define AX_PICPOS_IMPL(label, image)
#define AX_GUID_SPINBUTTON
#define AX_GUID_SCROLLBAR
#define HTML_GUID_TEXTBOX
#define AX_GUID_COMMANDBUTTON
#define COMCTL_GUID_SCROLLBAR_60
#define AX_GUID_TOGGLEBUTTON
#define AX_GUID_OPTIONBUTTON
const StyleSettings & GetStyleSettings() const
static OutputDevice * GetDefaultDevice()
const AllSettings & GetSettings() const
const vcl::Font & GetAppFont() const
static sal_uInt32 decodeUnsigned(std::u16string_view rValue)
Returns the 32-bit unsigned integer value from the passed string (decimal).
static sal_Int32 decodeInteger(std::u16string_view rValue)
Returns the 32-bit signed integer value from the passed string (decimal).
Interface for binary output stream classes.
virtual void writeMemory(const void *pMem, sal_Int32 nBytes, size_t nAtomSize=1)=0
Derived classes implement writing the contents of the (preallocated!) memory buffer pMem.
virtual sal_Int64 size() const =0
Implementations return the size of the stream, if possible.
bool isEof() const
Returns true, if the stream position is invalid (EOF).
virtual sal_Int64 tell() const =0
Implementations return the current stream position, if possible.
virtual void seek(sal_Int64 nPos)=0
Implementations seek the stream to the passed position, if the stream is seekable.
Provides helper functions for colors, device measurement conversion, graphics, and graphic objects ha...
css::uno::Reference< css::graphic::XGraphic > importGraphic(const css::uno::Reference< css::io::XInputStream > &rxInStrm, const WmfExternal *pExtHeader=nullptr) const
Imports a graphic from the passed input stream.
css::awt::Point convertHmmToAppFont(const css::awt::Point &rHmm) const
Converts the passed point from 1/100 mm to AppFont units.
A helper that maps property identifiers to property values.
bool setProperty(sal_Int32 nPropId, Type &&rValue)
Sets the specified property to the passed value.
A wrapper for a UNO property set.
void setProperties(const css::uno::Sequence< OUString > &rPropNames, const css::uno::Sequence< css::uno::Any > &rValues)
Puts the passed properties into the property set.
bool getProperty(Type &orValue, sal_Int32 nPropId) const
Gets the specified property from the property set.
Import helper to read simple and complex ActiveX form control properties from a binary input stream.
void skipGuidProperty()
Skips the next GUID property in the stream, if the respective flag in the property mask is set.
void readIntProperty(DataType &ornValue)
Reads the next integer property value from the stream, if the respective flag in the property mask is...
bool finalizeImport()
Final processing, reads contents of all complex properties.
void skipIntProperty()
Skips the next integer property value in the stream, if the respective flag in the property mask is s...
void skipArrayStringProperty()
Skips the next ArrayString property in the stream, if the respective flag in the property mask is set...
void readGuidProperty(OUString &orGuid)
Reads the next GUID property from the stream, if the respective flag in the property mask is set.
void readFontProperty(AxFontData &orFontData)
Reads the next font property from the stream, if the respective flag in the property mask is set.
void readStringProperty(OUString &orValue)
Reads the next string property from the stream, if the respective flag in the property mask is set.
void skipBoolProperty()
Skips the next boolean property value in the stream, if the respective flag in the property mask is s...
void readPairProperty(AxPairData &orPairData)
Reads the next pair property from the stream, if the respective flag in the property mask is set.
void skipPictureProperty()
Skips the next picture property in the stream, if the respective flag in the property mask is set.
void skipUndefinedProperty()
Has to be called for undefined properties.
void readArrayStringProperty(std::vector< OUString > &rStrings)
Reads ArrayString, an array of fmString ( compressed or uncompressed ) is read from the stream and in...
void readBoolProperty(bool &orbValue, bool bReverse=false)
Reads the next boolean property value from the stream, if the respective flag in the property mask is...
void readPictureProperty(StreamDataSequence &orPicData)
Reads the next picture property from the stream, if the respective flag in the property mask is set.
Export helper to write simple and complex ActiveX form control properties to a binary input stream.
void finalizeExport()
Final processing, write contents of all complex properties, writes record size.
void writeIntProperty(DataType ornValue)
Write an integer property value to the stream, the respective flag in the property mask is set.
void writeBoolProperty(bool orbValue)
Write a boolean property value to the stream, the respective flag in the property mask is set.
void writePairProperty(AxPairData &orPairData)
Write a pair property the stream, the respective flag in the property mask is set.
void skipProperty()
Skips the next property clears the respective flag in the property mask.
void writeStringProperty(OUString &orValue)
Write a string property to the stream, the respective flag in the property mask is set.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Derived classes convert all control properties.
virtual void convertFromProperties(PropertySet &rPropSet, const ControlConverter &rConv) override
Derived classes convert from uno control properties to equiv.
virtual ApiControlType getControlType() const override
Derived classes return the UNO control type enum value.
virtual void exportCompObj(BinaryOutputStream &rOutStrm) override
Derived classes export CompObjStream contents.
virtual void exportCompObj(BinaryOutputStream &rOutStrm) override
Derived classes export CompObjStream contents.
virtual ApiControlType getControlType() const override
Derived classes return the UNO control type enum value.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Derived classes convert all control properties.
virtual void convertFromProperties(PropertySet &rPropSet, const ControlConverter &rConv) override
Derived classes convert from uno control properties to equiv.
Base class for ActiveX container controls.
OUString maCaption
Visible caption of the form.
virtual bool importBinaryModel(BinaryInputStream &rInStrm) override
Reads the leading structure in the 'f' stream containing the model for this control.
sal_Int32 mnBorderStyle
Flat border style.
sal_Int32 mnPicSizeMode
Clip, stretch, zoom.
sal_uInt32 mnBorderColor
Flat border color.
sal_uInt32 mnBackColor
Fill color.
bool importClassTable(BinaryInputStream &rInStrm, AxClassTable &orClassTable)
Reads the class table structure for embedded controls following the own model from the 'f' stream.
sal_uInt32 mnFlags
Various flags.
StreamDataSequence maPictureData
Binary picture stream.
AxContainerModelBase(bool bFontSupport=false)
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Converts font settings if supported.
sal_Int32 mnScrollBars
Horizontal/vertical scroll bar.
bool mbFontSupport
True = control supports the font property.
sal_Int32 mnCycleType
Cycle in all forms or in this form.
sal_Int32 mnPicAlign
Anchor position of the picture.
sal_uInt32 mnTextColor
Text color.
bool mbPicTiling
True = picture is repeated.
virtual void importProperty(sal_Int32 nPropId, const OUString &rValue) override
Allows to set single properties specified by XML token identifier.
AxPairData maScrollPos
Scroll position.
sal_Int32 mnSpecialEffect
3D border effect.
AxPairData maLogicalSize
Logical form size (scroll area).
virtual void importProperty(sal_Int32 nPropId, const OUString &rValue) override
Derived classes set specific OOXML properties at the model structure.
Base class for Forms 2.0 controls supporting text formatting.
AxFontData maFontData
The font settings.
virtual void importProperty(sal_Int32 nPropId, const OUString &rValue) override
Derived classes set specific OOXML properties at the model structure.
virtual void convertFromProperties(PropertySet &rPropSet, const ControlConverter &rConv) override
Derived classes convert from uno control properties to equiv.
bool mbSupportsAlign
True = UNO model supports Align property.
virtual void exportBinaryModel(BinaryOutputStream &rOutStrm) override
Derived classes export a form control model to the passed output stream.
AxFontDataModel(bool bSupportsAlign=true)
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Derived classes convert all control properties.
virtual bool importBinaryModel(BinaryInputStream &rInStrm) override
Derived classes import a form control model from the passed input stream.
virtual ApiControlType getControlType() const override
Derived classes return the UNO control type enum value.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Converts font settings if supported.
sal_Int32 mnPicAlign
Anchor position of the picture.
virtual bool importBinaryModel(BinaryInputStream &rInStrm) override
Derived classes import a form control model from the passed input stream.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Derived classes convert all control properties.
virtual void exportBinaryModel(BinaryOutputStream &rOutStrm) override
Derived classes export a form control model to the passed output stream.
virtual ApiControlType getControlType() const override
Derived classes return the UNO control type enum value.
virtual void importProperty(sal_Int32 nPropId, const OUString &rValue) override
Derived classes set specific OOXML properties at the model structure.
virtual void exportCompObj(BinaryOutputStream &rOutStrm) override
Derived classes export CompObjStream contents.
sal_Int32 mnBorderStyle
Flat border style.
sal_Int32 mnPicSizeMode
Clip, stretch, zoom.
virtual void importPictureData(sal_Int32 nPropId, BinaryInputStream &rInStrm) override
Derived classes set binary data (picture, mouse icon) at the model structure.
sal_uInt32 mnFlags
Various flags.
bool mbPicTiling
True = picture is repeated.
sal_uInt32 mnBackColor
Fill color.
sal_Int32 mnSpecialEffect
3D border effect.
sal_uInt32 mnBorderColor
Flat border color.
StreamDataSequence maPictureData
Binary picture stream.
virtual ApiControlType getControlType() const override
Derived classes return the UNO control type enum value.
sal_Int32 mnSpecialEffect
3D border effect.
virtual void exportCompObj(BinaryOutputStream &rOutStrm) override
Derived classes export CompObjStream contents.
virtual bool importBinaryModel(BinaryInputStream &rInStrm) override
Derived classes import a form control model from the passed input stream.
sal_uInt32 mnTextColor
Text color.
sal_uInt32 mnBackColor
Fill color.
virtual void exportBinaryModel(BinaryOutputStream &rOutStrm) override
Derived classes export a form control model to the passed output stream.
OUString maCaption
Visible caption of the button.
virtual void convertFromProperties(PropertySet &rPropSet, const ControlConverter &rConv) override
Derived classes convert from uno control properties to equiv.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Derived classes convert all control properties.
sal_Int32 mnBorderStyle
Flat border style.
sal_uInt32 mnFlags
Various flags.
sal_uInt32 mnBorderColor
Flat border color.
virtual void importProperty(sal_Int32 nPropId, const OUString &rValue) override
Derived classes set specific OOXML properties at the model structure.
sal_Int32 mnVerticalAlign
Vertical alignment (legacy VML drawing controls only).
virtual void convertFromProperties(PropertySet &rPropSet, const ControlConverter &rConv) override
Derived classes convert from uno control properties to equiv.
virtual void exportCompObj(BinaryOutputStream &rOutStrm) override
Derived classes export CompObjStream contents.
virtual ApiControlType getControlType() const override
Derived classes return the UNO control type enum value.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Derived classes convert all control properties.
virtual void importProperty(sal_Int32 nPropId, const OUString &rValue) override
Derived classes set specific OOXML properties at the model structure.
sal_Int32 mnVerticalAlign
Vertical alignment (legacy VML drawing controls only).
sal_Int32 mnListRows
Number of rows in dropdown box.
sal_Int32 mnMultiSelect
Selection mode.
sal_uInt32 mnFlags
Various flags.
sal_Int32 mnShowDropButton
When to show the dropdown button.
OUString maCaption
Visible caption of the button.
OUString maValue
Current value of the control.
sal_Int32 mnMaxLength
Maximum character count.
sal_uInt32 mnBackColor
Fill color.
sal_Int32 mnBorderStyle
Flat border style.
sal_Int32 mnMatchEntry
Auto completion mode.
sal_Int32 mnPasswordChar
Password character in edit fields.
OUString maGroupName
Group name for option buttons.
sal_uInt32 mnBorderColor
Flat border color.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Derived classes convert all control properties.
sal_Int32 mnSpecialEffect
3D border effect.
virtual void exportBinaryModel(BinaryOutputStream &rOutStrm) override
Derived classes export a form control model to the passed output stream.
virtual void importPictureData(sal_Int32 nPropId, BinaryInputStream &rInStrm) override
Derived classes set binary data (picture, mouse icon) at the model structure.
virtual bool importBinaryModel(BinaryInputStream &rInStrm) override
Derived classes import a form control model from the passed input stream.
sal_uInt32 mnPicturePos
Position of the picture relative to text.
sal_Int32 mnScrollBars
Horizontal/vertical scroll bar.
StreamDataSequence maPictureData
Binary picture stream.
virtual void convertFromProperties(PropertySet &rPropSet, const ControlConverter &rConv) override
Derived classes convert from uno control properties to equiv.
sal_uInt32 mnTextColor
Text color.
sal_Int32 mnDisplayStyle
Type of the morph control.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Converts font settings if supported.
std::vector< sal_uInt32 > mnIDs
virtual ApiControlType getControlType() const override
Derived classes return the UNO control type enum value.
void importPageAndMultiPageProperties(BinaryInputStream &rInStrm, sal_Int32 nPages)
virtual void exportCompObj(BinaryOutputStream &rOutStrm) override
Derived classes export CompObjStream contents.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Derived classes convert all control properties.
virtual ApiControlType getControlType() const override
Derived classes return the UNO control type enum value.
virtual void convertFromProperties(PropertySet &rPropSet, const ControlConverter &rConv) override
Derived classes convert from uno control properties to equiv.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Converts font settings if supported.
virtual ApiControlType getControlType() const override
Derived classes return the UNO control type enum value.
std::vector< OUString > maItems
std::vector< OUString > maTabNames
virtual bool importBinaryModel(BinaryInputStream &rInStrm) override
Derived classes import a form control model from the passed input stream.
virtual ApiControlType getControlType() const override
Derived classes return the UNO control type enum value.
sal_uInt32 mnVariousPropertyBits
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Derived classes convert all control properties.
virtual ApiControlType getControlType() const override
Derived classes return the UNO control type enum value.
virtual void convertFromProperties(PropertySet &rPropSet, const ControlConverter &rConv) override
Derived classes convert from uno control properties to equiv.
virtual void exportCompObj(BinaryOutputStream &rOutStrm) override
Derived classes export CompObjStream contents.
Base class for all models of ComCtl form controls.
StreamDataSequence maMouseIcon
Binary picture stream for mouse icon.
bool importSizePart(BinaryInputStream &rInStrm)
virtual bool importBinaryModel(BinaryInputStream &rInStrm) override
Derived classes import a form control model from the passed input stream.
sal_uInt32 mnFlags
Common flags for ComCtl controls.
sal_uInt32 mnDataPartId6
Identifier for version 6.0 control data.
const sal_uInt16 mnVersion
Current version of the ComCtl control model.
sal_uInt32 getDataPartId() const
Returns the data part identifier according to the model version.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Derived classes convert all control properties.
bool importComplexPart(BinaryInputStream &rInStrm)
bool mbCommonPart
True = the COMCTL_COMMONDATA part exists.
StdFontInfo maFontData
Font formatting.
sal_uInt32 mnDataPartId5
Identifier for version 5.0 control data.
bool importCommonPart(BinaryInputStream &rInStrm, sal_uInt32 nPartSize)
static bool readPartHeader(BinaryInputStream &rInStrm, sal_uInt32 nExpPartId, sal_uInt16 nExpMajor=SAL_MAX_UINT16, sal_uInt16 nExpMinor=SAL_MAX_UINT16)
bool mbComplexPart
True = the COMCTL_COMPLEXDATA part exists.
ComCtlModelBase(sal_uInt32 nDataPartId5, sal_uInt32 nDataPartId6, sal_uInt16 nVersion)
virtual void importControlData(BinaryInputStream &rInStrm)=0
virtual void importControlData(BinaryInputStream &rInStrm) override
virtual ApiControlType getControlType() const override
Derived classes return the UNO control type enum value.
float mfMax
Maximum of the value range.
sal_uInt16 mnVertical
0 = horizontal, 1 = vertical.
ComCtlProgressBarModel(sal_uInt16 nVersion)
float mfMin
Minimum of the value range.
sal_uInt16 mnSmooth
0 = progress blocks, 1 = pixel resolution.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Derived classes convert all control properties.
A base class with useful helper functions for something that is able to convert ActiveX and ComCtl fo...
static void convertToMSColor(PropertySet const &rPropSet, sal_Int32 nPropId, sal_uInt32 &nOleColor, sal_uInt32 nDefault=0)
void convertPicture(PropertyMap &rPropMap, const StreamDataSequence &rPicData) const
Converts the passed StdPic picture stream to UNO properties.
static void convertToAxBorder(PropertySet const &rPropSet, sal_uInt32 &nBorderColor, sal_Int32 &nBorderStyle, sal_Int32 &nSpecialEffect)
void convertScrollabilitySettings(PropertyMap &rPropMap, const AxPairData &rScrollPos, const AxPairData &rScrollArea, sal_Int32 nScrollBars) const
Converts scrollability settings to UNO properties.
static void convertToAxState(PropertySet const &rPropSet, OUString &rValue, sal_Int32 &nMultiSelect, ApiDefaultStateMode eDefStateMode)
void bindToSources(const css::uno::Reference< css::awt::XControlModel > &rxCtrlModel, const OUString &rCtrlSource, const OUString &rRowSource, sal_Int32 nRefSheet=0) const
Binds the passed control model to the passed data sources.
void convertPosition(PropertyMap &rPropMap, const AxPairData &rPos) const
Converts the passed position in 1/100 mm to UNO properties.
static void convertToMSOrientation(PropertySet const &rPropMap, bool &bHorizontal)
void convertSize(PropertyMap &rPropMap, const AxPairData &rSize) const
Converts the passed size in 1/100 mm to UNO properties.
css::uno::Reference< css::frame::XModel > mxDocModel
void convertAxPicture(PropertyMap &rPropMap, const StreamDataSequence &rPicData, sal_uInt32 nPicPos) const
Converts the passed picture stream and Forms 2.0 position to UNO properties.
static void convertOrientation(PropertyMap &rPropMap, bool bHorizontal)
Converts the control orientation to UNO properties.
static void convertToAxOrientation(PropertySet const &rPropSet, sal_Int32 &nOrientation)
ControlConverter(const css::uno::Reference< css::frame::XModel > &rxDocModel, const GraphicHelper &rGraphicHelper, bool bDefaultColorBgr=true)
void convertColor(PropertyMap &rPropMap, sal_Int32 nPropId, sal_uInt32 nOleColor) const
Converts the passed encoded OLE color to UNO properties.
static void convertAxVisualEffect(PropertyMap &rPropMap, sal_Int32 nSpecialEffect)
Converts the Forms 2.0 special effect to UNO properties.
static void convertAxState(PropertyMap &rPropMap, std::u16string_view rValue, sal_Int32 nMultiSelect, ApiDefaultStateMode eDefStateMode, bool bAwtModel)
Converts the Forms 2.0 value for checked/unchecked/dontknow to UNO properties.
static void convertAxOrientation(PropertyMap &rPropMap, const AxPairData &rSize, sal_Int32 nOrientation)
Converts the Forms 2.0 control orientation to UNO properties.
void convertAxBackground(PropertyMap &rPropMap, sal_uInt32 nBackColor, sal_uInt32 nFlags, ApiTransparencyMode eTranspMode) const
Converts the Forms 2.0 background formatting to UNO properties.
PropertySet maAddressConverter
void convertAxBorder(PropertyMap &rPropMap, sal_uInt32 nBorderColor, sal_Int32 nBorderStyle, sal_Int32 nSpecialEffect) const
Converts the Forms 2.0 border formatting to UNO properties.
static void convertToAxVisualEffect(PropertySet const &rPropSet, sal_Int32 &nSpecialEffect)
const GraphicHelper & mrGraphicHelper
PropertySet maRangeConverter
static void convertScrollBar(PropertyMap &rPropMap, sal_Int32 nMin, sal_Int32 nMax, sal_Int32 nPosition, sal_Int32 nSmallChange, sal_Int32 nLargeChange, bool bAwtModel)
Converts common scrollbar settings to UNO properties.
static void convertVerticalAlign(PropertyMap &rPropMap, sal_Int32 nVerticalAlign)
Converts the vertical alignment to UNO properties.
Base class for all models of form controls.
virtual ~ControlModelBase()
void setAwtModelMode()
Sets this control model to AWT model mode.
bool mbAwtModel
True = AWT control model, false = form component.
void convertSize(PropertyMap &rPropMap, const ControlConverter &rConv) const
Converts the control size to UNO properties.
AxPairData maSize
Size of the control in 1/100 mm.
virtual void importProperty(sal_Int32 nPropId, const OUString &rValue)
Derived classes set specific OOXML properties at the model structure.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const
Derived classes convert all control properties.
virtual void convertFromProperties(PropertySet &rPropSet, const ControlConverter &rConv)
Derived classes convert from uno control properties to equiv.
OUString getServiceName() const
Returns the UNO service name used to construct the AWT control model, or the control form component.
virtual void importPictureData(sal_Int32 nPropId, BinaryInputStream &rInStrm)
Derived classes set binary data (picture, mouse icon) at the model structure.
virtual ApiControlType getControlType() const =0
Derived classes return the UNO control type enum value.
A form control embedded in a document draw page.
ControlModelRef mxModel
Control model containing the properties.
ControlModelBase * createModelFromGuid(std::u16string_view rClassId)
Creates and returns the internal control model according to the passed MS class identifier.
OUString getServiceName() const
Returns the UNO service name needed to construct the control model.
EmbeddedControl(OUString aName)
OUString maName
Name of the control.
void convertFromProperties(const css::uno::Reference< css::awt::XControlModel > &rxCtrlModel, const ControlConverter &rConv)
bool hasModel() const
Returns true, if the internal control model exists.
bool convertProperties(const css::uno::Reference< css::awt::XControlModel > &rxCtrlModel, const ControlConverter &rConv) const
Converts all control properties and inserts them into the passed model.
css::uno::Sequence< sal_Int16 > msIndices
css::uno::Sequence< OUString > msListData
virtual bool importBinaryModel(BinaryInputStream &rInStrm) override
Derived classes import a form control model from the passed input stream.
virtual void convertProperties(PropertyMap &rPropMap, const ControlConverter &rConv) const override
Derived classes convert all control properties.
virtual bool importBinaryModel(BinaryInputStream &rInStrm) override
Derived classes import a form control model from the passed input stream.
tools::Long GetFontHeight() const
#define TOOLS_WARN_EXCEPTION(area, stream)
#define SAL_WARN(area, stream)
tools::Long const nBorder
bool equalsIgnoreAsciiCase(std::u16string_view s1, std::u16string_view s2)
sal_Int32 toInt32(std::u16string_view str, sal_Int16 radix=10)
std::basic_string_view< charT, traits > getToken(std::basic_string_view< charT, traits > sv, charT delimiter, std::size_t &position)
OOX_DLLPUBLIC::Color decodeOleColor(const GraphicHelper &rGraphicHelper, sal_uInt32 nOleColor, bool bDefaultColorBgr)
Returns the UNO RGB color from the passed encoded OLE color.
OOX_DLLPUBLIC bool importStdPic(StreamDataSequence &orGraphicData, BinaryInputStream &rInStrm)
Imports an OLE StdPic picture from the current position of the passed binary stream.
OOX_DLLPUBLIC bool importStdFont(StdFontInfo &orFontInfo, BinaryInputStream &rInStrm, bool bWithGuid)
Imports an OLE StdFont font structure from the current position of the passed binary stream.
OOX_DLLPUBLIC sal_uInt32 encodeOleColor(sal_Int32 nRgbColor)
Returns the OLE color from the passed UNO RGB color.
const sal_Int32 AX_BORDERSTYLE_SINGLE
const sal_uInt32 AX_SYSCOLOR_WINDOWFRAME
const sal_uInt32 AX_SYSCOLOR_WINDOWTEXT
const sal_Int32 AX_DISPLAYSTYLE_TOGGLE
const sal_Int32 AX_DISPLAYSTYLE_TEXT
const sal_Int32 AX_SELECTION_SINGLE
const sal_Int32 AX_DISPLAYSTYLE_LISTBOX
const sal_Int32 AX_DISPLAYSTYLE_DROPDOWN
const sal_Int32 AX_SPECIALEFFECT_SUNKEN
const sal_uInt32 AX_FLAGS_ENABLED
const sal_uInt32 AX_FLAGS_OPAQUE
const sal_Int32 AX_PICSIZE_CLIP
ApiDefaultStateMode
Specifies how a form control supports the DefaultState property.
@ API_DEFAULTSTATE_BOOLEAN
Control does not support tri-state, state is given as boolean.
@ API_DEFAULTSTATE_TRISTATE
Control supports tri-state, state is given as short.
@ API_DEFAULTSTATE_SHORT
Control does not support tri-state, state is given as short.
const sal_Int32 AX_BORDERSTYLE_NONE
const sal_uInt32 AX_SYSCOLOR_WINDOWBACK
const sal_uInt32 AX_SYSCOLOR_BUTTONFACE
const sal_Int32 AX_SHOWDROPBUTTON_NEVER
const sal_uInt32 AX_FLAGS_MULTILINE
const sal_Int32 AX_SCROLLBAR_HORIZONTAL
::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.
@ API_CONTROL_RADIOBUTTON
@ API_CONTROL_PROGRESSBAR
const sal_Int32 AX_SCROLLBAR_VERTICAL
const sal_Int32 AX_SPECIALEFFECT_RAISED
const sal_Int32 AX_PICSIZE_STRETCH
const sal_Int32 AX_DISPLAYSTYLE_COMBOBOX
const sal_Int32 AX_SELECTION_MULTI
const sal_uInt16 COMCTL_VERSION_60
const sal_Int32 AX_SCROLLBAR_NONE
const sal_uInt16 COMCTL_VERSION_50
const sal_uInt32 AX_FLAGS_HIDESELECTION
const sal_Int32 AX_SHOWDROPBUTTON_ALWAYS
const sal_Int32 AX_SPECIALEFFECT_FLAT
ApiTransparencyMode
Specifies how a form control supports transparent background.
@ Void
Transparency is enabled by missing fill color.
@ NotSupported
Control does not support transparency.
const sal_Int32 AX_DISPLAYSTYLE_OPTBUTTON
const sal_uInt32 AX_FLAGS_LOCKED
const sal_Int32 AX_SHOWDROPBUTTON_FOCUS
const sal_Int32 AX_SELECTION_EXTENDED
::std::vector< OUString > AxClassTable
const sal_uInt32 AX_FLAGS_WORDWRAP
const sal_Int32 AX_PICALIGN_CENTER
const sal_Int32 AX_PICSIZE_ZOOM
const sal_uInt32 AX_SYSCOLOR_BUTTONTEXT
const sal_Int32 AX_DISPLAYSTYLE_CHECKBOX
void setFlag(Type &ornBitField, Type nMask, bool bSet=true)
Sets or clears (according to bSet) all set bits of nMask in ornBitField.
css::uno::Sequence< sal_Int8 > StreamDataSequence
bool getFlag(Type nBitField, Type nMask)
Returns true, if at least one of the bits set in nMask is set in nBitField.
AxFontFlags mnFontEffects
Font effect flags.
bool importBinaryModel(BinaryInputStream &rInStrm)
Reads the font data settings from the passed input stream.
bool mbDblUnderline
True = double underline style (legacy VML drawing controls only).
sal_Int32 mnFontCharSet
Windows character set of the font.
sal_Int16 getHeightPoints() const
Converts the internal representation of the font height to points.
sal_Int32 mnFontHeight
Height of the font (not really twips, see code).
void exportBinaryModel(BinaryOutputStream &rOutStrm)
AxHorizontalAlign mnHorAlign
Horizontal text alignment.
OUString maFontName
Name of the used font.
void setHeightPoints(sal_Int16 nPoints)
Converts the passed font height from points to the internal representation.
constexpr OUStringLiteral PROP_TextColor
constexpr OUStringLiteral PROP_BorderColor
constexpr OUStringLiteral PROP_FontStrikeout
constexpr OUStringLiteral PROP_FontUnderline
constexpr OUStringLiteral PROP_Height
constexpr OUStringLiteral PROP_FontHeight
constexpr OUStringLiteral PROP_FontWeight
constexpr OUStringLiteral PROP_FontSlant
constexpr OUStringLiteral PROP_FontCharset
constexpr OUStringLiteral PROP_SymbolColor
constexpr OUStringLiteral PROP_FontName
constexpr OUStringLiteral PROP_Width