22 #include <string_view>
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>
103 void SetName(
const OUString& rStr);
119 const Reference<XDrawPage>& xPage)
126 meOrientation(rExp.IsDraw() ?
view::PaperOrientation_PORTRAIT :
view::PaperOrientation_LANDSCAPE)
134 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"BorderBottom"))
136 aAny = xPropSet->getPropertyValue(
"BorderBottom");
139 aAny = xPropSet->getPropertyValue(
"BorderLeft");
142 aAny = xPropSet->getPropertyValue(
"BorderRight");
145 aAny = xPropSet->getPropertyValue(
"BorderTop");
149 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"Width"))
151 aAny = xPropSet->getPropertyValue(
"Width");
154 aAny = xPropSet->getPropertyValue(
"Height");
158 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"Orientation"))
160 aAny = xPropSet->getPropertyValue(
"Orientation");
165 Reference <container::XNamed> xMasterNamed(xPage, UNO_QUERY);
166 if(xMasterNamed.is())
188 #define IMP_AUTOLAYOUT_INFO_MAX (35L)
228 , mpPageMasterInfo(pInf)
234 Size aPageSize(28000, 21000);
235 Size aPageInnerSize(28000, 21000);
241 aPageInnerSize = aPageSize;
247 Point aTitlePos(aPagePos);
248 Size aTitleSize(aPageInnerSize);
252 aTitleSize.
setHeight(static_cast<tools::Long>(aTitleSize.
Height() / 2.5));
253 Point aPos = aTitlePos;
255 Size aPartArea = aTitleSize;
259 double fH =
static_cast<double>(aPartArea.
Width()) / aPageSize.
Width();
260 double fV =
static_cast<double>(aPartArea.
Height()) / aPageSize.
Height();
264 aSize.
setWidth( static_cast<tools::Long>(fH * aPageSize.
Width()) );
267 aPos.AdjustX((aPartArea.
Width() - aSize.
Width()) / 2);
281 Point aLPos(aPagePos);
282 Size aLSize(aPageInnerSize);
290 aTitlePos.setX( (aClassicTPos.X() + aClassicTSize.
Width()) - aClassicTSize.
Height() );
291 aTitlePos.setY( aClassicTPos.Y() );
293 aTitleSize.
setHeight( (aClassicLPos.Y() + aClassicLSize.
Height()) - aClassicTPos.Y() );
307 Point aLayoutPos(aPagePos);
308 Size aLayoutSize(aPageInnerSize);
351 aLayoutPos.setX( aClassicLPos.X() );
352 aLayoutPos.setY( aClassicTPos.Y() );
353 aLayoutSize.
setWidth( (aClassicLPos.X() + aClassicLSize.
Width())
354 - (aClassicTSize.
Height() + (aClassicLPos.Y() - (aClassicTPos.Y() + aClassicTSize.
Height()))));
355 aLayoutSize.
setHeight( (aClassicLPos.Y() + aClassicLSize.
Height()) - aClassicTPos.Y() );
359 aLayoutPos = aTitlePos;
378 const css::uno::Reference< css::uno::XComponentContext >& xContext,
379 OUString
const & implementationName,
383 mnDocMasterPageCount(0),
384 mnDocDrawPageCount(0),
386 mpHandoutPageMaster(nullptr),
432 Reference< style::XStyleFamiliesSupplier > xFamSup(
GetModel(), UNO_QUERY );
439 Reference < drawing::XMasterPagesSupplier > xMasterPagesSupplier(
GetModel(), UNO_QUERY);
440 if(xMasterPagesSupplier.is())
451 Reference <XDrawPagesSupplier> xDrawPagesSupplier(
GetModel(), UNO_QUERY);
452 if(xDrawPagesSupplier.is())
477 Reference<presentation::XHandoutMasterSupplier> xHandoutSupp(
GetModel(), UNO_QUERY);
478 if(xHandoutSupp.is())
480 Reference<XDrawPage> xHandoutPage(xHandoutSupp->getHandoutMasterPage());
481 if(xHandoutPage.is() && xHandoutPage->getCount())
491 Reference< drawing::XShapes > xMasterPage;
493 if((aAny >>= xMasterPage) && xMasterPage.is())
501 Reference<presentation::XPresentationPage> xPresPage;
502 if((aAny >>= xPresPage) && xPresPage.is())
504 Reference<XDrawPage> xNotesPage(xPresPage->getNotesPage());
505 if(xNotesPage.is() && xNotesPage->getCount())
517 Reference< drawing::XShapes > xPage;
519 if((aAny >>= xPage) && xPage.is())
527 Reference<presentation::XPresentationPage> xPresPage;
528 if((aAny >>= xPresPage) && xPresPage.is())
530 Reference<XDrawPage> xNotesPage(xPresPage->getNotesPage());
531 if(xNotesPage.is() && xNotesPage->getCount())
575 sal_uInt32 nRetval(0);
579 sal_Int32
nCount = xShapes->getCount();
581 for(sal_Int32
a(0);
a < nCount;
a++)
583 Any aAny(xShapes->getByIndex(
a));
584 Reference< drawing::XShapes > xGroup;
586 if((aAny >>= xGroup) && xGroup.is())
625 Reference< presentation::XHandoutMasterSupplier > xHandoutSupp(
GetModel(), UNO_QUERY );
626 if( xHandoutSupp.is() )
628 Reference< XDrawPage > xHandoutPage( xHandoutSupp->getHandoutMasterPage() );
629 if( xHandoutPage.is() )
640 Reference<XDrawPage> xDrawPage;
642 if((aAny >>= xDrawPage) && xDrawPage.is())
658 sal_uInt16
nType = sal_uInt16();
659 Any aAny = xPropSet->getPropertyValue(
"Layout");
667 Reference < drawing::XMasterPageTarget > xMasterPageInt(xPage, UNO_QUERY);
668 if(xMasterPageInt.is())
670 Reference<XDrawPage> xUsedMasterPage(xMasterPageInt->getMasterPage());
671 if(xUsedMasterPage.is())
673 Reference < container::XNamed > xMasterNamed(xUsedMasterPage, UNO_QUERY);
674 if(xMasterNamed.is())
676 OUString sMasterPageName = xMasterNamed->getName();
685 [=](std::unique_ptr<ImpXMLAutoLayoutInfo>
const & rInfo) {
return nType == rInfo->GetLayoutType() && pInfo == rInfo->GetPageMasterInfo(); });
696 "T" + OUString::number(nType);
722 switch(pInfo->GetLayoutType())
872 aLeftTop.setHeight(
tools::Long(aLeftTop.GetHeight() * 0.477));
888 aTopLeft.setWidth(
tools::Long(aTopLeft.GetWidth() * 0.488));
914 aTopLeft.setWidth(
tools::Long(aTopLeft.GetWidth() * 0.488));
947 sal_Int32 nColCnt, nRowCnt;
948 sal_Int32 nGapX = pInfo->GetGapX();
949 sal_Int32 nGapY = pInfo->GetGapY();
951 switch(pInfo->GetLayoutType())
953 case 22 : nColCnt = 1; nRowCnt = 1;
break;
954 case 23 : nColCnt = 1; nRowCnt = 2;
break;
955 case 24 : nColCnt = 1; nRowCnt = 3;
break;
956 case 25 : nColCnt = 2; nRowCnt = 2;
break;
957 case 26 : nColCnt = 3; nRowCnt = 2;
break;
958 case 31 : nColCnt = 3; nRowCnt = 3;
break;
959 default: nColCnt = 0; nRowCnt = 0;
break;
962 Size aPartSize(pInfo->GetTitleRectangle().GetSize());
963 Point aPartPos(pInfo->GetTitleRectangle().TopLeft());
965 if(aPartSize.Width() > aPartSize.Height())
967 sal_Int32 nZwi(nColCnt);
972 if (nColCnt == 0 || nRowCnt == 0)
975 aPartSize.setWidth( (aPartSize.Width() - ((nColCnt - 1) * nGapX)) / nColCnt );
976 aPartSize.setHeight( (aPartSize.Height() - ((nRowCnt - 1) * nGapY)) / nRowCnt );
978 Point aTmpPos(aPartPos);
980 for (sal_Int32
a = 0;
a < nRowCnt;
a++)
982 aTmpPos.setX(aPartPos.X());
984 for (sal_Int32 b = 0; b < nColCnt; b++)
989 aTmpPos.AdjustX( aPartSize.Width() + nGapX );
992 aTmpPos.AdjustY( aPartSize.Height() + nGapY );
1042 aTopLeft.setWidth(
tools::Long(aTopLeft.GetWidth() * 0.488));
1062 aTopLeft.setWidth(
tools::Long(aTopLeft.GetWidth() * 0.322));
1086 OSL_FAIL(
"XMLEXP: unknown autolayout export");
1097 OUStringBuffer sStringBuffer;
1120 aStr = sStringBuffer.makeStringAndClear();
1124 aStr = sStringBuffer.makeStringAndClear();
1129 aStr = sStringBuffer.makeStringAndClear();
1134 aStr = sStringBuffer.makeStringAndClear();
1143 bool bDoesExist =
false;
1172 Reference< XHandoutMasterSupplier > xHMS(
GetModel(), UNO_QUERY );
1175 Reference< XDrawPage > xMasterPage( xHMS->getHandoutMasterPage() );
1176 if( xMasterPage.is() )
1188 Reference< XDrawPage > xMasterPage(
mxDocMasterPages->getByIndex(nMPageId), UNO_QUERY );
1191 if(xMasterPage.is())
1200 Reference< presentation::XPresentationPage > xPresPage(xMasterPage, UNO_QUERY);
1203 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
1223 OUString sNewName =
"PM" + OUString::number(nCnt);
1228 OUStringBuffer sStringBuffer;
1239 sString = sStringBuffer.makeStringAndClear();
1244 sString = sStringBuffer.makeStringAndClear();
1249 sString = sStringBuffer.makeStringAndClear();
1254 sString = sStringBuffer.makeStringAndClear();
1259 sString = sStringBuffer.makeStringAndClear();
1264 sString = sStringBuffer.makeStringAndClear();
1286 if(!pInfo->GetMasterPageName().isEmpty() && rName == pInfo->GetMasterPageName())
1305 Reference<XDrawPage> xDrawPage;
1309 Reference< presentation::XPresentationPage > xPresPage(xDrawPage, UNO_QUERY);
1320 static OUString
findOrAppendImpl( std::vector< OUString >& rVector,
const OUString& rText, std::u16string_view pPrefix )
1323 auto aIter = std::find(rVector.begin(), rVector.end(), rText);
1324 sal_Int32
nIndex = std::distance(rVector.begin(), aIter) + 1;
1327 if( aIter == rVector.end() )
1328 rVector.push_back( rText );
1332 return pPrefix + OUString::number( nIndex );
1335 static OUString
findOrAppendImpl( std::vector< DateTimeDeclImpl >& rVector,
const OUString& rText,
bool bFixed, sal_Int32 nFormat, std::u16string_view pPrefix )
1338 auto aIter = std::find_if(rVector.begin(), rVector.end(),
1340 return (rDecl.mbFixed == bFixed) &&
1341 (!bFixed || (rDecl.maStrText == rText)) &&
1342 (bFixed || (rDecl.mnFormat == nFormat));
1344 sal_Int32
nIndex = std::distance(rVector.begin(), aIter) + 1;
1347 if( aIter == rVector.end() )
1353 rVector.push_back( aDecl );
1358 return pPrefix + OUString::number( nIndex );
1369 if( xDrawPage.is() )
try
1372 Reference< XPropertySetInfo > xInfo( xSet->getPropertySetInfo() );
1376 const OUString aStrHeaderTextProp(
"HeaderText" );
1377 if( xInfo->hasPropertyByName( aStrHeaderTextProp ) )
1379 xSet->getPropertyValue( aStrHeaderTextProp ) >>= aStrText;
1380 if( !aStrText.isEmpty() )
1384 const OUString aStrFooterTextProp(
"FooterText" );
1385 if( xInfo->hasPropertyByName( aStrFooterTextProp ) )
1387 xSet->getPropertyValue( aStrFooterTextProp ) >>= aStrText;
1388 if( !aStrText.isEmpty() )
1392 const OUString aStrDateTimeTextProp(
"DateTimeText" );
1393 if( xInfo->hasPropertyByName( aStrDateTimeTextProp ) )
1395 bool bFixed =
false;
1396 sal_Int32 nFormat = 0;
1397 xSet->getPropertyValue( aStrDateTimeTextProp ) >>= aStrText;
1398 xSet->getPropertyValue(
"IsDateTimeFixed") >>= bFixed;
1399 xSet->getPropertyValue(
"DateTimeFormat") >>= nFormat;
1401 if( !bFixed || !aStrText.isEmpty() )
1419 OUStringBuffer sBuffer;
1428 sBuffer.append( aPrefix );
1429 sBuffer.append( nIndex );
1445 sBuffer.append( aPrefix );
1446 sBuffer.append( nIndex );
1463 sBuffer.append( aPrefix );
1464 sBuffer.append( nIndex );
1469 if( !rDecl.mbFixed )
1495 OUString sStyleName;
1504 if( bExportBackground )
1510 const OUString aBackground(
"Background");
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( 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(),
1610 uno::Sequence<beans::NamedValue> stats { {
"ObjectCount", uno::makeAny(
mnObjectCount) } };
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())
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 OUString aBookmarkName( aBookmarkURL.copy( 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() )
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;
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&)
2065 Reference< presentation::XHandoutMasterSupplier > xHandoutSupp(
GetModel(), UNO_QUERY );
2066 if( xHandoutSupp.is() )
2068 Reference< XDrawPage > xHandoutPage( xHandoutSupp->getHandoutMasterPage() );
2069 if( xHandoutPage.is() && xHandoutPage->getCount())
2077 Reference< XDrawPage > xMasterPage(
mxDocMasterPages->getByIndex(nMPageId), UNO_QUERY );
2079 if( xMasterPage.is() )
2085 OUString aMasterPageNamePrefix;
2086 Reference < container::XNamed > xNamed(xMasterPage, UNO_QUERY);
2089 aMasterPageNamePrefix = xNamed->getName();
2091 if(!aMasterPageNamePrefix.isEmpty())
2093 aMasterPageNamePrefix +=
"-";
2095 GetShapeExport()->setPresentationStylePrefix( aMasterPageNamePrefix );
2097 if(xMasterPage.is() && xMasterPage->getCount())
2102 Reference< presentation::XPresentationPage > xPresPage(xMasterPage, UNO_QUERY);
2105 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
2111 if(xNotesPage->getCount())
2133 Reference<XDrawPage> xDrawPage(
mxDocDrawPages->getByIndex(nPageInd), UNO_QUERY );
2134 if( xDrawPage.is() )
2140 OUString aMasterPageNamePrefix;
2141 Reference < drawing::XMasterPageTarget > xMasterPageInt(xDrawPage, UNO_QUERY);
2142 if(xMasterPageInt.is())
2144 Reference<XDrawPage> xUsedMasterPage(xMasterPageInt->getMasterPage());
2145 if(xUsedMasterPage.is())
2147 Reference < container::XNamed > xMasterNamed(xUsedMasterPage, UNO_QUERY);
2148 if(xMasterNamed.is())
2150 aMasterPageNamePrefix = xMasterNamed->getName();
2154 if(!aMasterPageNamePrefix.isEmpty())
2156 aMasterPageNamePrefix +=
"-";
2159 GetShapeExport()->setPresentationStylePrefix( aMasterPageNamePrefix );
2162 if(xDrawPage.is() && xDrawPage->getCount())
2168 Reference< presentation::XPresentationPage > xPresPage(xDrawPage, UNO_QUERY);
2171 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
2177 if(xNotesPage->getCount())
2214 if ( (
getExportFlags() & nContentAutostyles ) == nContentAutostyles )
2229 Reference< presentation::XHandoutMasterSupplier > xHandoutSupp(
GetModel(), UNO_QUERY );
2230 if( xHandoutSupp.is() )
2232 Reference< XDrawPage > xHandoutPage( xHandoutSupp->getHandoutMasterPage() );
2233 if( xHandoutPage.is() )
2244 const OUString& sString = pInfo->
GetName();
2258 if(xHandoutPage.is() && xHandoutPage->getCount())
2267 Reference< XDrawPage > xMasterPage(
mxDocMasterPages->getByIndex(nMPageId), UNO_QUERY );
2268 if(xMasterPage.is())
2271 Reference < container::XNamed > xNamed(xMasterPage, UNO_QUERY);
2274 bool bEncoded =
false;
2275 OUString sMasterPageName = xNamed->getName();
2287 const OUString& sString = pInfo->
GetName();
2303 if(xMasterPage.is() && xMasterPage->getCount())
2309 Reference< presentation::XPresentationPage > xPresPage(xMasterPage, UNO_QUERY);
2312 Reference< XDrawPage > xNotesPage(xPresPage->getNotesPage());
2318 const OUString& sString = pMasterInfo->
GetName();
2340 if( !xDrawPage.is() )
2343 Reference< form::XFormsSupplier2 > xFormsSupplier( xDrawPage, UNO_QUERY );
2344 if ( xFormsSupplier.is() && xFormsSupplier->hasForms() )
2353 OSL_FAIL(
"OFormLayerXMLExport::seekPage failed!" );
2360 if( !xPropSet.is() )
2363 awt::Rectangle aVisArea;
2364 xPropSet->getPropertyValue(
"VisibleArea") >>= aVisArea;
2367 beans::PropertyValue* pProps = rProps.getArray();
2369 pProps[0].Name =
"VisibleAreaTop";
2370 pProps[0].Value <<= aVisArea.Y;
2371 pProps[1].Name =
"VisibleAreaLeft";
2372 pProps[1].Value <<= aVisArea.X;
2373 pProps[2].Name =
"VisibleAreaWidth";
2374 pProps[2].Value <<= aVisArea.Width;
2375 pProps[3].Name =
"VisibleAreaHeight";
2376 pProps[3].Value <<= aVisArea.Height;
2382 Reference< lang::XMultiServiceFactory > xFac(
GetModel(), UNO_QUERY );
2400 sal_Int32 nFormat = nNumberFormat;
2401 if( (nNumberFormat > 1) && (nNumberFormat <= 0x0f) )
2445 OUStringBuffer sNavOrder;
2449 Reference< XIndexAccess > xNavOrder( xSet->getPropertyValue(
"NavigationOrder"), UNO_QUERY_THROW );
2451 Reference< XIndexAccess > xZOrderAccess = xDrawPage;
2454 if( (xNavOrder.get() != xZOrderAccess.get()) && (xNavOrder->getCount() == xDrawPage->getCount()) )
2457 const sal_Int32
nCount = xNavOrder->getCount();
2458 for( nIndex = 0; nIndex < nCount; ++nIndex )
2461 if( !
sId.isEmpty() )
2463 if( !sNavOrder.isEmpty() )
2464 sNavOrder.append(
' ' );
2465 sNavOrder.append(
sId );
2473 return sNavOrder.makeStringAndClear();
2478 Reference< XAnnotationAccess > xAnnotationAccess( xDrawPage, UNO_QUERY );
2479 if( !xAnnotationAccess.is() )
return;
2483 Reference< XAnnotationEnumeration > xAnnotationEnumeration( xAnnotationAccess->createAnnotationEnumeration() );
2484 if( xAnnotationEnumeration.is() )
2486 while( xAnnotationEnumeration->hasMoreElements() )
2488 Reference< XAnnotation > xAnnotation( xAnnotationEnumeration->nextElement(), UNO_SET_THROW );
2489 Reference< XText > xText( xAnnotation->getTextRange() );
2490 if(xText.is() && !xText->getString().isEmpty())
2498 "exception caught during export of annotation auto styles");
2510 Reference< XAnnotationAccess > xAnnotationAccess( xDrawPage, UNO_QUERY );
2511 if( !xAnnotationAccess.is() )
2516 Reference< XAnnotationEnumeration > xAnnotationEnumeration( xAnnotationAccess->createAnnotationEnumeration() );
2517 if( xAnnotationEnumeration.is() && xAnnotationEnumeration->hasMoreElements() )
2519 OUStringBuffer sStringBuffer;
2522 Reference< XAnnotation > xAnnotation( xAnnotationEnumeration->nextElement(), UNO_SET_THROW );
2524 RealPoint2D aPosition( xAnnotation->getPosition() );
2527 static_cast<sal_Int32>( aPosition.X * 100 ) );
2531 static_cast<sal_Int32>( aPosition.Y * 100 ) );
2534 RealSize2D aSize( xAnnotation->getSize() );
2536 if( aSize.Width || aSize.Height )
2539 static_cast<sal_Int32>( aSize.Width * 100 ) );
2542 static_cast<sal_Int32>( aSize.Height * 100 ) );
2550 OUString aAuthor( xAnnotation->getAuthor() );
2551 if( !aAuthor.isEmpty() )
2558 OUString aInitials( xAnnotation->getInitials() );
2559 if( !aInitials.isEmpty() )
2575 css::util::DateTime aDate( xAnnotation->getDateTime() );
2578 Characters(sStringBuffer.makeStringAndClear());
2581 css::uno::Reference < css::text::XText > xText( xAnnotation->getTextRange() );
2585 while( xAnnotationEnumeration->hasMoreElements() );
2594 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2596 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2599 pCtx,
"XMLImpressExportOasis",
false,
2606 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2608 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2611 pCtx,
"XMLImpressStylesExportOasis",
false,
2616 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2618 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2620 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLImpressContentExportOasis",
false,
2626 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2628 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2630 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLImpressMetaExportOasis",
false,
2634 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2636 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2638 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLImpressSettingsExportOasis",
false,
2642 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2644 uno::Sequence<uno::Any>
const& )
2647 pCtx,
"XMLImpressExportOOO",
false,
2654 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2656 uno::Sequence<uno::Any>
const& )
2659 pCtx,
"XMLDrawExportOOO",
true,
2666 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2668 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2670 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLDrawSettingsExportOasis",
true,
2674 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2676 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2678 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLDrawMetaExportOasis",
true,
2682 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2684 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2686 return cppu::acquire(
new SdXMLExport(pCtx,
"XMLDrawContentExportOasis",
true,
2692 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2694 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2697 pCtx,
"XMLDrawStylesExportOasis",
true,
2702 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2704 uno::Sequence<uno::Any>
const& )
2707 pCtx,
"XMLDrawExportOasis",
true,
2714 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2716 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2718 return cppu::acquire(
2719 new SdXMLExport(pCtx,
"XMLDrawingLayerExport",
true,
2725 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
2727 uno::XComponentContext* pCtx, uno::Sequence<uno::Any>
const& )
2729 return cppu::acquire(
2730 new SdXMLExport(pCtx,
"XMLImpressClipboardExport",
false,
2738 bool bEmbedFonts =
false;
2739 bool bEmbedUsedOnly =
false;
2740 bool bEmbedLatinScript =
true;
2741 bool bEmbedAsianScript =
true;
2742 bool bEmbedComplexScript =
true;
2753 xProps.set(xFactory->createInstance(
"com.sun.star.document.Settings"), UNO_QUERY);
2755 xInfo = xProps->getPropertySetInfo();
2756 if (xInfo.is() && xProps.is())
2758 if (xInfo->hasPropertyByName(
"EmbedFonts"))
2759 xProps->getPropertyValue(
"EmbedFonts") >>= bEmbedFonts;
2760 if (xInfo->hasPropertyByName(
"EmbedOnlyUsedFonts"))
2761 xProps->getPropertyValue(
"EmbedOnlyUsedFonts") >>= bEmbedUsedOnly;
2762 if (xInfo->hasPropertyByName(
"EmbedLatinScriptFonts"))
2763 xProps->getPropertyValue(
"EmbedLatinScriptFonts") >>= bEmbedLatinScript;
2764 if (xInfo->hasPropertyByName(
"EmbedAsianScriptFonts"))
2765 xProps->getPropertyValue(
"EmbedAsianScriptFonts") >>= bEmbedAsianScript;
2766 if (xInfo->hasPropertyByName(
"EmbedComplexScriptFonts"))
2767 xProps->getPropertyValue(
"EmbedComplexScriptFonts") >>= bEmbedComplexScript;
2781 if ( xProps.is() ) {
2782 Sequence<Any> aAnySeq;
2783 if( xProps->getPropertyValue(
"Fonts") >>= aAnySeq )
2785 if( aAnySeq.getLength() % 5 == 0 )
2787 int nLen = aAnySeq.getLength() / 5;
2789 for(
int i = 0;
i < nLen;
i++ )
2791 OUString sFamilyName, sStyleName;
2794 eCharSet(RTL_TEXTENCODING_DONTKNOW);
2796 aAnySeq[nSeqIndex++] >>= sFamilyName;
2797 aAnySeq[nSeqIndex++] >>= sStyleName;
2798 aAnySeq[nSeqIndex++] >>= eFamily;
2799 aAnySeq[nSeqIndex++] >>= ePitch;
2800 aAnySeq[nSeqIndex++] >>= eCharSet;
2802 pPool->
Add( sFamilyName, sStyleName,
FontFamily( eFamily ),
FontPitch( ePitch ), rtl_TextEncoding( eCharSet ) );
exports com.sun.star.lib. util
css::uno::Reference< css::embed::XStorage > const & GetTargetStorage() const
sal_Int32 GetWidth() const
virtual void ExportMasterStyles_() override
Override this method to export the contents of .
css::uno::Reference< css::container::XIndexAccess > mxDocDrawPages
Title, 2 Content and Content.
constexpr sal_uInt16 XML_NAMESPACE_ANIMATION
ImpXMLEXPPageMasterList mvPageMasterUsageList
OUString Add(const OUString &rFamilyName, const OUString &rStyleName, FontFamily nFamily, FontPitch nPitch, rtl_TextEncoding eEnc)
const tools::Rectangle & GetPresRectangle() const
OUString getNavigationOrder(const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage)
rtl::Reference< XMLShapeExport > const & GetShapeExport()
void ImpWriteAutoLayoutInfos()
SdXMLExport(const css::uno::Reference< css::uno::XComponentContext > &xContext, OUString const &implementationName, bool bIsDraw, SvXMLExportFlags nExportFlags)
virtual css::uno::Sequence< css::beans::PropertyValue > filterStreamsToStorage(const css::uno::Reference< css::embed::XStorage > &xStorage, const css::uno::Sequence< css::beans::PropertyValue > &aConfigProps)=0
void setWidth(tools::Long nWidth)
::comphelper::UnoInterfaceToUniqueIdentifierMapper & getInterfaceToIdentifierMapper()
bool ImpPrepAutoLayoutInfo(const css::uno::Reference< css::drawing::XDrawPage > &xPage, OUString &rName)
virtual void ExportStyles_(bool bUsed) override
Override this method to export the content of .
rtl::Reference< XMLTextParagraphExport > const & GetTextParagraphExport()
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Draw_XMLOasisSettingsExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
const SvXMLUnitConverter & GetMM100UnitConverter() const
sal_Int32 GetBorderBottom() const
sal_Int32 mnDocDrawPageCount
XMLPageExportPropertyMapper * GetPresPagePropsMapper() const
virtual OUString getDataStyleName(const sal_Int32 nNumberFormat, bool bTimeFormat=false) const override
void setEmbedFontScripts(bool bEmbedLatinScript, bool bEmbedAsianScript, bool bEmbedComplexScript)
constexpr OUStringLiteral gpStrDateTimeTextPrefix
virtual void SAL_CALL setSourceDocument(const css::uno::Reference< css::lang::XComponent > &xDoc) override
void SetName(const OUString &rStr)
void ImpWriteHeaderFooterDecls()
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_Draw_XMLOasisMetaExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
constexpr sal_uInt16 XML_NAMESPACE_XLINK
XMLShapeExportPropertyMapper * GetPropertySetMapper() const
static void exportDateStyle(SdXMLExport &rExport, sal_Int32 nStyle)
::std::vector< OUString > maMasterPagesStyleNames
rtl::Reference< XMLPageExportPropertyMapper > mpPresPagePropsMapper
constexpr sal_uInt16 XML_NAMESPACE_LO_EXT
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLOasisExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
view::PaperOrientation meOrientation
OUString msMasterPageName
void SetLayoutName(const OUString &rNew)
const OUString & GetMasterPageName() const
#define XML_STYLE_FAMILY_SD_GRAPHICS_PREFIX
ImpXMLAutoLayoutInfo(sal_uInt16 nTyp, ImpXMLEXPPageMasterInfo *pInf)
ImpXMLEXPPageMasterInfo * GetPageMasterInfo() const
void SAL_DLLPRIVATE AddAttributeIdLegacy(sal_uInt16 const nLegacyPrefix, OUString const &rValue)
add xml:id and legacy namespace id
OUString maHandoutMasterStyleName
const XMLPropertyMapEntry aXMLSDPresPageProps[]
void ImpWriteAutoLayoutPlaceholder(XmlPlaceholder ePl, const tools::Rectangle &rRect)
virtual void ExportStyles_(bool bUsed)
Override this method to export the content of .
#define XML_STYLE_FAMILY_SD_PRESENTATION_NAME
sal_uInt32 ImpRecursiveObjectCount(const css::uno::Reference< css::drawing::XShapes > &xShapes)
static OUString getTimeStyleName(const sal_Int32 nTimeFormat)
const css::uno::Reference< css::frame::XModel > & GetModel() const
Title, Content and 2 Content.
ProgressBarHelper * GetProgressBarHelper()
void ImpWritePresentationStyles()
void SetAutoStyles(bool bIsInAutoStyles)
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLOasisContentExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
virtual void exportAutoDataStyles() override
HeaderFooterPageSettingsImpl ImpPrepDrawPageHeaderFooterDecls(const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage)
void AddAttribute(sal_uInt16 nPrefix, const char *pName, const OUString &rValue)
::std::vector< OUString > maHeaderDeclsVector
virtual void ExportContent_() override
Override this method to export the content of .
Title, 2 Content over Content.
ImpXMLEXPPageMasterInfo(const SdXMLExport &rExp, const Reference< XDrawPage > &xPage)
ImpXMLEXPPageMasterList mvNotesPageMasterUsageList
OUString GetRelativeReference(const OUString &rValue)
::std::vector< OUString > maDrawNotesPagesStyleNames
css::uno::Reference< css::container::XNameAccess > mxDocStyleFamilies
constexpr sal_uInt16 XML_NAMESPACE_DRAW
void ImpPrepDrawPageInfos()
virtual void SAL_CALL setSourceDocument(const css::uno::Reference< css::lang::XComponent > &xDoc) override
static OUString findOrAppendImpl(std::vector< OUString > &rVector, const OUString &rText, std::u16string_view pPrefix)
::std::vector< HeaderFooterPageSettingsImpl > maDrawPagesHeaderFooterSettings
#define XML_STYLE_FAMILY_SD_GRAPHICS_NAME
bool mbAutoStylesCollected
std::vector< std::unique_ptr< ImpXMLAutoLayoutInfo > > mvAutoLayoutInfoList
const OUString & GetName() const
SvtSaveOptions::ODFSaneDefaultVersion getSaneDefaultVersion() const
returns the deterministic version for odf export
constexpr sal_uInt16 XML_NAMESPACE_SVG
bool operator==(const ImpXMLEXPPageMasterInfo &rInfo) const
#define TOOLS_WARN_EXCEPTION(area, stream)
ImpXMLEXPPageMasterInfo * ImpGetOrCreatePageMasterInfo(const css::uno::Reference< css::drawing::XDrawPage > &xMasterPage)
static OUString getDateStyleName(const sal_Int32 nDateFormat)
void exportFormsElement(const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage)
#define XML_STYLE_FAMILY_SD_PRESENTATION_PREFIX
constexpr sal_uInt16 XML_NAMESPACE_FO
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Draw_XMLOasisExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
void collectAnnotationAutoStyles(const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage)
virtual void GetConfigurationSettings(css::uno::Sequence< css::beans::PropertyValue > &aProps) override
Title, Content over Content.
sal_Int32 mnDocMasterPageCount
exports com.sun.star. view
Vertical Title, Vertical Content over Vertical Content.
tools::Long Width() const
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Draw_XMLExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
OUString ImpCreatePresPageStyleName(const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage, bool bExportBackground=true)
static void convertDateTime(OUStringBuffer &rBuffer, const css::util::DateTime &rDateTime, sal_Int16 const *pTimeZoneOffset, bool bAddTimeIf0AM=false)
::std::vector< DateTimeDeclImpl > maDateTimeDeclsVector
const OUString & getIdentifier(const css::uno::Reference< css::uno::XInterface > &rInterface) const
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Draw_XMLOasisContentExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
static void convertDuration(OUStringBuffer &rBuffer, const double fTime)
#define IMP_AUTOLAYOUT_INFO_MAX
constexpr sal_uInt16 XML_NAMESPACE_DC
virtual void ExportMeta_()
Override this method to export the content of .
#define XML_STYLE_FAMILY_SD_DRAWINGPAGE_PREFIX
view::PaperOrientation GetOrientation() const
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLOasisSettingsExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
css::uno::Reference< css::container::XIndexAccess > mxDocMasterPages
#define XML_STYLE_FAMILY_SD_DRAWINGPAGE_NAME
sal_uInt16 GetLayoutType() const
void exportPresentationSettings()
css::uno::Sequence< OUString > maDrawPagesAutoLayoutNames
HeaderFooterPageSettingsImpl maHandoutPageHeaderFooterSettings
const css::uno::Reference< css::beans::XPropertySet > & getExportInfo() const
OUString EncodeStyleName(const OUString &rName, bool *pEncoded=nullptr) const
Reference< XPropertySet > PropertySetMerger_CreateInstance(const Reference< XPropertySet > &rPropSet1, const Reference< XPropertySet > &rPropSet2)
constexpr OUStringLiteral gpStrFooterTextPrefix
void setEmbedOnlyUsedFonts(bool bEmbedUsedOnly)
sal_Int32 GetBorderRight() const
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION
std::vector< std::unique_ptr< ImpXMLEXPPageMasterInfo > > mvPageMasterInfoList
static void exportLayer(SvXMLExport &rExport)
SdXMLFormatMap maUsedDateStyles
static void exportTimeStyle(SdXMLExport &rExport, sal_Int32 nStyle)
virtual void ExportAutoStyles_() override
Override this method to export the contents of .
SvXMLNamespaceMap & GetNamespaceMap_()
::std::vector< OUString > maDrawPagesStyleNames
#define SAL_WARN_IF(condition, area, stream)
::std::vector< HeaderFooterPageSettingsImpl > maDrawNotesPagesHeaderFooterSettings
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
return the OUString representation for eToken
rtl::Reference< SvXMLAutoStylePoolP > const & GetAutoStylePool()
constexpr sal_uInt16 XML_NAMESPACE_SMIL
rtl::Reference< XMLFontAutoStylePool > const & GetFontAutoStylePool()
sal_Int32 GetGapY() const
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLOasisMetaExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
Handling of tokens in XML:
void ImpPrepMasterPageInfos()
Title, 2 Vertical Content.
void ImpPrepPageMasterInfos()
void Characters(const OUString &rChars)
constexpr OUStringLiteral gsPageLayoutNames(u"PageLayoutNames")
sal_Int32 GetGapX() const
void collectAutoStyles() override
virtual void ExportMeta_() override
Override this method to export the content of .
virtual void exportDataStyles() override
const tools::Rectangle & GetTitleRectangle() const
tools::Long AdjustWidth(tools::Long n)
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLOasisStylesExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
sal_uInt16 Add(const OUString &rPrefix, const OUString &rName, sal_uInt16 nKey=XML_NAMESPACE_UNKNOWN)
tools::Long Height() const
virtual void ExportFontDecls_() override
Override this method to export the font declarations The default implementation will export the conte...
static void convertPropertySet(css::uno::Sequence< css::beans::PropertyValue > &rProps, const css::uno::Reference< css::beans::XPropertySet > &aProperties)
ImpXMLEXPPageMasterInfo * ImpGetPageMasterInfoByName(std::u16string_view rName)
virtual void addDataStyle(const sal_Int32 nNumberFormat, bool bTimeFormat=false) override
ImpXMLEXPPageMasterInfo * mpPageMasterInfo
virtual XMLFontAutoStylePool * CreateFontAutoStylePool() override
tools::Long AdjustHeight(tools::Long n)
static bool IsCreateNecessary(sal_uInt16 nTyp)
ImpXMLEXPPageMasterInfo * mpHandoutPageMaster
sal_Int32 GetHeight() const
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLClipboardExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
constexpr sal_uInt16 XML_NAMESPACE_OFFICE_EXT
void setHeight(tools::Long nHeight)
tools::Rectangle maTitleRect
void ImpPrepAutoLayoutInfos()
const OUString & GetLayoutName() const
void SetReference(sal_Int32 nVal)
rtl::Reference< xmloff::OFormLayerXMLExport > const & GetFormExport()
static SvXMLExportPropertyMapper * CreateParaExtPropMapper(SvXMLExport &rExport)
Reference< XSingleServiceFactory > xFactory
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Impress_XMLExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
void ImplExportHeaderFooterDeclAttributes(const HeaderFooterPageSettingsImpl &aSettings)
::std::vector< OUString > maFooterDeclsVector
virtual void GetViewSettings(css::uno::Sequence< css::beans::PropertyValue > &aProps) override
void exportAnnotations(const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage)
tools::Rectangle maPresRect
const css::uno::Reference< css::task::XStatusIndicator > & GetStatusIndicator() const
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_DrawingLayer_XMLExporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
rtl::Reference< XMLSdPropHdlFactory > mpSdPropHdlFactory
constexpr sal_uInt16 XML_NAMESPACE_META
std::pair< const_iterator, bool > insert(Value &&x)
rtl::Reference< XMLShapeExportPropertyMapper > mpPropertySetMapper
virtual ~SdXMLExport() override
constexpr OUStringLiteral gpStrHeaderTextPrefix
SvXMLExportFlags getExportFlags() const
SdXMLFormatMap maUsedTimeStyles
void ImpWritePageMasterInfos()
bool HasFormExport() const
virtual void ExportFontDecls_()
Override this method to export the font declarations The default implementation will export the conte...
void convertMeasureToXML(OUStringBuffer &rBuffer, sal_Int32 nMeasure) const
convert measure to string: from meCoreMeasureUnit to meXMLMeasureUnit
constexpr sal_uInt16 XML_NAMESPACE_STYLE
Vertical Title, Vertical Content over Vertical Content.
sal_Int32 GetBorderLeft() const
sal_Int32 GetBorderTop() const
virtual void collectAutoStyles()