22#include <initializer_list>
25#include <com/sun/star/awt/XBitmap.hpp>
26#include <com/sun/star/lang/DisposedException.hpp>
27#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
28#include <com/sun/star/presentation/FadeEffect.hpp>
29#include <com/sun/star/presentation/AnimationSpeed.hpp>
30#include <com/sun/star/view/PaperOrientation.hpp>
31#include <com/sun/star/beans/PropertyAttribute.hpp>
32#include <com/sun/star/util/XTheme.hpp>
37#include <rtl/ustrbuf.hxx>
46#include <unomodel.hxx>
72#include <bitmaps.hlst>
82using ::com::sun::star::animations::XAnimationNode;
83using ::com::sun::star::animations::XAnimationNodeSupplier;
99 WID_PAGE_ORIENT, WID_PAGE_LAYOUT, WID_PAGE_DURATION, WID_PAGE_HIGHRESDURATION, WID_PAGE_LDNAME, WID_PAGE_LDBITMAP,
100 WID_PAGE_BACK, WID_PAGE_PREVIEW, WID_PAGE_PREVIEWBITMAP, WID_PAGE_VISIBLE, WID_PAGE_SOUNDFILE,
WID_PAGE_BACKFULL,
102 WID_PAGE_HEADERVISIBLE, WID_PAGE_HEADERTEXT, WID_PAGE_FOOTERVISIBLE, WID_PAGE_FOOTERTEXT,
103 WID_PAGE_PAGENUMBERVISIBLE, WID_PAGE_DATETIMEVISIBLE, WID_PAGE_DATETIMEFIXED,
104 WID_PAGE_DATETIMETEXT, WID_PAGE_DATETIMEFORMAT, WID_TRANSITION_TYPE, WID_TRANSITION_SUBTYPE,
105 WID_TRANSITION_DIRECTION, WID_TRANSITION_FADE_COLOR, WID_TRANSITION_DURATION, WID_LOOP_SOUND,
161#define DRAW_PAGE_NOTES_PROPERTIES \
162 { u"" UNO_NAME_PAGE_BOTTOM, WID_PAGE_BOTTOM, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
163 { u"" UNO_NAME_PAGE_LEFT, WID_PAGE_LEFT, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
164 { u"" UNO_NAME_PAGE_RIGHT, WID_PAGE_RIGHT, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
165 { u"" UNO_NAME_PAGE_TOP, WID_PAGE_TOP, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
166 { u"" UNO_NAME_PAGE_HEIGHT, WID_PAGE_HEIGHT, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
167 { u"" UNO_NAME_PAGE_LAYOUT, WID_PAGE_LAYOUT, ::cppu::UnoType<sal_Int16>::get(), 0, 0}, \
168 { UNO_NAME_LINKDISPLAYBITMAP, WID_PAGE_LDBITMAP, cppu::UnoType<awt::XBitmap>::get(), beans::PropertyAttribute::READONLY, 0}, \
169 { UNO_NAME_LINKDISPLAYNAME, WID_PAGE_LDNAME, ::cppu::UnoType<OUString>::get(), beans::PropertyAttribute::READONLY, 0}, \
170 { u"" UNO_NAME_PAGE_NUMBER, WID_PAGE_NUMBER, ::cppu::UnoType<sal_Int16>::get(), beans::PropertyAttribute::READONLY, 0}, \
171 { u"" UNO_NAME_PAGE_ORIENTATION, WID_PAGE_ORIENT, ::cppu::UnoType<view::PaperOrientation>::get(),0, 0}, \
172 { u"" UNO_NAME_PAGE_WIDTH, WID_PAGE_WIDTH, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
173 { sUNO_Prop_UserDefinedAttributes,WID_PAGE_USERATTRIBS, cppu::UnoType<css::container::XNameContainer>::get(), 0, 0},\
174 { u"IsHeaderVisible", WID_PAGE_HEADERVISIBLE, cppu::UnoType<bool>::get(), 0, 0}, \
175 { u"HeaderText", WID_PAGE_HEADERTEXT, ::cppu::UnoType<OUString>::get(), 0, 0}, \
176 { u"IsBackgroundDark", WID_PAGE_ISDARK, cppu::UnoType<bool>::get(), beans::PropertyAttribute::READONLY, 0}, \
177 { u"IsFooterVisible", WID_PAGE_FOOTERVISIBLE, cppu::UnoType<bool>::get(), 0, 0}, \
178 { u"FooterText", WID_PAGE_FOOTERTEXT, ::cppu::UnoType<OUString>::get(), 0, 0}, \
179 { u"IsPageNumberVisible", WID_PAGE_PAGENUMBERVISIBLE, cppu::UnoType<bool>::get(), 0, 0}, \
180 { u"IsDateTimeVisible", WID_PAGE_DATETIMEVISIBLE, cppu::UnoType<bool>::get(), 0, 0}, \
181 { u"IsDateTimeFixed", WID_PAGE_DATETIMEFIXED, cppu::UnoType<bool>::get(), 0, 0}, \
182 { u"DateTimeText", WID_PAGE_DATETIMETEXT, ::cppu::UnoType<OUString>::get(), 0, 0}, \
183 { u"DateTimeFormat", WID_PAGE_DATETIMEFORMAT, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
184 { u"NavigationOrder", WID_NAVORDER, cppu::UnoType<css::container::XIndexAccess>::get(),0, 0}
197#define GRAPHIC_PAGE_PROPERTIES \
198 { u"" UNO_NAME_PAGE_BOTTOM, WID_PAGE_BOTTOM, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
199 { u"" UNO_NAME_PAGE_LEFT, WID_PAGE_LEFT, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
200 { u"" UNO_NAME_PAGE_RIGHT, WID_PAGE_RIGHT, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
201 { u"" UNO_NAME_PAGE_TOP, WID_PAGE_TOP, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
202 { u"" UNO_NAME_PAGE_HEIGHT, WID_PAGE_HEIGHT, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
203 { UNO_NAME_LINKDISPLAYBITMAP, WID_PAGE_LDBITMAP, cppu::UnoType<awt::XBitmap>::get(), beans::PropertyAttribute::READONLY, 0}, \
204 { UNO_NAME_LINKDISPLAYNAME, WID_PAGE_LDNAME, ::cppu::UnoType<OUString>::get(), beans::PropertyAttribute::READONLY, 0}, \
205 { u"" UNO_NAME_PAGE_NUMBER, WID_PAGE_NUMBER, ::cppu::UnoType<sal_Int16>::get(), beans::PropertyAttribute::READONLY, 0}, \
206 { u"" UNO_NAME_PAGE_ORIENTATION, WID_PAGE_ORIENT, ::cppu::UnoType<view::PaperOrientation>::get(),0, 0}, \
207 { u"" UNO_NAME_PAGE_WIDTH, WID_PAGE_WIDTH, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
208 { u"" UNO_NAME_PAGE_PREVIEW, WID_PAGE_PREVIEW, cppu::UnoType<css::uno::Sequence<sal_Int8>>::get(), css::beans::PropertyAttribute::READONLY, 0}, \
209 { u"" UNO_NAME_PAGE_PREVIEWBITMAP, WID_PAGE_PREVIEWBITMAP, cppu::UnoType<css::uno::Sequence<sal_Int8>>::get(), css::beans::PropertyAttribute::READONLY, 0},\
210 { u"" UNO_NAME_PAGE_PREVIEWMETAFILE, WID_PAGE_PREVIEWMETAFILE, cppu::UnoType<css::uno::Sequence<sal_Int8>>::get(), css::beans::PropertyAttribute::READONLY, 0},\
211 { sUNO_Prop_UserDefinedAttributes,WID_PAGE_USERATTRIBS, cppu::UnoType<css::container::XNameContainer>::get(), 0, 0}, \
212 { sUNO_Prop_BookmarkURL, WID_PAGE_BOOKMARK, ::cppu::UnoType<OUString>::get(), 0, 0}, \
213 { u"IsBackgroundDark", WID_PAGE_ISDARK, cppu::UnoType<bool>::get(), beans::PropertyAttribute::READONLY, 0}, \
214 { u"NavigationOrder", WID_NAVORDER, cppu::UnoType<css::container::XIndexAccess>::get(),0, 0}
234 pRet = &aDrawPagePropertySet_Impl;
238 if(bWithoutBackground)
241 pRet = &aDrawPageNotesHandoutPropertyNoBackSet_Impl;
246 pRet = &aDrawPageNotesHandoutPropertySet_Impl;
252 if(bWithoutBackground)
255 pRet = &aGraphicPagePropertyNoBackSet_Impl;
260 pRet = &aGraphicPagePropertySet_Impl;
318 pRet = &aHandoutMasterPagePropertySet_Impl;
323 pRet = &aMasterPagePropertySet_Impl;
331 return theSdGenericDrawPageUnoTunnelId.
getSeq();
343 mpDocModel( _pModel ),
345 mbIsImpressDocument(false),
362 throw lang::DisposedException();
401 OUString aType( xShape->getShapeType() );
402 static constexpr OUStringLiteral aPrefix(
u"com.sun.star.presentation." );
403 if( !aType.startsWith( aPrefix ) )
408 aType = aType.copy( aPrefix.getLength() );
412 if( aType ==
"TitleTextShape" )
416 else if( aType ==
"OutlinerShape" )
420 else if( aType ==
"SubtitleShape" )
424 else if( aType ==
"OLE2Shape" )
428 else if( aType ==
"ChartShape" )
432 else if( aType ==
"CalcShape" )
436 else if( aType ==
"TableShape" )
440 else if( aType ==
"GraphicObjectShape" )
444 else if( aType ==
"OrgChartShape" )
448 else if( aType ==
"PageShape" )
455 else if( aType ==
"NotesShape" )
459 else if( aType ==
"HandoutShape" )
463 else if( aType ==
"FooterShape" )
467 else if( aType ==
"HeaderShape" )
471 else if( aType ==
"SlideNumberShape" )
475 else if( aType ==
"DateTimeShape" )
479 else if( aType ==
"MediaShape" )
486 const awt::Point aPos( aRect.
Left(), aRect.
Top() );
487 xShape->setPosition( aPos );
490 xShape->setSize( aSize );
509 pPresObj->SetUserCall(
GetPage() );
517 return SvxFmDrawPage::queryInterface(rType);
525 aAny <<= Reference<beans::XPropertySet>(
this);
529 aAny <<= Reference<container::XNamed>(
this);
533 aAny <<= Reference<util::XReplaceable>(
this);
537 aAny <<= Reference<util::XSearchable>(
this);
541 aAny <<= Reference<document::XLinkTargetSupplier>(
this);
545 aAny <<= Reference<drawing::XShapeCombiner>(
this);
549 aAny <<= Reference<drawing::XShapeBinder>(
this);
553 aAny <<= Reference<beans::XMultiPropertySet>(
this);
557 aAny <<= Reference<office::XAnnotationAccess>(
this);
564 return Any( Reference< XAnimationNodeSupplier >(
this ) );
588 switch( pEntry ? pEntry->
nWID : -1 )
597 case WID_PAGE_LAYOUT:
598 case WID_PAGE_DURATION:
599 case WID_PAGE_CHANGE:
603 throw lang::IllegalArgumentException();
605 switch( pEntry->
nWID )
619 case WID_PAGE_CHANGE:
622 case WID_PAGE_LAYOUT:
625 case WID_PAGE_DURATION:
631 case WID_PAGE_HIGHRESDURATION:
634 if(!(aValue >>= fValue))
635 throw lang::IllegalArgumentException();
642 sal_Int32 nWidth = 0;
643 if(!(aValue >>= nWidth))
644 throw lang::IllegalArgumentException();
651 sal_Int32 nHeight = 0;
652 if(!(aValue >>= nHeight))
653 throw lang::IllegalArgumentException();
661 if(!::cppu::enum2int( nEnum, aValue ))
662 throw lang::IllegalArgumentException();
664 Orientation eOri = (
static_cast<view::PaperOrientation
>(nEnum) == view::PaperOrientation_PORTRAIT)?Orientation::Portrait:Orientation::Landscape;
672 for (
i = 0;
i < nPageCnt;
i++)
680 for (
i = 0;
i < nPageCnt;
i++)
688 case WID_PAGE_EFFECT:
691 if(!::cppu::enum2int( nEnum, aValue ))
692 throw lang::IllegalArgumentException();
703 if(!::cppu::enum2int( nEnum, aValue ))
704 throw lang::IllegalArgumentException();
709 case WID_PAGE_VISIBLE :
713 throw lang::IllegalArgumentException();
717 case WID_PAGE_SOUNDFILE :
720 if( aValue >>=
aURL )
728 bool bStopSound =
false;
729 if( aValue >>= bStopSound )
736 throw lang::IllegalArgumentException();
741 if( ! (aValue >>= bLoop) )
742 throw lang::IllegalArgumentException();
749 bool bFullSize =
false;
750 if( ! ( aValue >>= bFullSize ) )
751 throw lang::IllegalArgumentException();
755 case WID_PAGE_BACKVIS:
759 throw lang::IllegalArgumentException();
775 case WID_PAGE_BACKOBJVIS:
779 throw lang::IllegalArgumentException();
798 if( !
GetPage()->setAlienAttributes( aValue ) )
799 throw lang::IllegalArgumentException();
802 case WID_PAGE_BOOKMARK:
804 OUString aBookmarkURL;
805 if( ! ( aValue >>= aBookmarkURL ) )
806 throw lang::IllegalArgumentException();
812 case WID_PAGE_HEADERVISIBLE:
813 case WID_PAGE_HEADERTEXT:
814 case WID_PAGE_FOOTERVISIBLE:
815 case WID_PAGE_FOOTERTEXT:
816 case WID_PAGE_PAGENUMBERVISIBLE:
817 case WID_PAGE_DATETIMEVISIBLE:
818 case WID_PAGE_DATETIMEFIXED:
819 case WID_PAGE_DATETIMETEXT:
820 case WID_PAGE_DATETIMEFORMAT:
824 switch( pEntry->
nWID )
826 case WID_PAGE_HEADERVISIBLE:
830 throw lang::IllegalArgumentException();
835 case WID_PAGE_HEADERTEXT:
838 if( ! ( aValue >>= aText ) )
839 throw lang::IllegalArgumentException();
844 case WID_PAGE_FOOTERVISIBLE:
848 throw lang::IllegalArgumentException();
853 case WID_PAGE_FOOTERTEXT:
856 if( ! ( aValue >>= aText ) )
857 throw lang::IllegalArgumentException();
862 case WID_PAGE_PAGENUMBERVISIBLE:
866 throw lang::IllegalArgumentException();
871 case WID_PAGE_DATETIMEVISIBLE:
875 throw lang::IllegalArgumentException();
880 case WID_PAGE_DATETIMEFIXED:
884 throw lang::IllegalArgumentException();
889 case WID_PAGE_DATETIMETEXT:
892 if( ! ( aValue >>= aText ) )
893 throw lang::IllegalArgumentException();
898 case WID_PAGE_DATETIMEFORMAT:
901 if( ! ( aValue >>=
nValue ) )
902 throw lang::IllegalArgumentException();
920 throw lang::IllegalArgumentException();
924 throw beans::PropertyVetoException();
926 case WID_PAGE_LDBITMAP:
927 case WID_PAGE_LDNAME:
929 throw beans::PropertyVetoException();
931 case WID_TRANSITION_TYPE:
934 if( ! ( aValue >>=
nValue ) )
935 throw lang::IllegalArgumentException();
941 case WID_TRANSITION_SUBTYPE:
944 if( ! ( aValue >>=
nValue ) )
945 throw lang::IllegalArgumentException();
951 case WID_TRANSITION_DIRECTION:
954 if( ! ( aValue >>= bValue ) )
955 throw lang::IllegalArgumentException();
961 case WID_TRANSITION_FADE_COLOR:
964 if( ! ( aValue >>=
nValue ) )
965 throw lang::IllegalArgumentException();
971 case WID_TRANSITION_DURATION:
974 if( ! ( aValue >>= fValue ) )
975 throw lang::IllegalArgumentException();
984 uno::Reference<util::XTheme> xTheme;
985 if (aValue >>= xTheme)
987 auto& rUnoTheme =
dynamic_cast<UnoTheme&
>(*xTheme);
993 case WID_PAGE_THEME_UNO_REPRESENTATION:
1002 throw beans::UnknownPropertyException( aPropertyName,
static_cast<cppu::OWeakObject*
>(
this));
1018 sal_Int16 nEntry = pEntry ? pEntry->
nWID : -1;
1037 aAny <<= static_cast<sal_Int32>(
GetPage()->GetSize().getWidth() );
1040 aAny <<= static_cast<sal_Int32>(
GetPage()->GetSize().getHeight() );
1045 ? view::PaperOrientation_PORTRAIT
1046 : view::PaperOrientation_LANDSCAPE;
1048 case WID_PAGE_EFFECT:
1051 case WID_PAGE_CHANGE:
1052 aAny <<= static_cast<sal_Int32>(
GetPage()->GetPresChange() );
1054 case WID_PAGE_SPEED:
1057 aAny <<= presentation::AnimationSpeed(
1058 fDuration < 2.0 ? 2 : fDuration > 2.0 ? 0 : 1);
1061 case WID_PAGE_LAYOUT:
1062 aAny <<= static_cast<sal_Int16>(
GetPage()->GetAutoLayout() );
1066 const sal_uInt16 nPageNumber(
GetPage()->GetPageNum());
1071 aAny <<= static_cast<sal_Int16>(
static_cast<sal_uInt16
>((nPageNumber-1)>>1) + 1);
1079 case WID_PAGE_DURATION:
1082 case WID_PAGE_HIGHRESDURATION:
1085 case WID_PAGE_LDNAME:
1091 case WID_PAGE_LDBITMAP:
1100 case WID_PAGE_PREVIEW :
1101 case WID_PAGE_PREVIEWMETAFILE :
1107 sal_uInt16 nPgNum = 0;
1109 sal_uInt16 nPageNumber =
static_cast<sal_uInt16
>( (
GetPage()->
GetPageNum() - 1 ) >> 1 );
1110 while( nPgNum < nPageCount )
1121 xMetaFile->SetPrefMapMode(
MapMode(MapUnit::Map100thMM));
1122 xMetaFile->SetPrefSize( aSize );
1125 if (nEntry == WID_PAGE_PREVIEW)
1132 aWriter.
Write(*xMetaFile);
1141 case WID_PAGE_PREVIEWBITMAP :
1147 sal_uInt16 nPgNum = 0;
1149 sal_uInt16 nPageNumber =
static_cast<sal_uInt16
>( (
GetPage()->
GetPageNum() - 1 ) >> 1 );
1150 while( nPgNum < nPageCount )
1157 if (xMetaFile && xMetaFile->CreateThumbnail(aBitmap))
1168 case WID_PAGE_VISIBLE :
1175 case WID_PAGE_SOUNDFILE :
1177 if(
GetPage()->IsStopSound() )
1190 case WID_LOOP_SOUND:
1201 case WID_PAGE_BACKVIS:
1220 case WID_PAGE_BACKOBJVIS:
1244 case WID_PAGE_BOOKMARK:
1254 case WID_PAGE_HEADERVISIBLE:
1257 case WID_PAGE_HEADERTEXT:
1259 const OUString aText(
GetPage()->getHeaderFooterSettings().maHeaderText );
1263 case WID_PAGE_FOOTERVISIBLE:
1266 case WID_PAGE_FOOTERTEXT:
1268 const OUString aText(
GetPage()->getHeaderFooterSettings().maFooterText );
1272 case WID_PAGE_PAGENUMBERVISIBLE:
1275 case WID_PAGE_DATETIMEVISIBLE:
1278 case WID_PAGE_DATETIMEFIXED:
1281 case WID_PAGE_DATETIMETEXT:
1283 const OUString aText(
GetPage()->getHeaderFooterSettings().maDateTimeText );
1287 case WID_PAGE_DATETIMEFORMAT:
1290 sal_Int32
x =
static_cast<sal_Int32
>(rSettings.meDateFormat) | (
static_cast<sal_Int32
>(rSettings.meTimeFormat) << 4);
1295 case WID_TRANSITION_TYPE:
1299 case WID_TRANSITION_SUBTYPE:
1303 case WID_TRANSITION_DIRECTION:
1307 case WID_TRANSITION_FADE_COLOR:
1311 case WID_TRANSITION_DURATION:
1318 css::uno::Reference<css::util::XTheme> xTheme;
1326 case WID_PAGE_THEME_UNO_REPRESENTATION:
1331 pTheme->ToAny(aAny);
1334 beans::PropertyValues aValues;
1341 throw beans::UnknownPropertyException( PropertyName,
static_cast<cppu::OWeakObject*
>(
this));
1354 if( aPropertyNames.getLength() != aValues.getLength() )
1355 throw lang::IllegalArgumentException();
1357 const OUString* pNames = aPropertyNames.getConstArray();
1358 const Any*
pValues = aValues.getConstArray();
1359 sal_uInt32
nCount = aValues.getLength();
1366 catch( beans::UnknownPropertyException& )
1376 sal_Int32
nCount = aPropertyNames.getLength();
1377 Sequence< Any > aValues(
nCount );
1378 std::transform(aPropertyNames.begin(), aPropertyNames.end(), aValues.getArray(),
1379 [
this](
const OUString& rName) ->
Any {
1383 aValue = getPropertyValue(rName);
1385 catch( beans::UnknownPropertyException& )
1409 DBG_ASSERT(
GetPage(),
"SdGenericDrawPage::CreateShape(), can't create shape for disposed page!" );
1410 DBG_ASSERT( pObj,
"SdGenericDrawPage::CreateShape(), invalid call with pObj == 0!" );
1413 return Reference< drawing::XShape >();
1426 case SdrObjKind::TitleText:
1431 pShape->SetShapeType(
"com.sun.star.presentation.PageShape");
1435 pShape->SetShapeType(
"com.sun.star.presentation.TitleTextShape");
1439 case SdrObjKind::OutlineText:
1441 pShape->SetShapeType(
"com.sun.star.presentation.OutlinerShape");
1448 Reference< drawing::XShape > xShape( pShape );
1455 OUString aShapeType(
"com.sun.star.presentation.");
1460 aShapeType +=
"TitleTextShape";
1463 aShapeType +=
"OutlinerShape";
1466 aShapeType +=
"SubtitleShape";
1469 aShapeType +=
"GraphicObjectShape";
1472 aShapeType +=
"OLE2Shape";
1475 aShapeType +=
"ChartShape";
1478 aShapeType +=
"OrgChartShape";
1481 aShapeType +=
"CalcShape";
1484 aShapeType +=
"TableShape";
1487 aShapeType +=
"MediaShape";
1490 aShapeType +=
"PageShape";
1493 aShapeType +=
"HandoutShape";
1496 aShapeType +=
"NotesShape";
1499 aShapeType +=
"FooterShape";
1502 aShapeType +=
"HeaderShape";
1505 aShapeType +=
"SlideNumberShape";
1508 aShapeType +=
"DateTimeShape";
1516 pShape = comphelper::getFromUnoTunnel<SvxShape>( xShape );
1519 pShape->SetShapeType( aShapeType );
1522 SvxShape *pSdShape = comphelper::getFromUnoTunnel<SvxShape>(xShape);
1542 std::initializer_list<std::u16string_view>{
u"com.sun.star.drawing.GenericDrawPage",
1543 u"com.sun.star.document.LinkTarget",
1544 u"com.sun.star.document.LinkTargetSupplier" });
1555 OSL_FAIL(
"Don't call me, I'm useless!" );
1560 OSL_FAIL(
"Don't call me, I'm useless!" );
1569 if( !aFileName.isEmpty() )
1572 aRet = aFileName +
"#" + aBookmarkName;
1584 size_t nIndex = rURL.find(
'#' );
1585 if(
nIndex == std::u16string_view::npos )
1588 const OUString aFileName( rURL.substr( 0,
nIndex ) );
1591 if( !aFileName.isEmpty() && !aBookmarkName.isEmpty() )
1609 Reference< drawing::XShape > xShape;
1617 mpView->CombineMarkedObjects(
false );
1646 mpView->DismantleMarkedObjects();
1658 uno::Reference< drawing::XShape > xShape;
1666 mpView->CombineMarkedObjects();
1695 mpView->DismantleMarkedObjects(
true );
1710 for (
i = 0;
i < nPageCnt;
i++)
1718 for (
i = 0;
i < nPageCnt;
i++)
1734 for (
i = 0;
i < nPageCnt;
i++)
1742 for (
i = 0;
i < nPageCnt;
i++)
1758 for (
i = 0;
i < nPageCnt;
i++)
1766 for (
i = 0;
i < nPageCnt;
i++)
1782 for (
i = 0;
i < nPageCnt;
i++)
1790 for (
i = 0;
i < nPageCnt;
i++)
1809 pDrawViewShell->ResetActualPage();
1815 Point aPageOrg(nWidth, nHeight / 2);
1816 Size aViewSize(nWidth * 3, nHeight * 2);
1837 for (
i = 0;
i < nPageCnt;
i++)
1845 for (
i = 0;
i < nPageCnt;
i++)
1866 for (
i = 0;
i < nPageCnt;
i++)
1874 for (
i = 0;
i < nPageCnt;
i++)
1887 OWeakAggObject::release();
1913 mpUnoPage = pUnoPage;
1931 if( pPage !=
nullptr )
1939 if(
aStr.isEmpty() )
1940 if (
auto pOleObj =
dynamic_cast< const SdrOle2Obj *
>( pObj ))
1941 aStr = pOleObj->GetPersistName();
1942 if( !
aStr.isEmpty() )
1958 if( pPage !=
nullptr )
1963 Reference< beans::XPropertySet > aRef( pObj->
getUnoShape(), uno::UNO_QUERY );
1968 throw container::NoSuchElementException();
1975 sal_uInt32 nObjCount = 0;
1978 if( pPage !=
nullptr )
1985 if(
aStr.isEmpty() )
1986 if (
auto pOleObj =
dynamic_cast< const SdrOle2Obj *
>( pObj ))
1987 aStr = pOleObj->GetPersistName();
1988 if( !
aStr.isEmpty() )
1993 Sequence< OUString >
aSeq( nObjCount );
1996 OUString* pStr =
aSeq.getArray();
2003 if(
aStr.isEmpty() )
2004 if (
auto pOleObj =
dynamic_cast< const SdrOle2Obj *
>( pObj ))
2005 aStr = pOleObj->GetPersistName();
2006 if( !
aStr.isEmpty() )
2023 SdPage* pPage = mpUnoPage->GetPage();
2024 if( pPage ==
nullptr )
2033 if(
aStr.isEmpty() )
2034 if (
auto pOleObj =
dynamic_cast< const SdrOle2Obj *
>( pObj ))
2035 aStr = pOleObj->GetPersistName();
2036 if( !
aStr.isEmpty() && (
aStr == rName) )
2046 return "SdPageLinkTargets";
2056 return {
"com.sun.star.document.LinkTargets" };
2078 return Any( Reference< drawing::XMasterPageTarget >(
this ) );
2086 return Any( Reference< presentation::XPresentationPage >(
this ) );
2095 SvxDrawPage::acquire();
2118 ::std::vector<uno::Type>
aTypes;
2148 return css::uno::Sequence<sal_Int8>();
2164 if( aPageName.isEmpty() )
2166 const sal_Int32 nPageNum = ( ( pPage->
GetPageNum() - 1 ) >> 1 ) + 1;
2178 OUString aDefPageName(
SdResId(STR_PAGE) +
" ");
2180 if( rUIName.startsWith( aDefPageName ) )
2182 aApiName = OUString::Concat(
sEmptyPageName) + rUIName.subView( aDefPageName.getLength() );
2200 if( rApiName.startsWith( aDefPageName ) )
2202 std::u16string_view aNumber( rApiName.subView( aDefPageName.getLength() ) );
2208 const size_t nChars = aNumber.size();
2210 for(
size_t nChar = 0; nChar < nChars; nChar++, pString++ )
2212 if((*pString <
'0') || (*pString >
'9'))
2221 if( nPageNumber != -1)
2223 return SdResId(STR_PAGE) +
" " + aNumber;
2238 return "SdDrawPage";
2247 std::vector<std::u16string_view> aAdd{
u"com.sun.star.drawing.DrawPage" };
2250 aAdd.emplace_back(
u"com.sun.star.presentation.DrawPage");
2269 OUString
aName( rName );
2275 std::u16string_view aNumber;
2284 const sal_Int32 nChars = aNumber.size();
2287 for( nChar = 0; nChar < nChars; nChar++, pString++ )
2289 if((*pString <
'0') || (*pString >
'9'))
2298 if( nPageNumber == ( (
GetPage()->GetPageNum() - 1 ) >> 1 ) + 1 )
2303 OUString aDefaultPageName(
SdResId(STR_PAGE) +
" " );
2304 if(
aName.startsWith( aDefaultPageName ) )
2326 bool bLayer = pDrawViewSh->IsLayerModeActive();
2328 pDrawViewSh->ChangeEditMode(
eMode, !bLayer );
2329 pDrawViewSh->ChangeEditMode(
eMode, bLayer );
2354 Reference< drawing::XDrawPage > xPage;
2359 xPage.set( rMasterPage.
getUnoPage(), uno::UNO_QUERY );
2377 SdMasterPage* pMasterPage = comphelper::getFromUnoTunnel<SdMasterPage>( xMasterPage );
2378 if( !(pMasterPage && pMasterPage->
isValid()) )
2416 Reference< drawing::XDrawPage > xPage( pNotesPage->
getUnoPage(), uno::UNO_QUERY );
2469 Reference< beans::XPropertySet > xSet;
2471 if( !(rValue >>= xSet) && !rValue.hasValue() )
2472 throw lang::IllegalArgumentException();
2494 Reference< beans::XPropertySetInfo > xSetInfo( xSet->getPropertySetInfo() );
2495 Reference< beans::XPropertySetInfo > xDestSetInfo( pBackground->getPropertySetInfo() );
2497 const Sequence< beans::Property >
aProperties( xDestSetInfo->getProperties() );
2502 if( xSetInfo->hasPropertyByName(
aPropName ) )
2503 pBackground->setPropertyValue(
aPropName,
2507 pBackground->fillItemSet(
static_cast<SdDrawDocument*
>(&
GetPage()->getSdrModelFromSdrPage()), aSet );
2510 if( aSet.
Count() == 0 )
2530 throw DisposedException();
2532 Reference< XAnnotation > xRet;
2568 Reference< XIndexAccess > xIA( rValue, UNO_QUERY );
2571 if(
dynamic_cast< SdDrawPage*
>( xIA.get() ) ==
this )
2573 if(
GetPage()->HasObjectNavigationOrder() )
2578 else if(
static_cast<size_t>(xIA->getCount()) ==
GetPage()->GetObjCount() )
2584 throw IllegalArgumentException();
2589class SdNavigationOrderAccess :
public ::cppu::WeakImplHelper< XIndexAccess >
2592 explicit SdNavigationOrderAccess(
SdrPage const * pPage);
2595 virtual sal_Int32 SAL_CALL getCount( )
override;
2596 virtual Any SAL_CALL getByIndex( sal_Int32
Index )
override;
2599 virtual Type SAL_CALL getElementType( )
override;
2600 virtual sal_Bool SAL_CALL hasElements( )
override;
2603 std::vector< Reference< XShape > > maShapes;
2608SdNavigationOrderAccess::SdNavigationOrderAccess(
SdrPage const * pPage )
2609: maShapes( pPage ? pPage->GetObjCount() : 0 )
2618 DBG_ASSERT( !maShapes[nNavPos].is(),
"sd::SdNavigationOrderAccess::SdNavigationOrderAccess(), duplicate navigation positions from core!" );
2619 maShapes[nNavPos].set( pObj->
getUnoShape(), UNO_QUERY );
2625sal_Int32 SAL_CALL SdNavigationOrderAccess::getCount( )
2627 return static_cast< sal_Int32
>( maShapes.size() );
2630Any SAL_CALL SdNavigationOrderAccess::getByIndex( sal_Int32
Index )
2633 throw IndexOutOfBoundsException();
2639Type SAL_CALL SdNavigationOrderAccess::getElementType( )
2644sal_Bool SAL_CALL SdNavigationOrderAccess::hasElements( )
2646 return !maShapes.empty();
2651 if(
GetPage()->HasObjectNavigationOrder() )
2653 return Any( Reference< XIndexAccess >(
new SdNavigationOrderAccess(
GetPage() ) ) );
2657 return Any( Reference< XIndexAccess >(
this ) );
2684 aAny <<= Reference< container::XIndexAccess >(
static_cast<presentation::XPresentationPage*
>(
this));
2686 aAny <<= Reference< container::XElementAccess >(
static_cast<presentation::XPresentationPage*
>(
this));
2688 aAny <<= Reference< container::XNamed >(
this);
2692 aAny <<= Reference< presentation::XPresentationPage >(
this );
2701 SvxDrawPage::acquire();
2724 ::std::vector<uno::Type>
aTypes;
2753 return css::uno::Sequence<sal_Int8>();
2759 return "SdMasterPage";
2768 std::vector<std::u16string_view> aAdd{
u"com.sun.star.drawing.MasterPage" };
2771 aAdd.emplace_back(
u"com.sun.star.presentation.HandoutMasterPage");
2822 Reference< beans::XPropertySet > xInputSet( rValue, UNO_QUERY );
2823 if( !xInputSet.is() )
2824 throw lang::IllegalArgumentException();
2830 Reference< container::XNameAccess > xFamilies(
GetModel()->getStyleFamilies(), UNO_SET_THROW );
2831 Reference< container::XNameAccess > xFamily( xFamilies->getByName(
getName() ), UNO_QUERY_THROW ) ;
2835 Reference< beans::XPropertySetInfo > xSetInfo( xInputSet->getPropertySetInfo(), UNO_SET_THROW );
2836 Reference< beans::XPropertyState > xSetStates( xInputSet, UNO_QUERY );
2840 const OUString& rPropName = pProp->aName;
2841 if( xSetInfo->hasPropertyByName( rPropName ) )
2843 if( !xSetStates.is() || xSetStates->getPropertyState( rPropName ) == beans::PropertyState_DIRECT_VALUE )
2844 xStyleSet->setPropertyValue( rPropName, xInputSet->getPropertyValue( rPropName ) );
2846 xSetStates->setPropertyToDefault( rPropName );
2866 Reference< beans::XPropertySetInfo > xInputSetInfo( xInputSet->getPropertySetInfo(), UNO_SET_THROW );
2867 Reference< beans::XPropertySetInfo > xDestSetInfo( pBackground->getPropertySetInfo(), UNO_SET_THROW );
2869 const uno::Sequence< beans::Property>
aProperties( xDestSetInfo->getProperties() );
2874 if( xInputSetInfo->hasPropertyByName(
aPropName ) )
2875 pBackground->setPropertyValue(
aPropName, xInputSet->getPropertyValue(
aPropName ) );
2887 aLayoutName = OUString::Concat(aLayoutName.subView(0, aLayoutName.indexOf(
SD_LT_SEPARATOR)+4)) +
2921 Reference< container::XNameAccess > xFamilies(
GetModel()->getStyleFamilies(), UNO_SET_THROW );
2922 Reference< container::XNameAccess > xFamily( xFamilies->getByName(
getName() ), UNO_QUERY_THROW );
2933 aLayoutName = OUString::Concat(aLayoutName.subView(0, aLayoutName.indexOf(
SD_LT_SEPARATOR)+4)) +
2940 if( aStyleSet.
Count() )
2942 rValue <<= Reference< beans::XPropertySet >(
new SdUnoPageBackground( pDoc, &aStyleSet ) );
2954 rValue <<= Reference< beans::XPropertySet >(
3000 bool bLayer = pDrawViewSh->IsLayerModeActive();
3002 pDrawViewSh->ChangeEditMode(
eMode, !bLayer );
3003 pDrawViewSh->ChangeEditMode(
eMode, bLayer );
3018 OUString aLayoutName(
GetPage()->GetLayoutName() );
3037 Reference< drawing::XDrawPage > xPage( pNotesPage->
getUnoPage(), uno::UNO_QUERY );
3057 if( pObj &&
GetPage()->IsPresObj( pObj ) )
3065 Reference< uno::XInterface > xPage;
const PropertyValue * pValues
PropertiesInfo aProperties
Bitmap GetBitmap(Color aTransparentReplaceColor) const
sal_uInt16 GetMasterSdPageCount(PageKind ePgKind) const
SdPage * GetSdPage(sal_uInt16 nPgNum, PageKind ePgKind) const
SAL_DLLPRIVATE sal_uInt16 GetPageByName(std::u16string_view rPgName, bool &rbIsMasterPage) const
Return the first page that has the given name.
SAL_DLLPRIVATE void RenameLayoutTemplate(const OUString &rOldLayoutName, const OUString &rNewName)
SdPage * GetMasterSdPage(sal_uInt16 nPgNum, PageKind ePgKind)
SAL_DLLPRIVATE void SetSelected(SdPage *pPage, bool bSelect)
SAL_DLLPRIVATE::sd::DrawDocShell * GetDocSh() const
sal_uInt16 GetSdPageCount(PageKind ePgKind) const
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL acquire() noexcept override
virtual void getBackground(css::uno::Any &rValue) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual void SAL_CALL release() noexcept override
virtual css::uno::Type SAL_CALL getElementType() override
SdDrawPage(SdXImpressDocument *pModel, SdPage *pInPage)
virtual OUString SAL_CALL getName() override
virtual ~SdDrawPage() noexcept override
css::uno::Sequence< css::uno::Type > maTypeSequence
virtual void SAL_CALL add(const css::uno::Reference< css::drawing::XShape > &xShape) override
virtual sal_Bool SAL_CALL hasElements() override
virtual sal_Int32 SAL_CALL getCount() override
virtual void SAL_CALL remove(const css::uno::Reference< css::drawing::XShape > &xShape) override
virtual void SAL_CALL setMasterPage(const css::uno::Reference< css::drawing::XDrawPage > &xMasterPage) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
css::uno::Any SAL_CALL queryAggregation(css::uno::Type const &rType) override
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getMasterPage() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
static OUString getPageApiName(SdPage const *pPage)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
static OUString getPageApiNameFromUiName(const OUString &rUIName)
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getNotesPage() override
virtual void setBackground(const css::uno::Any &rValue) override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
virtual void SAL_CALL setName(const OUString &aName) override
static OUString getUiNameFromPageApiName(const OUString &rApiName)
virtual void SAL_CALL removePropertiesChangeListener(const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual void getBackground(css::uno::Any &rValue)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
sal_Int16 mnTempPageNumber
virtual void SAL_CALL unbind(const css::uno::Reference< css::drawing::XShape > &xShape) override
css::uno::Any getNavigationOrder()
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId() noexcept
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
void SetHeight(sal_Int32 nHeight)
void SetWidth(sal_Int32 nWidth)
void SetUpperBorder(sal_Int32 nValue)
void SetRightBorder(sal_Int32 nValue)
virtual void disposing() noexcept override
void setNavigationOrder(const css::uno::Any &rValue)
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getLinks() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void SAL_CALL firePropertiesChangeEvent(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
css::uno::Any SAL_CALL queryAggregation(css::uno::Type const &rType) override
void throwIfDisposed() const
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
virtual ~SdGenericDrawPage() noexcept override
virtual void SAL_CALL split(const css::uno::Reference< css::drawing::XShape > &xGroup) override
virtual css::uno::Reference< css::drawing::XShape > CreateShape(SdrObject *pObj) const override
virtual css::uno::Reference< css::drawing::XShape > SAL_CALL bind(const css::uno::Reference< css::drawing::XShapes > &xShapes) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual css::uno::Reference< css::office::XAnnotation > SAL_CALL createAndInsertAnnotation() override
virtual css::uno::Reference< css::animations::XAnimationNode > SAL_CALL getAnimationNode() override
const SvxItemPropertySet * mpPropSet
bool IsImpressDocument() const
void SetLeftBorder(sal_Int32 nValue)
SdXImpressDocument * GetModel() const
virtual void SAL_CALL release() noexcept override
virtual sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &aIdentifier) override
void SetLowerBorder(sal_Int32 nValue)
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Reference< css::office::XAnnotationEnumeration > SAL_CALL createAnnotationEnumeration() override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames) override
SdXImpressDocument * mpDocModel
virtual void setBackground(const css::uno::Any &rValue)
virtual rtl::Reference< SdrObject > CreateSdrObject_(const css::uno::Reference< css::drawing::XShape > &xShape) override
void setBookmarkURL(std::u16string_view rURL)
virtual void SAL_CALL removeAnnotation(const css::uno::Reference< css::office::XAnnotation > &annotation) override
OUString getBookmarkURL() const
virtual void SAL_CALL addPropertiesChangeListener(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::uno::Reference< css::drawing::XShape > SAL_CALL combine(const css::uno::Reference< css::drawing::XShapes > &xShapes) override
SdGenericDrawPage(SdXImpressDocument *pModel, SdPage *pInPage, const SvxItemPropertySet *pSet)
virtual sal_Bool SAL_CALL hasElements() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL setName(const OUString &aName) override
virtual css::uno::Type SAL_CALL getElementType() override
virtual OUString SAL_CALL getName() override
virtual OUString SAL_CALL getImplementationName() override
virtual ~SdMasterPage() noexcept override
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getNotesPage() override
virtual void getBackground(css::uno::Any &rValue) override
css::uno::Sequence< css::uno::Type > maTypeSequence
virtual sal_Int32 SAL_CALL getCount() override
css::uno::Any SAL_CALL queryAggregation(css::uno::Type const &rType) override
virtual void SAL_CALL release() noexcept override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual void SAL_CALL add(const css::uno::Reference< css::drawing::XShape > &xShape) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL remove(const css::uno::Reference< css::drawing::XShape > &xShape) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL acquire() noexcept override
virtual void setBackground(const css::uno::Any &rValue) override
SdMasterPage(SdXImpressDocument *pModel, SdPage *pInPage)
virtual ~SdPageLinkTargets() noexcept override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Type SAL_CALL getElementType() override
SdrObject * FindObject(std::u16string_view rName) const noexcept
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual sal_Bool SAL_CALL hasElements() override
SdPageLinkTargets(SdGenericDrawPage *pUnoPage) noexcept
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
SdGenericDrawPage * mpUnoPage
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
void setTransitionFadeColor(sal_Int32 nTransitionFadeColor)
bool getTransitionDirection() const
virtual void SetOrientation(Orientation eOrient) override
css::uno::Reference< css::animations::XAnimationNode > const & getAnimationNode()
returns the main animation node
virtual Orientation GetOrientation() const override
SdrObject * CreatePresObj(PresObjKind eObjKind, bool bVertical, const ::tools::Rectangle &rRect)
creates a presentation object with the given PresObjKind on this page.
sal_Int16 getTransitionSubtype() const
void RemovePresObj(const SdrObject *pObj)
removes the given SdrObject from the presentation object list
PageKind GetPageKind() const
void SetTime(double fNewTime)
void removeAnnotation(const css::uno::Reference< css::office::XAnnotation > &xAnnotation)
sal_Int16 getTransitionType() const
void SetExcluded(bool bNewExcluded)
OUString const & GetRealName() const
const sd::HeaderFooterSettings & getHeaderFooterSettings() const
void SetFadeEffect(css::presentation::FadeEffect eNewEffect)
void createAnnotation(css::uno::Reference< css::office::XAnnotation > &xAnnotation)
double getTransitionDuration() const
void setTransitionDirection(bool bTransitionbDirection)
virtual void SetUpperBorder(sal_Int32 nBorder) override
PresObjKind GetPresObjKind(SdrObject *pObj) const
const OUString & GetSoundFile() const
void SetLoopSound(bool bLoopSound)
void setTransitionSubtype(sal_Int16 nTransitionSubtype)
void SetLayoutName(const OUString &aName)
void SetAutoLayout(AutoLayout eLayout, bool bInit=false, bool bCreate=false)
void SetPresChange(PresChange eChange)
void InsertPresObj(SdrObject *pObj, PresObjKind eKind)
inserts the given SdrObject into the presentation object list
virtual OUString GetLayoutName() const override
void SetSoundFile(const OUString &rStr)
void SetStopSound(bool bStopSound)
virtual void SetRightBorder(sal_Int32 nBorder) override
virtual void SetLowerBorder(sal_Int32 nBorder) override
virtual void SetLeftBorder(sal_Int32 nBorder) override
void setHeaderFooterSettings(const sd::HeaderFooterSettings &rNewSettings)
void setTransitionType(sal_Int16 nTransitionType)
void SetName(const OUString &rName)
Set the name of the page and broadcast a model change.
sal_Int32 getTransitionFadeColor() const
css::presentation::FadeEffect GetFadeEffect() const
void getAlienAttributes(css::uno::Any &rAttributes)
void SetSound(bool bNewSoundOn)
virtual void SetSize(const Size &aSize) override
void setTransitionDuration(double fTransitionDuration)
void fillItemSet(SdDrawDocument *pDoc, SfxItemSet &rSet)
this class implements a search or replace operation on a given page or a given sdrobj
::sd::DrawDocShell * GetDocShell() const
SdDrawDocument * GetDoc() const
void SetModified() noexcept
bool IsImpressDocument() const
SdrLayerID GetLayerID(const OUString &rName) const
bool IsSet(SdrLayerID a) const
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
SdrObject * GetMarkedSdrObj() const
SfxStyleSheet * GetDefaultStyleSheet() const
void SetMaxObjSize(const Size &rSiz)
sal_uInt16 GetMasterPageCount() const
SfxStyleSheetBasePool * GetStyleSheetPool() const
css::uno::Reference< css::uno::XInterface > const & getUnoModel()
const SdrLayerAdmin & GetLayerAdmin() const
SdrObject * GetObj(size_t nNum) const
size_t GetObjCount() const
void SetNavigationOrder(const css::uno::Reference< css::container::XIndexAccess > &rxOrder)
void ClearObjectNavigationOrder()
static SdrObject * getSdrObjectFromXShape(const css::uno::Reference< css::uno::XInterface > &xInt)
static SdrItemPool & GetGlobalDrawObjectItemPool()
void SetUserCall(SdrObjUserCall *pUser)
virtual SdrInventor GetObjInventor() const
virtual css::uno::Reference< css::drawing::XShape > getUnoShape()
virtual const OUString & GetName() const
virtual SdrObjKind GetObjIdentifier() const
sal_uInt32 GetNavigationPosition() const
const SfxItemSet & GetItemSet() const
void PutItemSet(const SfxItemSet &rSet)
void PutItem(const SfxPoolItem &rItem)
std::shared_ptr< model::Theme > const & GetTheme() const
void SetTheme(std::shared_ptr< model::Theme > const &pTheme)
void ClearItem(const sal_uInt16 nWhich=0)
void TRG_SetMasterPage(SdrPage &rNew)
void TRG_ClearMasterPage()
css::uno::Reference< css::uno::XInterface > const & getUnoPage()
SdrPage & TRG_GetMasterPage() const
sal_uInt16 GetPageNum() const
virtual void SetBorder(sal_Int32 nLft, sal_Int32 nUpp, sal_Int32 nRgt, sal_Int32 Lwr)
bool IsMasterPage() const
void SetBackgroundFullSize(bool bIn)
sal_Int32 GetUpperBorder() const
sal_Int32 GetRightBorder() const
void TRG_SetMasterPageVisibleLayers(const SdrLayerIDSet &rNew)
sal_Int32 GetLeftBorder() const
virtual void SetOrientation(Orientation eOri)
SdrPageProperties & getSdrPageProperties()
Color GetPageBackgroundColor() const
const SdrLayerIDSet & TRG_GetMasterPageVisibleLayers() const
bool IsBackgroundFullSize() const
SdrModel & getSdrModelFromSdrPage() const
sal_Int32 GetLowerBorder() const
virtual void SetSize(const Size &aSiz)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
std::shared_ptr< GDIMetaFile > GetPreviewMetaFile(bool bFullContent=false) const
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
virtual SfxItemSet & GetItemSet()
constexpr tools::Long getHeight() const
constexpr tools::Long Height() const
constexpr tools::Long getWidth() const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
SvStream & Write(const GDIMetaFile &rMetaFile)
std::unique_ptr< SdrView > mpView
virtual void SAL_CALL add(const css::uno::Reference< css::drawing::XShape > &xShape) override
virtual sal_Int32 SAL_CALL getCount() override
virtual void SAL_CALL remove(const css::uno::Reference< css::drawing::XShape > &xShape) override
virtual sal_Bool SAL_CALL hasElements() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
void SelectObjectsInView(const css::uno::Reference< css::drawing::XShapes > &aShapes, SdrPageView *pPageView) noexcept
virtual void SAL_CALL release() noexcept override
virtual void disposing() noexcept
SdrPage * GetSdrPage() const
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Type SAL_CALL getElementType() override
void SelectObjectInView(const css::uno::Reference< css::drawing::XShape > &xShape, SdrPageView *pPageView) noexcept
virtual css::uno::Reference< css::drawing::XShape > CreateShape(SdrObject *pObj) const override
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type &aType) override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual rtl::Reference< SdrObject > CreateSdrObject_(const css::uno::Reference< css::drawing::XShape > &xShape) override
css::uno::Reference< css::beans::XPropertySetInfo > const & getPropertySetInfo() const
const SfxItemPropertyMapEntry * getPropertyMapEntry(std::u16string_view rName) const
static css::uno::Reference< css::awt::XBitmap > CreateBitmap(const BitmapEx &rBitmap)
const css::uno::Sequence< sal_Int8 > & getSeq() const
css::uno::Type const & get()
static std::unique_ptr< Theme > FromAny(const css::uno::Any &rVal)
sd::ViewShell * GetViewShell()
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
Base class of the stacked shell hierarchy.
virtual void UpdateScrollBars()
Set internal values of all scroll bars that determine thumb size and position.
void InitWindows(const Point &rViewOrigin, const Size &rViewSize, const Point &rWinPos, bool bUpdate=false)
Initialize imaging parameters for all split windows.
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
#define DBG_ASSERT(sCon, aError)
#define TOOLS_WARN_EXCEPTION(area, stream)
virtual OUString GetName() const override
constexpr OUStringLiteral SD_LT_SEPARATOR
Sequence< sal_Int8 > aSeq
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 >={})
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
uno::Reference< util::XTheme > createXTheme(std::shared_ptr< model::Theme > const &pTheme)
sal_Int32 toInt32(std::u16string_view str, sal_Int16 radix=10)
constexpr bool starts_with(std::basic_string_view< charT, traits > sv, std::basic_string_view< charT, traits > x) noexcept
Any GetTime(const OUString &val)
Reference< XAnnotationEnumeration > createAnnotationEnumeration(sd::AnnotationVector &&rAnnotations)
OUString SdResId(TranslateId aId)
constexpr OUStringLiteral STR_LAYOUT_BACKGROUND
Reference< XModel > xModel
constexpr OUStringLiteral sUNO_Prop_IsBackgroundObjectsVisible
constexpr OUStringLiteral sUNO_LayerName_background_objects
constexpr OUStringLiteral sUNO_PseudoSheet_Background
constexpr OUStringLiteral sUNO_Prop_IsBackgroundVisible
constexpr OUStringLiteral sUNO_Prop_BookmarkURL
constexpr OUStringLiteral sUNO_Prop_UserDefinedAttributes
constexpr OUStringLiteral sUNO_LayerName_background
#define WID_PAGE_BACKFULL
#define WID_PAGE_USERATTRIBS
static const SvxItemPropertySet * ImplGetDrawPagePropertySet(bool bImpress, PageKind ePageKind)
Reference< uno::XInterface > createUnoPageImpl(SdPage *pPage)
UNO3_GETIMPLEMENTATION2_IMPL(SdDrawPage, SdGenericDrawPage)
OUString getPageApiNameFromUiName(const OUString &rUIName)
#define DRAW_PAGE_NOTES_PROPERTIES
OUString getUiNameFromPageApiNameImpl(const OUString &rApiName)
#define GRAPHIC_PAGE_PROPERTIES
constexpr OUStringLiteral sEmptyPageName
static void refreshpage(SdDrawDocument *pDoc, const PageKind ePageKind)
static const SvxItemPropertySet * ImplGetMasterPagePropertySet(PageKind ePageKind)
this function stores the property map for master pages in impress and draw
OUString getPageApiName(SdPage const *pPage)
const SvxItemPropertySet * ImplGetPageBackgroundPropertySet()
#define UNO_NAME_PAGE_LAYOUT
#define UNO_NAME_PAGE_NUMBER
#define UNO_NAME_PAGE_ORIENTATION
#define UNO_NAME_PAGE_BOTTOM
#define UNO_NAME_PAGE_HEIGHT
#define UNO_NAME_OBJ_SOUNDFILE
constexpr OUStringLiteral UNO_NAME_LINKDISPLAYNAME
#define UNO_NAME_PAGE_DURATION
#define UNO_NAME_PAGE_LEFT
#define UNO_NAME_PAGE_WIDTH
#define UNO_NAME_PAGE_BACKGROUND
#define UNO_NAME_PAGE_TOP
#define UNO_NAME_PAGE_PREVIEWMETAFILE
#define UNO_NAME_PAGE_PREVIEWBITMAP
#define UNO_NAME_PAGE_CHANGE
#define UNO_NAME_PAGE_RIGHT
constexpr OUStringLiteral UNO_NAME_LINKDISPLAYBITMAP
#define UNO_NAME_PAGE_SPEED
#define UNO_NAME_PAGE_TRANSITION_DURATION
#define UNO_NAME_PAGE_VISIBLE
#define UNO_NAME_PAGE_EFFECT
#define UNO_NAME_PAGE_PREVIEW
VCL_DLLPUBLIC bool ConvertGDIMetaFileToWMF(const GDIMetaFile &rMTF, SvStream &rTargetStream, FilterConfigItem const *pConfigItem, bool bPlaceable=true)
constexpr TypedWhichId< XFillStyleItem > XATTR_FILLSTYLE(XATTR_FILL_FIRST)