25#include <com/sun/star/uno/XComponentContext.hpp>
26#include <com/sun/star/lang/XMultiServiceFactory.hpp>
27#include <com/sun/star/container/XNameContainer.hpp>
28#include <com/sun/star/beans/XPropertySet.hpp>
29#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
30#include <com/sun/star/awt/XControlModel.hpp>
31#include <com/sun/star/awt/FontDescriptor.hpp>
32#include <com/sun/star/awt/FontEmphasisMark.hpp>
33#include <com/sun/star/awt/FontRelief.hpp>
34#include <com/sun/star/xml/input/XRoot.hpp>
35#include <com/sun/star/xml/sax/SAXException.hpp>
36#include <com/sun/star/container/ElementExistException.hpp>
37#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
38#include <osl/diagnose.h>
47inline sal_Int32
toInt32( std::u16string_view rStr )
50 if (rStr.size() > 2 && rStr[ 0 ] ==
'0' && rStr[ 1 ] ==
'x')
58 sal_Bool * pRet, OUString
const & rAttrName,
59 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
62 OUString aValue( xAttributes->getValueByUidName( nUid, rAttrName ) );
63 if (!aValue.isEmpty())
65 if ( aValue ==
"true" )
70 else if ( aValue ==
"false" )
77 throw css::xml::sax::SAXException(
78 rAttrName +
": no boolean value (true|false)!",
79 css::uno::Reference<css::uno::XInterface>(), css::uno::Any() );
86 OUString * pRet, OUString
const & rAttrName,
87 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
90 *pRet = xAttributes->getValueByUidName( nUid, rAttrName );
91 return (!pRet->isEmpty());
95 sal_Int32 * pRet, OUString
const & rAttrName,
96 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
99 OUString aValue( xAttributes->getValueByUidName( nUid, rAttrName ) );
100 if (!aValue.isEmpty())
111 :
public ::cppu::WeakImplHelper< css::xml::input::XRoot >
115 css::uno::Reference< css::uno::XComponentContext >
_xContext;
116 css::uno::Reference< css::util::XNumberFormatsSupplier >
_xSupplier;
119 std::shared_ptr< std::vector< css::uno::Reference< css::xml::input::XElement > > >
_pStyles;
121 css::uno::Reference< css::frame::XModel >
_xDoc;
129 sal_Int32 nUid, std::u16string_view rLocalName )
const
131 return ((
XMLNS_SCRIPT_UID == nUid && (rLocalName ==
u"event" || rLocalName ==
u"listener-event" )) ||
136 OUString
const & rStyleId,
137 css::uno::Reference< css::xml::input::XElement >
const & xStyle );
138 css::uno::Reference< css::xml::input::XElement >
getStyle(
139 std::u16string_view rStyleId )
const;
141 css::uno::Reference< css::uno::XComponentContext >
143 css::uno::Reference< css::util::XNumberFormatsSupplier >
147 css::uno::Reference<css::uno::XComponentContext> xContext,
148 css::uno::Reference<css::container::XNameContainer>
149 const & xDialogModel,
150 std::shared_ptr< std::vector< OUString > > pStyleNames,
151 std::shared_ptr< std::vector< css::uno::Reference< css::xml::input::XElement > > > pStyles,
152 css::uno::Reference<css::frame::XModel> xDoc )
163 ::
cppu::WeakImplHelper< css::xml::input::XRoot >()
180 css::uno::Reference< css::xml::input::XNamespaceMapping >
181 const & xNamespaceMapping )
override;
184 OUString
const & rTarget, OUString
const & rData )
override;
186 css::uno::Reference< css::xml::sax::XLocator >
const & xLocator )
override;
187 virtual css::uno::Reference< css::xml::input::XElement >
189 sal_Int32 nUid, OUString
const & rLocalName,
190 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
194 :
public ::cppu::WeakImplHelper< css::xml::input::XElement >
204 const css::uno::Reference< css::xml::input::XAttributes >
_xAttributes;
208 sal_Int32 nUid, OUString aLocalName,
209 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
214 virtual css::uno::Reference<css::xml::input::XElement> SAL_CALL
getParent()
override;
216 virtual sal_Int32 SAL_CALL
getUid()
override;
217 virtual css::uno::Reference< css::xml::input::XAttributes >
220 OUString
const & rWhitespaces )
override;
221 virtual void SAL_CALL
characters( OUString
const & rChars )
override;
223 OUString
const & Target, OUString
const & Data )
override;
225 virtual css::uno::Reference< css::xml::input::XElement >
227 sal_Int32 nUid, OUString
const & rLocalName,
228 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
235 virtual css::uno::Reference< css::xml::input::XElement >
237 sal_Int32 nUid, OUString
const & rLocalName,
238 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
241 OUString
const & rLocalName,
242 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
245 rLocalName, xAttributes, pParent, pImport )
267 css::uno::Reference< css::beans::XPropertySet >
const & xProps )
const;
270 virtual css::uno::Reference< css::xml::input::XElement >
272 sal_Int32 nUid, OUString
const & rLocalName,
273 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
277 css::uno::Reference< css::beans::XPropertySet >
const & xProps );
279 css::uno::Reference< css::beans::XPropertySet >
const & xProps );
281 css::uno::Reference< css::beans::XPropertySet >
const & xProps );
283 css::uno::Reference< css::beans::XPropertySet >
const & xProps );
285 css::uno::Reference< css::beans::XPropertySet >
const & xProps );
287 css::uno::Reference< css::beans::XPropertySet >
const & xProps );
289 css::uno::Reference< css::beans::XPropertySet >
const & xProps );
292 OUString
const & rLocalName,
293 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
296 rLocalName, xAttributes, pParent, pImport )
322 virtual css::uno::Reference< css::xml::input::XElement >
324 sal_Int32 nUid, OUString
const & rLocalName,
325 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
328 OUString
const & rLocalName,
329 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
331 bool aAllowEmptyItems)
333 rLocalName, xAttributes, pParent, pImport )
346 std::vector< css::uno::Reference< css::xml::input::XElement > >
_events;
349 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
351 OUString
const& rDefaultModel,
352 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
353 css::uno::Reference< css::xml::input::XElement >
getStyle(
354 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
356 std::vector<css::uno::Reference< css::xml::input::XElement> >&
getEvents()
360 OUString
const & rLocalName,
361 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
375 css::uno::Reference< css::beans::XPropertySet > xControlModel_,
387 sal_Int32 nBaseX, sal_Int32 nBaseY,
388 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
389 bool supportPrintable =
true );
391 std::vector< css::uno::Reference< css::xml::input::XElement > >
395 OUString
const & rPropName, OUString
const & rAttrName,
396 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
398 OUString
const & rPropName, OUString
const & rAttrName,
399 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
401 OUString
const & rPropName, OUString
const & rAttrName,
402 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
404 OUString
const & rPropName, OUString
const & rAttrName,
405 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
407 OUString
const & rPropName, OUString
const & rAttrName,
408 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
411 OUString
const & rPropName, OUString
const & rAttrName,
412 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
414 OUString
const & rPropName, OUString
const & rAttrName,
415 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
417 OUString
const & rPropName, OUString
const & rAttrName,
418 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
420 OUString
const & rPropName, OUString
const & rAttrName,
421 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
423 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes );
425 OUString
const & rPropName, OUString
const & rAttrName,
426 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
428 OUString
const & rPropName, OUString
const & rAttrName,
429 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
431 OUString
const & rPropName, OUString
const & rAttrName,
432 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
434 OUString
const & rPropName, OUString
const & rAttrName,
435 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
437 OUString
const & rPropName, OUString
const & rAttrName,
438 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
440 OUString
const & rPropName, OUString
const & rAttrName,
441 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
443 OUString
const & rPropName, OUString
const & rAttrName,
444 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
446 OUString
const & rPropName, OUString
const & rAttrName,
447 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
449 OUString
const & rPropName, OUString
const & rAttrName,
450 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
452 OUString
const & rPropName, OUString
const & rAttrName,
453 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
455 OUString
const & rPropName,
456 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
458 OUString
const & rPropName, OUString
const & rAttrName,
459 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes );
467 OUString
const & rId, OUString
const & rControlName )
472 css::
uno::UNO_QUERY_THROW ), rId )
476 const css::uno::Reference< css::beans::XPropertySet >& xProps, OUString
const & rControlName )
491 css::uno::Reference<css::awt::XControlModel>::query(
494 catch(
const css::container::ElementExistException &e)
496 throw css::lang::WrappedTargetRuntimeException(
"", e.Context, css::uno::Any(e));
505 virtual css::uno::Reference< css::xml::input::XElement >
507 sal_Int32 nUid, OUString
const & rLocalName,
508 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
512 OUString
const & rLocalName,
513 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
526 sal_Int32 nUid, OUString
const & rLocalName,
527 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
529 :
ElementBase( nUid, rLocalName, xAttributes, pParent, pImport )
539 virtual css::uno::Reference< css::xml::input::XElement >
541 sal_Int32 nUid, OUString
const & rLocalName,
542 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
545 OUString
const & rLocalName,
546 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
554 virtual css::uno::Reference< css::xml::input::XElement >
556 sal_Int32 nUid, OUString
const & rLocalName,
557 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
561 OUString
const & rLocalName,
562 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
572 virtual css::uno::Reference< css::xml::input::XElement >
574 sal_Int32 nUid, OUString
const & rLocalName,
575 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
579 OUString
const & rLocalName,
580 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
589 css::uno::Reference< css::xml::input::XElement >
_popup;
591 virtual css::uno::Reference< css::xml::input::XElement >
593 sal_Int32 nUid, OUString
const & rLocalName,
594 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
598 OUString
const & rLocalName,
599 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
608 css::uno::Reference< css::xml::input::XElement >
_popup;
610 virtual css::uno::Reference< css::xml::input::XElement >
612 sal_Int32 nUid, OUString
const & rLocalName,
613 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
617 OUString
const & rLocalName,
618 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
628 virtual css::uno::Reference< css::xml::input::XElement >
630 sal_Int32 nUid, OUString
const & rLocalName,
631 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
634 OUString
const & rLocalName,
635 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
644 std::vector< css::uno::Reference< css::xml::input::XElement > >
_radios;
646 virtual css::uno::Reference< css::xml::input::XElement >
648 sal_Int32 nUid, OUString
const & rLocalName,
649 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
653 OUString
const & rLocalName,
654 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
664 std::vector< css::uno::Reference< css::xml::input::XElement > >
_radios;
666 virtual css::uno::Reference< css::xml::input::XElement >
668 sal_Int32 nUid, OUString
const & rLocalName,
669 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
673 OUString
const & rLocalName,
674 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
684 virtual css::uno::Reference< css::xml::input::XElement >
686 sal_Int32 nUid, OUString
const & rLocalName,
687 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
691 OUString
const & rLocalName,
692 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
701 virtual css::uno::Reference< css::xml::input::XElement >
703 sal_Int32 nUid, OUString
const & rLocalName,
704 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
708 OUString
const & rLocalName,
709 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
719 virtual css::uno::Reference< css::xml::input::XElement >
721 sal_Int32 nUid, OUString
const & rLocalName,
722 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
726 OUString
const & rLocalName,
727 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
737 virtual css::uno::Reference< css::xml::input::XElement >
739 sal_Int32 nUid, OUString
const & rLocalName,
740 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
744 OUString
const & rLocalName,
745 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
755 virtual css::uno::Reference< css::xml::input::XElement >
757 sal_Int32 nUid, OUString
const & rLocalName,
758 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
762 OUString
const & rLocalName,
763 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
773 virtual css::uno::Reference< css::xml::input::XElement >
775 sal_Int32 nUid, OUString
const & rLocalName,
776 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
780 OUString
const & rLocalName,
781 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
791 virtual css::uno::Reference< css::xml::input::XElement >
793 sal_Int32 nUid, OUString
const & rLocalName,
794 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
798 OUString
const & rLocalName,
799 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
809 virtual css::uno::Reference< css::xml::input::XElement >
811 sal_Int32 nUid, OUString
const & rLocalName,
812 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
816 OUString
const & rLocalName,
817 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
827 virtual css::uno::Reference< css::xml::input::XElement >
829 sal_Int32 nUid, OUString
const & rLocalName,
830 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
834 OUString
const & rLocalName,
835 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
845 virtual css::uno::Reference< css::xml::input::XElement >
847 sal_Int32 nUid, OUString
const & rLocalName,
848 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
852 OUString
const & rLocalName,
853 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
863 virtual css::uno::Reference< css::xml::input::XElement >
865 sal_Int32 nUid, OUString
const & rLocalName,
866 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
870 OUString
const & rLocalName,
871 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
881 virtual css::uno::Reference< css::xml::input::XElement >
883 sal_Int32 nUid, OUString
const & rLocalName,
884 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
888 OUString
const & rLocalName,
889 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
899 virtual css::uno::Reference< css::xml::input::XElement >
901 sal_Int32 nUid, OUString
const & rLocalName,
902 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
906 OUString
const & rLocalName,
907 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
917 virtual css::uno::Reference< css::xml::input::XElement >
919 sal_Int32 nUid, OUString
const & rLocalName,
920 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
924 OUString
const & rLocalName,
925 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
935 virtual css::uno::Reference< css::xml::input::XElement >
937 sal_Int32 nUid, OUString
const & rLocalName,
938 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
942 OUString
const & rLocalName,
943 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
953 virtual css::uno::Reference< css::xml::input::XElement >
955 sal_Int32 nUid, OUString
const & rLocalName,
956 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
960 OUString
const & rLocalName,
961 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
976 virtual css::uno::Reference< css::xml::input::XElement >
978 sal_Int32 nUid, OUString
const & rLocalName,
979 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
983 OUString
const & rLocalName,
984 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
996 virtual css::uno::Reference< css::xml::input::XElement >
998 sal_Int32 nUid, OUString
const & rLocalName,
999 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
1003 OUString
const & rLocalName,
1004 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
1018 virtual css::uno::Reference< css::xml::input::XElement >
1020 sal_Int32 nUid, OUString
const & rLocalName,
1021 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
1025 OUString
const & rLocalName,
1026 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
1037 virtual css::uno::Reference< css::xml::input::XElement >
1039 sal_Int32 nUid,::rtl::OUString
const & rLocalName,
1040 css::uno::Reference<css::xml::input::XAttributes>
const & xAttributes )
override;
1044 css::uno::Reference< css::xml::input::XAttributes >
const & xAttributes,
HRESULT createInstance(REFIID iid, Ifc **ppIfc)
BulletinBoardElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
rtl::Reference< DialogImport > mxDialogImport
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
virtual void SAL_CALL endElement() override
CheckBoxElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
css::uno::Reference< css::xml::input::XElement > _popup
ComboBoxElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual void SAL_CALL endElement() override
ControlElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
OUString getControlModelName(OUString const &rDefaultModel, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
OUString getControlId(css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
css::uno::Reference< css::xml::input::XElement > getStyle(css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
std::vector< css::uno::Reference< css::xml::input::XElement > > _events
std::vector< css::uno::Reference< css::xml::input::XElement > > & getEvents()
ControlImportContext(DialogImport *pImport, OUString const &rId, OUString const &rControlName)
ControlImportContext(DialogImport *pImport, const css::uno::Reference< css::beans::XPropertySet > &xProps, OUString const &rControlName)
CurrencyFieldElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual void SAL_CALL endElement() override
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
DateFieldElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual void SAL_CALL endElement() override
virtual css::uno::Reference< css::xml::input::XAttributes > SAL_CALL getAttributes() override
virtual OUString SAL_CALL getLocalName() override
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL getParent() override
virtual void SAL_CALL characters(OUString const &rChars) override
virtual ~ElementBase() override
const css::uno::Reference< css::xml::input::XAttributes > _xAttributes
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
virtual void SAL_CALL ignorableWhitespace(OUString const &rWhitespaces) override
virtual sal_Int32 SAL_CALL getUid() override
const OUString _aLocalName
virtual void SAL_CALL processingInstruction(OUString const &Target, OUString const &Data) override
ElementBase(sal_Int32 nUid, OUString aLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual void SAL_CALL endElement() override
virtual void SAL_CALL endElement() override
EventElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual void SAL_CALL endElement() override
FileControlElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
FixedHyperLinkElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
virtual void SAL_CALL endElement() override
virtual void SAL_CALL endElement() override
FixedLineElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
Frame(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
css::uno::Reference< css::container::XNameContainer > m_xContainer
virtual void SAL_CALL endElement() override
GridControlElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual void SAL_CALL endElement() override
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid,::rtl::OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
ImageControlElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
virtual void SAL_CALL endElement() override
bool importDataAwareProperty(OUString const &rPropName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importSelectionTypeProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importImageAlignProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importLineEndFormatProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importTimeProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
void importEvents(std::vector< css::uno::Reference< css::xml::input::XElement > > const &rEvents)
bool importGraphicOrImageProperty(OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importOrientationProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importShortProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
void importDefaults(sal_Int32 nBaseX, sal_Int32 nBaseY, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, bool supportPrintable=true)
void importScollableSettings(css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importLongProperty(sal_Int32 nOffset, OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
ImportContext(DialogImport *pImport, css::uno::Reference< css::beans::XPropertySet > xControlModel_, OUString id)
bool importDateProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importDateFormatProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importImageScaleModeProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
DialogImport *const _pImport
bool importDoubleProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importStringProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importAlignProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importButtonTypeProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importBooleanProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importVerticalAlignProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
const css::uno::Reference< css::beans::XPropertySet > & getControlModel() const
bool importLongProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importHexLongProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
bool importImagePositionProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
const css::uno::Reference< css::beans::XPropertySet > _xControlModel
bool importTimeFormatProperty(OUString const &rPropName, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes)
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
css::uno::Reference< css::container::XNameContainer > m_xContainer
MultiPage(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual void SAL_CALL endElement() override
NumericFieldElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
virtual void SAL_CALL endElement() override
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
virtual void SAL_CALL endElement() override
Page(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
css::uno::Reference< css::container::XNameContainer > m_xContainer
PatternFieldElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
virtual void SAL_CALL endElement() override
virtual void SAL_CALL endElement() override
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
ProgressBarElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
RadioElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
std::vector< css::uno::Reference< css::xml::input::XElement > > _radios
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
RadioGroupElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
void SAL_CALL endElement() override
sal_Int16 _fontEmphasisMark
void importVisualEffectStyle(css::uno::Reference< css::beans::XPropertySet > const &xProps)
void importFillColorStyle(css::uno::Reference< css::beans::XPropertySet > const &xProps)
css::awt::FontDescriptor _descr
void importFontStyle(css::uno::Reference< css::beans::XPropertySet > const &xProps)
virtual void SAL_CALL endElement() override
void setFontProperties(css::uno::Reference< css::beans::XPropertySet > const &xProps) const
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
void importTextColorStyle(css::uno::Reference< css::beans::XPropertySet > const &xProps)
void importBorderStyle(css::uno::Reference< css::beans::XPropertySet > const &xProps)
void importBackgroundColorStyle(css::uno::Reference< css::beans::XPropertySet > const &xProps)
void importTextLineColorStyle(css::uno::Reference< css::beans::XPropertySet > const &xProps)
sal_Int32 _backgroundColor
StyleElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
StylesElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
TextElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
virtual void SAL_CALL endElement() override
TextFieldElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual void SAL_CALL endElement() override
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
virtual void SAL_CALL endElement() override
TimeFieldElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
virtual void SAL_CALL endElement() override
TitledBoxElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
std::vector< css::uno::Reference< css::xml::input::XElement > > _radios
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
TreeControlElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, ElementBase *pParent, DialogImport *pImport)
virtual void SAL_CALL endElement() override
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startChildElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
WindowElement(OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, DialogImport *pImport)
virtual void SAL_CALL endElement() override
class SAL_NO_VTABLE XPropertySet
sal_Int32 toInt32(std::u16string_view str, sal_Int16 radix=10)
sal_uInt32 toUInt32(std::u16string_view str, sal_Int16 radix=10)
bool getLongAttr(sal_Int32 *pRet, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, sal_Int32 nUid)
bool getBoolAttr(sal_Bool *pRet, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, sal_Int32 nUid)
sal_Int32 toInt32(std::u16string_view rStr)
bool getStringAttr(OUString *pRet, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, sal_Int32 nUid)
sal_Int32 XMLNS_SCRIPT_UID
css::uno::Reference< css::uno::XComponentContext > _xContext
virtual css::uno::Reference< css::xml::input::XElement > SAL_CALL startRootElement(sal_Int32 nUid, OUString const &rLocalName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes) override
css::uno::Reference< css::frame::XModel > _xDoc
bool isEventElement(sal_Int32 nUid, std::u16string_view rLocalName) const
sal_Int32 XMLNS_DIALOGS_UID
virtual void SAL_CALL setDocumentLocator(css::uno::Reference< css::xml::sax::XLocator > const &xLocator) override
virtual void SAL_CALL startDocument(css::uno::Reference< css::xml::input::XNamespaceMapping > const &xNamespaceMapping) override
std::shared_ptr< std::vector< OUString > > _pStyleNames
virtual ~DialogImport() override
virtual void SAL_CALL endDocument() override
css::uno::Reference< css::uno::XComponentContext > const & getComponentContext() const
std::shared_ptr< std::vector< css::uno::Reference< css::xml::input::XElement > > > _pStyles
css::uno::Reference< css::util::XNumberFormatsSupplier > _xSupplier
css::uno::Reference< css::lang::XMultiServiceFactory > _xDialogModelFactory
virtual void SAL_CALL processingInstruction(OUString const &rTarget, OUString const &rData) override
const css::uno::Reference< css::frame::XModel > & getDocOwner() const
css::uno::Reference< css::util::XNumberFormatsSupplier > const & getNumberFormatsSupplier()
void addStyle(OUString const &rStyleId, css::uno::Reference< css::xml::input::XElement > const &xStyle)
css::uno::Reference< css::xml::input::XElement > getStyle(std::u16string_view rStyleId) const
DialogImport(const DialogImport &rOther)
DialogImport(css::uno::Reference< css::uno::XComponentContext > xContext, css::uno::Reference< css::container::XNameContainer > const &xDialogModel, std::shared_ptr< std::vector< OUString > > pStyleNames, std::shared_ptr< std::vector< css::uno::Reference< css::xml::input::XElement > > > pStyles, css::uno::Reference< css::frame::XModel > xDoc)
css::uno::Reference< css::container::XNameContainer > _xDialogModel