diff options
author | Christian Lippka <christian.lippka@sun.com> | 2010-04-12 13:03:45 +0200 |
---|---|---|
committer | Christian Lippka <christian.lippka@sun.com> | 2010-04-12 13:03:45 +0200 |
commit | 6e40e38b269e5be505454550e7c142a9697b9f6f (patch) | |
tree | ae6aceb664c0f90d4d7ba0865297079722d524fb /sd/inc | |
parent | e725e315399f527e63f919a9a6861066b1f41512 (diff) | |
parent | 646895d3ee78647feb51582e3cdea75d01960cd5 (diff) |
renaissance2: rebase m76
Diffstat (limited to 'sd/inc')
-rw-r--r-- | sd/inc/cusshow.hxx | 4 | ||||
-rw-r--r-- | sd/inc/pres.hxx | 90 | ||||
-rw-r--r-- | sd/inc/sdpage.hxx | 2 | ||||
-rw-r--r-- | sd/inc/shapelist.hxx | 4 |
4 files changed, 61 insertions, 39 deletions
diff --git a/sd/inc/cusshow.hxx b/sd/inc/cusshow.hxx index d0b2a899e5db..e2aae99cf673 100644 --- a/sd/inc/cusshow.hxx +++ b/sd/inc/cusshow.hxx @@ -64,8 +64,8 @@ public: // @@@ copy ctor, but no copy assignment? @@@ SdCustomShow( const SdCustomShow& rShow ); - void SetName(const String& rName) { aName = rName; } - String GetName() const { return aName; } + void SetName(const String& rName); + String GetName() const; SdDrawDocument* GetDoc() const { return pDoc; } diff --git a/sd/inc/pres.hxx b/sd/inc/pres.hxx index 6efd1cbe89f2..a51083133185 100644 --- a/sd/inc/pres.hxx +++ b/sd/inc/pres.hxx @@ -46,48 +46,66 @@ enum PresObjKind PRESOBJ_FOOTER, PRESOBJ_DATETIME, PRESOBJ_SLIDENUMBER, + PRESOBJ_CALC, + PRESOBJ_MEDIA, PRESOBJ_MAX }; enum AutoLayout { - AUTOLAYOUT__START, - AUTOLAYOUT_TITLE = AUTOLAYOUT__START, - AUTOLAYOUT_ENUM, - AUTOLAYOUT_CHART, - AUTOLAYOUT_2TEXT, - AUTOLAYOUT_TEXTCHART, - AUTOLAYOUT_ORG, - AUTOLAYOUT_TEXTCLIP, - AUTOLAYOUT_CHARTTEXT, - AUTOLAYOUT_TAB, - AUTOLAYOUT_CLIPTEXT, - AUTOLAYOUT_TEXTOBJ, - AUTOLAYOUT_OBJ, - AUTOLAYOUT_TEXT2OBJ, - AUTOLAYOUT_OBJTEXT, - AUTOLAYOUT_OBJOVERTEXT, - AUTOLAYOUT_2OBJTEXT, - AUTOLAYOUT_2OBJOVERTEXT, - AUTOLAYOUT_TEXTOVEROBJ, - AUTOLAYOUT_4OBJ, - AUTOLAYOUT_ONLY_TITLE, - AUTOLAYOUT_NONE, - AUTOLAYOUT_NOTES, - AUTOLAYOUT_HANDOUT1, - AUTOLAYOUT_HANDOUT2, - AUTOLAYOUT_HANDOUT3, - AUTOLAYOUT_HANDOUT4, - AUTOLAYOUT_HANDOUT6, - AUTOLAYOUT_VERTICAL_TITLE_TEXT_CHART, - AUTOLAYOUT_VERTICAL_TITLE_VERTICAL_OUTLINE, - AUTOLAYOUT_TITLE_VERTICAL_OUTLINE, - AUTOLAYOUT_TITLE_VERTICAL_OUTLINE_CLIPART, - AUTOLAYOUT_HANDOUT9, - AUTOLAYOUT_ONLY_TEXT, - AUTOLAYOUT_4CLIPART, - AUTOLAYOUT_6CLIPART, + // new layouts with enum/text/chart/org/clip merged to content + AUTOLAYOUT__START = 0, + AUTOLAYOUT_TITLE = 0, // Title Slide + AUTOLAYOUT_TITLE_CONTENT = 1, // Title, Content + AUTOLAYOUT_TITLE_2CONTENT = 3, // Title and 2 Content + AUTOLAYOUT_TITLE_ONLY = 19, // Title Only + AUTOLAYOUT_NONE = 20, // Blank Slide + AUTOLAYOUT_ONLY_TEXT = 32, // Centered Text + AUTOLAYOUT_TITLE_CONTENT_2CONTENT = 12, // Title, Content and 2 Content + AUTOLAYOUT_TITLE_2CONTENT_CONTENT = 15, // Title, 2 Content and Content + AUTOLAYOUT_TITLE_2CONTENT_OVER_CONTENT = 16,// Title, 2 Content over Content + AUTOLAYOUT_TITLE_CONTENT_OVER_CONTENT = 14, // Title, Content over Content + AUTOLAYOUT_TITLE_4CONTENT = 18, // Title, 4 Content + AUTOLAYOUT_TITLE_6CONTENT = 34, // Title, 6 Content + AUTOLAYOUT_VTITLE_VCONTENT_OVER_VCONTENT = 27, // Vertical Title, Vertical Content over Vertical Content + AUTOLAYOUT_VTITLE_VCONTENT = 28, // Vertical Title, Vertical Content over Vertical Content + AUTOLAYOUT_TITLE_VCONTENT = 29, // Title, Vertical Content + AUTOLAYOUT_TITLE_2VTEXT = 30, // Title, 2 Vertical Content + + // deprecated + AUTOLAYOUT_ENUM = 1, + AUTOLAYOUT_CHART = 2, + AUTOLAYOUT_2TEXT = 3, + AUTOLAYOUT_TEXTCHART = 4, + AUTOLAYOUT_ORG = 5, + AUTOLAYOUT_TEXTCLIP = 6, + AUTOLAYOUT_CHARTTEXT = 7, + AUTOLAYOUT_TAB = 8, + AUTOLAYOUT_CLIPTEXT = 9, + AUTOLAYOUT_TEXTOBJ = 10, + AUTOLAYOUT_OBJ = 11, + AUTOLAYOUT_TEXT2OBJ = 12, + AUTOLAYOUT_OBJTEXT = 13, + AUTOLAYOUT_OBJOVERTEXT = 14, + AUTOLAYOUT_2OBJTEXT = 15, + AUTOLAYOUT_2OBJOVERTEXT = 16, + AUTOLAYOUT_TEXTOVEROBJ = 17, + AUTOLAYOUT_4OBJ = 18, + AUTOLAYOUT_ONLY_TITLE = 19, + AUTOLAYOUT_NOTES = 21, + AUTOLAYOUT_HANDOUT1 = 22, + AUTOLAYOUT_HANDOUT2 = 23, + AUTOLAYOUT_HANDOUT3 = 24, + AUTOLAYOUT_HANDOUT4 = 25, + AUTOLAYOUT_HANDOUT6 = 26, + AUTOLAYOUT_VERTICAL_TITLE_TEXT_CHART = 27, + AUTOLAYOUT_VERTICAL_TITLE_VERTICAL_OUTLINE = 28, + AUTOLAYOUT_TITLE_VERTICAL_OUTLINE = 29, + AUTOLAYOUT_TITLE_VERTICAL_OUTLINE_CLIPART = 30, + AUTOLAYOUT_HANDOUT9 = 31, + AUTOLAYOUT_4CLIPART = 33, + AUTOLAYOUT_6CLIPART = 34, AUTOLAYOUT__END }; diff --git a/sd/inc/sdpage.hxx b/sd/inc/sdpage.hxx index 51a1a03d838a..e4125051c526 100644 --- a/sd/inc/sdpage.hxx +++ b/sd/inc/sdpage.hxx @@ -195,7 +195,7 @@ public: void EnsureMasterPageDefaultBackground(); SdrObject* CreatePresObj(PresObjKind eObjKind, BOOL bVertical, const Rectangle& rRect, BOOL bInsert=FALSE); SdrObject* CreateDefaultPresObj(PresObjKind eObjKind, bool bInsert); - SdrObject* GetPresObj(PresObjKind eObjKind, int nIndex = 1 ); + SdrObject* GetPresObj(PresObjKind eObjKind, int nIndex = 1, bool bFuzzySearch = false ); PresObjKind GetPresObjKind(SdrObject* pObj) const; String GetPresObjText(PresObjKind eObjKind) const; SfxStyleSheet* GetStyleSheetForMasterPageBackground() const; diff --git a/sd/inc/shapelist.hxx b/sd/inc/shapelist.hxx index 553f438669d2..d1ce1b0af8c0 100644 --- a/sd/inc/shapelist.hxx +++ b/sd/inc/shapelist.hxx @@ -47,6 +47,8 @@ namespace sd a pointer to the next shape in list or 0*/ SdrObject* removeShape( SdrObject& rObject ); + void replaceShape( SdrObject& rOldObject, SdrObject& rNewObject ); + /** removes all shapes from this list */ void clear(); @@ -76,6 +78,8 @@ namespace sd */ bool hasMore() const; + const std::list< SdrObject* >& getList() const { return maShapeList; } + private: virtual void ObjectInDestruction(const SdrObject& rObject); |