LibreOffice Module sd (master) 1
Macros | Functions | Variables
unopage.cxx File Reference
#include <sal/config.h>
#include <initializer_list>
#include <string_view>
#include <com/sun/star/awt/XBitmap.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/presentation/FadeEffect.hpp>
#include <com/sun/star/presentation/AnimationSpeed.hpp>
#include <com/sun/star/view/PaperOrientation.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/util/XTheme.hpp>
#include <cppuhelper/implbase.hxx>
#include <comphelper/profilezone.hxx>
#include <comphelper/servicehelper.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <rtl/ustrbuf.hxx>
#include <vcl/bitmapex.hxx>
#include <vcl/filter/SvmWriter.hxx>
#include <vcl/metaact.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <vcl/svapp.hxx>
#include <AnnotationEnumeration.hxx>
#include <createunopageimpl.hxx>
#include <unomodel.hxx>
#include <unopage.hxx>
#include <svl/itemset.hxx>
#include <svx/svdmodel.hxx>
#include <sdresid.hxx>
#include <strings.hrc>
#include <sdpage.hxx>
#include <unoprnms.hxx>
#include <drawdoc.hxx>
#include <svx/unoshape.hxx>
#include <svl/style.hxx>
#include <comphelper/extract.hxx>
#include <comphelper/sequence.hxx>
#include <svx/svditer.hxx>
#include <vcl/wmf.hxx>
#include <svx/svdoole2.hxx>
#include <svx/svdpool.hxx>
#include <svx/svdview.hxx>
#include <svx/xfillit0.hxx>
#include <DrawDocShell.hxx>
#include <ViewShell.hxx>
#include <DrawViewShell.hxx>
#include <editeng/unoprnms.hxx>
#include "unoobj.hxx"
#include <strings.hxx>
#include <bitmaps.hlst>
#include <unokywds.hxx>
#include "unopback.hxx"
#include <vcl/dibtools.hxx>
#include <tools/debug.hxx>
#include <tools/stream.hxx>
#include <docmodel/uno/UnoTheme.hxx>
#include <docmodel/theme/Theme.hxx>
#include <o3tl/string_view.hxx>
Include dependency graph for unopage.cxx:

Go to the source code of this file.

Macros

#define DRAW_PAGE_NOTES_PROPERTIES
 
#define GRAPHIC_PAGE_PROPERTIES
 

Functions

static const SvxItemPropertySetImplGetDrawPagePropertySet (bool bImpress, PageKind ePageKind)
 
static const SvxItemPropertySetImplGetMasterPagePropertySet (PageKind ePageKind)
 this function stores the property map for master pages in impress and draw More...
 
static void refreshpage (SdDrawDocument *pDoc, const PageKind ePageKind)
 
 UNO3_GETIMPLEMENTATION2_IMPL (SdDrawPage, SdGenericDrawPage)
 
OUString getPageApiName (SdPage const *pPage)
 
OUString getPageApiNameFromUiName (const OUString &rUIName)
 
OUString getUiNameFromPageApiNameImpl (const OUString &rApiName)
 
 UNO3_GETIMPLEMENTATION2_IMPL (SdMasterPage, SdGenericDrawPage)
 
Reference< uno::XInterface > createUnoPageImpl (SdPage *pPage)
 

Variables

constexpr OUStringLiteral sEmptyPageName = u"page"
 

Macro Definition Documentation

◆ DRAW_PAGE_NOTES_PROPERTIES

#define DRAW_PAGE_NOTES_PROPERTIES
Value:
{ u"" UNO_NAME_PAGE_LAYOUT, WID_PAGE_LAYOUT, ::cppu::UnoType<sal_Int16>::get(), 0, 0}, \
{ UNO_NAME_LINKDISPLAYBITMAP, WID_PAGE_LDBITMAP, cppu::UnoType<awt::XBitmap>::get(), beans::PropertyAttribute::READONLY, 0}, \
{ UNO_NAME_LINKDISPLAYNAME, WID_PAGE_LDNAME, ::cppu::UnoType<OUString>::get(), beans::PropertyAttribute::READONLY, 0}, \
{ u"" UNO_NAME_PAGE_NUMBER, WID_PAGE_NUMBER, ::cppu::UnoType<sal_Int16>::get(), beans::PropertyAttribute::READONLY, 0}, \
{ u"IsHeaderVisible", WID_PAGE_HEADERVISIBLE, cppu::UnoType<bool>::get(), 0, 0}, \
{ u"HeaderText", WID_PAGE_HEADERTEXT, ::cppu::UnoType<OUString>::get(), 0, 0}, \
{ u"IsBackgroundDark", WID_PAGE_ISDARK, cppu::UnoType<bool>::get(), beans::PropertyAttribute::READONLY, 0}, \
{ u"IsFooterVisible", WID_PAGE_FOOTERVISIBLE, cppu::UnoType<bool>::get(), 0, 0}, \
{ u"FooterText", WID_PAGE_FOOTERTEXT, ::cppu::UnoType<OUString>::get(), 0, 0}, \
{ u"IsPageNumberVisible", WID_PAGE_PAGENUMBERVISIBLE, cppu::UnoType<bool>::get(), 0, 0}, \
{ u"IsDateTimeVisible", WID_PAGE_DATETIMEVISIBLE, cppu::UnoType<bool>::get(), 0, 0}, \
{ u"IsDateTimeFixed", WID_PAGE_DATETIMEFIXED, cppu::UnoType<bool>::get(), 0, 0}, \
{ u"DateTimeText", WID_PAGE_DATETIMETEXT, ::cppu::UnoType<OUString>::get(), 0, 0}, \
{ u"DateTimeFormat", WID_PAGE_DATETIMEFORMAT, ::cppu::UnoType<sal_Int32>::get(), 0, 0}, \
css::uno::Type const & get()
float u
constexpr OUStringLiteral sUNO_Prop_UserDefinedAttributes
Definition: unokywds.hxx:58
#define WID_PAGE_RIGHT
#define WID_PAGE_TOP
#define WID_PAGE_USERATTRIBS
#define WID_PAGE_WIDTH
#define WID_PAGE_HEIGHT
#define WID_PAGE_LEFT
#define WID_PAGE_ORIENT
#define WID_PAGE_BOTTOM
#define WID_PAGE_NUMBER
#define WID_PAGE_ISDARK
#define WID_NAVORDER
Definition: unoobj.cxx:103
#define UNO_NAME_PAGE_LAYOUT
Definition: unoprnms.hxx:31
#define UNO_NAME_PAGE_NUMBER
Definition: unoprnms.hxx:32
#define UNO_NAME_PAGE_ORIENTATION
Definition: unoprnms.hxx:33
#define UNO_NAME_PAGE_BOTTOM
Definition: unoprnms.hxx:26
#define UNO_NAME_PAGE_HEIGHT
Definition: unoprnms.hxx:30
constexpr OUStringLiteral UNO_NAME_LINKDISPLAYNAME
#define UNO_NAME_PAGE_LEFT
Definition: unoprnms.hxx:23
#define UNO_NAME_PAGE_WIDTH
Definition: unoprnms.hxx:36
#define UNO_NAME_PAGE_TOP
Definition: unoprnms.hxx:25
#define UNO_NAME_PAGE_RIGHT
Definition: unoprnms.hxx:24
constexpr OUStringLiteral UNO_NAME_LINKDISPLAYBITMAP

◆ GRAPHIC_PAGE_PROPERTIES

#define GRAPHIC_PAGE_PROPERTIES
Value:
{ UNO_NAME_LINKDISPLAYBITMAP, WID_PAGE_LDBITMAP, cppu::UnoType<awt::XBitmap>::get(), beans::PropertyAttribute::READONLY, 0}, \
{ UNO_NAME_LINKDISPLAYNAME, WID_PAGE_LDNAME, ::cppu::UnoType<OUString>::get(), beans::PropertyAttribute::READONLY, 0}, \
{ u"" UNO_NAME_PAGE_NUMBER, WID_PAGE_NUMBER, ::cppu::UnoType<sal_Int16>::get(), beans::PropertyAttribute::READONLY, 0}, \
{ u"" UNO_NAME_PAGE_PREVIEW, WID_PAGE_PREVIEW, cppu::UnoType<css::uno::Sequence<sal_Int8>>::get(), css::beans::PropertyAttribute::READONLY, 0}, \
{ u"" UNO_NAME_PAGE_PREVIEWBITMAP, WID_PAGE_PREVIEWBITMAP, cppu::UnoType<css::uno::Sequence<sal_Int8>>::get(), css::beans::PropertyAttribute::READONLY, 0},\
{ u"" UNO_NAME_PAGE_PREVIEWMETAFILE, WID_PAGE_PREVIEWMETAFILE, cppu::UnoType<css::uno::Sequence<sal_Int8>>::get(), css::beans::PropertyAttribute::READONLY, 0},\
{ sUNO_Prop_BookmarkURL, WID_PAGE_BOOKMARK, ::cppu::UnoType<OUString>::get(), 0, 0}, \
{ u"IsBackgroundDark", WID_PAGE_ISDARK, cppu::UnoType<bool>::get(), beans::PropertyAttribute::READONLY, 0}, \
constexpr OUStringLiteral sUNO_Prop_BookmarkURL
Definition: unokywds.hxx:59
#define UNO_NAME_PAGE_PREVIEWMETAFILE
Definition: unoprnms.hxx:39
#define UNO_NAME_PAGE_PREVIEWBITMAP
Definition: unoprnms.hxx:38
#define UNO_NAME_PAGE_PREVIEW
Definition: unoprnms.hxx:37

Function Documentation

◆ createUnoPageImpl()

Reference< uno::XInterface > createUnoPageImpl ( SdPage pPage)

◆ getPageApiName()

OUString getPageApiName ( SdPage const *  pPage)

Definition at line 2156 of file unopage.cxx.

References SdrPage::GetPageNum(), SdPage::GetRealName(), and sEmptyPageName.

Referenced by SdDrawPage::getPageApiName().

◆ getPageApiNameFromUiName()

OUString getPageApiNameFromUiName ( const OUString &  rUIName)

◆ getUiNameFromPageApiNameImpl()

OUString getUiNameFromPageApiNameImpl ( const OUString &  rApiName)

◆ ImplGetDrawPagePropertySet()

static const SvxItemPropertySet * ImplGetDrawPagePropertySet ( bool  bImpress,
PageKind  ePageKind 
)
static

◆ ImplGetMasterPagePropertySet()

static const SvxItemPropertySet * ImplGetMasterPagePropertySet ( PageKind  ePageKind)
static

◆ refreshpage()

static void refreshpage ( SdDrawDocument pDoc,
const PageKind  ePageKind 
)
static

◆ UNO3_GETIMPLEMENTATION2_IMPL() [1/2]

UNO3_GETIMPLEMENTATION2_IMPL ( SdDrawPage  ,
SdGenericDrawPage   
)

◆ UNO3_GETIMPLEMENTATION2_IMPL() [2/2]

UNO3_GETIMPLEMENTATION2_IMPL ( SdMasterPage  ,
SdGenericDrawPage   
)

Variable Documentation

◆ sEmptyPageName

constexpr OUStringLiteral sEmptyPageName = u"page"
constexpr