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>
107 void SetName(
const OUString& rStr);
123 const Reference<XDrawPage>& xPage)
130 meOrientation(rExp.IsDraw() ? view::PaperOrientation_PORTRAIT : view::PaperOrientation_LANDSCAPE)
132 Reference <beans::XPropertySet> xPropSet(xPage, UNO_QUERY);
137 Reference< beans::XPropertySetInfo > xPropsInfo( xPropSet->getPropertySetInfo() );
138 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"BorderBottom"))
140 aAny = xPropSet->getPropertyValue(
"BorderBottom");
143 aAny = xPropSet->getPropertyValue(
"BorderLeft");
146 aAny = xPropSet->getPropertyValue(
"BorderRight");
149 aAny = xPropSet->getPropertyValue(
"BorderTop");
153 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"Width"))
155 aAny = xPropSet->getPropertyValue(
"Width");
158 aAny = xPropSet->getPropertyValue(
"Height");
162 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"Orientation"))
164 aAny = xPropSet->getPropertyValue(
"Orientation");
169 Reference <container::XNamed> xMasterNamed(xPage, UNO_QUERY);
170 if(xMasterNamed.is())
192#define IMP_AUTOLAYOUT_INFO_MAX (35L)
232 , mpPageMasterInfo(pInf)
238 Size aPageSize(28000, 21000);
239 Size aPageInnerSize(28000, 21000);
245 aPageInnerSize = aPageSize;
251 Point aTitlePos(aPagePos);
252 Size aTitleSize(aPageInnerSize);
257 Point aPos = aTitlePos;
259 Size aPartArea = aTitleSize;
263 double fH =
static_cast<double>(aPartArea.
Width()) / aPageSize.
Width();
264 double fV =
static_cast<double>(aPartArea.
Height()) / aPageSize.
Height();
285 Point aLPos(aPagePos);
286 Size aLSize(aPageInnerSize);
294 aTitlePos.
setX( (aClassicTPos.
X() + aClassicTSize.
Width()) - aClassicTSize.
Height() );
295 aTitlePos.
setY( aClassicTPos.
Y() );
297 aTitleSize.
setHeight( (aClassicLPos.
Y() + aClassicLSize.
Height()) - aClassicTPos.
Y() );
311 Point aLayoutPos(aPagePos);
312 Size aLayoutSize(aPageInnerSize);
355 aLayoutPos.
setX( aClassicLPos.
X() );
356 aLayoutPos.
setY( aClassicTPos.
Y() );
358 - (aClassicTSize.
Height() + (aClassicLPos.
Y() - (aClassicTPos.
Y() + aClassicTSize.
Height()))));
359 aLayoutSize.
setHeight( (aClassicLPos.
Y() + aClassicLSize.
Height()) - aClassicTPos.
Y() );
363 aLayoutPos = aTitlePos;
382 const css::uno::Reference< css::uno::XComponentContext >& xContext,
383 OUString
const & implementationName,
387 mnDocMasterPageCount(0),
388 mnDocDrawPageCount(0),
390 mpHandoutPageMaster(nullptr),
436 Reference< style::XStyleFamiliesSupplier > xFamSup(
GetModel(), UNO_QUERY );
443 Reference < drawing::XMasterPagesSupplier > xMasterPagesSupplier(
GetModel(), UNO_QUERY);
444 if(xMasterPagesSupplier.is())
455 Reference <XDrawPagesSupplier> xDrawPagesSupplier(
GetModel(), UNO_QUERY);
456 if(xDrawPagesSupplier.is())
481 Reference<presentation::XHandoutMasterSupplier> xHandoutSupp(
GetModel(), UNO_QUERY);
482 if(xHandoutSupp.is())
484 Reference<XDrawPage> xHandoutPage(xHandoutSupp->getHandoutMasterPage());
485 if(xHandoutPage.is() && xHandoutPage->getCount())
495 Reference< drawing::XShapes > xMasterPage;
497 if((aAny >>= xMasterPage) && xMasterPage.is())
505 Reference<presentation::XPresentationPage> xPresPage;
506 if((aAny >>= xPresPage) && xPresPage.is())
508 Reference<XDrawPage> xNotesPage(xPresPage->getNotesPage());
509 if(xNotesPage.is() && xNotesPage->getCount())
521 Reference< drawing::XShapes > xPage;
523 if((aAny >>= xPage) && xPage.is())
531 Reference<presentation::XPresentationPage> xPresPage;
532 if((aAny >>= xPresPage) && xPresPage.is())
534 Reference<XDrawPage> xNotesPage(xPresPage->getNotesPage());
535 if(xNotesPage.is() && xNotesPage->getCount())
579 sal_uInt32 nRetval(0);
583 sal_Int32
nCount = xShapes->getCount();
587 Any aAny(xShapes->getByIndex(
a));
588 Reference< drawing::XShapes > xGroup;
590 if((aAny >>= xGroup) && xGroup.is())
629 Reference< presentation::XHandoutMasterSupplier > xHandoutSupp(
GetModel(), UNO_QUERY );
630 if( xHandoutSupp.is() )
632 Reference< XDrawPage > xHandoutPage( xHandoutSupp->getHandoutMasterPage() );
633 if( xHandoutPage.is() )
636 DrawPagesAutoLayoutNamesRange[0] =
aStr;
644 Reference<XDrawPage> xDrawPage;
646 if((aAny >>= xDrawPage) && xDrawPage.is())
649 DrawPagesAutoLayoutNamesRange[nCnt+1] =
aStr;
659 Reference <beans::XPropertySet> xPropSet(xPage, UNO_QUERY);
662 sal_uInt16
nType = sal_uInt16();
663 Any aAny = xPropSet->getPropertyValue(
"Layout");
671 Reference < drawing::XMasterPageTarget > xMasterPageInt(xPage, UNO_QUERY);
672 if(xMasterPageInt.is())
674 Reference<XDrawPage> xUsedMasterPage(xMasterPageInt->getMasterPage());
675 if(xUsedMasterPage.is())
677 Reference < container::XNamed > xMasterNamed(xUsedMasterPage, UNO_QUERY);
678 if(xMasterNamed.is())
680 OUString sMasterPageName = xMasterNamed->getName();
689 [=](std::unique_ptr<ImpXMLAutoLayoutInfo>
const & rInfo) { return nType == rInfo->GetLayoutType() && pInfo == rInfo->GetPageMasterInfo(); });
700 "T" + OUString::number(
nType);
726 switch(pInfo->GetLayoutType())
951 sal_Int32 nColCnt, nRowCnt;
952 sal_Int32 nGapX = pInfo->GetGapX();
953 sal_Int32 nGapY = pInfo->GetGapY();
955 switch(pInfo->GetLayoutType())
957 case 22 : nColCnt = 1; nRowCnt = 1;
break;
958 case 23 : nColCnt = 1; nRowCnt = 2;
break;
959 case 24 : nColCnt = 1; nRowCnt = 3;
break;
960 case 25 : nColCnt = 2; nRowCnt = 2;
break;
961 case 26 : nColCnt = 3; nRowCnt = 2;
break;
962 case 31 : nColCnt = 3; nRowCnt = 3;
break;
963 default: nColCnt = 0; nRowCnt = 0;
break;
966 Size aPartSize(pInfo->GetTitleRectangle().GetSize());
967 Point aPartPos(pInfo->GetTitleRectangle().TopLeft());
971 sal_Int32 nZwi(nColCnt);
976 if (nColCnt == 0 || nRowCnt == 0)
979 aPartSize.
setWidth( (aPartSize.
Width() - ((nColCnt - 1) * nGapX)) / nColCnt );
980 aPartSize.
setHeight( (aPartSize.
Height() - ((nRowCnt - 1) * nGapY)) / nRowCnt );
982 Point aTmpPos(aPartPos);
984 for (sal_Int32
a = 0;
a < nRowCnt;
a++)
986 aTmpPos.
setX(aPartPos.
X());
988 for (sal_Int32 b = 0; b < nColCnt; b++)
1090 OSL_FAIL(
"XMLEXP: unknown autolayout export");
1101 OUStringBuffer sStringBuffer;
1124 aStr = sStringBuffer.makeStringAndClear();
1128 aStr = sStringBuffer.makeStringAndClear();
1133 aStr = sStringBuffer.makeStringAndClear();
1138 aStr = sStringBuffer.makeStringAndClear();
1147 bool bDoesExist =
false;
1176 Reference< XHandoutMasterSupplier > xHMS(
GetModel(), UNO_QUERY );
1179 Reference< XDrawPage > xMasterPage( xHMS->getHandoutMasterPage() );
1180 if( xMasterPage.is() )
1192 Reference< XDrawPage > xMasterPage(
mxDocMasterPages->getByIndex(nMPageId), UNO_QUERY );
1195 if(xMasterPage.is())
1204 Reference< presentation::XPresentationPage > xPresPage(xMasterPage, UNO_QUERY);
1207 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
1227 OUString sNewName =
"PM" + OUString::number(nCnt);
1232 OUStringBuffer sStringBuffer;
1243 sString = sStringBuffer.makeStringAndClear();
1248 sString = sStringBuffer.makeStringAndClear();
1253 sString = sStringBuffer.makeStringAndClear();
1258 sString = sStringBuffer.makeStringAndClear();
1263 sString = sStringBuffer.makeStringAndClear();
1268 sString = sStringBuffer.makeStringAndClear();
1290 if(!pInfo->GetMasterPageName().isEmpty() && rName == pInfo->GetMasterPageName())
1309 Reference<XDrawPage> xDrawPage;
1313 Reference< presentation::XPresentationPage > xPresPage(xDrawPage, UNO_QUERY);
1324static OUString
findOrAppendImpl( std::vector< OUString >& rVector,
const OUString& rText, std::u16string_view pPrefix )
1327 auto aIter = std::find(rVector.begin(), rVector.end(), rText);
1328 sal_Int32
nIndex = std::distance(rVector.begin(), aIter) + 1;
1331 if( aIter == rVector.end() )
1332 rVector.push_back( rText );
1336 return pPrefix + OUString::number(
nIndex );
1339static OUString
findOrAppendImpl( std::vector< DateTimeDeclImpl >& rVector,
const OUString& rText,
bool bFixed, sal_Int32 nFormat, std::u16string_view pPrefix )
1342 auto aIter = std::find_if(rVector.begin(), rVector.end(),
1344 return (rDecl.mbFixed == bFixed) &&
1345 (!bFixed || (rDecl.maStrText == rText)) &&
1346 (bFixed || (rDecl.mnFormat == nFormat));
1348 sal_Int32
nIndex = std::distance(rVector.begin(), aIter) + 1;
1351 if( aIter == rVector.end() )
1357 rVector.push_back( aDecl );
1362 return pPrefix + OUString::number(
nIndex );
1373 if( xDrawPage.is() )
try
1375 Reference< XPropertySet > xSet( xDrawPage, UNO_QUERY_THROW );
1376 Reference< XPropertySetInfo > xInfo( xSet->getPropertySetInfo() );
1380 static constexpr OUStringLiteral aStrHeaderTextProp(
u"HeaderText" );
1381 if( xInfo->hasPropertyByName( aStrHeaderTextProp ) )
1383 xSet->getPropertyValue( aStrHeaderTextProp ) >>= aStrText;
1384 if( !aStrText.isEmpty() )
1388 static constexpr OUStringLiteral aStrFooterTextProp(
u"FooterText" );
1389 if( xInfo->hasPropertyByName( aStrFooterTextProp ) )
1391 xSet->getPropertyValue( aStrFooterTextProp ) >>= aStrText;
1392 if( !aStrText.isEmpty() )
1396 static constexpr OUStringLiteral aStrDateTimeTextProp(
u"DateTimeText" );
1397 if( xInfo->hasPropertyByName( aStrDateTimeTextProp ) )
1399 bool bFixed =
false;
1400 sal_Int32 nFormat = 0;
1401 xSet->getPropertyValue( aStrDateTimeTextProp ) >>= aStrText;
1402 xSet->getPropertyValue(
"IsDateTimeFixed") >>= bFixed;
1403 xSet->getPropertyValue(
"DateTimeFormat") >>= nFormat;
1405 if( !bFixed || !aStrText.isEmpty() )
1423 OUStringBuffer sBuffer;
1432 sBuffer.append( aPrefix + OUString::number(
nIndex ) );
1448 sBuffer.append( aPrefix + OUString::number(
nIndex ) );
1465 sBuffer.append( aPrefix + OUString::number(
nIndex ) );
1470 if( !rDecl.mbFixed )
1496 OUString sStyleName;
1500 Reference< beans::XPropertySet > xPropSet1(xDrawPage, UNO_QUERY);
1503 Reference< beans::XPropertySet > xPropSet;
1505 if( bExportBackground )
1511 static constexpr OUStringLiteral aBackground(
u"Background");
1512 Reference< beans::XPropertySet > xPropSet2;
1513 Reference< beans::XPropertySetInfo > xInfo( xPropSet1->getPropertySetInfo() );
1514 if( xInfo.is() && xInfo->hasPropertyByName( aBackground ) )
1516 Any aAny( xPropSet1->getPropertyValue( aBackground ) );
1520 if( xPropSet2.is() )
1523 xPropSet = xPropSet1;
1527 xPropSet = xPropSet1;
1532 std::vector<XMLPropertyState> aPropStates(aMapperRef->Filter(*
this, xPropSet));
1534 if( !aPropStates.empty() )
1540 if(sStyleName.isEmpty())
1560 Reference<XDrawPage> xDrawPage;
1568 Reference< presentation::XHandoutMasterSupplier > xHandoutSupp(
GetModel(), UNO_QUERY );
1569 if( xHandoutSupp.is() )
1571 Reference< XDrawPage > xHandoutPage( xHandoutSupp->getHandoutMasterPage() );
1572 if( xHandoutPage.is() )
1588 Reference<container::XNamed> xNamed;
1598 OUString aPrefix( xNamed->getName() +
"-" );
1600 aStEx->exportStyleFamily(xNamed->getName(),
1614 uno::Reference<document::XDocumentPropertiesSupplier> xPropSup(
GetModel(),
1615 uno::UNO_QUERY_THROW);
1616 uno::Reference<document::XDocumentProperties> xDocProps(
1617 xPropSup->getDocumentProperties());
1618 if (xDocProps.is()) {
1619 xDocProps->setDocumentStatistics(stats);
1640 uno::Reference<drawing::XDrawPage> xDrawPage(
mxDocDrawPages->getByIndex(nPageInd), uno::UNO_QUERY );
1649 Reference < container::XNamed > xNamed(xDrawPage, UNO_QUERY);
1659 Reference < drawing::XMasterPageTarget > xMasterPageInt(xDrawPage, UNO_QUERY);
1660 if(xMasterPageInt.is())
1662 Reference<XDrawPage> xUsedMasterPage(xMasterPageInt->getMasterPage());
1663 if(xUsedMasterPage.is())
1665 Reference < container::XNamed > xMasterNamed(xUsedMasterPage, UNO_QUERY);
1666 if(xMasterNamed.is())
1680 Reference< beans::XPropertySet > xProps( xDrawPage, UNO_QUERY );
1685 OUString aBookmarkURL;
1686 xProps->getPropertyValue(
"BookmarkURL") >>= aBookmarkURL;
1688 if( !aBookmarkURL.isEmpty() )
1690 sal_Int32
nIndex = aBookmarkURL.lastIndexOf(
'#' );
1693 OUString aFileName( aBookmarkURL.copy( 0,
nIndex ) );
1694 std::u16string_view aBookmarkName( aBookmarkURL.subView(
nIndex+1 ) );
1707 OSL_FAIL(
" no \"BookmarkURL\" property at page?" );
1715 if( !sNavigationOrder.isEmpty() )
1719 uno::Reference< css::animations::XAnimationNodeSupplier > xAnimNodeSupplier;
1727 xAnimNodeSupplier.set( xDrawPage, UNO_QUERY );
1730 if(xAnimNodeSupplier.is())
1733 xAnimationsExporter->prepare( xAnimNodeSupplier->getAnimationNode() );
1746 if( !aPageId.isEmpty() )
1758 if(xDrawPage.is() && xDrawPage->getCount())
1764 if(xAnimNodeSupplier.is())
1766 xAnimationsExporter->exportAnimations( xAnimNodeSupplier->getAnimationNode() );
1772 if( xAnimExport.is() )
1773 xAnimExport->exportAnimations( *
this );
1775 xAnimExport =
nullptr;
1780 Reference< presentation::XPresentationPage > xPresPage(xDrawPage, UNO_QUERY);
1783 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
1815 Reference< XPresentationSupplier > xPresSupplier(
GetModel(), UNO_QUERY );
1816 if( !xPresSupplier.is() )
1819 Reference< XPropertySet > xPresProps( xPresSupplier->getPresentation(), UNO_QUERY );
1820 if( !xPresProps.is() )
1823 bool bHasAttr =
false;
1828 xPresProps->getPropertyValue(
"IsShowAll") >>= bTemp;
1831 OUString aFirstPage;
1832 xPresProps->getPropertyValue(
"FirstPage") >>= aFirstPage;
1833 if( !aFirstPage.isEmpty() )
1840 OUString aCustomShow;
1841 xPresProps->getPropertyValue(
"CustomShow") >>= aCustomShow;
1842 if( !aCustomShow.isEmpty() )
1850 xPresProps->getPropertyValue(
"IsEndless") >>= bTemp;
1856 sal_Int32 nPause = 0;
1857 xPresProps->getPropertyValue(
"Pause") >>= nPause;
1859 util::Duration aDuration;
1860 aDuration.Seconds =
static_cast<sal_uInt16
>(nPause);
1862 OUStringBuffer aOut;
1867 xPresProps->getPropertyValue(
"AllowAnimations") >>= bTemp;
1874 xPresProps->getPropertyValue(
"IsAlwaysOnTop") >>= bTemp;
1881 xPresProps->getPropertyValue(
"IsAutomatic") >>= bTemp;
1888 xPresProps->getPropertyValue(
"IsFullScreen") >>= bTemp;
1896 xPresProps->getPropertyValue(
"IsMouseVisible") >>= bTemp;
1900 xPresProps->getPropertyValue(
"StartWithNavigator") >>= bTemp;
1907 xPresProps->getPropertyValue(
"UsePen") >>= bTemp;
1914 xPresProps->getPropertyValue(
"IsTransitionOnClick") >>= bTemp;
1921 xPresProps->getPropertyValue(
"IsShowLogo") >>= bTemp;
1928 Reference< container::XNameContainer > xShows;
1929 Sequence< OUString > aShowNames;
1930 bool bHasNames =
false;
1932 Reference< XCustomPresentationSupplier > xSup(
GetModel(), UNO_QUERY );
1935 xShows = xSup->getCustomPresentations();
1938 aShowNames = xShows->getElementNames();
1939 bHasNames = aShowNames.hasElements();
1943 if( bHasAttr || bHasNames )
1950 Reference< XIndexContainer > xShow;
1951 Reference< XNamed > xPageName;
1953 OUStringBuffer sTmp;
1955 for(
const auto& rShowName : std::as_const(aShowNames) )
1959 xShows->getByName( rShowName ) >>= xShow;
1960 SAL_WARN_IF( !xShow.is(),
"xmloff",
"invalid custom show!" );
1964 const sal_Int32 nPageCount = xShow->getCount();
1965 for( sal_Int32 nPage = 0; nPage < nPageCount; nPage++ )
1967 xShow->getByIndex( nPage ) >>= xPageName;
1969 if( !xPageName.is() )
1972 if( !sTmp.isEmpty() )
1974 sTmp.append( xPageName->getName() );
1978 if( !sTmp.isEmpty() )
1985 catch(
const uno::Exception&)
2014 Reference< beans::XPropertySet > xInfoSet(
getExportInfo() );
2017 Reference< beans::XPropertySetInfo > xInfoSetInfo( xInfoSet->getPropertySetInfo() );
2032 Reference< beans::XPropertySet > xInfoSet(
getExportInfo() );
2035 Reference< beans::XPropertySetInfo > xInfoSetInfo( xInfoSet->getPropertySetInfo() );
2066 Reference< presentation::XHandoutMasterSupplier > xHandoutSupp(
GetModel(), UNO_QUERY );
2067 if( xHandoutSupp.is() )
2069 Reference< XDrawPage > xHandoutPage( xHandoutSupp->getHandoutMasterPage() );
2070 if( xHandoutPage.is() && xHandoutPage->getCount())
2078 Reference< XDrawPage > xMasterPage(
mxDocMasterPages->getByIndex(nMPageId), UNO_QUERY );
2080 if( xMasterPage.is() )
2086 OUString aMasterPageNamePrefix;
2087 Reference < container::XNamed > xNamed(xMasterPage, UNO_QUERY);
2090 aMasterPageNamePrefix = xNamed->getName();
2092 if(!aMasterPageNamePrefix.isEmpty())
2094 aMasterPageNamePrefix +=
"-";
2096 GetShapeExport()->setPresentationStylePrefix( aMasterPageNamePrefix );
2098 if(xMasterPage.is() && xMasterPage->getCount())
2103 Reference< presentation::XPresentationPage > xPresPage(xMasterPage, UNO_QUERY);
2106 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
2112 if(xNotesPage->getCount())
2134 Reference<XDrawPage> xDrawPage(
mxDocDrawPages->getByIndex(nPageInd), UNO_QUERY );
2135 if( xDrawPage.is() )
2141 OUString aMasterPageNamePrefix;
2142 Reference < drawing::XMasterPageTarget > xMasterPageInt(xDrawPage, UNO_QUERY);
2143 if(xMasterPageInt.is())
2145 Reference<XDrawPage> xUsedMasterPage(xMasterPageInt->getMasterPage());
2146 if(xUsedMasterPage.is())
2148 Reference < container::XNamed > xMasterNamed(xUsedMasterPage, UNO_QUERY);
2149 if(xMasterNamed.is())
2151 aMasterPageNamePrefix = xMasterNamed->getName();
2155 if(!aMasterPageNamePrefix.isEmpty())
2157 aMasterPageNamePrefix +=
"-";
2160 GetShapeExport()->setPresentationStylePrefix( aMasterPageNamePrefix );
2163 if(xDrawPage.is() && xDrawPage->getCount())
2169 Reference< presentation::XPresentationPage > xPresPage(xDrawPage, UNO_QUERY);
2172 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
2178 if(xNotesPage->getCount())
2215 if ( (
getExportFlags() & nContentAutostyles ) == nContentAutostyles )
2230 Reference< presentation::XHandoutMasterSupplier > xHandoutSupp(
GetModel(), UNO_QUERY );
2231 if( xHandoutSupp.is() )
2233 Reference< XDrawPage > xHandoutPage( xHandoutSupp->getHandoutMasterPage() );
2234 if( xHandoutPage.is() )
2245 const OUString& sString = pInfo->
GetName();
2259 if(xHandoutPage.is() && xHandoutPage->getCount())
2268 Reference< XDrawPage > xMasterPage(
mxDocMasterPages->getByIndex(nMPageId), UNO_QUERY );
2269 if(xMasterPage.is())
2272 Reference < container::XNamed > xNamed(xMasterPage, UNO_QUERY);
2275 bool bEncoded =
false;
2276 OUString sMasterPageName = xNamed->getName();
2288 const OUString& sString = pInfo->
GetName();
2310 if(xMasterPage.is() && xMasterPage->getCount())
2316 Reference< presentation::XPresentationPage > xPresPage(xMasterPage, UNO_QUERY);
2319 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
2325 const OUString& sString = pMasterInfo->
GetName();
2347 if( !xDrawPage.is() )
2350 Reference< form::XFormsSupplier2 > xFormsSupplier( xDrawPage, UNO_QUERY );
2351 if ( xFormsSupplier.is() && xFormsSupplier->hasForms() )
2360 OSL_FAIL(
"OFormLayerXMLExport::seekPage failed!" );
2372 uno::Reference<beans::XPropertySet> xPropertySet(xDrawPage, uno::UNO_QUERY);
2373 if (!xPropertySet.is())
2376 uno::Reference<util::XTheme> xTheme;
2377 xPropertySet->getPropertyValue(
"Theme") >>= xTheme;
2381 auto* pUnoTheme =
dynamic_cast<UnoTheme*
>(xTheme.get());
2385 auto pTheme = pUnoTheme->
getTheme();
2388 auto pColorSet = pTheme->getColorSet();
2392 if (!pTheme->GetName().isEmpty())
2396 if (!pColorSet->getName().isEmpty())
2421 auto nColor = size_t(eThemeColorType);
2423 OUStringBuffer sValue;
2432 Reference< beans::XPropertySet > xPropSet(
GetModel(), UNO_QUERY );
2433 if( !xPropSet.is() )
2436 awt::Rectangle aVisArea;
2437 xPropSet->getPropertyValue(
"VisibleArea") >>= aVisArea;
2440 beans::PropertyValue* pProps = rProps.getArray();
2442 pProps[0].Name =
"VisibleAreaTop";
2443 pProps[0].Value <<= aVisArea.Y;
2444 pProps[1].Name =
"VisibleAreaLeft";
2445 pProps[1].Value <<= aVisArea.X;
2446 pProps[2].Name =
"VisibleAreaWidth";
2447 pProps[2].Value <<= aVisArea.Width;
2448 pProps[3].Name =
"VisibleAreaHeight";
2449 pProps[3].Value <<= aVisArea.Height;
2455 Reference< lang::XMultiServiceFactory > xFac(
GetModel(), UNO_QUERY );
2459 Reference< beans::XPropertySet > xProps( xFac->createInstance(
"com.sun.star.document.Settings"), UNO_QUERY );
2462 DocumentSettingsSerializer *pFilter(
dynamic_cast<DocumentSettingsSerializer *
>(xProps.get()));
2468 rProps = pFilter->filterStreamsToStorage(xStorage, rProps);
2473 sal_Int32 nFormat = nNumberFormat;
2474 if( (nNumberFormat > 1) && (nNumberFormat <= 0x0f) )
2518 OUStringBuffer sNavOrder;
2521 Reference< XPropertySet > xSet( xDrawPage, UNO_QUERY_THROW );
2522 Reference< XIndexAccess > xNavOrder( xSet->getPropertyValue(
"NavigationOrder"), UNO_QUERY_THROW );
2524 Reference< XIndexAccess > xZOrderAccess = xDrawPage;
2527 if( (xNavOrder.get() != xZOrderAccess.get()) && (xNavOrder->getCount() == xDrawPage->getCount()) )
2530 const sal_Int32
nCount = xNavOrder->getCount();
2534 if( !
sId.isEmpty() )
2536 if( !sNavOrder.isEmpty() )
2537 sNavOrder.append(
' ' );
2538 sNavOrder.append(
sId );
2546 return sNavOrder.makeStringAndClear();
2551 Reference< XAnnotationAccess > xAnnotationAccess( xDrawPage, UNO_QUERY );
2552 if( !xAnnotationAccess.is() )
return;
2556 Reference< XAnnotationEnumeration > xAnnotationEnumeration( xAnnotationAccess->createAnnotationEnumeration() );
2557 if( xAnnotationEnumeration.is() )
2559 while( xAnnotationEnumeration->hasMoreElements() )
2561 Reference< XAnnotation > xAnnotation( xAnnotationEnumeration->nextElement(), UNO_SET_THROW );
2562 Reference< XText > xText( xAnnotation->getTextRange() );
2563 if(xText.is() && !xText->getString().isEmpty())
2571 "exception caught during export of annotation auto styles");
2583 Reference< XAnnotationAccess > xAnnotationAccess( xDrawPage, UNO_QUERY );
2584 if( !xAnnotationAccess.is() )
2589 Reference< XAnnotationEnumeration > xAnnotationEnumeration( xAnnotationAccess->createAnnotationEnumeration() );
2590 if( xAnnotationEnumeration.is() && xAnnotationEnumeration->hasMoreElements() )
2595 OUStringBuffer sStringBuffer;
2598 Reference< XAnnotation > xAnnotation( xAnnotationEnumeration->nextElement(), UNO_SET_THROW );
2600 RealPoint2D aPosition( xAnnotation->getPosition() );
2603 static_cast<sal_Int32
>( aPosition.X * 100 ) );
2607 static_cast<sal_Int32
>( aPosition.Y * 100 ) );
2610 RealSize2D aSize( xAnnotation->getSize() );
2612 if( aSize.Width || aSize.Height )
2615 static_cast<sal_Int32
>( aSize.Width * 100 ) );
2618 static_cast<sal_Int32
>( aSize.Height * 100 ) );
2626 OUString aAuthor( xAnnotation->getAuthor() );
2627 if( !aAuthor.isEmpty() )
2636 OUString aInitials( xAnnotation->getInitials() );
2637 if( !aInitials.isEmpty() )
2655 css::util::DateTime aDate( bRemovePersonalInfo
2656 ? css::util::DateTime(0, 0, 0, 0, 1, 1, 1970,
true)
2657 : xAnnotation->getDateTime() );
2660 Characters( sStringBuffer.makeStringAndClear() );
2663 css::uno::Reference < css::text::XText > xText( xAnnotation->getTextRange() );
2667 while( xAnnotationEnumeration->hasMoreElements() );
2676extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2678 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2681 pCtx,
"XMLImpressExportOasis",
false,
2688extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2690 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2693 pCtx,
"XMLImpressStylesExportOasis",
false,
2698extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2700 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2702 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLImpressContentExportOasis",
false,
2708extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2710 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2712 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLImpressMetaExportOasis",
false,
2716extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2718 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2720 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLImpressSettingsExportOasis",
false,
2724extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2726 uno::Sequence<uno::Any>
const& )
2729 pCtx,
"XMLImpressExportOOO",
false,
2736extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2738 uno::Sequence<uno::Any>
const& )
2741 pCtx,
"XMLDrawExportOOO",
true,
2748extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2750 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2752 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLDrawSettingsExportOasis",
true,
2756extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2758 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2760 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLDrawMetaExportOasis",
true,
2764extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2766 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2768 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLDrawContentExportOasis",
true,
2774extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2776 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2779 pCtx,
"XMLDrawStylesExportOasis",
true,
2784extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2786 uno::Sequence<uno::Any>
const& )
2789 pCtx,
"XMLDrawExportOasis",
true,
2796extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2798 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2800 return cppu::acquire(
2801 new SdXMLExport(pCtx,
"XMLDrawingLayerExport",
true,
2807extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2809 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2811 return cppu::acquire(
2812 new SdXMLExport(pCtx,
"XMLImpressClipboardExport",
false,
2820 bool bEmbedFonts =
false;
2821 bool bEmbedUsedOnly =
false;
2822 bool bEmbedLatinScript =
true;
2823 bool bEmbedAsianScript =
true;
2824 bool bEmbedComplexScript =
true;
2831 Reference<beans::XPropertySet> xProps;
2832 Reference<beans::XPropertySetInfo> xInfo;
2835 xProps.set(
xFactory->createInstance(
"com.sun.star.document.Settings"), UNO_QUERY);
2837 xInfo = xProps->getPropertySetInfo();
2838 if (xInfo.is() && xProps.is())
2840 if (xInfo->hasPropertyByName(
"EmbedFonts"))
2841 xProps->getPropertyValue(
"EmbedFonts") >>= bEmbedFonts;
2842 if (xInfo->hasPropertyByName(
"EmbedOnlyUsedFonts"))
2843 xProps->getPropertyValue(
"EmbedOnlyUsedFonts") >>= bEmbedUsedOnly;
2844 if (xInfo->hasPropertyByName(
"EmbedLatinScriptFonts"))
2845 xProps->getPropertyValue(
"EmbedLatinScriptFonts") >>= bEmbedLatinScript;
2846 if (xInfo->hasPropertyByName(
"EmbedAsianScriptFonts"))
2847 xProps->getPropertyValue(
"EmbedAsianScriptFonts") >>= bEmbedAsianScript;
2848 if (xInfo->hasPropertyByName(
"EmbedComplexScriptFonts"))
2849 xProps->getPropertyValue(
"EmbedComplexScriptFonts") >>= bEmbedComplexScript;
2862 Reference< beans::XPropertySet > xProps(
GetModel(), UNO_QUERY );
2863 if ( xProps.is() ) {
2864 Sequence<Any> aAnySeq;
2865 if( xProps->getPropertyValue(
"Fonts") >>= aAnySeq )
2867 if( aAnySeq.getLength() % 5 == 0 )
2869 int nLen = aAnySeq.getLength() / 5;
2871 for(
int i = 0;
i < nLen;
i++ )
2873 OUString sFamilyName, sStyleName;
2876 eCharSet(RTL_TEXTENCODING_DONTKNOW);
2878 aAnySeq[nSeqIndex++] >>= sFamilyName;
2879 aAnySeq[nSeqIndex++] >>= sStyleName;
2880 aAnySeq[nSeqIndex++] >>= eFamily;
2881 aAnySeq[nSeqIndex++] >>= ePitch;
2882 aAnySeq[nSeqIndex++] >>= eCharSet;
2884 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
constexpr tools::Long Y() const
void setX(tools::Long nX)
void setY(tools::Long nY)
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
constexpr tools::Long X() 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, const std::initializer_list< std::u16string_view > *pOmitFalseValues=nullptr)
void convertMeasureToXML(OUStringBuffer &rBuffer, sal_Int32 nMeasure) const
convert measure to string: from meCoreMeasureUnit to meXMLMeasureUnit
std::shared_ptr< 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