diff options
author | Pascal Junck <pjunck@openoffice.org> | 2004-10-28 12:32:24 +0000 |
---|---|---|
committer | Pascal Junck <pjunck@openoffice.org> | 2004-10-28 12:32:24 +0000 |
commit | 1e1d860bfd9122adb8b7dcebebcad9d8086cd3c8 (patch) | |
tree | 4a751e32fd45fa69480c937be22d27d63e2d25dd /sd/source/ui/toolpanel/controls/MasterPagesSelector.hxx | |
parent | 2adebe47a1f8c99e14140ded7ebe63ee600afad9 (diff) |
INTEGRATION: CWS impress20ea (1.2.68); FILE MERGED
2004/09/28 11:48:31 af 1.2.68.1: #i34606# Added support for master pages.
Diffstat (limited to 'sd/source/ui/toolpanel/controls/MasterPagesSelector.hxx')
-rw-r--r-- | sd/source/ui/toolpanel/controls/MasterPagesSelector.hxx | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/sd/source/ui/toolpanel/controls/MasterPagesSelector.hxx b/sd/source/ui/toolpanel/controls/MasterPagesSelector.hxx index ee8a2ace3eef..c3c82726ffd5 100644 --- a/sd/source/ui/toolpanel/controls/MasterPagesSelector.hxx +++ b/sd/source/ui/toolpanel/controls/MasterPagesSelector.hxx @@ -2,9 +2,9 @@ * * $RCSfile: MasterPagesSelector.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2004-07-13 14:45:16 $ + * last change: $Author: pjunck $ $Date: 2004-10-28 13:32:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -120,7 +120,8 @@ public: */ static SdPage* AddMasterPage ( SdDrawDocument* pTargetDocument, - SdPage* pMasterPage); + SdPage* pMasterPage, + USHORT nInsertionIndex); virtual Size GetPreferredSize (void); virtual sal_Int32 GetPreferredWidth (sal_Int32 nHeight); @@ -193,6 +194,37 @@ private: SdDrawDocument* pSourceDoc, SdDrawDocument* pTargetDoc, SdPage* pPage); + + /** Assign the given master page to the list of pages. + @param pMasterPage + This master page will usually be a member of the list of all + available master pages as provided by the MasterPageContainer. + @param rPageList + The pages to which to assign the master page. These pages may + be slides or master pages themselves. + */ + void AssignMasterPageToPageList ( + SdPage* pMasterPage, + const ::std::vector<SdPage*>& rPageList); + + /** Assign the given master page to the given page. + @param pMasterPage + In contrast to AssignMasterPageToPageList() this page is assumed + to be in the target document, i.e. the same document that pPage + is in. The caller will usually call AddMasterPage() to create a + clone of a master page in a another document to create it. + @param rsBaseLayoutName + The layout name of the given master page. It is given so that + it has not to be created on every call. It could be generated + from the given master page, though. + @param pPage + The page to which to assign the master page. It can be a slide + or a master page itself. + */ + void AssignMasterPageToPage ( + SdPage* pMasterPage, + const String& rsBaseLayoutName, + SdPage* pPage); }; } } } // end of namespace ::sd::toolpanel::controls |