30#include <com/sun/star/lang/XMultiServiceFactory.hpp>
31#include <com/sun/star/presentation/XPresentationSupplier.hpp>
32#include <com/sun/star/presentation/XCustomPresentationSupplier.hpp>
33#include <com/sun/star/geometry/RealPoint2D.hpp>
34#include <com/sun/star/office/XAnnotationAccess.hpp>
35#include <com/sun/star/uno/Any.hxx>
37#include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
38#include <com/sun/star/drawing/XMasterPagesSupplier.hpp>
39#include <com/sun/star/presentation/XHandoutMasterSupplier.hpp>
40#include <com/sun/star/container/XIndexContainer.hpp>
41#include <com/sun/star/view/PaperOrientation.hpp>
42#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
44#include <com/sun/star/form/XFormsSupplier2.hpp>
45#include <com/sun/star/presentation/XPresentationPage.hpp>
46#include <com/sun/star/drawing/XMasterPageTarget.hpp>
47#include <com/sun/star/text/XText.hpp>
48#include <com/sun/star/animations/XAnimationNodeSupplier.hpp>
49#include <com/sun/star/container/XNamed.hpp>
50#include <com/sun/star/util/Duration.hpp>
51#include <com/sun/star/util/MeasureUnit.hpp>
52#include <rtl/ustrbuf.hxx>
73#include <com/sun/star/document/XDocumentProperties.hpp>
74#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
75#include <com/sun/star/util/Color.hpp>
106 void SetName(
const OUString& rStr);
122 const Reference<XDrawPage>& xPage)
129 meOrientation(rExp.IsDraw() ? view::PaperOrientation_PORTRAIT : view::PaperOrientation_LANDSCAPE)
131 Reference <beans::XPropertySet> xPropSet(xPage, UNO_QUERY);
136 Reference< beans::XPropertySetInfo > xPropsInfo( xPropSet->getPropertySetInfo() );
137 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"BorderBottom"))
139 aAny = xPropSet->getPropertyValue(
"BorderBottom");
142 aAny = xPropSet->getPropertyValue(
"BorderLeft");
145 aAny = xPropSet->getPropertyValue(
"BorderRight");
148 aAny = xPropSet->getPropertyValue(
"BorderTop");
152 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"Width"))
154 aAny = xPropSet->getPropertyValue(
"Width");
157 aAny = xPropSet->getPropertyValue(
"Height");
161 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"Orientation"))
163 aAny = xPropSet->getPropertyValue(
"Orientation");
168 Reference <container::XNamed> xMasterNamed(xPage, UNO_QUERY);
169 if(xMasterNamed.is())
191#define IMP_AUTOLAYOUT_INFO_MAX (35L)
231 , mpPageMasterInfo(pInf)
237 Size aPageSize(28000, 21000);
238 Size aPageInnerSize(28000, 21000);
244 aPageInnerSize = aPageSize;
250 Point aTitlePos(aPagePos);
251 Size aTitleSize(aPageInnerSize);
256 Point aPos = aTitlePos;
258 Size aPartArea = aTitleSize;
262 double fH =
static_cast<double>(aPartArea.
Width()) / aPageSize.
Width();
263 double fV =
static_cast<double>(aPartArea.
Height()) / aPageSize.
Height();
270 aPos.AdjustX((aPartArea.
Width() - aSize.
Width()) / 2);
284 Point aLPos(aPagePos);
285 Size aLSize(aPageInnerSize);
293 aTitlePos.setX( (aClassicTPos.X() + aClassicTSize.
Width()) - aClassicTSize.
Height() );
294 aTitlePos.setY( aClassicTPos.Y() );
296 aTitleSize.
setHeight( (aClassicLPos.Y() + aClassicLSize.
Height()) - aClassicTPos.Y() );
310 Point aLayoutPos(aPagePos);
311 Size aLayoutSize(aPageInnerSize);
354 aLayoutPos.setX( aClassicLPos.X() );
355 aLayoutPos.setY( aClassicTPos.Y() );
356 aLayoutSize.
setWidth( (aClassicLPos.X() + aClassicLSize.
Width())
357 - (aClassicTSize.
Height() + (aClassicLPos.Y() - (aClassicTPos.Y() + aClassicTSize.
Height()))));
358 aLayoutSize.
setHeight( (aClassicLPos.Y() + aClassicLSize.
Height()) - aClassicTPos.Y() );
362 aLayoutPos = aTitlePos;
381 const css::uno::Reference< css::uno::XComponentContext >& xContext,
382 OUString
const & implementationName,
386 mnDocMasterPageCount(0),
387 mnDocDrawPageCount(0),
389 mpHandoutPageMaster(nullptr),
435 Reference< style::XStyleFamiliesSupplier > xFamSup(
GetModel(), UNO_QUERY );
442 Reference < drawing::XMasterPagesSupplier > xMasterPagesSupplier(
GetModel(), UNO_QUERY);
443 if(xMasterPagesSupplier.is())
454 Reference <XDrawPagesSupplier> xDrawPagesSupplier(
GetModel(), UNO_QUERY);
455 if(xDrawPagesSupplier.is())
480 Reference<presentation::XHandoutMasterSupplier> xHandoutSupp(
GetModel(), UNO_QUERY);
481 if(xHandoutSupp.is())
483 Reference<XDrawPage> xHandoutPage(xHandoutSupp->getHandoutMasterPage());
484 if(xHandoutPage.is() && xHandoutPage->getCount())
494 Reference< drawing::XShapes > xMasterPage;
496 if((aAny >>= xMasterPage) && xMasterPage.is())
504 Reference<presentation::XPresentationPage> xPresPage;
505 if((aAny >>= xPresPage) && xPresPage.is())
507 Reference<XDrawPage> xNotesPage(xPresPage->getNotesPage());
508 if(xNotesPage.is() && xNotesPage->getCount())
520 Reference< drawing::XShapes > xPage;
522 if((aAny >>= xPage) && xPage.is())
530 Reference<presentation::XPresentationPage> xPresPage;
531 if((aAny >>= xPresPage) && xPresPage.is())
533 Reference<XDrawPage> xNotesPage(xPresPage->getNotesPage());
534 if(xNotesPage.is() && xNotesPage->getCount())
578 sal_uInt32 nRetval(0);
582 sal_Int32
nCount = xShapes->getCount();
586 Any aAny(xShapes->getByIndex(
a));
587 Reference< drawing::XShapes > xGroup;
589 if((aAny >>= xGroup) && xGroup.is())
628 Reference< presentation::XHandoutMasterSupplier > xHandoutSupp(
GetModel(), UNO_QUERY );
629 if( xHandoutSupp.is() )
631 Reference< XDrawPage > xHandoutPage( xHandoutSupp->getHandoutMasterPage() );
632 if( xHandoutPage.is() )
635 DrawPagesAutoLayoutNamesRange[0] =
aStr;
643 Reference<XDrawPage> xDrawPage;
645 if((aAny >>= xDrawPage) && xDrawPage.is())
648 DrawPagesAutoLayoutNamesRange[nCnt+1] =
aStr;
658 Reference <beans::XPropertySet> xPropSet(xPage, UNO_QUERY);
661 sal_uInt16
nType = sal_uInt16();
662 Any aAny = xPropSet->getPropertyValue(
"Layout");
670 Reference < drawing::XMasterPageTarget > xMasterPageInt(xPage, UNO_QUERY);
671 if(xMasterPageInt.is())
673 Reference<XDrawPage> xUsedMasterPage(xMasterPageInt->getMasterPage());
674 if(xUsedMasterPage.is())
676 Reference < container::XNamed > xMasterNamed(xUsedMasterPage, UNO_QUERY);
677 if(xMasterNamed.is())
679 OUString sMasterPageName = xMasterNamed->getName();
688 [=](std::unique_ptr<ImpXMLAutoLayoutInfo>
const & rInfo) { return nType == rInfo->GetLayoutType() && pInfo == rInfo->GetPageMasterInfo(); });
699 "T" + OUString::number(
nType);
725 switch(pInfo->GetLayoutType())
950 sal_Int32 nColCnt, nRowCnt;
951 sal_Int32 nGapX = pInfo->GetGapX();
952 sal_Int32 nGapY = pInfo->GetGapY();
954 switch(pInfo->GetLayoutType())
956 case 22 : nColCnt = 1; nRowCnt = 1;
break;
957 case 23 : nColCnt = 1; nRowCnt = 2;
break;
958 case 24 : nColCnt = 1; nRowCnt = 3;
break;
959 case 25 : nColCnt = 2; nRowCnt = 2;
break;
960 case 26 : nColCnt = 3; nRowCnt = 2;
break;
961 case 31 : nColCnt = 3; nRowCnt = 3;
break;
962 default: nColCnt = 0; nRowCnt = 0;
break;
965 Size aPartSize(pInfo->GetTitleRectangle().GetSize());
966 Point aPartPos(pInfo->GetTitleRectangle().TopLeft());
970 sal_Int32 nZwi(nColCnt);
975 if (nColCnt == 0 || nRowCnt == 0)
978 aPartSize.
setWidth( (aPartSize.
Width() - ((nColCnt - 1) * nGapX)) / nColCnt );
979 aPartSize.
setHeight( (aPartSize.
Height() - ((nRowCnt - 1) * nGapY)) / nRowCnt );
981 Point aTmpPos(aPartPos);
983 for (sal_Int32
a = 0;
a < nRowCnt;
a++)
985 aTmpPos.setX(aPartPos.X());
987 for (sal_Int32 b = 0; b < nColCnt; b++)
992 aTmpPos.AdjustX( aPartSize.
Width() + nGapX );
995 aTmpPos.AdjustY( aPartSize.
Height() + nGapY );
1089 OSL_FAIL(
"XMLEXP: unknown autolayout export");
1100 OUStringBuffer sStringBuffer;
1123 aStr = sStringBuffer.makeStringAndClear();
1127 aStr = sStringBuffer.makeStringAndClear();
1132 aStr = sStringBuffer.makeStringAndClear();
1137 aStr = sStringBuffer.makeStringAndClear();
1146 bool bDoesExist =
false;
1175 Reference< XHandoutMasterSupplier > xHMS(
GetModel(), UNO_QUERY );
1178 Reference< XDrawPage > xMasterPage( xHMS->getHandoutMasterPage() );
1179 if( xMasterPage.is() )
1191 Reference< XDrawPage > xMasterPage(
mxDocMasterPages->getByIndex(nMPageId), UNO_QUERY );
1194 if(xMasterPage.is())
1203 Reference< presentation::XPresentationPage > xPresPage(xMasterPage, UNO_QUERY);
1206 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
1226 OUString sNewName =
"PM" + OUString::number(nCnt);
1231 OUStringBuffer sStringBuffer;
1242 sString = sStringBuffer.makeStringAndClear();
1247 sString = sStringBuffer.makeStringAndClear();
1252 sString = sStringBuffer.makeStringAndClear();
1257 sString = sStringBuffer.makeStringAndClear();
1262 sString = sStringBuffer.makeStringAndClear();
1267 sString = sStringBuffer.makeStringAndClear();
1289 if(!pInfo->GetMasterPageName().isEmpty() && rName == pInfo->GetMasterPageName())
1308 Reference<XDrawPage> xDrawPage;
1312 Reference< presentation::XPresentationPage > xPresPage(xDrawPage, UNO_QUERY);
1323static OUString
findOrAppendImpl( std::vector< OUString >& rVector,
const OUString& rText, std::u16string_view pPrefix )
1326 auto aIter = std::find(rVector.begin(), rVector.end(), rText);
1327 sal_Int32
nIndex = std::distance(rVector.begin(), aIter) + 1;
1330 if( aIter == rVector.end() )
1331 rVector.push_back( rText );
1335 return pPrefix + OUString::number(
nIndex );
1338static OUString
findOrAppendImpl( std::vector< DateTimeDeclImpl >& rVector,
const OUString& rText,
bool bFixed, sal_Int32 nFormat, std::u16string_view pPrefix )
1341 auto aIter = std::find_if(rVector.begin(), rVector.end(),
1343 return (rDecl.mbFixed == bFixed) &&
1344 (!bFixed || (rDecl.maStrText == rText)) &&
1345 (bFixed || (rDecl.mnFormat == nFormat));
1347 sal_Int32
nIndex = std::distance(rVector.begin(), aIter) + 1;
1350 if( aIter == rVector.end() )
1356 rVector.push_back( aDecl );
1361 return pPrefix + OUString::number(
nIndex );
1372 if( xDrawPage.is() )
try
1374 Reference< XPropertySet > xSet( xDrawPage, UNO_QUERY_THROW );
1375 Reference< XPropertySetInfo > xInfo( xSet->getPropertySetInfo() );
1379 static const OUStringLiteral aStrHeaderTextProp(
u"HeaderText" );
1380 if( xInfo->hasPropertyByName( aStrHeaderTextProp ) )
1382 xSet->getPropertyValue( aStrHeaderTextProp ) >>= aStrText;
1383 if( !aStrText.isEmpty() )
1387 static const OUStringLiteral aStrFooterTextProp(
u"FooterText" );
1388 if( xInfo->hasPropertyByName( aStrFooterTextProp ) )
1390 xSet->getPropertyValue( aStrFooterTextProp ) >>= aStrText;
1391 if( !aStrText.isEmpty() )
1395 static const OUStringLiteral aStrDateTimeTextProp(
u"DateTimeText" );
1396 if( xInfo->hasPropertyByName( aStrDateTimeTextProp ) )
1398 bool bFixed =
false;
1399 sal_Int32 nFormat = 0;
1400 xSet->getPropertyValue( aStrDateTimeTextProp ) >>= aStrText;
1401 xSet->getPropertyValue(
"IsDateTimeFixed") >>= bFixed;
1402 xSet->getPropertyValue(
"DateTimeFormat") >>= nFormat;
1404 if( !bFixed || !aStrText.isEmpty() )
1422 OUStringBuffer sBuffer;
1431 sBuffer.append( aPrefix + OUString::number(
nIndex ) );
1447 sBuffer.append( aPrefix + OUString::number(
nIndex ) );
1464 sBuffer.append( aPrefix + OUString::number(
nIndex ) );
1469 if( !rDecl.mbFixed )
1495 OUString sStyleName;
1499 Reference< beans::XPropertySet > xPropSet1(xDrawPage, UNO_QUERY);
1502 Reference< beans::XPropertySet > xPropSet;
1504 if( bExportBackground )
1510 static const OUStringLiteral aBackground(
u"Background");
1511 Reference< beans::XPropertySet > xPropSet2;
1512 Reference< beans::XPropertySetInfo > xInfo( xPropSet1->getPropertySetInfo() );
1513 if( xInfo.is() && xInfo->hasPropertyByName( aBackground ) )
1515 Any aAny( xPropSet1->getPropertyValue( aBackground ) );
1519 if( xPropSet2.is() )
1522 xPropSet = xPropSet1;
1526 xPropSet = xPropSet1;
1531 std::vector<XMLPropertyState> aPropStates(aMapperRef->Filter(*
this, xPropSet));
1533 if( !aPropStates.empty() )
1539 if(sStyleName.isEmpty())
1559 Reference<XDrawPage> xDrawPage;
1567 Reference< presentation::XHandoutMasterSupplier > xHandoutSupp(
GetModel(), UNO_QUERY );
1568 if( xHandoutSupp.is() )
1570 Reference< XDrawPage > xHandoutPage( xHandoutSupp->getHandoutMasterPage() );
1571 if( xHandoutPage.is() )
1587 Reference<container::XNamed> xNamed;
1597 OUString aPrefix( xNamed->getName() +
"-" );
1599 aStEx->exportStyleFamily(xNamed->getName(),
1613 uno::Reference<document::XDocumentPropertiesSupplier> xPropSup(
GetModel(),
1614 uno::UNO_QUERY_THROW);
1615 uno::Reference<document::XDocumentProperties> xDocProps(
1616 xPropSup->getDocumentProperties());
1617 if (xDocProps.is()) {
1618 xDocProps->setDocumentStatistics(stats);
1639 uno::Reference<drawing::XDrawPage> xDrawPage(
mxDocDrawPages->getByIndex(nPageInd), uno::UNO_QUERY );
1648 Reference < container::XNamed > xNamed(xDrawPage, UNO_QUERY);
1658 Reference < drawing::XMasterPageTarget > xMasterPageInt(xDrawPage, UNO_QUERY);
1659 if(xMasterPageInt.is())
1661 Reference<XDrawPage> xUsedMasterPage(xMasterPageInt->getMasterPage());
1662 if(xUsedMasterPage.is())
1664 Reference < container::XNamed > xMasterNamed(xUsedMasterPage, UNO_QUERY);
1665 if(xMasterNamed.is())
1679 Reference< beans::XPropertySet > xProps( xDrawPage, UNO_QUERY );
1684 OUString aBookmarkURL;
1685 xProps->getPropertyValue(
"BookmarkURL") >>= aBookmarkURL;
1687 if( !aBookmarkURL.isEmpty() )
1689 sal_Int32
nIndex = aBookmarkURL.lastIndexOf(
'#' );
1692 OUString aFileName( aBookmarkURL.copy( 0,
nIndex ) );
1693 std::u16string_view aBookmarkName( aBookmarkURL.subView(
nIndex+1 ) );
1706 OSL_FAIL(
" no \"BookmarkURL\" property at page?" );
1714 if( !sNavigationOrder.isEmpty() )
1718 uno::Reference< css::animations::XAnimationNodeSupplier > xAnimNodeSupplier;
1726 xAnimNodeSupplier.set( xDrawPage, UNO_QUERY );
1729 if(xAnimNodeSupplier.is())
1732 xAnimationsExporter->prepare( xAnimNodeSupplier->getAnimationNode() );
1745 if( !aPageId.isEmpty() )
1757 if(xDrawPage.is() && xDrawPage->getCount())
1763 if(xAnimNodeSupplier.is())
1765 xAnimationsExporter->exportAnimations( xAnimNodeSupplier->getAnimationNode() );
1771 if( xAnimExport.is() )
1772 xAnimExport->exportAnimations( *
this );
1774 xAnimExport =
nullptr;
1779 Reference< presentation::XPresentationPage > xPresPage(xDrawPage, UNO_QUERY);
1782 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
1814 Reference< XPresentationSupplier > xPresSupplier(
GetModel(), UNO_QUERY );
1815 if( !xPresSupplier.is() )
1818 Reference< XPropertySet > xPresProps( xPresSupplier->getPresentation(), UNO_QUERY );
1819 if( !xPresProps.is() )
1822 bool bHasAttr =
false;
1827 xPresProps->getPropertyValue(
"IsShowAll") >>= bTemp;
1830 OUString aFirstPage;
1831 xPresProps->getPropertyValue(
"FirstPage") >>= aFirstPage;
1832 if( !aFirstPage.isEmpty() )
1839 OUString aCustomShow;
1840 xPresProps->getPropertyValue(
"CustomShow") >>= aCustomShow;
1841 if( !aCustomShow.isEmpty() )
1849 xPresProps->getPropertyValue(
"IsEndless") >>= bTemp;
1855 sal_Int32 nPause = 0;
1856 xPresProps->getPropertyValue(
"Pause") >>= nPause;
1858 util::Duration aDuration;
1859 aDuration.Seconds =
static_cast<sal_uInt16
>(nPause);
1861 OUStringBuffer aOut;
1866 xPresProps->getPropertyValue(
"AllowAnimations") >>= bTemp;
1873 xPresProps->getPropertyValue(
"IsAlwaysOnTop") >>= bTemp;
1880 xPresProps->getPropertyValue(
"IsAutomatic") >>= bTemp;
1887 xPresProps->getPropertyValue(
"IsFullScreen") >>= bTemp;
1895 xPresProps->getPropertyValue(
"IsMouseVisible") >>= bTemp;
1899 xPresProps->getPropertyValue(
"StartWithNavigator") >>= bTemp;
1906 xPresProps->getPropertyValue(
"UsePen") >>= bTemp;
1913 xPresProps->getPropertyValue(
"IsTransitionOnClick") >>= bTemp;
1920 xPresProps->getPropertyValue(
"IsShowLogo") >>= bTemp;
1927 Reference< container::XNameContainer > xShows;
1928 Sequence< OUString > aShowNames;
1929 bool bHasNames =
false;
1931 Reference< XCustomPresentationSupplier > xSup(
GetModel(), UNO_QUERY );
1934 xShows = xSup->getCustomPresentations();
1937 aShowNames = xShows->getElementNames();
1938 bHasNames = aShowNames.hasElements();
1942 if( bHasAttr || bHasNames )
1949 Reference< XIndexContainer > xShow;
1950 Reference< XNamed > xPageName;
1952 OUStringBuffer sTmp;
1954 for(
const auto& rShowName : std::as_const(aShowNames) )
1958 xShows->getByName( rShowName ) >>= xShow;
1959 SAL_WARN_IF( !xShow.is(),
"xmloff",
"invalid custom show!" );
1963 const sal_Int32 nPageCount = xShow->getCount();
1964 for( sal_Int32 nPage = 0; nPage < nPageCount; nPage++ )
1966 xShow->getByIndex( nPage ) >>= xPageName;
1968 if( !xPageName.is() )
1971 if( !sTmp.isEmpty() )
1973 sTmp.append( xPageName->getName() );
1977 if( !sTmp.isEmpty() )
1984 catch(
const uno::Exception&)
2013 Reference< beans::XPropertySet > xInfoSet(
getExportInfo() );
2016 Reference< beans::XPropertySetInfo > xInfoSetInfo( xInfoSet->getPropertySetInfo() );
2031 css::uno::Sequence<OUString> aAutoStylePropNames =
GetAutoStylePool()->GetPropertyNames();
2033 Reference< beans::XPropertySet > xInfoSet(
getExportInfo() );
2036 Reference< beans::XPropertySetInfo > xInfoSetInfo( xInfoSet->getPropertySetInfo() );
2067 Reference< presentation::XHandoutMasterSupplier > xHandoutSupp(
GetModel(), UNO_QUERY );
2068 if( xHandoutSupp.is() )
2070 Reference< XDrawPage > xHandoutPage( xHandoutSupp->getHandoutMasterPage() );
2071 if( xHandoutPage.is() && xHandoutPage->getCount())
2072 GetShapeExport()->collectShapesAutoStyles( xHandoutPage, aAutoStylePropNames );
2079 Reference< XDrawPage > xMasterPage(
mxDocMasterPages->getByIndex(nMPageId), UNO_QUERY );
2081 if( xMasterPage.is() )
2087 OUString aMasterPageNamePrefix;
2088 Reference < container::XNamed > xNamed(xMasterPage, UNO_QUERY);
2091 aMasterPageNamePrefix = xNamed->getName();
2093 if(!aMasterPageNamePrefix.isEmpty())
2095 aMasterPageNamePrefix +=
"-";
2097 GetShapeExport()->setPresentationStylePrefix( aMasterPageNamePrefix );
2099 if(xMasterPage.is() && xMasterPage->getCount())
2100 GetShapeExport()->collectShapesAutoStyles( xMasterPage, aAutoStylePropNames );
2104 Reference< presentation::XPresentationPage > xPresPage(xMasterPage, UNO_QUERY);
2107 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
2113 if(xNotesPage->getCount())
2114 GetShapeExport()->collectShapesAutoStyles( xNotesPage, aAutoStylePropNames );
2135 Reference<XDrawPage> xDrawPage(
mxDocDrawPages->getByIndex(nPageInd), UNO_QUERY );
2136 if( xDrawPage.is() )
2142 OUString aMasterPageNamePrefix;
2143 Reference < drawing::XMasterPageTarget > xMasterPageInt(xDrawPage, UNO_QUERY);
2144 if(xMasterPageInt.is())
2146 Reference<XDrawPage> xUsedMasterPage(xMasterPageInt->getMasterPage());
2147 if(xUsedMasterPage.is())
2149 Reference < container::XNamed > xMasterNamed(xUsedMasterPage, UNO_QUERY);
2150 if(xMasterNamed.is())
2152 aMasterPageNamePrefix = xMasterNamed->getName();
2156 if(!aMasterPageNamePrefix.isEmpty())
2158 aMasterPageNamePrefix +=
"-";
2161 GetShapeExport()->setPresentationStylePrefix( aMasterPageNamePrefix );
2164 if(xDrawPage.is() && xDrawPage->getCount())
2165 GetShapeExport()->collectShapesAutoStyles( xDrawPage, aAutoStylePropNames );
2170 Reference< presentation::XPresentationPage > xPresPage(xDrawPage, UNO_QUERY);
2173 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
2179 if(xNotesPage->getCount())
2180 GetShapeExport()->collectShapesAutoStyles( xNotesPage, aAutoStylePropNames );
2216 if ( (
getExportFlags() & nContentAutostyles ) == nContentAutostyles )
2231 Reference< presentation::XHandoutMasterSupplier > xHandoutSupp(
GetModel(), UNO_QUERY );
2232 if( xHandoutSupp.is() )
2234 Reference< XDrawPage > xHandoutPage( xHandoutSupp->getHandoutMasterPage() );
2235 if( xHandoutPage.is() )
2246 const OUString& sString = pInfo->
GetName();
2260 if(xHandoutPage.is() && xHandoutPage->getCount())
2269 Reference< XDrawPage > xMasterPage(
mxDocMasterPages->getByIndex(nMPageId), UNO_QUERY );
2270 if(xMasterPage.is())
2273 Reference < container::XNamed > xNamed(xMasterPage, UNO_QUERY);
2276 bool bEncoded =
false;
2277 OUString sMasterPageName = xNamed->getName();
2289 const OUString& sString = pInfo->
GetName();
2311 if(xMasterPage.is() && xMasterPage->getCount())
2317 Reference< presentation::XPresentationPage > xPresPage(xMasterPage, UNO_QUERY);
2320 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
2326 const OUString& sString = pMasterInfo->
GetName();
2348 if( !xDrawPage.is() )
2351 Reference< form::XFormsSupplier2 > xFormsSupplier( xDrawPage, UNO_QUERY );
2352 if ( xFormsSupplier.is() && xFormsSupplier->hasForms() )
2361 OSL_FAIL(
"OFormLayerXMLExport::seekPage failed!" );
2373 uno::Reference<beans::XPropertySet> xPropertySet(xDrawPage, uno::UNO_QUERY);
2374 if (!xPropertySet.is())
2377 uno::Reference<util::XTheme> xTheme;
2378 xPropertySet->getPropertyValue(
"Theme") >>= xTheme;
2382 auto* pUnoTheme =
dynamic_cast<UnoTheme*
>(xTheme.get());
2386 auto const& rTheme = pUnoTheme->
getTheme();
2388 if (!rTheme.GetName().isEmpty())
2392 auto* pColorSet = rTheme.GetColorSet();
2393 if (!pColorSet->getName().isEmpty())
2418 auto nColor = size_t(eThemeColorType);
2420 OUStringBuffer sValue;
2429 Reference< beans::XPropertySet > xPropSet(
GetModel(), UNO_QUERY );
2430 if( !xPropSet.is() )
2433 awt::Rectangle aVisArea;
2434 xPropSet->getPropertyValue(
"VisibleArea") >>= aVisArea;
2437 beans::PropertyValue* pProps = rProps.getArray();
2439 pProps[0].Name =
"VisibleAreaTop";
2440 pProps[0].Value <<= aVisArea.Y;
2441 pProps[1].Name =
"VisibleAreaLeft";
2442 pProps[1].Value <<= aVisArea.X;
2443 pProps[2].Name =
"VisibleAreaWidth";
2444 pProps[2].Value <<= aVisArea.Width;
2445 pProps[3].Name =
"VisibleAreaHeight";
2446 pProps[3].Value <<= aVisArea.Height;
2452 Reference< lang::XMultiServiceFactory > xFac(
GetModel(), UNO_QUERY );
2456 Reference< beans::XPropertySet > xProps( xFac->createInstance(
"com.sun.star.document.Settings"), UNO_QUERY );
2459 DocumentSettingsSerializer *pFilter(
dynamic_cast<DocumentSettingsSerializer *
>(xProps.get()));
2465 rProps = pFilter->filterStreamsToStorage(xStorage, rProps);
2470 sal_Int32 nFormat = nNumberFormat;
2471 if( (nNumberFormat > 1) && (nNumberFormat <= 0x0f) )
2515 OUStringBuffer sNavOrder;
2518 Reference< XPropertySet > xSet( xDrawPage, UNO_QUERY_THROW );
2519 Reference< XIndexAccess > xNavOrder( xSet->getPropertyValue(
"NavigationOrder"), UNO_QUERY_THROW );
2521 Reference< XIndexAccess > xZOrderAccess = xDrawPage;
2524 if( (xNavOrder.get() != xZOrderAccess.get()) && (xNavOrder->getCount() == xDrawPage->getCount()) )
2527 const sal_Int32
nCount = xNavOrder->getCount();
2531 if( !
sId.isEmpty() )
2533 if( !sNavOrder.isEmpty() )
2534 sNavOrder.append(
' ' );
2535 sNavOrder.append(
sId );
2543 return sNavOrder.makeStringAndClear();
2548 Reference< XAnnotationAccess > xAnnotationAccess( xDrawPage, UNO_QUERY );
2549 if( !xAnnotationAccess.is() )
return;
2553 Reference< XAnnotationEnumeration > xAnnotationEnumeration( xAnnotationAccess->createAnnotationEnumeration() );
2554 if( xAnnotationEnumeration.is() )
2556 while( xAnnotationEnumeration->hasMoreElements() )
2558 Reference< XAnnotation > xAnnotation( xAnnotationEnumeration->nextElement(), UNO_SET_THROW );
2559 Reference< XText > xText( xAnnotation->getTextRange() );
2560 if(xText.is() && !xText->getString().isEmpty())
2568 "exception caught during export of annotation auto styles");
2580 Reference< XAnnotationAccess > xAnnotationAccess( xDrawPage, UNO_QUERY );
2581 if( !xAnnotationAccess.is() )
2586 Reference< XAnnotationEnumeration > xAnnotationEnumeration( xAnnotationAccess->createAnnotationEnumeration() );
2587 if( xAnnotationEnumeration.is() && xAnnotationEnumeration->hasMoreElements() )
2592 OUStringBuffer sStringBuffer;
2595 Reference< XAnnotation > xAnnotation( xAnnotationEnumeration->nextElement(), UNO_SET_THROW );
2597 RealPoint2D aPosition( xAnnotation->getPosition() );
2600 static_cast<sal_Int32
>( aPosition.X * 100 ) );
2604 static_cast<sal_Int32
>( aPosition.Y * 100 ) );
2607 RealSize2D aSize( xAnnotation->getSize() );
2609 if( aSize.Width || aSize.Height )
2612 static_cast<sal_Int32
>( aSize.Width * 100 ) );
2615 static_cast<sal_Int32
>( aSize.Height * 100 ) );
2623 OUString aAuthor( xAnnotation->getAuthor() );
2624 if( !aAuthor.isEmpty() )
2633 OUString aInitials( xAnnotation->getInitials() );
2634 if( !aInitials.isEmpty() )
2652 css::util::DateTime aDate( bRemovePersonalInfo
2653 ? css::util::DateTime(0, 0, 0, 0, 1, 1, 1970,
true)
2654 : xAnnotation->getDateTime() );
2657 Characters( sStringBuffer.makeStringAndClear() );
2660 css::uno::Reference < css::text::XText > xText( xAnnotation->getTextRange() );
2664 while( xAnnotationEnumeration->hasMoreElements() );
2673extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2675 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2678 pCtx,
"XMLImpressExportOasis",
false,
2685extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2687 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2690 pCtx,
"XMLImpressStylesExportOasis",
false,
2695extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2697 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2699 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLImpressContentExportOasis",
false,
2705extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2707 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2709 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLImpressMetaExportOasis",
false,
2713extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2715 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2717 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLImpressSettingsExportOasis",
false,
2721extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2723 uno::Sequence<uno::Any>
const& )
2726 pCtx,
"XMLImpressExportOOO",
false,
2733extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2735 uno::Sequence<uno::Any>
const& )
2738 pCtx,
"XMLDrawExportOOO",
true,
2745extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2747 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2749 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLDrawSettingsExportOasis",
true,
2753extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2755 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2757 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLDrawMetaExportOasis",
true,
2761extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2763 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2765 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLDrawContentExportOasis",
true,
2771extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2773 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2776 pCtx,
"XMLDrawStylesExportOasis",
true,
2781extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2783 uno::Sequence<uno::Any>
const& )
2786 pCtx,
"XMLDrawExportOasis",
true,
2793extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2795 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2797 return cppu::acquire(
2798 new SdXMLExport(pCtx,
"XMLDrawingLayerExport",
true,
2804extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2806 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2808 return cppu::acquire(
2809 new SdXMLExport(pCtx,
"XMLImpressClipboardExport",
false,
2817 bool bEmbedFonts =
false;
2818 bool bEmbedUsedOnly =
false;
2819 bool bEmbedLatinScript =
true;
2820 bool bEmbedAsianScript =
true;
2821 bool bEmbedComplexScript =
true;
2828 Reference<beans::XPropertySet> xProps;
2829 Reference<beans::XPropertySetInfo> xInfo;
2832 xProps.set(
xFactory->createInstance(
"com.sun.star.document.Settings"), UNO_QUERY);
2834 xInfo = xProps->getPropertySetInfo();
2835 if (xInfo.is() && xProps.is())
2837 if (xInfo->hasPropertyByName(
"EmbedFonts"))
2838 xProps->getPropertyValue(
"EmbedFonts") >>= bEmbedFonts;
2839 if (xInfo->hasPropertyByName(
"EmbedOnlyUsedFonts"))
2840 xProps->getPropertyValue(
"EmbedOnlyUsedFonts") >>= bEmbedUsedOnly;
2841 if (xInfo->hasPropertyByName(
"EmbedLatinScriptFonts"))
2842 xProps->getPropertyValue(
"EmbedLatinScriptFonts") >>= bEmbedLatinScript;
2843 if (xInfo->hasPropertyByName(
"EmbedAsianScriptFonts"))
2844 xProps->getPropertyValue(
"EmbedAsianScriptFonts") >>= bEmbedAsianScript;
2845 if (xInfo->hasPropertyByName(
"EmbedComplexScriptFonts"))
2846 xProps->getPropertyValue(
"EmbedComplexScriptFonts") >>= bEmbedComplexScript;
2859 Reference< beans::XPropertySet > xProps(
GetModel(), UNO_QUERY );
2860 if ( xProps.is() ) {
2861 Sequence<Any> aAnySeq;
2862 if( xProps->getPropertyValue(
"Fonts") >>= aAnySeq )
2864 if( aAnySeq.getLength() % 5 == 0 )
2866 int nLen = aAnySeq.getLength() / 5;
2868 for(
int i = 0;
i < nLen;
i++ )
2870 OUString sFamilyName, sStyleName;
2873 eCharSet(RTL_TEXTENCODING_DONTKNOW);
2875 aAnySeq[nSeqIndex++] >>= sFamilyName;
2876 aAnySeq[nSeqIndex++] >>= sStyleName;
2877 aAnySeq[nSeqIndex++] >>= eFamily;
2878 aAnySeq[nSeqIndex++] >>= ePitch;
2879 aAnySeq[nSeqIndex++] >>= eCharSet;
2881 pPool->
Add( sFamilyName, sStyleName,
FontFamily( eFamily ),
FontPitch( ePitch ), rtl_TextEncoding( eCharSet ) );
Reference< XPropertySet > PropertySetMerger_CreateInstance(const Reference< XPropertySet > &rPropSet1, const Reference< XPropertySet > &rPropSet2) noexcept
@ AUTOLAYOUT_TITLE_2CONTENT_OVER_CONTENT
Title, 2 Content over Content.
@ AUTOLAYOUT_TITLE
Title Slide.
@ AUTOLAYOUT_TITLE_CONTENT_OVER_CONTENT
Title, Content over Content.
@ AUTOLAYOUT_TITLE_2VTEXT
Title, 2 Vertical Content.
@ AUTOLAYOUT_VTITLE_VCONTENT_OVER_VCONTENT
Vertical Title, Vertical Content over Vertical Content.
@ AUTOLAYOUT_VTITLE_VCONTENT
Vertical Title, Vertical Content over Vertical Content.
@ AUTOLAYOUT_TITLE_ONLY
Title Only.
@ AUTOLAYOUT_TITLE_2CONTENT
Title and 2 Content.
@ AUTOLAYOUT_ONLY_TEXT
Centered Text.
@ AUTOLAYOUT_TITLE_6CONTENT
Title, 6 Content.
@ AUTOLAYOUT_TITLE_2CONTENT_CONTENT
Title, 2 Content and Content.
@ AUTOLAYOUT_TITLE_CONTENT_2CONTENT
Title, Content and 2 Content.
@ AUTOLAYOUT_TITLE_CONTENT
Title, Content.
@ AUTOLAYOUT_TITLE_VCONTENT
Title, Vertical Content.
@ AUTOLAYOUT_TITLE_4CONTENT
Title, 4 Content.
void SetLayoutName(const OUString &rNew)
sal_Int32 GetGapX() const
ImpXMLEXPPageMasterInfo * GetPageMasterInfo() const
ImpXMLAutoLayoutInfo(sal_uInt16 nTyp, ImpXMLEXPPageMasterInfo *pInf)
ImpXMLEXPPageMasterInfo * mpPageMasterInfo
sal_uInt16 GetLayoutType() const
tools::Rectangle maTitleRect
const OUString & GetLayoutName() const
static bool IsCreateNecessary(sal_uInt16 nTyp)
tools::Rectangle maPresRect
const tools::Rectangle & GetPresRectangle() const
sal_Int32 GetGapY() const
const tools::Rectangle & GetTitleRectangle() const
ImpXMLEXPPageMasterInfo(const SdXMLExport &rExp, const Reference< XDrawPage > &xPage)
const OUString & GetMasterPageName() const
sal_Int32 GetWidth() const
view::PaperOrientation GetOrientation() const
sal_Int32 GetBorderRight() const
sal_Int32 GetBorderTop() const
const OUString & GetName() const
sal_Int32 GetBorderBottom() const
sal_Int32 GetBorderLeft() const
view::PaperOrientation meOrientation
OUString msMasterPageName
void SetName(const OUString &rStr)
sal_Int32 GetHeight() const
bool operator==(const ImpXMLEXPPageMasterInfo &rInfo) const
void SetReference(sal_Int32 nVal)
::std::vector< OUString > maDrawPagesStyleNames
void ImpWriteHeaderFooterDecls()
css::uno::Reference< css::container::XIndexAccess > mxDocMasterPages
OUString maHandoutMasterStyleName
OUString ImpCreatePresPageStyleName(const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage, bool bExportBackground=true)
::std::vector< OUString > maHeaderDeclsVector
virtual void ExportMasterStyles_() override
Override this method to export the contents of <style:master-styles>.
void ImplExportHeaderFooterDeclAttributes(const HeaderFooterPageSettingsImpl &aSettings)
SdXMLFormatMap maUsedDateStyles
XMLShapeExportPropertyMapper * GetPropertySetMapper() const
ImpXMLEXPPageMasterInfo * ImpGetOrCreatePageMasterInfo(const css::uno::Reference< css::drawing::XDrawPage > &xMasterPage)
std::vector< std::unique_ptr< ImpXMLEXPPageMasterInfo > > mvPageMasterInfoList
::std::vector< OUString > maFooterDeclsVector
virtual void ExportFontDecls_() override
Override this method to export the font declarations The default implementation will export the conte...
virtual XMLFontAutoStylePool * CreateFontAutoStylePool() override
virtual void GetConfigurationSettings(css::uno::Sequence< css::beans::PropertyValue > &aProps) override
ImpXMLEXPPageMasterInfo * mpHandoutPageMaster
void collectAnnotationAutoStyles(const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage)
void exportFormsElement(const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage)
rtl::Reference< XMLPageExportPropertyMapper > mpPresPagePropsMapper
void ImpWritePageMasterInfos()
::std::vector< DateTimeDeclImpl > maDateTimeDeclsVector
virtual ~SdXMLExport() override
void collectAutoStyles() override
::std::vector< OUString > maMasterPagesStyleNames
::std::vector< OUString > maDrawNotesPagesStyleNames
::std::vector< HeaderFooterPageSettingsImpl > maDrawPagesHeaderFooterSettings
virtual void ExportContent_() override
Override this method to export the content of <office:body>.
virtual void GetViewSettings(css::uno::Sequence< css::beans::PropertyValue > &aProps) override
::std::vector< HeaderFooterPageSettingsImpl > maDrawNotesPagesHeaderFooterSettings
OUString getNavigationOrder(const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage)
virtual OUString getDataStyleName(const sal_Int32 nNumberFormat, bool bTimeFormat=false) const override
css::uno::Reference< css::container::XIndexAccess > mxDocDrawPages
void ImpWriteAutoLayoutPlaceholder(XmlPlaceholder ePl, const tools::Rectangle &rRect)
void ImpPrepAutoLayoutInfos()
void ImpWritePresentationStyles()
virtual void ExportAutoStyles_() override
Override this method to export the contents of <style:auto-styles>.
XMLPageExportPropertyMapper * GetPresPagePropsMapper() const
SdXMLExport(const css::uno::Reference< css::uno::XComponentContext > &xContext, OUString const &implementationName, bool bIsDraw, SvXMLExportFlags nExportFlags)
virtual void SAL_CALL setSourceDocument(const css::uno::Reference< css::lang::XComponent > &xDoc) override
sal_Int32 mnDocDrawPageCount
virtual void exportDataStyles() override
virtual void exportAutoDataStyles() override
bool ImpPrepAutoLayoutInfo(const css::uno::Reference< css::drawing::XDrawPage > &xPage, OUString &rName)
SdXMLFormatMap maUsedTimeStyles
virtual void ExportStyles_(bool bUsed) override
Override this method to export the content of <style:styles>.
virtual void ExportMeta_() override
Override this method to export the content of <office:meta>.
css::uno::Reference< css::container::XNameAccess > mxDocStyleFamilies
ImpXMLEXPPageMasterList mvNotesPageMasterUsageList
sal_Int32 mnDocMasterPageCount
void ImpPrepMasterPageInfos()
rtl::Reference< XMLSdPropHdlFactory > mpSdPropHdlFactory
ImpXMLEXPPageMasterList mvPageMasterUsageList
void ImpPrepDrawPageInfos()
virtual void addDataStyle(const sal_Int32 nNumberFormat, bool bTimeFormat=false) override
void ImpPrepPageMasterInfos()
void exportPresentationSettings()
HeaderFooterPageSettingsImpl ImpPrepDrawPageHeaderFooterDecls(const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage)
ImpXMLEXPPageMasterInfo * ImpGetPageMasterInfoByName(std::u16string_view rName)
rtl::Reference< XMLShapeExportPropertyMapper > mpPropertySetMapper
std::vector< std::unique_ptr< ImpXMLAutoLayoutInfo > > mvAutoLayoutInfoList
HeaderFooterPageSettingsImpl maHandoutPageHeaderFooterSettings
void exportAnnotations(const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage)
sal_uInt32 ImpRecursiveObjectCount(const css::uno::Reference< css::drawing::XShapes > &xShapes)
void ImpWriteAutoLayoutInfos()
css::uno::Sequence< OUString > maDrawPagesAutoLayoutNames
void ExportThemeElement(const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage)
static void exportTimeStyle(SdXMLExport &rExport, sal_Int32 nStyle)
static void exportDateStyle(SdXMLExport &rExport, sal_Int32 nStyle)
static OUString getDateStyleName(const sal_Int32 nDateFormat)
static OUString getTimeStyleName(const sal_Int32 nTimeFormat)
static void exportLayer(SvXMLExport &rExport)
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
void setWidth(tools::Long nWidth)
tools::Long AdjustWidth(tools::Long n)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
ProgressBarHelper * GetProgressBarHelper()
::comphelper::UnoInterfaceToUniqueIdentifierMapper & getInterfaceToIdentifierMapper()
const css::uno::Reference< css::task::XStatusIndicator > & GetStatusIndicator() const
virtual void ExportStyles_(bool bUsed)
Override this method to export the content of <style:styles>.
OUString GetRelativeReference(const OUString &rValue)
bool HasFormExport() const
rtl::Reference< XMLTextParagraphExport > const & GetTextParagraphExport()
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
void Characters(const OUString &rChars)
bool mbAutoStylesCollected
SvXMLExportFlags getExportFlags() const
SvXMLNamespaceMap & GetNamespaceMap_()
const css::uno::Reference< css::frame::XModel > & GetModel() const
void SAL_DLLPRIVATE AddAttributeIdLegacy(sal_uInt16 const nLegacyPrefix, OUString const &rValue)
add xml:id and legacy namespace id
virtual void ExportMeta_()
Override this method to export the content of <office:meta>.
rtl::Reference< XMLFontAutoStylePool > const & GetFontAutoStylePool()
virtual void ExportFontDecls_()
Override this method to export the font declarations The default implementation will export the conte...
SvtSaveOptions::ODFSaneDefaultVersion getSaneDefaultVersion() const
returns the deterministic version for odf export
virtual void SAL_CALL setSourceDocument(const css::uno::Reference< css::lang::XComponent > &xDoc) override
rtl::Reference< XMLShapeExport > const & GetShapeExport()
rtl::Reference< SvXMLAutoStylePoolP > const & GetAutoStylePool()
OUString EncodeStyleName(const OUString &rName, bool *pEncoded=nullptr) const
css::uno::Reference< css::embed::XStorage > const & GetTargetStorage() const
virtual void collectAutoStyles()
const css::uno::Reference< css::beans::XPropertySet > & getExportInfo() const
rtl::Reference< xmloff::OFormLayerXMLExport > const & GetFormExport()
const SvXMLUnitConverter & GetMM100UnitConverter() const
size_t GetInfoID(const OUString sPersonalInfo) const
sal_uInt16 Add(const OUString &rPrefix, const OUString &rName, sal_uInt16 nKey=XML_NAMESPACE_UNKNOWN)
static void convertPropertySet(css::uno::Sequence< css::beans::PropertyValue > &rProps, const css::uno::Reference< css::beans::XPropertySet > &aProperties)
void convertMeasureToXML(OUStringBuffer &rBuffer, sal_Int32 nMeasure) const
convert measure to string: from meCoreMeasureUnit to meXMLMeasureUnit
model::Theme const & getTheme() const
void setEmbedFontScripts(bool bEmbedLatinScript, bool bEmbedAsianScript, bool bEmbedComplexScript)
void setEmbedOnlyUsedFonts(bool bEmbedUsedOnly)
OUString Add(const OUString &rFamilyName, const OUString &rStyleName, FontFamily nFamily, FontPitch nPitch, rtl_TextEncoding eEnc)
void SetAutoStyles(bool bIsInAutoStyles)
static SvXMLExportPropertyMapper * CreateParaExtPropMapper(SvXMLExport &rExport)
const OUString & getIdentifier(const css::uno::Reference< css::uno::XInterface > &rInterface) const
std::pair< const_iterator, bool > insert(Value &&x)
static void convertDateTime(OUStringBuffer &rBuffer, const css::util::DateTime &rDateTime, sal_Int16 const *pTimeZoneOffset, bool bAddTimeIf0AM=false)
static bool convertColor(sal_Int32 &rColor, std::u16string_view rValue)
static void convertDuration(OUStringBuffer &rBuffer, const double fTime)
#define TOOLS_WARN_EXCEPTION(area, stream)
Reference< XSingleServiceFactory > xFactory
constexpr OUStringLiteral XML_STYLE_FAMILY_SD_PRESENTATION_PREFIX
constexpr OUStringLiteral XML_STYLE_FAMILY_SD_DRAWINGPAGE_PREFIX
constexpr OUStringLiteral XML_STYLE_FAMILY_SD_GRAPHICS_NAME
constexpr OUStringLiteral XML_STYLE_FAMILY_SD_GRAPHICS_PREFIX
constexpr OUStringLiteral XML_STYLE_FAMILY_SD_DRAWINGPAGE_NAME
constexpr OUStringLiteral XML_STYLE_FAMILY_SD_PRESENTATION_NAME
#define SAL_WARN_IF(condition, area, stream)
@ DocWarnRemovePersonalInfo
bool IsOptionSet(EOption eOption)
constexpr OUStringLiteral implementationName
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
Handling of tokens in XML:
XMLTokenEnum
The enumeration of all XML tokens.
@ XML_PRESENTATION_PAGE_LAYOUT
@ XML_START_WITH_NAVIGATOR
@ XML_PRESENTATION_PAGE_LAYOUT_NAME
@ XML_PAGE_LAYOUT_PROPERTIES
@ XML_TRANSITION_ON_CLICK
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
return the OUString representation for eToken
const XMLPropertyMapEntry aXMLSDPresPageProps[]
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLOasisContentExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
constexpr OUStringLiteral gpStrFooterTextPrefix
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Draw_XMLOasisMetaExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLOasisSettingsExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Draw_XMLOasisStylesExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLOasisMetaExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
static OUString findOrAppendImpl(std::vector< OUString > &rVector, const OUString &rText, std::u16string_view pPrefix)
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLOasisStylesExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLClipboardExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Draw_XMLOasisSettingsExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
constexpr OUStringLiteral gpStrDateTimeTextPrefix
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Draw_XMLOasisContentExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
#define IMP_AUTOLAYOUT_INFO_MAX
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_DrawingLayer_XMLExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLOasisExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
constexpr OUStringLiteral gsPageLayoutNames(u"PageLayoutNames")
constexpr OUStringLiteral gpStrHeaderTextPrefix
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Draw_XMLOasisExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Draw_XMLExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
@ XmlPlaceholderVerticalTitle
@ XmlPlaceholderVerticalOutline
constexpr sal_uInt16 XML_NAMESPACE_DRAW
constexpr sal_uInt16 XML_NAMESPACE_META
constexpr sal_uInt16 XML_NAMESPACE_OFFICE_EXT
constexpr sal_uInt16 XML_NAMESPACE_SMIL
constexpr sal_uInt16 XML_NAMESPACE_DC
constexpr sal_uInt16 XML_NAMESPACE_XLINK
constexpr sal_uInt16 XML_NAMESPACE_ANIMATION
constexpr sal_uInt16 XML_NAMESPACE_SVG
constexpr sal_uInt16 XML_NAMESPACE_LO_EXT
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION
constexpr sal_uInt16 XML_NAMESPACE_STYLE
constexpr sal_uInt16 XML_NAMESPACE_FO