28#include <com/sun/star/awt/CharSet.hpp>
29#include <com/sun/star/awt/FontFamily.hpp>
30#include <com/sun/star/awt/FontPitch.hpp>
31#include <com/sun/star/awt/FontSlant.hpp>
32#include <com/sun/star/awt/FontStrikeout.hpp>
33#include <com/sun/star/awt/FontType.hpp>
34#include <com/sun/star/awt/FontUnderline.hpp>
35#include <com/sun/star/awt/ImagePosition.hpp>
36#include <com/sun/star/awt/ImageScaleMode.hpp>
37#include <com/sun/star/awt/LineEndFormat.hpp>
38#include <com/sun/star/awt/PushButtonType.hpp>
39#include <com/sun/star/awt/VisualEffect.hpp>
40#include <com/sun/star/frame/XModel.hpp>
41#include <com/sun/star/util/Date.hpp>
42#include <com/sun/star/util/Time.hpp>
46#include <com/sun/star/io/XPersistObject.hpp>
48#include <com/sun/star/script/XScriptEventsSupplier.hpp>
49#include <com/sun/star/script/ScriptEventDescriptor.hpp>
51#include <com/sun/star/style/VerticalAlignment.hpp>
53#include <com/sun/star/lang/XMultiServiceFactory.hpp>
54#include <com/sun/star/lang/XServiceInfo.hpp>
55#include <com/sun/star/lang/Locale.hpp>
57#include <com/sun/star/view/SelectionType.hpp>
59#include <com/sun/star/form/binding/XListEntrySink.hpp>
60#include <com/sun/star/form/binding/XBindableValue.hpp>
61#include <com/sun/star/table/CellAddress.hpp>
62#include <com/sun/star/table/CellRangeAddress.hpp>
63#include <com/sun/star/document/XStorageBasedDocument.hpp>
64#include <com/sun/star/document/GraphicStorageHandler.hpp>
65#include <com/sun/star/document/XGraphicStorageHandler.hpp>
66#include <com/sun/star/graphic/XGraphic.hpp>
67#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
129 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected border value!" );
139 case awt::VisualEffect::NONE:
142 case awt::VisualEffect::LOOK3D:
145 case awt::VisualEffect::FLAT:
149 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected visual effect value!" );
157 awt::FontDescriptor def_descr;
160 if (def_descr.Name !=
_descr.Name)
165 if (def_descr.Height !=
_descr.Height)
170 if (def_descr.Width !=
_descr.Width)
175 if (def_descr.StyleName !=
_descr.StyleName)
180 if (def_descr.Family !=
_descr.Family)
184 case awt::FontFamily::DECORATIVE:
187 case awt::FontFamily::MODERN:
190 case awt::FontFamily::ROMAN:
193 case awt::FontFamily::SCRIPT:
196 case awt::FontFamily::SWISS:
199 case awt::FontFamily::SYSTEM:
203 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected font-family!" );
208 if (def_descr.CharSet !=
_descr.CharSet)
212 case awt::CharSet::ANSI:
215 case awt::CharSet::MAC:
218 case awt::CharSet::IBMPC_437:
221 case awt::CharSet::IBMPC_850:
224 case awt::CharSet::IBMPC_860:
227 case awt::CharSet::IBMPC_861:
230 case awt::CharSet::IBMPC_863:
233 case awt::CharSet::IBMPC_865:
236 case awt::CharSet::SYSTEM:
239 case awt::CharSet::SYMBOL:
243 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected font-charset!" );
248 if (def_descr.Pitch !=
_descr.Pitch)
252 case awt::FontPitch::FIXED:
255 case awt::FontPitch::VARIABLE:
259 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected font-pitch!" );
264 if (def_descr.CharacterWidth !=
_descr.CharacterWidth)
269 if (def_descr.Weight !=
_descr.Weight)
274 if (def_descr.Slant !=
_descr.Slant)
278 case awt::FontSlant_OBLIQUE:
281 case awt::FontSlant_ITALIC:
284 case awt::FontSlant_REVERSE_OBLIQUE:
287 case awt::FontSlant_REVERSE_ITALIC:
291 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected font-slant!" );
296 if (def_descr.Underline !=
_descr.Underline)
300 case awt::FontUnderline::SINGLE:
303 case awt::FontUnderline::DOUBLE:
306 case awt::FontUnderline::DOTTED:
309 case awt::FontUnderline::DASH:
312 case awt::FontUnderline::LONGDASH:
315 case awt::FontUnderline::DASHDOT:
318 case awt::FontUnderline::DASHDOTDOT:
321 case awt::FontUnderline::SMALLWAVE:
324 case awt::FontUnderline::WAVE:
327 case awt::FontUnderline::DOUBLEWAVE:
330 case awt::FontUnderline::BOLD:
333 case awt::FontUnderline::BOLDDOTTED:
336 case awt::FontUnderline::BOLDDASH:
339 case awt::FontUnderline::BOLDLONGDASH:
342 case awt::FontUnderline::BOLDDASHDOT:
345 case awt::FontUnderline::BOLDDASHDOTDOT:
348 case awt::FontUnderline::BOLDWAVE:
352 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected font-underline!" );
357 if (def_descr.Strikeout !=
_descr.Strikeout)
361 case awt::FontStrikeout::SINGLE:
364 case awt::FontStrikeout::DOUBLE:
367 case awt::FontStrikeout::BOLD:
370 case awt::FontStrikeout::SLASH:
373 case awt::FontStrikeout::X:
377 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected font-strikeout!" );
382 if (def_descr.Orientation !=
_descr.Orientation)
387 if (
bool(def_descr.Kerning) !=
bool(
_descr.Kerning))
392 if (
bool(def_descr.WordLineMode) !=
bool(
_descr.WordLineMode))
397 if (def_descr.Type !=
_descr.Type)
401 case awt::FontType::RASTER:
404 case awt::FontType::DEVICE:
407 case awt::FontType::SCALABLE:
411 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected font-type!" );
420 case awt::FontRelief::NONE:
422 case awt::FontRelief::EMBOSSED:
425 case awt::FontRelief::ENGRAVED:
429 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected font-relief!" );
435 case awt::FontEmphasisMark::NONE:
437 case awt::FontEmphasisMark::DOT:
440 case awt::FontEmphasisMark::CIRCLE:
443 case awt::FontEmphasisMark::DISC:
446 case awt::FontEmphasisMark::ACCENT:
449 case awt::FontEmphasisMark::ABOVE:
452 case awt::FontEmphasisMark::BELOW:
456 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected font-emphasismark!" );
465 Reference< beans::XPropertySet >
const & xFormatProperties )
469 OSL_VERIFY( xFormatProperties->getPropertyValue(
"FormatString" ) >>= sFormat );
470 OSL_VERIFY( xFormatProperties->getPropertyValue(
"Locale" ) >>= locale );
495 if (beans::PropertyState_DEFAULT_VALUE !=
_xPropState->getPropertyState( rPropName ))
497 return _xProps->getPropertyValue( rPropName );
503 OUString
const & rPropName, OUString
const & rAttrName )
505 if (beans::PropertyState_DEFAULT_VALUE !=
513 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected property type!" );
519 if (beans::PropertyState_DEFAULT_VALUE !=
_xPropState->getPropertyState( rPropName ))
531 if (beans::PropertyState_DEFAULT_VALUE ==
_xPropState->getPropertyState( rPropName ))
576 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected date format!" );
581 OSL_FAIL(
"### unexpected property type!" );
586 if (beans::PropertyState_DEFAULT_VALUE ==
_xPropState->getPropertyState( rPropName ))
599 OSL_FAIL(
"### internal error" );
602 OSL_FAIL(
"### unexpected property type!" );
607 if (beans::PropertyState_DEFAULT_VALUE ==
_xPropState->getPropertyState( rPropName ))
620 OSL_FAIL(
"### internal error" );
623 OSL_FAIL(
"### unexpected property type!" );
628 if (beans::PropertyState_DEFAULT_VALUE ==
_xPropState->getPropertyState( rPropName ))
655 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected time format!" );
660 OSL_FAIL(
"### unexpected property type!" );
665 if (beans::PropertyState_DEFAULT_VALUE ==
_xPropState->getPropertyState( rPropName ))
683 SAL_WARN(
"xmlscript.xmldlg",
"### illegal alignment value!" );
688 OSL_FAIL(
"### unexpected property type!" );
693 if (beans::PropertyState_DEFAULT_VALUE ==
_xPropState->getPropertyState( rPropName ))
699 style::VerticalAlignment eAlign;
703 case style::VerticalAlignment_TOP:
706 case style::VerticalAlignment_MIDDLE:
709 case style::VerticalAlignment_BOTTOM:
713 SAL_WARN(
"xmlscript.xmldlg",
"### illegal vertical alignment value!" );
718 OSL_FAIL(
"### unexpected property type!" );
724 if (beans::PropertyState_DEFAULT_VALUE !=
_xPropState->getPropertyState(
"Graphic"))
726 uno::Reference<graphic::XGraphic> xGraphic;
727 _xProps->getPropertyValue(
"Graphic") >>= xGraphic;
730 Reference< document::XStorageBasedDocument > xDocStorage(
_xDocument, UNO_QUERY );
731 if ( xDocStorage.is() )
733 Reference<XComponentContext> xContext = ::comphelper::getProcessComponentContext();
734 uno::Reference<document::XGraphicStorageHandler> xGraphicStorageHandler;
735 xGraphicStorageHandler.set(document::GraphicStorageHandler::createWithStorage(xContext, xDocStorage->getDocumentStorage()));
736 if (xGraphicStorageHandler.is())
738 sURL = xGraphicStorageHandler->saveGraphic(xGraphic);
745 && beans::PropertyState_DEFAULT_VALUE !=
_xPropState->getPropertyState(
"ImageURL"))
747 _xProps->getPropertyValue(
"ImageURL") >>= sURL;
755 if (beans::PropertyState_DEFAULT_VALUE ==
_xPropState->getPropertyState( rPropName ))
776 SAL_WARN(
"xmlscript.xmldlg",
"### illegal image alignment value!" );
781 OSL_FAIL(
"### unexpected property type!" );
786 if (beans::PropertyState_DEFAULT_VALUE ==
_xPropState->getPropertyState( rPropName ))
796 case awt::ImagePosition::LeftTop:
799 case awt::ImagePosition::LeftCenter:
802 case awt::ImagePosition::LeftBottom:
805 case awt::ImagePosition::RightTop:
808 case awt::ImagePosition::RightCenter:
811 case awt::ImagePosition::RightBottom:
814 case awt::ImagePosition::AboveLeft:
817 case awt::ImagePosition::AboveCenter:
820 case awt::ImagePosition::AboveRight:
823 case awt::ImagePosition::BelowLeft:
826 case awt::ImagePosition::BelowCenter:
829 case awt::ImagePosition::BelowRight:
832 case awt::ImagePosition::Centered:
836 SAL_WARN(
"xmlscript.xmldlg",
"### illegal image position value!" );
843 if (beans::PropertyState_DEFAULT_VALUE ==
_xPropState->getPropertyState( rPropName ))
851 switch (
static_cast<awt::PushButtonType
>(*
n))
853 case awt::PushButtonType_STANDARD:
856 case awt::PushButtonType_OK:
859 case awt::PushButtonType_CANCEL:
862 case awt::PushButtonType_HELP:
866 SAL_WARN(
"xmlscript.xmldlg",
"### illegal button-type value!" );
873 if (beans::PropertyState_DEFAULT_VALUE ==
_xPropState->getPropertyState( rPropName ))
890 SAL_WARN(
"xmlscript.xmldlg",
"### illegal orientation value!" );
897 if (beans::PropertyState_DEFAULT_VALUE ==
_xPropState->getPropertyState( rPropName ))
907 case awt::LineEndFormat::CARRIAGE_RETURN:
910 case awt::LineEndFormat::LINE_FEED:
913 case awt::LineEndFormat::CARRIAGE_RETURN_LINE_FEED:
917 SAL_WARN(
"xmlscript.xmldlg",
"### illegal line end format value!" );
924 Reference< lang::XMultiServiceFactory > xFac;
928 Reference< form::binding::XBindableValue > xBinding(
_xProps, UNO_QUERY );
934 Reference< beans::XPropertySet > xConvertor( xFac->createInstance(
"com.sun.star.table.CellAddressConversion" ), uno::UNO_QUERY );
935 Reference< beans::XPropertySet > xBindable( xBinding->getValueBinding(), UNO_QUERY );
936 if ( xBindable.is() )
938 table::CellAddress aAddress;
939 xBindable->getPropertyValue(
"BoundCell" ) >>= aAddress;
940 xConvertor->setPropertyValue(
"Address",
Any( aAddress ) );
942 xConvertor->getPropertyValue(
"PersistentRepresentation" ) >>= sAddress;
943 if ( !sAddress.isEmpty() )
946 SAL_INFO(
"xmlscript.xmldlg",
"*** Bindable value " << sAddress );
950 catch( uno::Exception& )
954 Reference< form::binding::XListEntrySink > xEntrySink(
_xProps, UNO_QUERY );
958 Reference< beans::XPropertySet > xListSource( xEntrySink->getListEntrySource(), UNO_QUERY );
959 if ( !xListSource.is() )
964 Reference< beans::XPropertySet > xConvertor( xFac->createInstance(
"com.sun.star.table.CellRangeAddressConversion" ), uno::UNO_QUERY );
966 table::CellRangeAddress aAddress;
967 xListSource->getPropertyValue(
"CellRange" ) >>= aAddress;
970 xConvertor->setPropertyValue(
"Address",
Any( aAddress ) );
971 xConvertor->getPropertyValue(
"PersistentRepresentation" ) >>= sAddress;
972 SAL_INFO(
"xmlscript.xmldlg",
"**** cell range source list " << sAddress );
973 if ( !sAddress.isEmpty() )
976 catch( uno::Exception& )
983 if (beans::PropertyState_DEFAULT_VALUE ==
_xPropState->getPropertyState( rPropName ))
986 Any aSelectionType (
_xProps->getPropertyValue( rPropName ) );
988 if (aSelectionType.getValueTypeClass() != TypeClass_ENUM ||
992 ::view::SelectionType eSelectionType;
993 aSelectionType >>= eSelectionType;
995 switch (eSelectionType)
997 case ::view::SelectionType_NONE:
1000 case ::view::SelectionType_SINGLE:
1003 case ::view::SelectionType_MULTI:
1006 case ::view::SelectionType_RANGE:
1010 SAL_WARN(
"xmlscript.xmldlg",
"### illegal selection type value!" );
1033 if (beans::PropertyState_DEFAULT_VALUE ==
_xPropState->getPropertyState( rPropName ))
1036 Any aImageScaleMode(
_xProps->getPropertyValue( rPropName ) );
1038 if (aImageScaleMode.getValueTypeClass() != TypeClass_SHORT)
1041 sal_Int16 nImageScaleMode = 0;
1042 aImageScaleMode >>= nImageScaleMode;
1044 switch(nImageScaleMode)
1046 case ::awt::ImageScaleMode::NONE:
1049 case ::awt::ImageScaleMode::ISOTROPIC:
1052 case ::awt::ImageScaleMode::ANISOTROPIC:
1056 OSL_ENSURE(
false,
"### illegal image scale mode value.");
1075 Reference< lang::XServiceInfo > xSrvInfo(
_xProps, UNO_QUERY );
1076 if ( xSrvInfo.is() && xSrvInfo->supportsService(
"com.sun.star.form.FormComponent" ) )
1078 Reference< io::XPersistObject > xPersist(
_xProps, UNO_QUERY );
1079 if ( xPersist.is() )
1081 OUString sCtrlName = xPersist->getServiceName();
1082 if ( !sCtrlName.isEmpty() )
1089 bool bEnabled =
false;
1090 if (
_xProps->getPropertyValue(
"Enabled" ) >>= bEnabled)
1099 SAL_WARN(
"xmlscript.xmldlg",
"unexpected property type for \"Enabled\": not bool!" );
1102 if (supportVisible)
try
1120 a =
_xProps->getPropertyValue(
"PositionX" );
1125 a =
_xProps->getPropertyValue(
"PositionY" );
1130 a =
_xProps->getPropertyValue(
"Width" );
1135 a =
_xProps->getPropertyValue(
"Height" );
1141 if (supportPrintable)
1153 Reference< script::XScriptEventsSupplier > xSupplier(
_xProps, UNO_QUERY );
1154 if (!xSupplier.is())
1157 Reference< container::XNameContainer > xEvents( xSupplier->getEvents() );
1161 const Sequence< OUString > aNames( xEvents->getElementNames() );
1162 for (
const auto& rName : aNames )
1164 script::ScriptEventDescriptor descr;
1165 if (xEvents->getByName( rName ) >>= descr)
1168 descr.EventMethod.isEmpty() ||
1169 descr.ScriptCode.isEmpty() ||
1170 descr.ScriptType.isEmpty() ,
"xmlscript.xmldlg",
"### invalid event descr!" );
1172 OUString aEventName;
1174 if (descr.AddListenerParam.isEmpty())
1180 if (descr.EventMethod.equalsAscii(
p->second) &&
1181 descr.ListenerType.equalsAscii(
p->first))
1183 aEventName = OStringToOUString(
p->third, RTL_TEXTENCODING_ASCII_US );
1192 if (!aEventName.isEmpty())
1203 if (!descr.AddListenerParam.isEmpty())
1208 if ( descr.ScriptType ==
"StarBasic" )
1211 sal_Int32
nIndex = descr.ScriptCode.indexOf(
':' );
1234 SAL_WARN(
"xmlscript.xmldlg",
"### unexpected event type in container!" );
1241 awt::FontDescriptor
const & f1 = style1.
_descr;
1242 awt::FontDescriptor
const & f2 = style2.
_descr;
1244 f1.Name == f2.Name &&
1245 f1.Height == f2.Height &&
1246 f1.Width == f2.Width &&
1247 f1.StyleName == f2.StyleName &&
1248 f1.Family == f2.Family &&
1249 f1.CharSet == f2.CharSet &&
1250 f1.Pitch == f2.Pitch &&
1251 f1.CharacterWidth == f2.CharacterWidth &&
1252 f1.Weight == f2.Weight &&
1253 f1.Slant == f2.Slant &&
1254 f1.Underline == f2.Underline &&
1255 f1.Strikeout == f2.Strikeout &&
1256 f1.Orientation == f2.Orientation &&
1257 bool(f1.Kerning) ==
bool(f2.Kerning) &&
1258 bool(f1.WordLineMode) ==
bool(f2.WordLineMode) &&
1259 f1.Type == f2.Type &&
1273 for (
auto & rExistingStyle :
_styles)
1275 short demanded_defaults = ~rStyle._set & rStyle.
_all;
1277 if ((~rExistingStyle._set & demanded_defaults) == demanded_defaults &&
1278 (rStyle.
_set & (rExistingStyle._all & ~rExistingStyle._set)) == 0)
1280 short bset = rStyle.
_set & rExistingStyle._set;
1285 rStyle.
_textColor != rExistingStyle._textColor)
1287 if ((bset & 0x20) &&
1290 if ((bset & 0x10) &&
1291 rStyle.
_fillColor != rExistingStyle._fillColor)
1294 (rStyle.
_border != rExistingStyle._border ||
1301 if ((bset & 0x40) &&
1306 short bnset = rStyle.
_set & ~rExistingStyle._set;
1310 rExistingStyle._textColor = rStyle.
_textColor;
1314 rExistingStyle._fillColor = rStyle.
_fillColor;
1316 rExistingStyle._border = rStyle.
_border;
1320 rExistingStyle._descr = rStyle.
_descr;
1327 rExistingStyle._all |= rStyle.
_all;
1328 rExistingStyle._set |= rStyle.
_set;
1330 return rExistingStyle._id;
1335 Style aNewStyle( rStyle );
1336 aNewStyle.
_id = OUString::number(
_styles.size() );
1337 _styles.push_back( aNewStyle );
1351 xOut->ignorableWhitespace( OUString() );
1352 xOut->startElement( aStylesName, Reference< xml::sax::XAttributeList >() );
1356 Reference< xml::sax::XAttributeList > xAttr( _style.createElement() );
1359 xOut->ignorableWhitespace( OUString() );
1360 xOut->endElement( aStylesName );
1364 Reference< xml::sax::XExtendedDocumentHandler >
const & xOut,
1365 Reference< container::XNameContainer >
const & xDialogModel,
1366 Reference< frame::XModel >
const & xDocument )
1370 Reference< beans::XPropertySet > xProps( xDialogModel, UNO_QUERY );
1371 OSL_ASSERT( xProps.is() );
1372 Reference< beans::XPropertyState > xPropState( xProps, UNO_QUERY );
1373 OSL_ASSERT( xPropState.is() );
1376 pElem->readBullitinBoard( &all_styles );
1378 xOut->startDocument();
1381 "<!DOCTYPE dlg:window PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\""
1382 " \"dialog.dtd\">" );
1383 xOut->ignorableWhitespace( OUString() );
1387 pWindow->readDialogModel( &all_styles );
1388 xOut->ignorableWhitespace( OUString() );
1389 xOut->startElement( aWindowName, pWindow );
1391 pWindow->dumpSubElements( xOut );
1393 all_styles.
dump( xOut );
1395 if ( xDialogModel->getElementNames().hasElements() )
1399 xOut->ignorableWhitespace( OUString() );
1400 xOut->startElement( aBBoardName, pElem );
1402 pElem->dumpSubElements( xOut );
1404 xOut->ignorableWhitespace( OUString() );
1405 xOut->endElement( aBBoardName );
1409 xOut->ignorableWhitespace( OUString() );
1410 xOut->endElement( aWindowName );
1412 xOut->endDocument();
sal_Int32 GetDate() const
OUString getLanguage() const
const OUString & getBcp47(bool bResolveSystem=true) const
OUString getCountry() const
void readBoolAttr(OUString const &rPropName, OUString const &rAttrName)
css::uno::Reference< css::beans::XPropertyState > _xPropState
void readTimeAttr(OUString const &rPropName, OUString const &rAttrName)
void readLongAttr(OUString const &rPropName, OUString const &rAttrName, bool forceAttribute=false)
void readDateAttr(OUString const &rPropName, OUString const &rAttrName)
void readImageOrGraphicAttr(OUString const &rAttrName)
void readDataAwareAttr(OUString const &rAttrName)
void readDateFormatAttr(OUString const &rPropName, OUString const &rAttrName)
void readImageAlignAttr(OUString const &rPropName, OUString const &rAttrName)
void readAlignAttr(OUString const &rPropName, OUString const &rAttrName)
void readShortAttr(OUString const &rPropName, OUString const &rAttrName)
css::uno::Reference< css::frame::XModel > _xDocument
void readSelectionTypeAttr(OUString const &rPropName, OUString const &rAttrName)
void readStringAttr(OUString const &rPropName, OUString const &rAttrName)
void readLineEndFormatAttr(OUString const &rPropName, OUString const &rAttrName)
void readTimeFormatAttr(OUString const &rPropName, OUString const &rAttrName)
void readVerticalAlignAttr(OUString const &rPropName, OUString const &rAttrName)
void addNumberFormatAttr(css::uno::Reference< css::beans::XPropertySet > const &xFormatProperties)
void readButtonTypeAttr(OUString const &rPropName, OUString const &rAttrName)
void readDefaults(bool supportPrintable=true, bool supportVisible=true)
css::uno::Reference< css::beans::XPropertySet > _xProps
void readHexLongAttr(OUString const &rPropName, OUString const &rAttrName)
void readScrollableSettings()
ElementDescriptor(css::uno::Reference< css::beans::XPropertySet > xProps, css::uno::Reference< css::beans::XPropertyState > xPropState, OUString const &name, css::uno::Reference< css::frame::XModel > xDocument)
void readOrientationAttr(OUString const &rPropName, OUString const &rAttrName)
bool readProp(T *ret, OUString const &rPropName)
void readImagePositionAttr(OUString const &rPropName, OUString const &rAttrName)
void readImageScaleModeAttr(OUString const &rPropName, OUString const &rAttrName)
::std::vector< Style > _styles
OUString getStyleId(Style const &rStyle)
void dump(css::uno::Reference< css::xml::sax::XExtendedDocumentHandler > const &xOut)
void addAttribute(OUString const &rAttrName, OUString const &rValue)
Adds an attribute to elements.
void addSubElement(css::uno::Reference< css::xml::sax::XAttributeList > const &xElem)
Adds a sub element of element.
#define DBG_UNHANDLED_EXCEPTION(...)
#define SAL_WARN_IF(condition, area, stream)
#define SAL_WARN(area, stream)
#define SAL_INFO(area, stream)
detail::Optional< sal_uInt32 >::type tryAccess< sal_uInt32 >(css::uno::Any const &any)
detail::Optional< sal_Int32 >::type tryAccess< sal_Int32 >(css::uno::Any const &any)
detail::Optional< sal_Int16 >::type tryAccess< sal_Int16 >(css::uno::Any const &any)
static bool equalFont(Style const &style1, Style const &style2)
StringTriple const *const g_pEventTranslations
const sal_Int16 BORDER_SIMPLE
uno::Reference< io::XInputStreamProvider > exportDialogModel(uno::Reference< container::XNameContainer > const &xDialogModel, uno::Reference< uno::XComponentContext > const &xContext, uno::Reference< XModel > const &xDocument)
const sal_Int16 BORDER_SIMPLE_COLOR
const sal_Int16 BORDER_3D
const sal_Int16 BORDER_NONE
css::uno::Reference< css::xml::sax::XAttributeList > createElement()
css::awt::FontDescriptor _descr
sal_uInt16 _fontEmphasisMark
sal_uInt32 _textLineColor
sal_uInt32 _backgroundColor
#define XMLNS_SCRIPT_PREFIX
#define XMLNS_DIALOGS_PREFIX