22#include <com/sun/star/presentation/XPresentation2.hpp>
24#include <com/sun/star/lang/DisposedException.hpp>
25#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
26#include <com/sun/star/lang/ServiceNotRegisteredException.hpp>
27#include <com/sun/star/lang/Locale.hpp>
28#include <com/sun/star/awt/XDevice.hpp>
29#include <com/sun/star/document/IndexedPropertyValues.hpp>
30#include <com/sun/star/beans/PropertyAttribute.hpp>
31#include <com/sun/star/util/XTheme.hpp>
33#include <com/sun/star/embed/Aspects.hpp>
35#include <officecfg/Office/Common.hxx>
49#include <unomodel.hxx>
54#include <LibreOfficeKit/LibreOfficeKitEnums.h>
100#include <stlpool.hxx>
112#include <com/sun/star/presentation/AnimationSpeed.hpp>
113#include <com/sun/star/presentation/ClickAction.hpp>
118#include <com/sun/star/office/XAnnotation.hpp>
119#include <com/sun/star/office/XAnnotationAccess.hpp>
120#include <com/sun/star/office/XAnnotationEnumeration.hpp>
121#include <com/sun/star/geometry/RealPoint2D.hpp>
122#include <com/sun/star/util/DateTime.hpp>
138using namespace ::
cppu;
154 case presentation::ClickAction_NONE:
return STR_CLICK_ACTION_NONE;
155 case presentation::ClickAction_PREVPAGE:
return STR_CLICK_ACTION_PREVPAGE;
156 case presentation::ClickAction_NEXTPAGE:
return STR_CLICK_ACTION_NEXTPAGE;
157 case presentation::ClickAction_FIRSTPAGE:
return STR_CLICK_ACTION_FIRSTPAGE;
158 case presentation::ClickAction_LASTPAGE:
return STR_CLICK_ACTION_LASTPAGE;
159 case presentation::ClickAction_BOOKMARK:
return STR_CLICK_ACTION_BOOKMARK;
160 case presentation::ClickAction_DOCUMENT:
return STR_CLICK_ACTION_DOCUMENT;
161 case presentation::ClickAction_PROGRAM:
return STR_CLICK_ACTION_PROGRAM;
162 case presentation::ClickAction_MACRO:
return STR_CLICK_ACTION_MACRO;
163 case presentation::ClickAction_SOUND:
return STR_CLICK_ACTION_SOUND;
164 case presentation::ClickAction_VERB:
return STR_CLICK_ACTION_VERB;
165 case presentation::ClickAction_STOPPRESENTATION:
return STR_CLICK_ACTION_STOPPRESENTATION;
166 default: OSL_FAIL(
"No StringResource for ClickAction available!" );
177 explicit SdUnoForbiddenCharsTable(
SdrModel* pModel);
178 virtual ~SdUnoForbiddenCharsTable()
override;
191SdUnoForbiddenCharsTable::SdUnoForbiddenCharsTable(
SdrModel* pModel )
197void SdUnoForbiddenCharsTable::onChange()
201 mpModel->ReformatAllTextObjects();
205SdUnoForbiddenCharsTable::~SdUnoForbiddenCharsTable()
210 EndListening( *mpModel );
215 if (rHint.GetId() != SfxHintId::ThisIsAnSdrHint)
218 if( SdrHintKind::ModelCleared == pSdrHint->
GetKind() )
262 return &aDrawModelPropertySet_Impl;
268 mpDocShell( pShell ),
269 mpDoc( pShell ? pShell->GetDoc() : nullptr ),
271 mbImpressDoc( pShell && pShell->GetDoc() && pShell->GetDoc()->GetDocumentType() ==
DocumentType::
Impress ),
272 mbClipBoard( bClipBoard ),
274 mbPaintTextEdit( true )
282 OSL_FAIL(
"DocShell is invalid");
288 mpDocShell( nullptr ),
292 mbClipBoard( bClipBoard ),
294 mbPaintTextEdit( true )
302 OSL_FAIL(
"SdDrawDocument is invalid");
319 aAny <<= uno::Reference<lang::XServiceInfo>(
this);
321 aAny <<= uno::Reference<beans::XPropertySet>(
this);
323 aAny <<= uno::Reference<lang::XMultiServiceFactory>(
this);
325 aAny <<= uno::Reference<drawing::XDrawPageDuplicator>(
this);
327 aAny <<= uno::Reference<drawing::XLayerSupplier>(
this);
329 aAny <<= uno::Reference<drawing::XMasterPagesSupplier>(
this);
331 aAny <<= uno::Reference<drawing::XDrawPagesSupplier>(
this);
333 aAny <<= uno::Reference<presentation::XHandoutMasterSupplier>(
this);
335 aAny <<= uno::Reference<document::XLinkTargetSupplier>(
this);
337 aAny <<= uno::Reference<style::XStyleFamiliesSupplier>(
this);
339 aAny <<= uno::Reference<css::ucb::XAnyCompareFactory>(
this);
341 aAny <<= uno::Reference<view::XRenderable>(
this);
343 aAny <<= uno::Reference< presentation::XPresentationSupplier >(
this);
345 aAny <<= uno::Reference< presentation::XCustomPresentationSupplier >(
this);
370 catch (
const uno::RuntimeException&)
380const css::uno::Sequence< sal_Int8 > & SdXImpressDocument::getUnoTunnelId() noexcept
383 return theSdXImpressDocumentUnoTunnelId.
getSeq();
388 if (comphelper::isUnoTunnelId<SdrModel>(rIdentifier))
432 return css::uno::Sequence<sal_Int8>();
442 if (rHint.
GetId() == SfxHintId::ThisIsAnSdrHint)
447 document::EventObject
aEvent;
452 if( pSdrHint->
GetKind() == SdrHintKind::ModelCleared )
455 EndListening( *
mpDoc );
463 if(rHint.
GetId() == SfxHintId::Dying)
471 if( pNewDoc !=
mpDoc )
496 if( 0 == nPageCount )
501 Size aDefSize(21000, 29700);
502 pStandardPage->SetSize( aDefSize );
510 bool bIsPageBack = aVisibleLayers.
IsSet( aBckgrnd );
511 bool bIsPageObj = aVisibleLayers.
IsSet( aBckgrndObj );
520 sal_uInt16 nStandardPageNum = pPreviousStandardPage->
GetPageNum() + 2;
522 sal_uInt16 nNotesPageNum = nStandardPageNum + 1;
528 pStandardPage =
static_cast<SdPage*
>( pPreviousStandardPage->
CloneSdrPage(*mpDoc).get() );
532 pStandardPage->SetSize( pPreviousStandardPage->
GetSize() );
533 pStandardPage->SetBorder( pPreviousStandardPage->
GetLeftBorder(),
537 pStandardPage->SetOrientation( pPreviousStandardPage->
GetOrientation() );
538 pStandardPage->SetName(OUString());
547 pStandardPage->SetLayoutName( pPreviousStandardPage->
GetLayoutName() );
553 aVisibleLayers.
Set(aBckgrnd, bIsPageBack);
554 aVisibleLayers.
Set(aBckgrndObj, bIsPageObj);
555 pStandardPage->TRG_SetMasterPageVisibleLayers(aVisibleLayers);
567 pNotesPage->SetSize( pPreviousNotesPage->
GetSize() );
572 pNotesPage->SetOrientation( pPreviousNotesPage->
GetOrientation() );
573 pNotesPage->SetName(OUString());
583 pNotesPage->SetLayoutName( pPreviousNotesPage->
GetLayoutName() );
590 return pStandardPage.get();
604 if(
nullptr ==
mpDoc )
605 throw lang::DisposedException();
614 if(
nullptr ==
mpDoc )
615 throw lang::DisposedException();
627 if(
nullptr ==
mpDoc )
628 throw lang::DisposedException();
637 if(
nullptr ==
mpDoc )
638 throw lang::DisposedException();
650 uno::Reference < container::XIndexContainer > xCont( xRet, uno::UNO_QUERY );
651 DBG_ASSERT( xCont.is(),
"SdXImpressDocument::getViewData() failed for OLE object" );
654 for( sal_uInt32
i = 0,
n = rList.size();
i <
n;
i++ )
658 uno::Sequence< beans::PropertyValue >
aSeq;
673 if(
nullptr ==
mpDoc )
674 throw lang::DisposedException();
680 const sal_Int32
nCount = xData->getCount();
686 uno::Sequence< beans::PropertyValue >
aSeq;
691 std::unique_ptr<::sd::FrameView> pFrameView(new ::sd::FrameView(
mpDoc ));
692 pFrameView->ReadUserDataSequence(
aSeq );
693 rViews.push_back( std::move(pFrameView) );
703 if(
nullptr ==
mpDoc )
704 throw lang::DisposedException();
707 SvxDrawPage* pSvxPage = comphelper::getFromUnoTunnel<SvxDrawPage>( xPage );
716 uno::Reference< drawing::XDrawPage > xDrawPage( pPage->
getUnoPage(), uno::UNO_QUERY );
721 uno::Reference< drawing::XDrawPage > xDrawPage;
730 if(
nullptr ==
mpDoc )
731 throw lang::DisposedException();
735 if( !xDrawPages.is() )
749 if(
nullptr ==
mpDoc )
750 throw lang::DisposedException();
754 if( !xMasterPages.is() )
769 if(
nullptr ==
mpDoc )
770 throw lang::DisposedException();
772 uno::Reference< container::XNameAccess > xLayerManager(
mxLayerManager );
774 if( !xLayerManager.is() )
777 return xLayerManager;
785 if(
nullptr ==
mpDoc )
786 throw lang::DisposedException();
790 if( !xCustomPres.is() )
801 if(
nullptr ==
mpDoc )
802 throw lang::DisposedException();
812 if(
nullptr ==
mpDoc )
813 throw lang::DisposedException();
815 uno::Reference< drawing::XDrawPage > xPage;
820 xPage.set(pPage->
getUnoPage(), uno::UNO_QUERY);
827 OUString
const & aServiceSpecifier, OUString
const & referer)
831 if(
nullptr ==
mpDoc )
832 throw lang::DisposedException();
834 if( aServiceSpecifier ==
"com.sun.star.drawing.DashTable" )
841 if( aServiceSpecifier ==
"com.sun.star.drawing.GradientTable" )
848 if( aServiceSpecifier ==
"com.sun.star.drawing.HatchTable" )
855 if( aServiceSpecifier ==
"com.sun.star.drawing.BitmapTable" )
862 if( aServiceSpecifier ==
"com.sun.star.drawing.TransparencyGradientTable" )
869 if( aServiceSpecifier ==
"com.sun.star.drawing.MarkerTable" )
876 if( aServiceSpecifier ==
"com.sun.star.text.NumberingRules" )
880 if( aServiceSpecifier ==
"com.sun.star.drawing.Background" )
882 return uno::Reference< uno::XInterface >(
886 if( aServiceSpecifier ==
"com.sun.star.drawing.Defaults" )
910 if( aServiceSpecifier ==
"com.sun.star.document.Settings" ||
911 ( !
mbImpressDoc && ( aServiceSpecifier ==
"com.sun.star.drawing.DocumentSettings" ) ) ||
912 (
mbImpressDoc && ( aServiceSpecifier ==
"com.sun.star.presentation.DocumentSettings" ) ) )
917 if( aServiceSpecifier ==
"com.sun.star.text.TextField.DateTime" ||
918 aServiceSpecifier ==
"com.sun.star.text.textfield.DateTime" )
923 if( aServiceSpecifier ==
"com.sun.star.presentation.TextField.Header" ||
924 aServiceSpecifier ==
"com.sun.star.presentation.textfield.Header" )
929 if( aServiceSpecifier ==
"com.sun.star.presentation.TextField.Footer" ||
930 aServiceSpecifier ==
"com.sun.star.presentation.textfield.Footer" )
935 if( aServiceSpecifier ==
"com.sun.star.presentation.TextField.DateTime" ||
936 aServiceSpecifier ==
"com.sun.star.presentation.textfield.DateTime" )
941 if( aServiceSpecifier ==
"com.sun.star.text.TextField.PageName" ||
942 aServiceSpecifier ==
"com.sun.star.text.textfield.PageName" )
947 if (aServiceSpecifier ==
"com.sun.star.text.TextField.DocInfo.Custom" ||
948 aServiceSpecifier ==
"com.sun.star.text.textfield.DocInfo.Custom")
953 if( aServiceSpecifier ==
"com.sun.star.xml.NamespaceMap" )
961 if (aServiceSpecifier ==
"com.sun.star.document.ExportGraphicStorageHandler")
966 if (aServiceSpecifier ==
"com.sun.star.document.ImportGraphicStorageHandler")
971 if( aServiceSpecifier ==
"com.sun.star.document.ExportEmbeddedObjectResolver" )
974 if(
nullptr == pPersist )
975 throw lang::DisposedException();
980 if( aServiceSpecifier ==
"com.sun.star.document.ImportEmbeddedObjectResolver" )
983 if(
nullptr == pPersist )
984 throw lang::DisposedException();
989 uno::Reference< uno::XInterface > xRet;
991 if( aServiceSpecifier.startsWith(
"com.sun.star.presentation.") )
993 const std::u16string_view aType( aServiceSpecifier.subView(26) );
1000 nType = SdrObjKind::Text;
1004 nType = SdrObjKind::Text;
1008 nType = SdrObjKind::Text;
1012 nType = SdrObjKind::Graphic;
1016 nType = SdrObjKind::Page;
1020 nType = SdrObjKind::OLE2;
1024 nType = SdrObjKind::OLE2;
1028 nType = SdrObjKind::OLE2;
1032 nType = SdrObjKind::Table;
1036 nType = SdrObjKind::OLE2;
1040 nType = SdrObjKind::Text;
1044 nType = SdrObjKind::Page;
1048 nType = SdrObjKind::Text;
1052 nType = SdrObjKind::Text;
1056 nType = SdrObjKind::Text;
1060 nType = SdrObjKind::Text;
1064 nType = SdrObjKind::Media;
1068 throw lang::ServiceNotRegisteredException();
1076 pShape->SetShapeType(aServiceSpecifier);
1078 xRet =
static_cast<uno::XWeak*
>(pShape.get());
1080 else if ( aServiceSpecifier ==
"com.sun.star.drawing.TableShape" )
1084 pShape->SetShapeType(aServiceSpecifier);
1086 xRet =
static_cast<uno::XWeak*
>(pShape.get());
1093 uno::Reference< drawing::XShape > xShape( xRet, uno::UNO_QUERY );
1094 SvxShape* pShape = xShape.is() ? comphelper::getFromUnoTunnel<SvxShape>(xShape) :
nullptr;
1108 return create(aServiceSpecifier,
"");
1111css::uno::Reference<css::uno::XInterface>
1113 OUString
const & ServiceSpecifier,
1114 css::uno::Sequence<css::uno::Any>
const & Arguments)
1117 if ((ServiceSpecifier ==
"com.sun.star.drawing.GraphicObjectShape"
1118 || ServiceSpecifier ==
"com.sun.star.drawing.MediaShape"
1119 || ServiceSpecifier ==
"com.sun.star.presentation.MediaShape")
1120 && Arguments.getLength() == 1 && (Arguments[0] >>= arg))
1122 return create(ServiceSpecifier, arg);
1125 ServiceSpecifier, Arguments);
1132 if(
nullptr ==
mpDoc )
1133 throw lang::DisposedException();
1137 uno::Sequence< OUString > aSNS_Common{
"com.sun.star.drawing.DashTable",
1138 "com.sun.star.drawing.GradientTable",
1139 "com.sun.star.drawing.HatchTable",
1140 "com.sun.star.drawing.BitmapTable",
1141 "com.sun.star.drawing.TransparencyGradientTable",
1142 "com.sun.star.drawing.MarkerTable",
1143 "com.sun.star.text.NumberingRules",
1144 "com.sun.star.drawing.Background",
1145 "com.sun.star.document.Settings",
1149 "com.sun.star.xml.NamespaceMap",
1152 "com.sun.star.document.ExportGraphicStorageHandler",
1153 "com.sun.star.document.ImportGraphicStorageHandler",
1154 "com.sun.star.document.ExportEmbeddedObjectResolver",
1155 "com.sun.star.document.ImportEmbeddedObjectResolver",
1156 "com.sun.star.drawing.TableShape" };
1158 uno::Sequence< OUString > aSNS_Specific;
1161 aSNS_Specific = {
"com.sun.star.presentation.TitleTextShape",
1162 "com.sun.star.presentation.OutlinerShape",
1163 "com.sun.star.presentation.SubtitleShape",
1164 "com.sun.star.presentation.GraphicObjectShape",
1165 "com.sun.star.presentation.ChartShape",
1166 "com.sun.star.presentation.PageShape",
1167 "com.sun.star.presentation.OLE2Shape",
1168 "com.sun.star.presentation.TableShape",
1169 "com.sun.star.presentation.OrgChartShape",
1170 "com.sun.star.presentation.NotesShape",
1171 "com.sun.star.presentation.HandoutShape",
1172 "com.sun.star.presentation.DocumentSettings",
1173 "com.sun.star.presentation.FooterShape",
1174 "com.sun.star.presentation.HeaderShape",
1175 "com.sun.star.presentation.SlideNumberShape",
1176 "com.sun.star.presentation.DateTimeShape",
1177 "com.sun.star.presentation.CalcShape",
1178 "com.sun.star.presentation.MediaShape" };
1180 aSNS_Specific = {
"com.sun.star.drawing.DocumentSettings" };
1188 return "SdXImpressDocument";
1205 return {
"com.sun.star.document.OfficeDocument",
1206 "com.sun.star.drawing.GenericDrawingDocument",
1207 "com.sun.star.drawing.DrawingDocumentFactory",
1208 mbImpressDoc?OUString(
"com.sun.star.presentation.PresentationDocument"):OUString(
"com.sun.star.drawing.DrawingDocument") };
1222 if(
nullptr ==
mpDoc )
1223 throw lang::DisposedException();
1227 switch( pEntry ? pEntry->
nWID : -1 )
1231 lang::Locale aLocale;
1232 if(!(aValue >>= aLocale))
1233 throw lang::IllegalArgumentException();
1242 throw lang::IllegalArgumentException();
1253 awt::Rectangle aVisArea;
1254 if( !(aValue >>= aVisArea) || (aVisArea.Width < 0) || (aVisArea.Height < 0) )
1255 throw lang::IllegalArgumentException();
1257 sal_Int32 nRight, nTop;
1259 throw lang::IllegalArgumentException();
1266 bool bFocus =
false;
1267 if( !(aValue >>= bFocus ) )
1268 throw lang::IllegalArgumentException();
1275 if( !(aValue >>= bMode ) )
1276 throw lang::IllegalArgumentException();
1288 throw beans::PropertyVetoException();
1300 throw beans::UnknownPropertyException( aPropertyName,
static_cast<cppu::OWeakObject*
>(
this));
1311 if(
nullptr ==
mpDoc )
1312 throw lang::DisposedException();
1316 switch( pEntry ? pEntry->
nWID : -1 )
1333 const ::tools::Rectangle& aRect = pEmbeddedObj->
GetVisArea();
1334 awt::Rectangle aVisArea( aRect.Left(), aRect.Top(), aRect.getOpenWidth(), aRect.getOpenHeight() );
1344 sal_Int16 nMeasureUnit = 0;
1346 aAny <<= nMeasureUnit;
1376 uno::Sequence<uno::Any>
aSeq;
1384 for(sal_uInt16 nWhichId : aWhichIds)
1388 aSeq.realloc(
aSeq.getLength() + nItems*5 + 5 );
1389 auto pSeq =
aSeq.getArray();
1397 pSeq[nSeqIndex++] <<= sal_Int16(pFont->
GetFamily());
1398 pSeq[nSeqIndex++] <<= sal_Int16(pFont->
GetPitch());
1399 pSeq[nSeqIndex++] <<= sal_Int16(pFont->
GetCharSet());
1406 pSeq[nSeqIndex++] <<= sal_Int16(rFont.
GetFamily());
1407 pSeq[nSeqIndex++] <<= sal_Int16(rFont.
GetPitch());
1408 pSeq[nSeqIndex++] <<= sal_Int16(rFont.
GetCharSet());
1412 aSeq.realloc( nSeqIndex );
1422 auto const& pTheme = rModel.
getTheme();
1425 pTheme->ToAny(aAny);
1429 beans::PropertyValues aValues;
1435 throw beans::UnknownPropertyException( PropertyName,
static_cast<cppu::OWeakObject*
>(
this));
1451 if(
nullptr ==
mpDoc )
1452 throw lang::DisposedException();
1454 uno::Reference< container::XNameAccess > xLinks(
mxLinks );
1465 if(
nullptr ==
mpDoc )
1466 throw lang::DisposedException();
1468 uno::Reference< container::XNameAccess > xStyles(
static_cast< OWeakObject*
>(
mpDoc->
GetStyleSheetPool() ), css::uno::UNO_QUERY );
1480 const uno::Sequence< beans::PropertyValue >& )
1485 if(
nullptr ==
mpDoc )
1486 throw lang::DisposedException();
1490 uno::Reference< frame::XModel >
xModel;
1498 uno::Reference< drawing::XShapes > xShapes;
1500 rSelection >>= xShapes;
1502 if( xShapes.is() && xShapes->getCount() )
1510 const uno::Sequence< beans::PropertyValue >& rxOptions )
1514 if(
nullptr ==
mpDoc )
1515 throw lang::DisposedException();
1517 bool bExportNotesPages =
false;
1518 for(
const auto& rOption : rxOptions )
1520 if ( rOption.Name ==
"ExportNotesPages" )
1521 rOption.Value >>= bExportNotesPages;
1523 uno::Sequence< beans::PropertyValue > aRenderer;
1526 awt::Size aPageSize;
1527 if ( bExportNotesPages )
1530 aPageSize = awt::Size( aNotesPageSize.
Width(), aNotesPageSize.
Height() );
1535 aPageSize = awt::Size( aVisArea.GetWidth(), aVisArea.GetHeight() );
1550 bool IsVisible (
const SdrObject* pObj )
const;
1551 bool IsPrintable(
const SdrObject* pObj )
const;
1567 , pSdrPageView(pView)
1573 sal_Int32 nPage = -1;
1575 OUString aBookmark( rBookmark );
1577 if( rBookmark.startsWith(
"#") )
1578 aBookmark = rBookmark.copy( 1 );
1582 sal_uInt16 nPgNum = rDoc.
GetPageByName( aBookmark, bIsMasterPage );
1592 nPage = ( nPgNum - 1 ) / 2;
1600 uno::Reference< office::XAnnotationAccess > xAnnotationAccess( xPage, uno::UNO_QUERY_THROW );
1601 uno::Reference< office::XAnnotationEnumeration > xAnnotationEnumeration( xAnnotationAccess->createAnnotationEnumeration() );
1603 while( xAnnotationEnumeration->hasMoreElements() )
1605 uno::Reference< office::XAnnotation > xAnnotation( xAnnotationEnumeration->nextElement() );
1607 geometry::RealPoint2D aRealPoint2D( xAnnotation->getPosition() );
1608 geometry::RealSize2D aRealSize2D(xAnnotation->getSize());
1609 uno::Reference< text::XText > xText( xAnnotation->getTextRange() );
1612 aNote.
Title = xAnnotation->getAuthor();
1613 aNote.
Contents = xText->getString();
1615 auto* pAnnotation =
dynamic_cast<sd::Annotation*
>(xAnnotation.get());
1616 aNote.
isFreeText = pAnnotation && pAnnotation->isFreeText();
1617 if (pAnnotation && pAnnotation->hasCustomAnnotationMarker())
1619 aNote.
maPolygons = pAnnotation->getCustomAnnotationMarker().maPolygons;
1620 aNote.
annotColor = pAnnotation->getCustomAnnotationMarker().maLineColor;
1621 aNote.
interiorColor = pAnnotation->getCustomAnnotationMarker().maFillColor;
1626 static_cast<::
tools::Long>(aRealPoint2D.Y * 100)),
1628 static_cast<::
tools::Long>(aRealSize2D.Height * 100))),
1632 catch (
const uno::Exception&)
1639 if ( xShape->getShapeType() ==
"com.sun.star.drawing.GroupShape" )
1641 uno::Reference< container::XIndexAccess > xIndexAccess( xShape, uno::UNO_QUERY );
1642 if ( xIndexAccess.is() )
1644 sal_Int32
i,
nCount = xIndexAccess->getCount();
1647 uno::Reference< drawing::XShape > xSubShape( xIndexAccess->getByIndex(
i ), uno::UNO_QUERY );
1648 if ( xSubShape.is() )
1655 uno::Reference< beans::XPropertySet > xShapePropSet( xShape, uno::UNO_QUERY );
1656 if( xShapePropSet.is() )
1659 Point aPoint( 0, 0 );
1662 awt::Point aShapePos( xShape->getPosition() );
1663 awt::Size aShapeSize( xShape->getSize() );
1667 if (xShape->getShapeType() ==
"com.sun.star.drawing.MediaShape" || xShape->getShapeType() ==
"com.sun.star.presentation.MediaShape")
1670 xShapePropSet->getPropertyValue(
"Title") >>= title;
1671 OUString description;
1672 xShapePropSet->getPropertyValue(
"Description") >>= description;
1673 OUString
const altText(title.isEmpty()
1675 : description.isEmpty()
1677 : OUString::Concat(title) + OUString::Concat(
"\n") + OUString::Concat(description));
1680 xShapePropSet->getPropertyValue(
"MediaURL") >>= aMediaURL;
1681 if (!aMediaURL.isEmpty())
1684 OUString
const mimeType(xShapePropSet->getPropertyValue(
"MediaMimeType").get<OUString>());
1686 if (aMediaURL.startsWith(
"vnd.sun.star.Package:"))
1688 OUString aTempFileURL;
1689 xShapePropSet->getPropertyValue(
"PrivateTempFileURL") >>= aTempFileURL;
1697 presentation::ClickAction eCa;
1698 uno::Any aAny( xShapePropSet->getPropertyValue(
"OnClick" ) );
1704 case presentation::ClickAction_LASTPAGE :
1707 sal_Int32 nDestId = rPDFExtOutDevData.
CreateDest( aPageRect,
nCount - 1, vcl::PDFWriter::DestAreaType::FitRectangle );
1708 sal_Int32 nLinkId = rPDFExtOutDevData.
CreateLink(aLinkRect, actionName);
1709 rPDFExtOutDevData.
SetLinkDest( nLinkId, nDestId );
1712 case presentation::ClickAction_FIRSTPAGE :
1714 sal_Int32 nDestId = rPDFExtOutDevData.
CreateDest( aPageRect, 0, vcl::PDFWriter::DestAreaType::FitRectangle );
1715 sal_Int32 nLinkId = rPDFExtOutDevData.
CreateLink(aLinkRect, actionName);
1716 rPDFExtOutDevData.
SetLinkDest( nLinkId, nDestId );
1719 case presentation::ClickAction_PREVPAGE :
1724 sal_Int32 nDestId = rPDFExtOutDevData.
CreateDest( aPageRect, nDestPage, vcl::PDFWriter::DestAreaType::FitRectangle );
1725 sal_Int32 nLinkId = rPDFExtOutDevData.
CreateLink(aLinkRect, actionName);
1726 rPDFExtOutDevData.
SetLinkDest( nLinkId, nDestId );
1729 case presentation::ClickAction_NEXTPAGE :
1733 if ( nDestPage > nLastPage )
1734 nDestPage = nLastPage;
1735 sal_Int32 nDestId = rPDFExtOutDevData.
CreateDest( aPageRect, nDestPage, vcl::PDFWriter::DestAreaType::FitRectangle );
1736 sal_Int32 nLinkId = rPDFExtOutDevData.
CreateLink(aLinkRect, actionName);
1737 rPDFExtOutDevData.
SetLinkDest( nLinkId, nDestId );
1741 case presentation::ClickAction_PROGRAM :
1742 case presentation::ClickAction_BOOKMARK :
1743 case presentation::ClickAction_DOCUMENT :
1746 xShapePropSet->getPropertyValue(
"Bookmark" ) >>= aBookmark;
1747 if( !aBookmark.isEmpty() )
1751 case presentation::ClickAction_DOCUMENT :
1752 case presentation::ClickAction_PROGRAM :
1754 sal_Int32 nLinkId = rPDFExtOutDevData.
CreateLink(aLinkRect, actionName);
1755 rPDFExtOutDevData.
SetLinkURL( nLinkId, aBookmark );
1758 case presentation::ClickAction_BOOKMARK :
1763 sal_Int32 nDestId = rPDFExtOutDevData.
CreateDest( aPageRect, nPage, vcl::PDFWriter::DestAreaType::FitRectangle );
1764 sal_Int32 nLinkId = rPDFExtOutDevData.
CreateLink(aLinkRect, actionName);
1765 rPDFExtOutDevData.
SetLinkDest( nLinkId, nDestId );
1776 case presentation::ClickAction_STOPPRESENTATION :
1777 case presentation::ClickAction_SOUND :
1778 case presentation::ClickAction_INVISIBLE :
1779 case presentation::ClickAction_VERB :
1780 case presentation::ClickAction_VANISH :
1781 case presentation::ClickAction_MACRO :
1790void ImplRenderPaintProc::createRedirectedPrimitive2DSequence(
1805 if(!pSdrPage->checkVisibility(rOriginal, rDisplayInfo,
false))
1807 if(!IsVisible(pObject) || !IsPrintable(pObject))
1813bool ImplRenderPaintProc::IsVisible(
const SdrObject* pObj )
const
1819 const SdrLayer* pSdrLayer = rLayerAdmin.GetLayerPerID( nLayerId );
1822 const OUString& aLayerName = pSdrLayer->
GetName();
1823 bVisible = pSdrPageView->IsLayerVisible( aLayerName );
1828bool ImplRenderPaintProc::IsPrintable(
const SdrObject* pObj )
const
1830 bool bPrintable =
true;
1834 const SdrLayer* pSdrLayer = rLayerAdmin.GetLayerPerID( nLayerId );
1837 const OUString& aLayerName = pSdrLayer->
GetName();
1838 bPrintable = pSdrPageView->IsLayerPrintable( aLayerName );
1851 return nPageNumber-1;
1854 for (sal_Int16 i = 0;
i < nPageNumber-1; ++
i)
1864 const uno::Sequence< beans::PropertyValue >& rxOptions )
1868 if(
nullptr ==
mpDoc )
1869 throw lang::DisposedException();
1874 uno::Reference< awt::XDevice > xRenderDevice;
1875 const sal_Int32 nPageNumber = nRenderer + 1;
1877 bool bExportNotesPages =
false;
1879 for(
const auto& rOption : rxOptions )
1881 if ( rOption.Name ==
"RenderDevice" )
1882 rOption.Value >>= xRenderDevice;
1883 else if ( rOption.Name ==
"ExportNotesPages" )
1885 rOption.Value >>= bExportNotesPages;
1886 if ( bExportNotesPages )
1891 if( !(xRenderDevice.is() && nPageNumber && ( nPageNumber <= mpDoc->GetSdPageCount( ePageKind ) )) )
1906 if (pPDFExtOutDevData)
1929 pOut->IntersectClipRegion( aVisArea );
1931 uno::Reference< frame::XModel >
xModel;
1957 bool bScreenDisplay(
true);
1965 bScreenDisplay =
false;
1973 if ( pPDFExtOutDevData && pPage )
1978 uno::Reference< drawing::XDrawPage > xPage( uno::Reference< drawing::XDrawPage >::query( pPage->
getUnoPage() ) );
1983 uno::Reference< beans::XPropertySet > xPagePropSet( xPage, uno::UNO_QUERY );
1984 if( xPagePropSet.is() )
1989 bool bIsBackgroundObjectsVisible =
false;
1990 if (
mbImpressDoc && xPagePropSet->getPropertySetInfo()->hasPropertyByName(
"IsBackgroundObjectsVisible" ) )
1991 xPagePropSet->getPropertyValue(
"IsBackgroundObjectsVisible" ) >>= bIsBackgroundObjectsVisible;
1994 uno::Reference< drawing::XMasterPageTarget > xMasterPageTarget( xPage, uno::UNO_QUERY );
1995 if ( xMasterPageTarget.is() )
1997 uno::Reference< drawing::XDrawPage > xMasterPage = xMasterPageTarget->getMasterPage();
1998 if ( xMasterPage.is() )
2000 sal_Int32
i,
nCount = xMasterPage->getCount();
2003 aAny = xMasterPage->getByIndex(
i );
2004 uno::Reference< drawing::XShape > xShape;
2005 if ( aAny >>= xShape )
2013 sal_Int32
i,
nCount = xPage->getCount();
2016 aAny = xPage->getByIndex(
i );
2017 uno::Reference< drawing::XShape > xShape;
2018 if ( aAny >>= xShape )
2025 static constexpr OUStringLiteral sEffect(
u"Effect" );
2026 static constexpr OUStringLiteral sSpeed (
u"Speed" );
2027 sal_Int32 nTime = 800;
2028 presentation::AnimationSpeed aAs;
2029 if ( xPagePropSet->getPropertySetInfo( )->hasPropertyByName( sSpeed ) )
2031 aAny = xPagePropSet->getPropertyValue( sSpeed );
2036 case presentation::AnimationSpeed_SLOW : nTime = 1500;
break;
2037 case presentation::AnimationSpeed_FAST : nTime = 300;
break;
2039 case presentation::AnimationSpeed_MEDIUM : nTime = 800;
2043 presentation::FadeEffect eFe;
2045 if ( xPagePropSet->getPropertySetInfo( )->hasPropertyByName( sEffect ) )
2047 aAny = xPagePropSet->getPropertyValue( sEffect );
2052 case presentation::FadeEffect_HORIZONTAL_LINES :
2053 case presentation::FadeEffect_HORIZONTAL_CHECKERBOARD :
2054 case presentation::FadeEffect_HORIZONTAL_STRIPES :
eType = vcl::PDFWriter::PageTransition::BlindsHorizontal;
break;
2056 case presentation::FadeEffect_VERTICAL_LINES :
2057 case presentation::FadeEffect_VERTICAL_CHECKERBOARD :
2058 case presentation::FadeEffect_VERTICAL_STRIPES :
eType = vcl::PDFWriter::PageTransition::BlindsVertical;
break;
2060 case presentation::FadeEffect_UNCOVER_TO_RIGHT :
2061 case presentation::FadeEffect_UNCOVER_TO_UPPERRIGHT :
2062 case presentation::FadeEffect_ROLL_FROM_LEFT :
2063 case presentation::FadeEffect_FADE_FROM_UPPERLEFT :
2064 case presentation::FadeEffect_MOVE_FROM_UPPERLEFT :
2065 case presentation::FadeEffect_FADE_FROM_LEFT :
2066 case presentation::FadeEffect_MOVE_FROM_LEFT :
eType = vcl::PDFWriter::PageTransition::WipeLeftToRight;
break;
2068 case presentation::FadeEffect_UNCOVER_TO_BOTTOM :
2069 case presentation::FadeEffect_UNCOVER_TO_LOWERRIGHT :
2070 case presentation::FadeEffect_ROLL_FROM_TOP :
2071 case presentation::FadeEffect_FADE_FROM_UPPERRIGHT :
2072 case presentation::FadeEffect_MOVE_FROM_UPPERRIGHT :
2073 case presentation::FadeEffect_FADE_FROM_TOP :
2074 case presentation::FadeEffect_MOVE_FROM_TOP :
eType = vcl::PDFWriter::PageTransition::WipeTopToBottom;
break;
2076 case presentation::FadeEffect_UNCOVER_TO_LEFT :
2077 case presentation::FadeEffect_UNCOVER_TO_LOWERLEFT :
2078 case presentation::FadeEffect_ROLL_FROM_RIGHT :
2080 case presentation::FadeEffect_FADE_FROM_LOWERRIGHT :
2081 case presentation::FadeEffect_MOVE_FROM_LOWERRIGHT :
2082 case presentation::FadeEffect_FADE_FROM_RIGHT :
2083 case presentation::FadeEffect_MOVE_FROM_RIGHT :
eType = vcl::PDFWriter::PageTransition::WipeRightToLeft;
break;
2085 case presentation::FadeEffect_UNCOVER_TO_TOP :
2086 case presentation::FadeEffect_UNCOVER_TO_UPPERLEFT :
2087 case presentation::FadeEffect_ROLL_FROM_BOTTOM :
2088 case presentation::FadeEffect_FADE_FROM_LOWERLEFT :
2089 case presentation::FadeEffect_MOVE_FROM_LOWERLEFT :
2090 case presentation::FadeEffect_FADE_FROM_BOTTOM :
2091 case presentation::FadeEffect_MOVE_FROM_BOTTOM :
eType = vcl::PDFWriter::PageTransition::WipeBottomToTop;
break;
2093 case presentation::FadeEffect_OPEN_VERTICAL :
eType = vcl::PDFWriter::PageTransition::SplitHorizontalInward;
break;
2094 case presentation::FadeEffect_CLOSE_HORIZONTAL :
eType = vcl::PDFWriter::PageTransition::SplitHorizontalOutward;
break;
2096 case presentation::FadeEffect_OPEN_HORIZONTAL :
eType = vcl::PDFWriter::PageTransition::SplitVerticalInward;
break;
2097 case presentation::FadeEffect_CLOSE_VERTICAL :
eType = vcl::PDFWriter::PageTransition::SplitVerticalOutward;
break;
2099 case presentation::FadeEffect_FADE_TO_CENTER :
eType = vcl::PDFWriter::PageTransition::BoxInward;
break;
2100 case presentation::FadeEffect_FADE_FROM_CENTER :
eType = vcl::PDFWriter::PageTransition::BoxOutward;
break;
2102 case presentation::FadeEffect_NONE :
eType = vcl::PDFWriter::PageTransition::Regular;
break;
2104 case presentation::FadeEffect_RANDOM :
2105 case presentation::FadeEffect_DISSOLVE :
2106 default:
eType = vcl::PDFWriter::PageTransition::Dissolve;
break;
2111 if ( xPagePropSet->getPropertySetInfo( )->hasPropertyByName( sEffect ) ||
2112 xPagePropSet->getPropertySetInfo( )->hasPropertyByName( sSpeed ) )
2120 catch (
const uno::Exception&)
2125 aView.SdrPaintView::CompleteRedraw(
pOut, aRegion, &aImplRenderPaintProc);
2127 if (pPDFExtOutDevData && pPage)
2132 Point aPoint( 0, 0 );
2136 std::vector< vcl::PDFExtOutDevBookmarkEntry >& rBookmarks = pPDFExtOutDevData->
GetBookmarks();
2137 for (
const auto& rBookmark : rBookmarks )
2142 if ( rBookmark.nLinkId != -1 )
2143 pPDFExtOutDevData->
SetLinkDest( rBookmark.nLinkId, pPDFExtOutDevData->
CreateDest( aPageRect, nPage, vcl::PDFWriter::DestAreaType::FitRectangle ) );
2145 pPDFExtOutDevData->
DescribeRegisteredDest( rBookmark.nDestId, aPageRect, nPage, vcl::PDFWriter::DestAreaType::FitRectangle );
2148 pPDFExtOutDevData->
SetLinkURL( rBookmark.nLinkId, rBookmark.aBookmark );
2154 if( !aPageName.isEmpty() )
2157 const sal_Int32 nDestPageNum = CalcOutputPageNum(pPDFExtOutDevData,
mpDoc, nPageNumber);
2161 pPDFExtOutDevData->
CreateNamedDest(aPageName, aPageRect, nDestPageNum);
2169 const sal_Int32 nDestId =
2170 pPDFExtOutDevData->
CreateDest(aPageRect , nDestPageNum);
2178 catch (
const uno::Exception&)
2186 uno::Reference< drawing::XShapes > xShapes;
2187 rSelection >>= xShapes;
2189 if( xShapes.is() && xShapes->getCount() )
2196 for( sal_uInt32
i = 0,
nCount = xShapes->getCount();
i <
nCount;
i++ )
2198 uno::Reference< drawing::XShape > xShape;
2199 xShapes->getByIndex(
i ) >>= xShape;
2205 && aImplRenderPaintProc.IsVisible( pObj )
2206 && aImplRenderPaintProc.IsPrintable( pObj ) )
2226 SAL_WARN(
"sd",
"DrawViewShell not available!");
2233 int nOutputWidth,
int nOutputHeight,
2234 int nTilePosX,
int nTilePosY,
2252 std::unique_ptr<SdrPaintWindow> temporaryPaintWindow;
2253 if(
SdrView* pDrawView = pViewSh->GetDrawView())
2255 if(
SdrPageView* pSdrPageView = pDrawView->GetSdrPageView())
2257 pSdrPageView->SetApplicationDocumentColor(pViewSh->GetViewOptions().mnDocBackgroundColor);
2258 patchedPageWindow = pSdrPageView->FindPageWindow(*
getDocWindow()->GetOutDev());
2259 temporaryPaintWindow.reset(
new SdrPaintWindow(*pDrawView, rDevice));
2260 if (patchedPageWindow)
2261 previousPaintWindow = patchedPageWindow->
patchPaintWindow(*temporaryPaintWindow);
2293 Point aPoint(nTilePosXHMM, nTilePosYHMM);
2294 Size aSize(nTileWidthHMM, nTileHeightHMM);
2297 SdrView* pView = pViewSh->GetDrawView();
2301 pViewSh->GetView()->CompleteRedraw(&rDevice,
vcl::Region(aRect));
2307 nTilePosX, nTilePosY, nTileWidth, nTileHeight);
2309 nTilePosY, nTileWidth, nTileHeight);
2311 if(patchedPageWindow !=
nullptr)
2315 SdrView* pDrawView = pViewSh->GetDrawView();
2317 if (pPageView !=
nullptr)
2322 Size aOutputSize(nOutputWidth, nOutputHeight);
2331 OStringBuffer aState;
2339 aState.append(aThemeName);
2341 return aState.makeStringAndClear();
2350 pViewSh->SelectPage(nPart, nSelect);
2366 const bool bIsVisible = !pViewSh->GetDoc()->GetSdPage(nPart, pViewSh->GetPageKind())->IsExcluded();
2367 const bool bIsSelected = pViewSh->IsSelected(nPart);
2368 const sal_Int16 nMasterPageCount= pViewSh->GetDoc()->GetMasterSdPageCount(pViewSh->GetPageKind());
2370 OUString aPartInfo =
"{ \"visible\": \"" +
2371 OUString::number(
static_cast<unsigned int>(bIsVisible)) +
2372 "\", \"selected\": \"" +
2373 OUString::number(
static_cast<unsigned int>(bIsSelected)) +
2374 "\", \"masterPageCount\": \"" +
2375 OUString::number(nMasterPageCount) +
2376 "\", \"mode\": \"" +
2389 pViewSh->SwitchPage( nPart, bAllowChangeFocus );
2409 return pViewSh->GetViewShellBase().getPart();
2422 SAL_WARN(
"sd",
"DrawViewShell not available!");
2439 SAL_WARN(
"sd",
"DrawViewShell not available!");
2452 if (pViewSh->GetDispatcher())
2455 pViewSh->GetDispatcher()->QueryState(SID_SLIDE_MASTER_MODE,
isMasterViewMode);
2472 return pViewShell->GetActiveWindow();
2482 switch ( nPartMode )
2484 case LOK_PARTMODE_SLIDES:
2486 case LOK_PARTMODE_NOTES:
2490 pViewSh->SetPageKind( aPageKind );
2499 return pViewSh->GetViewShellBase().getEditMode();
2510 pViewSh->GetViewShellBase().setEditMode(nMode);
2519 SdrView *pSdrView = pViewSh->GetView();
2535 auto commentsNode = rJsonWriter.
startNode(
"comments");
2539 for (sal_uInt16 nPage = 0; nPage < nMaxPages; ++nPage)
2544 for (
const uno::Reference<office::XAnnotation>& xAnnotation : aPageAnnotations)
2547 OString nodeName =
"comment" + OString::number(nID);
2548 auto commentNode = rJsonWriter.
startNode(nodeName);
2549 rJsonWriter.
put(
"id", nID);
2550 rJsonWriter.
put(
"author", xAnnotation->getAuthor());
2552 uno::Reference<text::XText> xText(xAnnotation->getTextRange());
2553 rJsonWriter.
put(
"text", xText->getString());
2555 geometry::RealPoint2D
const & rPoint = xAnnotation->getPosition();
2556 geometry::RealSize2D
const & rSize = xAnnotation->getSize();
2559 OString sRectangle = aRectangle.
toString();
2560 rJsonWriter.
put(
"rectangle", sRectangle.getStr());
2571 DrawView* pDrawView = pViewShell->GetDrawView();
2572 for (
const beans::PropertyValue& rValue : rArguments)
2574 if (rValue.Name ==
".uno:ShowBorderShadow" && rValue.Value.has<
bool>())
2575 pDrawView->SetPageShadowVisible(rValue.Value.get<
bool>());
2576 else if (rValue.Name ==
".uno:Author" && rValue.Value.has<OUString>())
2577 pDrawView->SetAuthor(rValue.Value.get<OUString>());
2578 else if (rValue.Name ==
".uno:SpellOnline" && rValue.Value.has<
bool>())
2586 pViewShell->SetRuler(
false);
2587 pViewShell->SetScrollBarsVisible(
false);
2589 if (
sd::Window* pWindow = pViewShell->GetActiveWindow())
2592 pWindow->EnableMapMode();
2593 Size aSize(pWindow->LogicToPixel(pDrawView->GetSdrPageView()->GetPage()->GetSize()));
2596 pWindow->EnableMapMode(
false);
2599 pViewShell->GetParentWindow()->SetSizePixel(aSize);
2600 pViewShell->Resize();
2608 pDrawView->SetSwapAsynchron(
false);
2616 officecfg::Office::Common::Save::Document::WarnAlienFormat::set(
false, xChanges);
2619 if (!getenv(
"LO_TESTNAME"))
2640 pViewShell->GetViewShell(),
nType, nX, nY,
nCount, nButtons, nModifier, fScale, fScale))
2644 const Point aPointTwip(nX, nY);
2646 SdrView* pDrawView = pViewShell->GetDrawView();
2649 ::sd::Window* pActiveWin = pViewShell->GetActiveWindow();
2659 nButtons, nModifier);
2678 case LOK_SETTEXTSELECTION_START:
2679 pViewShell->SetCursorMm100Position(aPoint,
false,
false);
2681 case LOK_SETTEXTSELECTION_END:
2682 pViewShell->SetCursorMm100Position(aPoint,
true,
false);
2684 case LOK_SETTEXTSELECTION_RESET:
2685 pViewShell->SetCursorMm100Position(aPoint,
true,
true);
2699 return uno::Reference<datatransfer::XTransferable>();
2701 return pViewShell->GetSelectionTransferable();
2721 case LOK_SETGRAPHICSELECTION_START:
2722 pViewShell->SetGraphicMm100Position(
true, aPoint);
2724 case LOK_SETGRAPHICSELECTION_END:
2725 pViewShell->SetGraphicMm100Position(
false, aPoint);
2741 SdrView* pSdrView = pViewShell->GetView();
2764 pViewShell->GetViewShellBase().setLOKVisibleArea(rRectangle);
2775 pViewShell->GetActiveWindow()->SetClipboard(xClipboard);
2794 return PointerStyle::Arrow;
2796 Window* pWindow = pViewShell->GetActiveWindow();
2798 return PointerStyle::Arrow;
2800 return pWindow->GetPointer();
2837 OSL_ENSURE(
GetDoc(),
"No SdrModel in draw/Impress, should not happen");
2850 EndListening( *
mpDoc );
2863 uno::Reference< container::XNameAccess > xLinks(
mxLinks );
2866 uno::Reference< lang::XComponent > xComp( xLinks, uno::UNO_QUERY );
2874 if( xDrawPagesAccess.is() )
2876 uno::Reference< lang::XComponent > xComp( xDrawPagesAccess, uno::UNO_QUERY );
2880 xDrawPagesAccess =
nullptr;
2884 if( xDrawPagesAccess.is() )
2886 uno::Reference< lang::XComponent > xComp( xMasterPagesAccess, uno::UNO_QUERY );
2890 xDrawPagesAccess =
nullptr;
2893 uno::Reference< container::XNameAccess > xLayerManager(
mxLayerManager );
2894 if( xLayerManager.is() )
2896 uno::Reference< lang::XComponent > xComp( xLayerManager, uno::UNO_QUERY );
2900 xLayerManager =
nullptr;
2904 if( xCustomPresentationAccess.is() )
2906 uno::Reference< lang::XComponent > xComp( xCustomPresentationAccess, uno::UNO_QUERY );
2910 xCustomPresentationAccess =
nullptr;
2924: mpModel( &rMyModel)
2938 throw lang::DisposedException();
2948 throw lang::DisposedException();
2953 throw lang::IndexOutOfBoundsException();
2958 uno::Reference< drawing::XDrawPage > xDrawPage( pPage->
getUnoPage(), uno::UNO_QUERY );
2971 throw lang::DisposedException();
2973 if( !
aName.isEmpty() )
2977 for( nPage = 0; nPage <
nCount; nPage++ )
2980 if(
nullptr == pPage)
2986 uno::Reference< drawing::XDrawPage > xDrawPage( pPage->
getUnoPage(), uno::UNO_QUERY );
2993 throw container::NoSuchElementException();
3001 throw lang::DisposedException();
3004 uno::Sequence< OUString > aNames(
nCount );
3005 OUString* pNames = aNames.getArray();
3008 for( nPage = 0; nPage <
nCount; nPage++ )
3022 throw lang::DisposedException();
3026 for( nPage = 0; nPage <
nCount; nPage++ )
3029 if(
nullptr == pPage)
3062 throw lang::DisposedException();
3069 uno::Reference< drawing::XDrawPage > xDrawPage( pPage->
getUnoPage(), uno::UNO_QUERY );
3073 uno::Reference< drawing::XDrawPage > xDrawPage;
3087 throw lang::DisposedException();
3092 if( nPageCount > 1 )
3095 SdDrawPage* pSvxPage = comphelper::getFromUnoTunnel<SdDrawPage>( xPage );
3133 return "SdDrawPagesAccess";
3143 return {
"com.sun.star.drawing.DrawPages" };
3154 OSL_FAIL(
"not implemented!" );
3159 OSL_FAIL(
"not implemented!" );
3180 OSL_FAIL(
"not implemented!" );
3185 OSL_FAIL(
"not implemented!" );
3194 throw lang::DisposedException();
3209 throw lang::DisposedException();
3214 throw lang::IndexOutOfBoundsException();
3219 uno::Reference< drawing::XDrawPage > xDrawPage( pPage->
getUnoPage(), uno::UNO_QUERY );
3243 throw lang::DisposedException();
3245 uno::Reference< drawing::XDrawPage > xDrawPage;
3252 nInsertPos = nInsertPos * 2 + 1;
3253 if( nInsertPos < 0 || nInsertPos > nMPageCount )
3254 nInsertPos = nMPageCount;
3257 const OUString aStdPrefix(
SdResId(STR_LAYOUT_DEFAULT_NAME) );
3258 OUString aPrefix( aStdPrefix );
3260 bool bUnique =
true;
3262 std::vector<OUString> aPageNames;
3263 for (sal_Int32 nMaster = 1; nMaster < nMPageCount; ++nMaster)
3268 aPageNames.push_back(pPage->
GetName());
3269 if (aPageNames.back() == aPrefix)
3276 aPrefix = aStdPrefix +
" " + OUString::number(++
i);
3277 bUnique = std::find(aPageNames.begin(), aPageNames.end(), aPrefix) == aPageNames.end();
3291 pMPage->SetSize( pPage->
GetSize() );
3296 pMPage->SetLayoutName( aLayoutName );
3301 pMPage->EnsureMasterPageDefaultBackground();
3304 xDrawPage.set( pMPage->getUnoPage(), uno::UNO_QUERY );
3308 pMNotesPage->SetSize( pRefNotesPage->
GetSize() );
3314 pMNotesPage->SetLayoutName( aLayoutName );
3315 pDoc->
InsertMasterPage(pMNotesPage.get(),
static_cast<sal_uInt16
>(nInsertPos) + 1);
3333 throw lang::DisposedException();
3335 SdMasterPage* pSdPage = comphelper::getFromUnoTunnel<SdMasterPage>( xPage );
3336 if(pSdPage ==
nullptr)
3380 return "SdMasterPagesAccess";
3390 return {
"com.sun.star.drawing.MasterPages" };
3394 : mpModel(&rMyModel)
3412 OSL_FAIL(
"not implemented!" );
3417 OSL_FAIL(
"not implemented!" );
3430 throw container::NoSuchElementException();
3436 OUString* pArray = aRet.getArray();
3464 if( pDoc ==
nullptr )
3476 for( nPage = 0; nPage < nMaxPages; nPage++ )
3484 for( nPage = 0; nPage < nMaxMasterPages; nPage++ )
3497 return "SdDocLinkTargets";
3507 return {
"com.sun.star.document.LinkTargets" };
3521 static uno::Reference< beans::XPropertySetInfo > aRef;
3534 if ( PropertyName ==
"LinkDisplayName" )
3541 const uno::Reference<beans::XPropertyChangeListener>&)
3542{ OSL_FAIL(
"not implemented"); }
3545 const uno::Reference<beans::XPropertyChangeListener>&)
3546{ OSL_FAIL(
"not implemented"); }
3549 const uno::Reference<beans::XVetoableChangeListener>&)
3550{ OSL_FAIL(
"not implemented"); }
3553 const uno::Reference<beans::XVetoableChangeListener>&)
3554{ OSL_FAIL(
"not implemented"); }
3566 return "SdDocLinkTargetType";
3576 return {
"com.sun.star.document.LinkTargetSupplier" };
3592 throw lang::DisposedException();
3596 if( pPage ==
nullptr )
3597 throw container::NoSuchElementException();
3601 uno::Reference< beans::XPropertySet > xProps( pPage->
getUnoPage(), uno::UNO_QUERY );
3613 throw lang::DisposedException();
3616 if( pDoc ==
nullptr )
3627 OUString* pStr =
aSeq.getArray();
3633 for( nPage = 0; nPage < nMaxPages; nPage++ )
3639 for( nPage = 0; nPage < nMaxMasterPages; nPage++ )
3663 OUString* pStr =
aSeq.getArray();
3670 for( nPage = 0; nPage < nMaxPages; nPage++ )
3676 for( nPage = 0; nPage < nMaxPages; nPage++ )
3682 for( nPage = 0; nPage < nMaxPages; nPage++ )
3688 for( nPage = 0; nPage < nMaxMasterPages; nPage++ )
3702 throw lang::DisposedException();
3719 throw lang::DisposedException();
3727 return "SdDocLinkTarget";
3737 return {
"com.sun.star.document.LinkTargets" };
3760 uno::Reference< uno::XInterface > xSource(
static_cast<uno::XWeak*
>(
xModel.get() ) );
3761 css::document::EventObject
aEvent( xSource, rEventName );
3772 css::document::EventObject
aEvent( xSource, rEventName );
Fraction conversionFract(o3tl::Length from, o3tl::Length to)
constexpr auto convertTwipToMm100(N n)
static const AllSettings & GetSettings()
virtual void DrawMarkedObj(OutputDevice &rOut) const override
static bool HasValidData(const css::uno::Reference< css::datatransfer::XTransferable > &rTransferable)
static css::lang::Locale convertToLocale(LanguageType nLangID, bool bResolveSystem=true)
static LanguageType convertToLanguageType(const css::lang::Locale &rLocale, bool bResolveSystem=true)
bool setGraphicSelection(int nType, int nX, int nY, double fScaleX=1.0, double fScaleY=1.0)
bool setTextSelection(int nType, int nX, int nY)
static void PaintAllChartsOnTile(VirtualDevice &rDevice, int nOutputWidth, int nOutputHeight, int nTilePosX, int nTilePosY, tools::Long nTileWidth, tools::Long nTileHeight, bool bNegativeX=false)
static void paintControlTile(const SdrPage *pPage, const SdrView *pDrawView, vcl::Window const &rMainWindow, VirtualDevice &rDevice, Size aOutputSize, tools::Rectangle const &rTileRect)
static bool postMouseEvent(const SdrPage *pPage, const SdrView *pDrawView, vcl::DocWindow &rMainWindow, int nType, Point aPointHmm, int nCount, int nButtons, int nModifier)
static void PaintAllInPlaceOnTile(VirtualDevice &rDevice, int nOutputWidth, int nOutputHeight, int nTilePosX, int nTilePosY, tools::Long nTileWidth, tools::Long nTileHeight)
void SetOrigin(const Point &rOrigin)
void SetScaleY(const Fraction &rScaleY)
void SetMapUnit(MapUnit eUnit)
void SetScaleX(const Fraction &rScaleX)
const MapMode & GetMapMode() const
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
SdDocLinkTargetType(SdXImpressDocument *pModel, sal_uInt16 nT)
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getLinks() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
SdXImpressDocument * mpModel
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
SdDocLinkTarget(SdXImpressDocument *pModel, sal_uInt16 nT)
virtual OUString SAL_CALL getImplementationName() override
SdPage * FindPage(std::u16string_view rName) const
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
virtual sal_Bool SAL_CALL hasElements() override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
SdXImpressDocument * mpModel
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
OUString aNames[SdLinkTargetType::Count]
virtual css::uno::Type SAL_CALL getElementType() override
virtual void SAL_CALL dispose() override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual OUString SAL_CALL getImplementationName() override
SdDocLinkTargets(SdXImpressDocument &rMyModel)
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
virtual ~SdDocLinkTargets() noexcept override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual sal_Bool SAL_CALL hasElements() override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
SdXImpressDocument * mpModel
void CreateFirstPages(SdDrawDocument const *pRefDocument=nullptr)
if the document does not contain at least one handout, one slide and one notes page with at least one...
SAL_DLLPRIVATE const css::uno::Reference< css::presentation::XPresentation2 > & getPresentation() const
sal_uInt16 GetMasterSdPageCount(PageKind ePgKind) const
SAL_DLLPRIVATE sal_uInt16 GetMasterPageUserCount(SdrPage const *pMaster) const
SAL_DLLPRIVATE std::vector< std::unique_ptr< sd::FrameView > > & GetFrameViewList()
virtual SAL_DLLPRIVATE void InsertMasterPage(SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override
SAL_DLLPRIVATE void SetOnlineSpell(bool bIn)
SAL_DLLPRIVATE SfxItemPool & GetPool()
SdPage * GetSdPage(sal_uInt16 nPgNum, PageKind ePgKind) const
SAL_DLLPRIVATE void InsertPage(SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override
void StopWorkStartupDelay()
SAL_DLLPRIVATE void SetLanguage(const LanguageType eLang, const sal_uInt16 nId)
SAL_DLLPRIVATE sal_uInt16 GetPageByName(std::u16string_view rPgName, bool &rbIsMasterPage) const
Return the first page that has the given name.
SAL_DLLPRIVATE bool MovePages(sal_uInt16 nTargetPage)
virtual SAL_DLLPRIVATE rtl::Reference< SdrPage > RemoveMasterPage(sal_uInt16 nPgNum) override
SAL_DLLPRIVATE LanguageType GetLanguage(const sal_uInt16 nId) const
SdPage * GetMasterSdPage(sal_uInt16 nPgNum, PageKind ePgKind)
SAL_DLLPRIVATE SdrObject * GetObj(std::u16string_view rObjName) const
virtual SAL_DLLPRIVATE void SetChanged(bool bFlag=true) override
SAL_DLLPRIVATE::sd::DrawDocShell * GetDocSh() const
SAL_DLLPRIVATE rtl::Reference< SdrPage > RemovePage(sal_uInt16 nPgNum) override
SAL_DLLPRIVATE DocumentType GetDocumentType() const
SAL_DLLPRIVATE rtl::Reference< SdPage > AllocSdPage(bool bMasterPage)
sal_uInt16 GetSdPageCount(PageKind ePgKind) const
static OUString getPageApiName(SdPage const *pPage)
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual void SAL_CALL dispose() override
virtual sal_Bool SAL_CALL hasElements() override
virtual ~SdDrawPagesAccess() noexcept override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual css::uno::Type SAL_CALL getElementType() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual sal_Int32 SAL_CALL getCount() override
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
SdDrawPagesAccess(SdXImpressDocument &rMyModel) noexcept
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL insertNewByIndex(sal_Int32 nIndex) override
Creates a new page with model at the specified position.
virtual void SAL_CALL remove(const css::uno::Reference< css::drawing::XDrawPage > &xPage) override
Removes the specified SdDrawPage from the model and the internal list.
SdXImpressDocument * mpModel
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
Provides a drawing::XDrawPage interface for accessing the Masterpage at the specified position in the...
virtual sal_Int32 SAL_CALL getCount() override
virtual sal_Bool SAL_CALL hasElements() override
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual ~SdMasterPagesAccess() noexcept override
virtual void SAL_CALL dispose() override
SdMasterPagesAccess(SdXImpressDocument &rMyModel) noexcept
virtual void SAL_CALL remove(const css::uno::Reference< css::drawing::XDrawPage > &xPage) override
Removes the specified SdMasterPage from the model and the internal list.
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
SdXImpressDocument * mpModel
virtual css::uno::Type SAL_CALL getElementType() override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL insertNewByIndex(sal_Int32 nIndex) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
void SetShowComments(bool bShow)
virtual Orientation GetOrientation() const override
PageKind GetPageKind() const
const sd::AnnotationVector & getAnnotations() const
virtual OUString GetLayoutName() const override
const OUString & GetName() const
sal_Int64 GetHashCode() const
virtual rtl::Reference< SdrPage > CloneSdrPage(SdrModel &rTargetModel) const override
static SD_DLLPUBLIC TranslateId GetClickActionSdResId(css::presentation::ClickAction eCA)
virtual bool isMimeTypeSupported() override
virtual void getPostIts(tools::JsonWriter &) override
virtual void postKeyEvent(int nType, int nCharCode, int nKeyCode) override
css::uno::Reference< css::uno::XInterface > mxBitmapTable
virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL getViewData() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Reference< css::ucb::XAnyCompare > SAL_CALL createAnyCompareByName(const OUString &PropertyName) override
virtual void SAL_CALL acquire() noexcept override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual css::uno::Reference< css::drawing::XDrawPages > SAL_CALL getDrawPages() override
virtual void selectPart(int nPart, int nSelect) override
virtual void SAL_CALL dispose() override
This dispose implementation releases the resources held by the called object and forwards the call to...
SdXImpressDocument(::sd::DrawDocShell *pShell, bool bClipBoard)
virtual void setPart(int nPart, bool bAllowChangeFocus=true) override
virtual void setGraphicSelection(int nType, int nX, int nY) override
css::uno::Reference< css::uno::XInterface > mxTransGradientTable
css::uno::Reference< css::uno::XInterface > create(OUString const &aServiceSpecifier, OUString const &referer)
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void initializeForTiledRendering(const css::uno::Sequence< css::beans::PropertyValue > &rArguments) override
friend class SdMasterPagesAccess
virtual void SAL_CALL release() noexcept override
virtual OUString getPartName(int nPart) override
virtual css::uno::Reference< css::container::XNameContainer > SAL_CALL getCustomPresentations() override
virtual void SAL_CALL unlockControllers() override
css::uno::Reference< css::container::XNameAccess > mxLinks
css::uno::Reference< css::uno::XInterface > mxGradientTable
virtual void moveSelectedParts(int nPosition, bool bDuplicate) override
virtual OUString getPartHash(int nPart) override
virtual void SAL_CALL render(sal_Int32 nRenderer, const css::uno::Any &aSelection, const css::uno::Sequence< css::beans::PropertyValue > &xOptions) override
static rtl::Reference< SdXImpressDocument > GetModel(SdDrawDocument const &rDoc)
virtual ~SdXImpressDocument() noexcept override
css::uno::WeakReference< css::drawing::XDrawPages > mxMasterPagesAccess
virtual void setClipboard(const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &xClipboard) override
sd::DrawViewShell * GetViewShell()
css::uno::Reference< css::uno::XInterface > mxDrawingPool
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getLayerManager() override
css::uno::WeakReference< css::container::XNameAccess > mxLayerManager
virtual Size getDocumentSize() override
virtual int getParts() override
virtual sal_Int32 SAL_CALL getRendererCount(const css::uno::Any &aSelection, const css::uno::Sequence< css::beans::PropertyValue > &xOptions) override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getStyleFamilies() override
css::uno::Sequence< css::uno::Type > maTypeSequence
friend class SdDrawPagesAccess
OString getViewRenderState() override
virtual int getPart() override
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getHandoutMasterPage() override
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments(OUString const &ServiceSpecifier, css::uno::Sequence< css::uno::Any > const &Arguments) override
virtual void setClientVisibleArea(const tools::Rectangle &rRectangle) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual int getEditMode() override
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRenderer(sal_Int32 nRenderer, const css::uno::Any &aSelection, const css::uno::Sequence< css::beans::PropertyValue > &xOptions) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Reference< css::datatransfer::XTransferable > getSelection() override
virtual void SAL_CALL setViewData(const css::uno::Reference< css::container::XIndexAccess > &aData) override
css::uno::Reference< css::uno::XInterface > mxHatchTable
virtual PointerStyle getPointer() override
virtual void paintTile(VirtualDevice &rDevice, int nOutputWidth, int nOutputHeight, int nTilePosX, int nTilePosY, tools::Long nTileWidth, tools::Long nTileHeight) override
virtual void SAL_CALL lockControllers() override
const SvxItemPropertySet * mpPropSet
virtual VclPtr< vcl::Window > getDocWindow() override
friend class SdLayerManager
virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override
css::uno::WeakReference< css::drawing::XDrawPages > mxDrawPagesAccess
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
css::uno::WeakReference< css::i18n::XForbiddenCharacters > mxForbiddenCharacters
virtual OUString SAL_CALL getImplementationName() override
virtual void setEditMode(int) override
SdDrawDocument * GetDoc() const
virtual OUString getPartInfo(int nPart) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void resetSelection() override
virtual css::uno::Reference< css::drawing::XDrawPages > SAL_CALL getMasterPages() override
css::uno::WeakReference< css::container::XNameContainer > mxCustomPresentationAccess
SdPage * InsertSdPage(sal_uInt16 nPage, bool bDuplicate)
virtual css::uno::Reference< css::presentation::XPresentation > SAL_CALL getPresentation() override
::sd::DrawDocShell * mpDocShell
virtual void setTextSelection(int nType, int nX, int nY) override
void SetModified() noexcept
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void setPartMode(int nPartMode) override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getLinks() override
virtual sal_Bool SAL_CALL hasControllersLocked() override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual SdrModel & getSdrModelFromUnoModel() const override
abstract SdrModel provider
css::uno::Reference< css::i18n::XForbiddenCharacters > getForbiddenCharsTable()
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL duplicate(const css::uno::Reference< css::drawing::XDrawPage > &xPage) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance(const OUString &aServiceSpecifier) override
void initializeDocument()
virtual void postMouseEvent(int nType, int nX, int nY, int nCount, int nButtons, int nModifier) override
css::uno::Reference< css::uno::XInterface > mxMarkerTable
css::uno::Reference< css::uno::XInterface > mxDashTable
SdrHintKind GetKind() const
SdrLayerID GetLayerID(const OUString &rName) const
bool IsSet(SdrLayerID a) const
const OUString & GetName() const
bool MarkObj(const Point &rPnt, short nTol=-2, bool bToggle=false, bool bDeep=false)
::comphelper::IEmbeddedHelper * GetPersist() const
sal_uInt16 GetDefaultTabulator() const
const SdrPage * GetMasterPage(sal_uInt16 nPgNum) const
void SetDefaultTabulator(sal_uInt16 nVal)
void AddUndo(std::unique_ptr< SdrUndoAction > pUndo)
SdrOutliner & GetDrawOutliner(const SdrTextObj *pObj=nullptr) const
sal_uInt16 GetMasterPageCount() const
const SfxItemPool & GetItemPool() const
std::shared_ptr< model::Theme > const & getTheme() const
SfxStyleSheetBasePool * GetStyleSheetPool() const
SdrUndoFactory & GetSdrUndoFactory() const
bool IsUndoEnabled() const
const SdrPage * GetPage(sal_uInt16 nPgNum) const
const SdrLayerAdmin & GetLayerAdmin() const
sal_uInt16 GetPageCount() const
void setTheme(std::shared_ptr< model::Theme > const &pTheme)
virtual SdrEndTextEditKind SdrEndTextEdit(bool bDontDeleteReally=false)
virtual bool IsTextEdit() const final override
static SdrObject * getSdrObjectFromXShape(const css::uno::Reference< css::uno::XInterface > &xInt)
static SdrItemPool & GetGlobalDrawObjectItemPool()
SdrPage * getSdrPageFromSdrObject() const
virtual SdrLayerID GetLayer() const
const SdrLayerIDSet & GetVisibleLayers() const
tools::Rectangle GetPageRect() const
void SetVisibleLayers(const SdrLayerIDSet &rSet)
void SetPrintableLayers(const SdrLayerIDSet &rSet)
SdrPage * GetPage() const
const SdrLayerIDSet & GetPrintableLayers() const
void unpatchPaintWindow(SdrPaintWindow *pPreviousPaintWindow)
SdrPaintWindow * patchPaintWindow(SdrPaintWindow &rPaintWindow)
css::uno::Reference< css::uno::XInterface > const & getUnoPage()
SdrPage & TRG_GetMasterPage() const
sal_uInt16 GetPageNum() const
bool IsMasterPage() const
sal_Int32 GetUpperBorder() const
sal_Int32 GetRightBorder() const
sal_Int32 GetLeftBorder() const
Color GetPageBackgroundColor() const
const SdrLayerIDSet & TRG_GetMasterPageVisibleLayers() const
sal_Int32 GetLowerBorder() const
void SetPageVisible(bool bOn=true)
void SetHlplVisible(bool bOn=true)
void SetBordVisible(bool bOn=true)
void SetGlueVisible(bool bOn=true)
SdrPageView * GetSdrPageView() const
void SetGridVisible(bool bOn)
void SetPaintTextEdit(bool bPaint)
virtual std::unique_ptr< SdrUndoAction > CreateUndoDeletePage(SdrPage &rPage)
void Notify(SfxBroadcaster &aBC, const SfxHint &aHint) override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
void notifyEvent(const css::document::EventObject &aEvent) const
void getGrabBagItem(css::uno::Any &rVal) const
bool hasValidSignatures() const
virtual void SAL_CALL acquire() noexcept override
void SAL_CALL setViewData(const css::uno::Reference< css::container::XIndexAccess > &aData) override
virtual void SAL_CALL release() noexcept override
OUString const & getRuntimeUID() const
virtual void SAL_CALL dispose() override
virtual sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &aIdentifier) override
void setGrabBagItem(const css::uno::Any &rVal)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
bool hasEventListeners() const
css::uno::Reference< css::container::XIndexAccess > SAL_CALL getViewData() override
Item2Range GetItemSurrogates(sal_uInt16 nWhich) const
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
sal_uInt32 GetItemCount2(sal_uInt16 nWhich) const
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint)
static void postKeyEventAsync(const VclPtr< vcl::Window > &xWindow, int nType, int nCharCode, int nKeyCode, int nRepeat=0)
static bool testInPlaceComponentMouseEventHit(SfxViewShell *pViewShell, int nType, int nX, int nY, int nCount, int nButtons, int nModifier, double fScaleX, double fScaleY, bool bNegativeX=false)
static VclPtr< vcl::Window > getInPlaceDocWindow(SfxViewShell *pViewShell)
static void postMouseEventAsync(const VclPtr< vcl::Window > &xWindow, LokMouseEventData const &rLokMouseEventData)
css::uno::Reference< css::script::XLibraryContainer > GetBasicContainer()
MapUnit GetMapUnit() const
virtual void SetVisArea(const tools::Rectangle &rVisArea)
css::uno::Reference< css::script::XLibraryContainer > GetDialogContainer()
css::uno::Reference< css::frame::XModel3 > GetModel() const
virtual tools::Rectangle GetVisArea(sal_uInt16 nAspect) const
SfxObjectCreateMode GetCreateMode() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
void SetVisibleImpressView(bool bVisible)
SdrPage * GetSdrPage() const
virtual ::com::sun::star::uno::Reference<::com::sun::star::uno::XInterface > SAL_CALL createInstance(const OUString &ServiceSpecifier) override
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override
FontFamily GetFamily() const
FontPitch GetPitch() const
const OUString & GetStyleName() const
rtl_TextEncoding GetCharSet() const
const OUString & GetFamilyName() const
css::uno::Reference< css::beans::XPropertySetInfo > const & getPropertySetInfo() const
const SfxItemPropertyMapEntry * getPropertyMapEntry(std::u16string_view rName) const
static bool createEvent(const SdrModel *pDoc, const SdrHint *pSdrHint, css::document::EventObject &aEvent)
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments(const OUString &ServiceSpecifier, const css::uno::Sequence< css::uno::Any > &Arguments) override
static TransferableDataHelper CreateFromSystemClipboard(vcl::Window *pWindow)
const css::uno::Reference< css::datatransfer::XTransferable > & GetTransferable() const
const VclPtr< OutputDevice > & GetOutputDevice() const
bool SetOutputSizePixel(const Size &rNewSize, bool bErase=true, bool bAlphaMaskTransparent=false)
static std::shared_ptr< ConfigurationChanges > create()
const css::uno::Sequence< sal_Int8 > & getSeq() const
css::uno::Type const & get()
static std::unique_ptr< Theme > FromAny(const css::uno::Any &rVal)
The SdClientView is used for DrawDocShell::Draw()
virtual ::tools::Rectangle GetVisArea(sal_uInt16 nAspect) const override
sd::ViewShell * GetViewShell()
SdDrawDocument * GetDoc()
void WriteUserDataSequence(css::uno::Sequence< css::beans::PropertyValue > &)
Base class of the stacked shell hierarchy.
::sd::View * GetView() const
virtual SdrEndTextEditKind SdrEndTextEdit(bool bDontDeleteReally=false) override
ends current text editing
An SdWindow contains the actual working area of ViewShell.
void CreateNote(const tools::Rectangle &rRect, const PDFNote &rNote, sal_Int32 nPageNr=-1)
sal_Int32 CreateScreen(const tools::Rectangle &rRect, OUString const &rAltText, OUString const &rMimeType, sal_Int32 nPageNr, SdrObject const *pObj)
sal_Int32 CreateDest(const tools::Rectangle &rRect, sal_Int32 nPageNr=-1, PDFWriter::DestAreaType eType=PDFWriter::DestAreaType::XYZ)
std::vector< PDFExtOutDevBookmarkEntry > & GetBookmarks()
void SetDocumentLocale(const css::lang::Locale &rLoc)
bool GetIsExportNotes() const
void SetScreenStream(sal_Int32 nScreenId, const OUString &rURL)
bool GetIsExportHiddenSlides() const
void SetPageTransition(PDFWriter::PageTransition eType, sal_uInt32 nMilliSec)
void SetScreenURL(sal_Int32 nScreenId, const OUString &rURL)
void DescribeRegisteredDest(sal_Int32 nDestId, const tools::Rectangle &rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType=PDFWriter::DestAreaType::XYZ)
void SetLinkURL(sal_Int32 nLinkId, const OUString &rURL)
bool GetIsExportBookmarks() const
sal_Int32 CreateOutlineItem(sal_Int32 nParent, const OUString &rText, sal_Int32 nDestID)
bool GetIsExportNotesPages() const
bool GetIsExportNamedDestinations() const
bool GetIsExportTransitionEffects() const
sal_Int32 CreateNamedDest(const OUString &sDestName, const tools::Rectangle &rRect, sal_Int32 nPageNr=-1)
sal_Int32 CreateLink(const tools::Rectangle &rRect, OUString const &rAltText, sal_Int32 nPageNr=-1)
sal_Int32 GetCurrentPageNumber() const
void SetLinkDest(sal_Int32 nLinkId, sal_Int32 nDestId)
#define DBG_ASSERT(sCon, aError)
#define TOOLS_WARN_EXCEPTION(area, stream)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CJK(EE_CHAR_START+17)
constexpr TypedWhichId< SvXMLAttrContainerItem > EE_PARA_XMLATTRIBS(EE_PARA_START+1)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CTL(EE_CHAR_START+18)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE(EE_CHAR_START+14)
constexpr TypedWhichId< SvXMLAttrContainerItem > EE_CHAR_XMLATTRIBS(EE_CHAR_START+28)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
EmbeddedObjectRef * pObject
constexpr OUStringLiteral SD_LT_SEPARATOR
Sequence< sal_Int8 > aSeq
#define SAL_WARN(area, stream)
void setTiledPainting(bool bTiledPainting)
bool isTiledAnnotations()
const LanguageTag & getLocale()
css::uno::Sequence< T > concatSequences(const css::uno::Sequence< T > &rS1, const Ss &... rSn)
sal_Int64 getSomethingImpl(const css::uno::Sequence< sal_Int8 > &rId, T *pThis, FallbackToGetSomethingOf< Base >={})
sal_Int64 getSomething_cast(void *p)
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
std::enable_if< std::is_signed< T >::value, bool >::type checked_add(T a, T b, T &result)
constexpr bool starts_with(std::basic_string_view< charT, traits > sv, std::basic_string_view< charT, traits > x) noexcept
constexpr auto toTwips(N number, Length from)
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
std::vector< css::uno::Reference< css::office::XAnnotation > > AnnotationVector
sal_uInt32 getAnnotationId(const uno::Reference< office::XAnnotation > &xAnnotation)
Reference< XInterface > DocumentSettings_createInstance(SdXImpressDocument *pModel) noexcept
Reference< XInterface > NamespaceMap_createInstance(sal_uInt16 *pWhichIds, SfxItemPool *pPool)
OUString toISO8601(const css::util::DateTime &rDateTime)
OUString SdResId(TranslateId aId)
constexpr OUStringLiteral STR_LAYOUT_OUTLINE
View options for the current view.
OUString msColorSchemeName
std::vector< basegfx::B2DPolygon > maPolygons
css::util::DateTime maModificationDate
Reference< XModel > xModel
constexpr TypedWhichId< SvXMLAttrContainerItem > SDRATTR_XMLATTRIBUTES(SDRATTR_MISC_FIRST+22)
SVXCORE_DLLPUBLIC bool SvxMapUnitToMeasureUnit(const MapUnit nVcl, short &eApi) noexcept
SVXCORE_DLLPUBLIC rtl::Reference< SvxShape > CreateSvxShapeByTypeAndInventor(SdrObjKind nType, SdrInventor nInventor, OUString const &referer)
SVXCORE_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvxUnoDashTable_createInstance(SdrModel *pModel)
SVXCORE_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvxUnoGradientTable_createInstance(SdrModel *pModel)
SVXCORE_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvxUnoBitmapTable_createInstance(SdrModel *pModel)
SVXCORE_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvxUnoMarkerTable_createInstance(SdrModel *pModel)
SVXCORE_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvxUnoHatchTable_createInstance(SdrModel *pModel)
SVXCORE_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvxUnoTransGradientTable_createInstance(SdrModel *pModel)
SVT_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvUnoImageMapCircleObject_createInstance(const SvEventDescription *pSupportedMacroItems)
SVT_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvUnoImageMapPolygonObject_createInstance(const SvEventDescription *pSupportedMacroItems)
SVT_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvUnoImageMapRectangleObject_createInstance(const SvEventDescription *pSupportedMacroItems)
constexpr OUStringLiteral sUNO_Prop_AutomContFocus
constexpr OUStringLiteral sUNO_Prop_VisibleArea
constexpr OUStringLiteral sUNO_LayerName_background_objects
constexpr OUStringLiteral sUNO_Prop_MapUnit
constexpr OUStringLiteral sUNO_Prop_ApplyFrmDsgnMode
constexpr OUStringLiteral sUNO_Prop_ForbiddenCharacters
constexpr OUStringLiteral sUNO_Service_ImageMapCircleObject
constexpr OUStringLiteral sUNO_Prop_InteropGrabBag
constexpr OUStringLiteral sUNO_Prop_RuntimeUID
constexpr OUStringLiteral sUNO_Prop_CharLocale
constexpr OUStringLiteral sUNO_Prop_Theme
constexpr OUStringLiteral sUNO_Service_ImageMapRectangleObject
constexpr OUStringLiteral sUNO_Service_ImageMapPolygonObject
constexpr OUStringLiteral sUNO_Prop_HasValidSignatures
constexpr OUStringLiteral sUNO_LayerName_background
constexpr OUStringLiteral sUNO_Prop_TabStop
SVXCORE_DLLPUBLIC css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule(SdrModel *pModel)
static sal_Int32 ImplPDFGetBookmarkPage(const OUString &rBookmark, SdDrawDocument const &rDoc)
const sal_uInt16 WID_MODEL_INTEROPGRABBAG
const sal_uInt16 WID_MODEL_TABSTOP
const sal_uInt16 WID_MODEL_DSGNMODE
void NotifyDocumentEvent(SdDrawDocument const &rDocument, const OUString &rEventName)
const sal_uInt16 WID_MODEL_FORBCHARS
const sal_uInt16 WID_MODEL_LANGUAGE
static const SvxItemPropertySet * ImplGetDrawModelPropertySet()
static void ImplPDFExportComments(const uno::Reference< drawing::XDrawPage > &xPage, vcl::PDFExtOutDevData &rPDFExtOutDevData)
const sal_uInt16 WID_MODEL_MAPUNIT
static void ImplPDFExportShapeInteraction(const uno::Reference< drawing::XShape > &xShape, SdDrawDocument &rDoc, vcl::PDFExtOutDevData &rPDFExtOutDevData)
const TranslateId aTypeResIds[SdLinkTargetType::Count]
const sal_uInt16 WID_MODEL_DIALOGLIBS
const sal_uInt16 WID_MODEL_HASVALIDSIGNATURES
const sal_uInt16 WID_MODEL_VISAREA
const sal_uInt16 WID_MODEL_FONTS
const sal_uInt16 WID_MODEL_BUILDID
const sal_uInt16 WID_MODEL_RUNTIMEUID
const sal_uInt16 WID_MODEL_BASICLIBS
const sal_uInt16 WID_MODEL_CONTFOCUS
const sal_uInt16 WID_MODEL_THEME
Reference< XAnyCompare > SvxCreateNumRuleCompare() noexcept
const SvEventDescription * ImplGetSupportedMacroItems()
uno::Reference< uno::XInterface > SdUnoCreatePool(SdDrawDocument *pDrawModel)