Files
libreoffice/sd/source/core/sdpage.cxx

3371 lines
116 KiB
C++
Raw Normal View History

2000-09-18 23:16:46 +00:00
/*************************************************************************
*
* $RCSfile: sdpage.cxx,v $
*
2004-04-05 11:34:12 +00:00
* $Revision: 1.42 $
2000-09-18 23:16:46 +00:00
*
2004-04-05 11:34:12 +00:00
* last change: $Author: rt $ $Date: 2004-04-05 12:34:12 $
2000-09-18 23:16:46 +00:00
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
#include <algorithm>
2000-09-18 23:16:46 +00:00
#ifndef _SV_SVAPP_HXX
#include <vcl/svapp.hxx>
#endif
#include "eetext.hxx" // definiert ITEMID_... fuer frmitems und textitem
#ifndef _EEITEM_HXX //autogen
#include <svx/eeitem.hxx>
#endif
#ifndef _SVDSURO_HXX //autogen
#include <svx/svdsuro.hxx>
#endif
#ifndef _SVDOUTL_HXX //autogen
#include <svx/svdoutl.hxx>
#endif
#include <svx/editdata.hxx>
#include <svx/pageitem.hxx>
#include <svx/lrspitem.hxx>
#include <svx/bulitem.hxx>
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
#include <svx/xoutx.hxx>
#ifndef _SVDPAGV_HXX //autogen
#include <svx/svdpagv.hxx>
#endif
2000-09-18 23:16:46 +00:00
#ifndef _SVX_FHGTITEM_HXX //autogen
#include <svx/fhgtitem.hxx>
#endif
#ifndef _OUTLOBJ_HXX //autogen
#include <svx/outlobj.hxx>
#endif
#ifndef _SVDOOLE2_HXX //autogen
#include <svx/svdoole2.hxx>
#endif
#ifndef _SVDOGRAF_HXX //autogen
#include <svx/svdograf.hxx>
#endif
#ifndef _SVDOPAGE_HXX //autogen
#include <svx/svdopage.hxx>
#endif
#ifndef _SVDOPAGE_HXX //autogen
#include <svx/svdopage.hxx>
#endif
#ifndef _SFX_PRINTER_HXX //autogen
#include <sfx2/printer.hxx>
#endif
#ifndef _BASMGR_HXX //autogen
#include <basic/basmgr.hxx>
#endif
#ifndef _SVX_PBINITEM_HXX //autogen
#include <svx/pbinitem.hxx>
#endif
#ifndef _SVDUNDO_HXX //autogen
#include <svx/svdundo.hxx>
#endif
#ifndef _SFXSMPLHINT_HXX //autogen
#include <svtools/smplhint.hxx>
#endif
#ifndef _SVX_ADJITEM_HXX
#include <svx/adjitem.hxx>
#endif
2000-12-20 14:50:13 +00:00
#ifndef _EDITOBJ_HXX
#include <svx/editobj.hxx>
#endif
#ifndef _SVX_SRIPTTYPEITEM_HXX
#include <svx/scripttypeitem.hxx>
#endif
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
#ifndef _SVX_FLDITEM_HXX
#define ITEMID_FIELD EE_FEATURE_FIELD
#include <svx/flditem.hxx>
#endif
#ifndef _SDR_CONTACT_DISPLAYINFO_HXX
#include <svx/sdr/contact/displayinfo.hxx>
#endif
#define ITEMID_ADJUST EE_PARA_JUST
#include <svx/adjitem.hxx>
#ifndef SD_DRAW_DOC_SHELL_HXX
2000-09-18 23:16:46 +00:00
#ifdef MAC
#include "::ui:inc:DrawDocShell.hxx"
2000-09-18 23:16:46 +00:00
#else
#ifdef UNX
#include "../ui/inc/DrawDocShell.hxx"
2000-09-18 23:16:46 +00:00
#else
#include "..\ui\inc\DrawDocShell.hxx"
2000-09-18 23:16:46 +00:00
#endif
#endif
#endif
#ifndef SD_OUTLINER_HXX
#include "Outliner.hxx"
#endif
2000-09-18 23:16:46 +00:00
#include "misc.hxx"
#include "eetext.hxx"
#include "drawdoc.hxx"
#include "sdpage.hxx"
#include "pglink.hxx"
#include "sdresid.hxx"
#include "stlsheet.hxx"
#include "glob.hrc"
#include "glob.hxx"
#define MAX_PRESOBJ 5 // Max. Anzahl Praesentationsobjekte
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
using namespace ::sd;
using namespace ::com::sun::star;
2000-09-18 23:16:46 +00:00
TYPEINIT2( SdPage, FmFormPage, SdrObjUserCall );
/*************************************************************************
|*
|* Ctor
|*
\************************************************************************/
SdPage::SdPage(SdDrawDocument& rNewDoc, StarBASIC* pBasic, BOOL bMasterPage) :
FmFormPage(rNewDoc, pBasic, bMasterPage),
SdrObjUserCall(),
bSelected(FALSE),
eFadeSpeed(FADE_SPEED_MEDIUM),
eFadeEffect(::com::sun::star::presentation::FadeEffect_NONE),
ePresChange(PRESCHANGE_MANUAL),
nTime(1),
bSoundOn(FALSE),
bExcluded(FALSE),
eAutoLayout(AUTOLAYOUT_NONE),
bOwnArrangement(FALSE),
ePageKind(PK_STANDARD),
bScaleObjects(TRUE),
pPageLink(NULL),
bBackgroundFullSize( FALSE ),
2001-10-12 15:19:53 +00:00
nPaperBin(PAPERBIN_PRINTER_SETTINGS),
mpItems(NULL)
2000-09-18 23:16:46 +00:00
{
// Der Layoutname der Seite wird von SVDRAW benutzt, um die Praesentations-
// vorlagen der Gliederungsobjekte zu ermitteln. Darum enthaelt er bereits
// den Bezeichner fuer die Gliederung (STR_LAYOUT_OUTLINE).
aLayoutName = String(SdResId(STR_LAYOUT_DEFAULT_NAME));
aLayoutName.AppendAscii( RTL_CONSTASCII_STRINGPARAM( SD_LT_SEPARATOR ));
aLayoutName += String(SdResId(STR_LAYOUT_OUTLINE));
eCharSet = gsl_getSystemTextEncoding();
Size aPageSize(GetSize());
if (aPageSize.Width() > aPageSize.Height())
{
eOrientation = ORIENTATION_LANDSCAPE;
}
else
{
eOrientation = ORIENTATION_PORTRAIT;
}
}
/*************************************************************************
|*
|* Dtor
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
SdPage::~SdPage()
2000-09-18 23:16:46 +00:00
{
DisconnectLink();
EndListenOutlineText();
2001-10-12 15:19:53 +00:00
if( mpItems )
delete mpItems;
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
/** returns the nIndex'th object from the given PresObjKind, index starts with 1 */
SdrObject* SdPage::GetPresObj(PresObjKind eObjKind, int nIndex)
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
int nObjFound = 0; // index of the searched object
2000-09-18 23:16:46 +00:00
SdrObject* pObj = NULL;
SdrObject* pObjFound = NULL;
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
PresentationObjectList::iterator aIter( maPresObjList.begin() );
const PresentationObjectList::iterator aEnd( maPresObjList.end() );
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
while( (aIter != aEnd) && (nObjFound != nIndex) )
{
if( (*aIter).meKind == eObjKind )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
pObj = (*aIter).mpObject;
nObjFound++; // found one
2001-02-26 09:20:50 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aIter++;
2001-02-26 09:20:50 +00:00
}
if (nObjFound == nIndex)
{
pObjFound = pObj;
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
else if(eObjKind==PRESOBJ_TITLE || eObjKind==PRESOBJ_OUTLINE)
2001-02-26 09:20:50 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
// for title and outline shapes we will try to find them on the page
2001-02-26 09:20:50 +00:00
nObjFound = 0;
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
int nIdx = 0;
int nCnt = GetObjCount();
2001-02-26 09:20:50 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
while((nIdx < nCnt) && (nObjFound != nIndex))
2001-02-26 09:20:50 +00:00
{
pObj = GetObj(nIdx);
SdrObjKind eSdrObjKind = (SdrObjKind) pObj->GetObjIdentifier();
if (pObj->GetObjInventor() == SdrInventor &&
(eObjKind==PRESOBJ_TITLE && eSdrObjKind == OBJ_TITLETEXT ||
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
eObjKind==PRESOBJ_OUTLINE && eSdrObjKind == OBJ_OUTLINETEXT))
2001-02-26 09:20:50 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
nObjFound++; // found one
2001-02-26 09:20:50 +00:00
}
nIdx++;
}
if (nObjFound == nIndex)
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
// we found the searched object on the page
2001-02-26 09:20:50 +00:00
pObjFound = pObj;
}
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
return pObjFound;
2001-02-26 09:20:50 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
/** creates a presentation object with the given PresObjKind on this page. A user call will be set
*/
SdrObject* SdPage::CreatePresObj(PresObjKind eObjKind, BOOL bVertical, const Rectangle& rRect, BOOL bInsert)
2000-09-18 23:16:46 +00:00
{
SdrObject* pSdrObj = NULL;
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
bool bForceText = false; // forces the shape text to be set even if its empty
bool bEmptyPresObj = true;
switch( eObjKind )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
case PRESOBJ_TITLE:
{
pSdrObj = new SdrRectObj(OBJ_TITLETEXT);
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if (bMaster)
{
pSdrObj->SetNotVisibleAsMaster(TRUE);
}
}
break;
case PRESOBJ_OUTLINE:
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
pSdrObj = new SdrRectObj(OBJ_OUTLINETEXT);
if (bMaster)
{
pSdrObj->SetNotVisibleAsMaster(TRUE);
}
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
break;
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
case PRESOBJ_NOTES:
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
pSdrObj = new SdrRectObj(OBJ_TEXT);
if (bMaster)
{
pSdrObj->SetNotVisibleAsMaster(TRUE);
}
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
break;
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
case PRESOBJ_TEXT:
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
pSdrObj = new SdrRectObj(OBJ_TEXT);
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
break;
case PRESOBJ_GRAPHIC:
{
Graphic aGraphic ( SdResId(BMP_PRESOBJ_GRAPHIC) );
OutputDevice &aOutDev = *Application::GetDefaultDevice();
aOutDev.Push();
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aOutDev.SetMapMode( aGraphic.GetPrefMapMode() );
Size aSizePix = aOutDev.LogicToPixel( aGraphic.GetPrefSize() );
aOutDev.SetMapMode(MAP_100TH_MM);
Size aSize = aOutDev.PixelToLogic(aSizePix);
Point aPnt (0, 0);
Rectangle aRect (aPnt, aSize);
pSdrObj = new SdrGrafObj(aGraphic, aRect);
aOutDev.Pop();
}
break;
case PRESOBJ_OBJECT:
{
pSdrObj = new SdrOle2Obj();
Graphic aGraphic( SdResId(BMP_PRESOBJ_OBJECT) );
( (SdrOle2Obj*) pSdrObj)->SetGraphic(&aGraphic);
}
break;
case PRESOBJ_CHART:
{
pSdrObj = new SdrOle2Obj();
( (SdrOle2Obj*) pSdrObj)->SetProgName( String( RTL_CONSTASCII_USTRINGPARAM( "StarChart" )));
Graphic aGraphic( SdResId(BMP_PRESOBJ_CHART) );
( (SdrOle2Obj*) pSdrObj)->SetGraphic(&aGraphic);
}
break;
case PRESOBJ_ORGCHART:
{
pSdrObj = new SdrOle2Obj();
( (SdrOle2Obj*) pSdrObj)->SetProgName( String( RTL_CONSTASCII_USTRINGPARAM( "StarOrg" )));
Graphic aGraphic( SdResId(BMP_PRESOBJ_ORGCHART) );
( (SdrOle2Obj*) pSdrObj)->SetGraphic(&aGraphic);
}
case PRESOBJ_TABLE:
{
pSdrObj = new SdrOle2Obj();
( (SdrOle2Obj*) pSdrObj)->SetProgName( String( RTL_CONSTASCII_USTRINGPARAM( "StarCalc" )));
Graphic aGraphic( SdResId(BMP_PRESOBJ_TABLE) );
( (SdrOle2Obj*) pSdrObj)->SetGraphic(&aGraphic);
}
break;
2000-09-18 23:16:46 +00:00
#ifdef STARIMAGE_AVAILABLE
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
case PRESOBJ_IMAGE:
{
pSdrObj = new SdrOle2Obj();
( (SdrOle2Obj*) pSdrObj)->SetProgName( String( RTL_CONSTASCII_USTRINGPARAM( "StarImage" )));
Graphic aGraphic( SdResId(BMP_PRESOBJ_IMAGE) );
( (SdrOle2Obj*) pSdrObj)->SetGraphic(&aGraphic);
}
break;
2000-09-18 23:16:46 +00:00
#endif
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
case PRESOBJ_BACKGROUND:
{
pSdrObj = new SdrRectObj();
pSdrObj->SetMoveProtect(TRUE);
pSdrObj->SetResizeProtect(TRUE);
pSdrObj->SetMarkProtect(TRUE);
}
break;
case PRESOBJ_HANDOUT:
{
//Erste Standardseite am SdrPageObj vermerken
SdrPage* pPage = ( (SdDrawDocument*) pModel )->GetSdPage(0, PK_STANDARD);
pSdrObj = new SdrPageObj( pPage );
pSdrObj->SetResizeProtect(TRUE);
}
break;
case PRESOBJ_PAGE:
{
//Notizseite am SdrPageObj vermerken
pSdrObj = new SdrPageObj(pModel->GetPage(GetPageNum() - 1));
pSdrObj->SetResizeProtect(TRUE);
}
break;
case PRESOBJ_HEADER:
case PRESOBJ_FOOTER:
case PRESOBJ_DATETIME:
case PRESOBJ_SLIDENUMBER:
{
pSdrObj = new SdrRectObj(OBJ_TEXT);
bEmptyPresObj = false;
bForceText = true;
}
break;
2000-09-18 23:16:46 +00:00
}
if (pSdrObj)
{
// #107228# We need to put the shape that will be inserted
// into the aPresObjList always. This is because the accessibility
// api creates a XShape wrapper during the call to InsertObject.
// The creation fails if this is not in the aPresObjList at this point.
// We will remove it from the aPresObjList after InsertObject since
// this is needed for the correct working of SetAutoLayout
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
const bool bIsAlreadyInserted = IsPresObj(pSdrObj);
if( !bIsAlreadyInserted )
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
InsertPresObj(pSdrObj, eObjKind);
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
pSdrObj->SetEmptyPresObj(bEmptyPresObj);
2000-09-18 23:16:46 +00:00
pSdrObj->SetLogicRect(rRect);
InsertObject(pSdrObj);
2000-09-18 23:16:46 +00:00
if( !bIsAlreadyInserted && !bInsert )
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
RemovePresObj( pSdrObj );
2000-09-18 23:16:46 +00:00
if ( pSdrObj->ISA(SdrTextObj) )
{
// #96243# Tell the object EARLY that it is vertical to have the
// defaults for AutoGrowWidth/Height reversed
if(bVertical)
((SdrTextObj*)pSdrObj)->SetVerticalWriting(TRUE);
2001-02-26 09:20:50 +00:00
SfxItemSet aTempAttr( ((SdDrawDocument*) pModel)->GetPool() );
2001-02-26 09:20:50 +00:00
if( bVertical )
aTempAttr.Put( SdrTextMinFrameWidthItem( rRect.GetSize().Width() ) );
else
aTempAttr.Put( SdrTextMinFrameHeightItem( rRect.GetSize().Height() ) );
2000-09-18 23:16:46 +00:00
if (bMaster)
{
// Bei Praesentationsobjekten auf der MasterPage soll die
// Groesse vom Benutzwer frei waehlbar sein
// #96243# potential problem: This action was still NOT
// adapted for vertical text. This sure needs to be done.
if(bVertical)
aTempAttr.Put(SdrTextAutoGrowWidthItem(FALSE));
else
aTempAttr.Put(SdrTextAutoGrowHeightItem(FALSE));
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
// check if we need another vertical adjustement than the default
SdrTextVertAdjust eV = SDRTEXTVERTADJUST_TOP;
if( (eObjKind == PRESOBJ_FOOTER) && (ePageKind != PK_STANDARD) )
{
eV = SDRTEXTVERTADJUST_BOTTOM;
}
else if( (eObjKind == PRESOBJ_SLIDENUMBER) && (ePageKind != PK_STANDARD) )
{
eV = SDRTEXTVERTADJUST_BOTTOM;
}
if( eV != SDRTEXTVERTADJUST_TOP )
aTempAttr.Put(SdrTextVertAdjustItem(eV));
pSdrObj->SetMergedItemSet(aTempAttr);
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
pSdrObj->SetLogicRect(rRect);
2000-09-18 23:16:46 +00:00
}
2001-03-19 08:53:25 +00:00
String aString = GetPresObjText(eObjKind);
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( (aString.Len() || bForceText) && pSdrObj->ISA(SdrTextObj) )
2000-09-18 23:16:46 +00:00
{
SdrOutliner* pOutliner = ( (SdDrawDocument*) GetModel() )->GetInternalOutliner();
2001-03-19 08:53:25 +00:00
2000-09-18 23:16:46 +00:00
USHORT nOutlMode = pOutliner->GetMode();
pOutliner->Init( OUTLINERMODE_TEXTOBJECT );
pOutliner->SetMinDepth(0);
pOutliner->SetStyleSheet( 0, NULL );
2001-02-26 09:20:50 +00:00
pOutliner->SetVertical( bVertical );
2000-09-18 23:16:46 +00:00
String aEmptyStr;
2001-03-19 08:53:25 +00:00
SetObjText( (SdrTextObj*) pSdrObj, (SdrOutliner*)pOutliner, eObjKind, aString );
2000-09-18 23:16:46 +00:00
pOutliner->Init( nOutlMode );
pOutliner->SetStyleSheet( 0, NULL );
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( (eObjKind == PRESOBJ_HEADER) || (eObjKind == PRESOBJ_FOOTER) || (eObjKind == PRESOBJ_SLIDENUMBER) || (eObjKind == PRESOBJ_DATETIME) )
{
SfxItemSet aTempAttr( ((SdDrawDocument*) pModel)->GetPool() );
aTempAttr.Put( SvxFontHeightItem( 493, 100, EE_CHAR_FONTHEIGHT ) );
aTempAttr.Put( SvxFontHeightItem( 493, 100, EE_CHAR_FONTHEIGHT_CTL ) );
aTempAttr.Put( SvxFontHeightItem( 493, 100, EE_CHAR_FONTHEIGHT_CJK ) );
SvxAdjust eH = SVX_ADJUST_LEFT;
if( (eObjKind == PRESOBJ_DATETIME) && (ePageKind != PK_STANDARD ) )
{
eH = SVX_ADJUST_RIGHT;
}
else if( (eObjKind == PRESOBJ_FOOTER) && (ePageKind == PK_STANDARD ) )
{
eH = SVX_ADJUST_CENTER;
}
else if( eObjKind == PRESOBJ_SLIDENUMBER )
{
eH = SVX_ADJUST_RIGHT;
}
if( eH != SVX_ADJUST_LEFT )
aTempAttr.Put(SvxAdjustItem(eH));
pSdrObj->SetMergedItemSet(aTempAttr);
}
2000-09-18 23:16:46 +00:00
pSdrObj->SetUserCall(this);
pSdrObj->RecalcBoundRect();
if (bMaster)
{
SdrLayerAdmin& rLayerAdmin = pModel->GetLayerAdmin();
if (eObjKind == PRESOBJ_BACKGROUND)
{
// Hintergrund der MasterPage
pSdrObj->SetLayer( rLayerAdmin.
GetLayerID(String(SdResId(STR_LAYER_BCKGRND)), FALSE) );
}
else
{
// Hintergrundobjekte der MasterPage
pSdrObj->SetLayer( rLayerAdmin.
GetLayerID(String(SdResId(STR_LAYER_BCKGRNDOBJ)), FALSE) );
}
}
// Objekt am StyleSheet anmelden
// #95114# Set style only when one was found (as in 5.2)
// pSdrObj->NbcSetStyleSheet( GetStyleSheetForPresObj(eObjKind), FALSE );
SfxStyleSheet* pSheetForPresObj = GetStyleSheetForPresObj(eObjKind);
if(pSheetForPresObj)
pSdrObj->SetStyleSheet(pSheetForPresObj, FALSE);
2000-09-18 23:16:46 +00:00
if (eObjKind == PRESOBJ_OUTLINE)
{
for (USHORT nLevel = 1; nLevel < 10; nLevel++)
{
String aName(aLayoutName);
aName += sal_Unicode( ' ' );
aName += String::CreateFromInt32( nLevel );
SfxStyleSheet* pSheet = (SfxStyleSheet*)pModel->GetStyleSheetPool()->
Find(aName, SD_LT_FAMILY);
DBG_ASSERT(pSheet, "Vorlage fuer Gliederungsobjekt nicht gefunden");
if (pSheet)
pSdrObj->StartListening(*pSheet);
}
}
if ( eObjKind == PRESOBJ_OBJECT ||
eObjKind == PRESOBJ_CHART ||
eObjKind == PRESOBJ_ORGCHART ||
eObjKind == PRESOBJ_TABLE ||
#ifdef STARIMAGE_AVAILABLE
eObjKind == PRESOBJ_IMAGE ||
#endif
eObjKind == PRESOBJ_GRAPHIC )
{
SfxItemSet aSet( ((SdDrawDocument*) pModel)->GetPool() );
aSet.Put( SdrTextContourFrameItem( TRUE ) );
aSet.Put( SvxAdjustItem( SVX_ADJUST_CENTER ) );
pSdrObj->SetMergedItemSet(aSet);
2000-09-18 23:16:46 +00:00
}
}
return(pSdrObj);
}
/*************************************************************************
|*
|* Es werden Praesentationsobjekte auf der Page erzeugt.
|* Alle Praesentationsobjekte erhalten einen UserCall auf die Page.
|*
\************************************************************************/
SfxStyleSheet* SdPage::GetStyleSheetForPresObj(PresObjKind eObjKind)
{
String aName(GetLayoutName());
String aSep( RTL_CONSTASCII_USTRINGPARAM( SD_LT_SEPARATOR ));
USHORT nPos = aName.Search(aSep);
if (nPos != STRING_NOTFOUND)
{
nPos += aSep.Len();
aName.Erase(nPos);
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
SfxStyleFamily eFamily = SD_LT_FAMILY;
2000-09-18 23:16:46 +00:00
switch (eObjKind)
{
case PRESOBJ_OUTLINE:
{
aName = GetLayoutName();
aName += sal_Unicode( ' ' );
aName += String::CreateFromInt32( 1 );
}
break;
case PRESOBJ_TITLE:
aName += String(SdResId(STR_LAYOUT_TITLE));
break;
case PRESOBJ_BACKGROUND:
aName += String(SdResId(STR_LAYOUT_BACKGROUND));
break;
case PRESOBJ_NOTES:
aName += String(SdResId(STR_LAYOUT_NOTES));
break;
case PRESOBJ_TEXT:
aName += String(SdResId(STR_LAYOUT_SUBTITLE));
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
break;
case PRESOBJ_HEADER:
case PRESOBJ_FOOTER:
case PRESOBJ_DATETIME:
case PRESOBJ_SLIDENUMBER:
aName += String(SdResId(STR_LAYOUT_BACKGROUNDOBJECTS));
break;
2000-09-18 23:16:46 +00:00
default:
break;
}
SfxStyleSheetBasePool* pStShPool = pModel->GetStyleSheetPool();
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
SfxStyleSheetBase* pResult = pStShPool->Find(aName, eFamily);
2000-09-18 23:16:46 +00:00
return (SfxStyleSheet*)pResult;
}
/*************************************************************************
|*
|* Das Praesentationsobjekt rObj hat sich geaendert und wird nicht mehr
|* durch das Praesentationsobjekt der MasterPage referenziert.
|* Der UserCall wird geloescht.
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
void SdPage::Changed(const SdrObject& rObj, SdrUserCallType eType, const Rectangle& rOldBoundRect)
2000-09-18 23:16:46 +00:00
{
if (!bOwnArrangement)
{
switch (eType)
{
case SDRUSERCALL_MOVEONLY:
case SDRUSERCALL_RESIZE:
{
if( pModel->isLocked() )
break;
2000-09-18 23:16:46 +00:00
SdrObject* pObj = (SdrObject*) &rObj;
if (pObj)
{
if (!bMaster)
{
// Objekt wurde vom Benutzer veraendert und hoert damit nicht
// mehr auf die MasterPage-Objekte
pObj->SetUserCall(NULL);
}
else if (pModel)
{
// MasterPage-Objekt wurde veraendert, daher
// Objekte auf allen Seiten anpassen
PageKind ePgKind = GetPageKind();
USHORT nPageCount = ((SdDrawDocument*) pModel)->GetSdPageCount(ePageKind);
for (USHORT i = 0; i < nPageCount; i++)
{
SdPage* pPage = ((SdDrawDocument*) pModel)->GetSdPage(i, ePageKind);
if (pPage && pPage->GetMasterPage(0) == this)
{
// Seite hoert auf diese MasterPage, daher
// AutoLayout anpassen
pPage->SetAutoLayout(pPage->GetAutoLayout());
}
}
}
}
}
break;
case SDRUSERCALL_DELETE:
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
{
// Ignore the delete call. This formerly was treated
// like SDRUSERCALL_REMOVED with the effect that a
// deleted object was inserted into the
// DeletedPresObjList which lead to a crash.
2004-04-05 11:34:12 +00:00
List* pList = ((SdDrawDocument*) pModel)->GetDeletedPresObjList();
if( pList )
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
pList->Remove((void*) &rObj);
// this should be redundant, but for safety reasons
// check if someone deleted a SdrObject without
// removing it from the presentation object list first
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
PresentationObjectList::iterator aIter( FindPresObj( &rObj ) );
if( aIter != maPresObjList.end() )
maPresObjList.erase( aIter );
}
break;
2000-09-18 23:16:46 +00:00
case SDRUSERCALL_REMOVED:
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( IsPresObj( &rObj ) )
2000-09-18 23:16:46 +00:00
{
// #107844#
// Handling of non-empty and empty PresObjs was moved to UndoActionHdl
// to allow adding the correct SdrUndoUserCallObj. This may be done here, too,
// but it makes more sense to handle all changes to PresObjs in a central
// place where the Undo is needed to be fetched anyways.
// In die Liste fuers Undo eintragen, da dieses Objekt
// durch das Default-Praesentationsobjekt ersetzt werden
// soll.
// Im UndoActionHdl des DrawDocs wird der UserCall
// auf NULL gesetzt und das Obj aus der Liste ausgetragen
((SdrObject&) rObj).SetUserCall(this);
List* pList = ((SdDrawDocument*) pModel)->GetDeletedPresObjList();
pList->Insert((void*) &rObj, LIST_APPEND);
2000-09-18 23:16:46 +00:00
}
}
break;
default:
break;
}
}
}
/*************************************************************************
|*
|* Erzeugt auf einer MasterPage Hintergrund, Titel- und Layout-Bereich
|*
\************************************************************************/
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
void SdPage::CreateTitleAndLayout(BOOL bInit, BOOL bCreate )
2000-09-18 23:16:46 +00:00
{
SdPage* pMasterPage = this;
if (!bMaster)
{
pMasterPage = (SdPage*) GetMasterPage(0);
}
if (!pMasterPage)
{
return;
}
/**************************************************************************
* Hintergrund, Titel- und Layout-Bereich werden angelegt
**************************************************************************/
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( ePageKind == PK_STANDARD )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
SdrObject* pMasterBackground = pMasterPage->GetPresObj( PRESOBJ_BACKGROUND );
if( pMasterBackground == NULL )
pMasterPage->CreateDefaultPresObj(PRESOBJ_BACKGROUND, true);
}
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( ( (SdDrawDocument*) GetModel() )->GetDocumentType() == DOCUMENT_TYPE_IMPRESS )
{
if( ePageKind == PK_HANDOUT && bInit )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
// handout template
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
// delete all available handout presentation objects
PresentationObjectList& rPresObjList = pMasterPage->GetPresObjList();
PresentationObjectList::iterator aIter( rPresObjList.begin() );
PresentationObjectList::iterator aEnd( rPresObjList.end() );
while( aIter != aEnd )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( (*aIter).meKind == PRESOBJ_HANDOUT )
{
SdrObject* pObj = (*aIter).mpObject;
aIter = rPresObjList.erase( aIter );
pMasterPage->RemoveObject(pObj->GetOrdNum());
}
else
{
aIter++;
}
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
Size aArea = GetSize();
long nX = GetLftBorder();
long nY = GetUppBorder();
long nGapW = (nX + GetRgtBorder()) / 2;
long nGapH = (nY + GetLwrBorder()) / 2;
USHORT nColCnt, nRowCnt;
const int NOTES_HEADER_FOOTER_HEIGHT = long((aArea.Height() - GetUppBorder() - GetLwrBorder()) * 0.05);
aArea.Height() -= 2 * NOTES_HEADER_FOOTER_HEIGHT;
if ( !nGapW )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
nGapW = aArea.Width() / 10;
nX = nGapW;
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if ( !nGapH )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
nGapH = aArea.Height() / 10;
nY = nGapH;
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
switch ( pMasterPage->GetAutoLayout() )
{
case AUTOLAYOUT_HANDOUT1: nColCnt = 1; nRowCnt = 1; break;
case AUTOLAYOUT_HANDOUT2: nColCnt = 1; nRowCnt = 2; break;
case AUTOLAYOUT_HANDOUT3: nColCnt = 1; nRowCnt = 3; break;
case AUTOLAYOUT_HANDOUT4: nColCnt = 2; nRowCnt = 2; break;
case AUTOLAYOUT_HANDOUT6: nColCnt = 2; nRowCnt = 3; break;
default: nColCnt = 1; nRowCnt = 1; break;
}
aArea.Width() -= nGapW * 2;
aArea.Height() -= nGapH * 2;
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if ( nGapW < aArea.Width() / 10 )
nGapW = aArea.Width() / 10;
if ( nGapH < aArea.Height() / 10 )
nGapH = aArea.Height() / 10;
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
// bei Querformat Reihen und Spalten vertauschen
if ( aArea.Width() > aArea.Height() )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
USHORT nTmp = nRowCnt;
nRowCnt = nColCnt;
nColCnt = nTmp;
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
Size aPartArea, aSize;
aPartArea.Width() = ((aArea.Width() + nGapW) / nColCnt) - nGapW;
aPartArea.Height() = ((aArea.Height() + nGapH) / nRowCnt) - nGapH;
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
SdrPage* pPage = ((SdDrawDocument*) pModel)->
GetSdPage(0, PK_STANDARD);
if ( pPage )
{ // tatsaechliche Seitengroesse in das Handout-Rechteck skalieren
double fH = (double) aPartArea.Width() / pPage->GetWdt();
double fV = (double) aPartArea.Height() / pPage->GetHgt();
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if ( fH > fV )
fH = fV;
aSize.Width() = (long) (fH * pPage->GetWdt());
aSize.Height() = (long) (fH * pPage->GetHgt());
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
nX += (aPartArea.Width() - aSize.Width()) / 2;
nY += (aPartArea.Height()- aSize.Height())/ 2;
}
else
aSize = aPartArea;
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
Point aPos(nX, nY + NOTES_HEADER_FOOTER_HEIGHT);
USHORT nPgNum = 0;
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
for (USHORT nRow = 0; nRow < nRowCnt; nRow++)
{
aPos.X() = nX;
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
for (USHORT nCol = 0; nCol < nColCnt; nCol++)
{
Rectangle aRect(aPos, aSize);
SdrPageObj* pPageObj = (SdrPageObj*) pMasterPage->CreatePresObj(PRESOBJ_HANDOUT, FALSE, aRect, TRUE);
pPageObj->SetReferencedPage(pModel->GetPage(2 * nPgNum + 1));
nPgNum++;
aPos.X() += aPartArea.Width() + nGapW;
}
aPos.Y() += aPartArea.Height() + nGapH;
}
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( ePageKind != PK_HANDOUT )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
SdrObject* pMasterTitle = pMasterPage->GetPresObj( PRESOBJ_TITLE );
if( pMasterTitle == NULL )
pMasterPage->CreateDefaultPresObj(PRESOBJ_TITLE, true);
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
SdrObject* pMasterOutline = pMasterPage->GetPresObj( ePageKind==PK_NOTES ? PRESOBJ_NOTES : PRESOBJ_OUTLINE );
if( pMasterOutline == NULL )
pMasterPage->CreateDefaultPresObj( ePageKind == PK_STANDARD ? PRESOBJ_OUTLINE : PRESOBJ_NOTES, true );
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
// create header&footer objects
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( bCreate )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( ePageKind != PK_STANDARD )
{
SdrObject* pHeader = pMasterPage->GetPresObj( PRESOBJ_HEADER );
if( pHeader == NULL )
pMasterPage->CreateDefaultPresObj( PRESOBJ_HEADER, true );
}
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
SdrObject* pDate = pMasterPage->GetPresObj( PRESOBJ_DATETIME );
if( pDate == NULL )
pMasterPage->CreateDefaultPresObj( PRESOBJ_DATETIME, true );
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
SdrObject* pFooter = pMasterPage->GetPresObj( PRESOBJ_FOOTER );
if( pFooter == NULL )
pMasterPage->CreateDefaultPresObj( PRESOBJ_FOOTER, true );
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
SdrObject* pNumber = pMasterPage->GetPresObj( PRESOBJ_SLIDENUMBER );
if( pNumber == NULL )
pMasterPage->CreateDefaultPresObj( PRESOBJ_SLIDENUMBER, true );
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
}
}
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
SdrObject* SdPage::CreateDefaultPresObj(PresObjKind eObjKind, bool bInsert)
{
if( eObjKind == PRESOBJ_TITLE )
{
Rectangle aTitleRect( GetTitleRect() );
return CreatePresObj(PRESOBJ_TITLE, FALSE, aTitleRect, bInsert);
}
else if( eObjKind == PRESOBJ_OUTLINE )
{
Rectangle aLayoutRect( GetLayoutRect() );
return CreatePresObj( PRESOBJ_OUTLINE, FALSE, aLayoutRect, bInsert);
}
else if( eObjKind == PRESOBJ_NOTES )
{
Rectangle aLayoutRect( GetLayoutRect() );
return CreatePresObj( PRESOBJ_NOTES, FALSE, aLayoutRect, bInsert);
}
else if( (eObjKind == PRESOBJ_FOOTER) || (eObjKind == PRESOBJ_DATETIME) || (eObjKind == PRESOBJ_SLIDENUMBER) || (eObjKind == PRESOBJ_HEADER ) )
{
// create footer objects for standard master page
if( ePageKind == PK_STANDARD )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
const long nLftBorder = GetLftBorder();
const long nUppBorder = GetUppBorder();
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
Point aTitlePos ( nLftBorder, nUppBorder );
Size aPageSize ( GetSize() );
aPageSize.Width() -= nLftBorder + GetRgtBorder();
aPageSize.Height() -= nUppBorder + GetLwrBorder();
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
const int Y = long(nUppBorder + aPageSize.Height() * 0.911);
const int W1 = long(aPageSize.Width() * 0.233);
const int W2 = long(aPageSize.Width() * 0.317);
const int H = long(aPageSize.Height() * 0.069);
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( eObjKind == PRESOBJ_DATETIME )
{
Point aPos( long(nLftBorder+(aPageSize.Width()*0.05)), Y );
Size aSize( W1, H );
Rectangle aRect( aPos, aSize );
return CreatePresObj( PRESOBJ_DATETIME, FALSE, aRect, bInsert );
}
else if( eObjKind == PRESOBJ_FOOTER )
{
Point aPos( long(nLftBorder+ aPageSize.Width() * 0.342), Y );
Size aSize( W2, H );
Rectangle aRect( aPos, aSize );
return CreatePresObj( PRESOBJ_FOOTER, FALSE, aRect, bInsert );
}
else if( eObjKind == PRESOBJ_SLIDENUMBER )
{
Point aPos( long(nLftBorder+(aPageSize.Width()*0.717)), Y );
Size aSize( W1, H );
Rectangle aRect( aPos, aSize );
return CreatePresObj( PRESOBJ_SLIDENUMBER, FALSE, aRect, bInsert );
}
else
{
DBG_ERROR( "SdPage::CreateDefaultPresObj() - can't create a header placeholder for a slide master" );
return NULL;
2000-09-18 23:16:46 +00:00
}
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
else
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
// create header&footer objects for handout and notes master
Point aTitlePos ( GetLftBorder(), GetUppBorder() );
Size aPageSize ( GetSize() );
aPageSize.Width() -= GetLftBorder() + GetRgtBorder();
aPageSize.Height() -= GetUppBorder() + GetLwrBorder();
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
const int NOTES_HEADER_FOOTER_WIDTH = long(aPageSize.Width() * 0.434);
const int NOTES_HEADER_FOOTER_HEIGHT = long(aPageSize.Height() * 0.05);
Size aSize( NOTES_HEADER_FOOTER_WIDTH, NOTES_HEADER_FOOTER_HEIGHT );
const int X1 = GetLftBorder();
const int X2 = GetLftBorder() + long(aPageSize.Width() - NOTES_HEADER_FOOTER_WIDTH);
const int Y1 = GetUppBorder();
const int Y2 = GetUppBorder() + long(aPageSize.Height() - NOTES_HEADER_FOOTER_HEIGHT );
if( eObjKind == PRESOBJ_HEADER )
{
Point aPos( X1, Y1 );
Rectangle aRect( aPos, aSize );
return CreatePresObj( PRESOBJ_HEADER, FALSE, aRect, bInsert );
}
else if( eObjKind == PRESOBJ_DATETIME )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
Point aPos( X2, Y1 );
Rectangle aRect( aPos, aSize );
return CreatePresObj( PRESOBJ_DATETIME, FALSE, aRect, bInsert );
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
else if( eObjKind == PRESOBJ_FOOTER )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
Point aPos( X1, Y2 );
Rectangle aRect( aPos, aSize );
return CreatePresObj( PRESOBJ_FOOTER, FALSE, aRect, bInsert );
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
else if( eObjKind == PRESOBJ_SLIDENUMBER )
{
Point aPos( X2, Y2 );
Rectangle aRect( aPos, aSize );
return CreatePresObj( PRESOBJ_SLIDENUMBER, FALSE, aRect, bInsert );
}
DBG_ERROR("SdPage::CreateDefaultPresObj() - this should not happen!");
return NULL;
2000-09-18 23:16:46 +00:00
}
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
else if( eObjKind == PRESOBJ_BACKGROUND )
{
Point aBackgroundPos ( GetLftBorder(), GetUppBorder() );
Size aBackgroundSize ( GetSize() );
aBackgroundSize.Width() -= GetLftBorder() + GetRgtBorder() - 1;
aBackgroundSize.Height() -= GetUppBorder() + GetLwrBorder() - 1;
Rectangle aBackgroundRect(aBackgroundPos, aBackgroundSize);
return CreatePresObj( PRESOBJ_BACKGROUND, FALSE, aBackgroundRect, bInsert );
}
else
{
DBG_ERROR("SdPage::CreateDefaultPresObj() - unknown PRESOBJ kind" );
return NULL;
}
2000-09-18 23:16:46 +00:00
}
2000-09-18 23:16:46 +00:00
/*************************************************************************
|*
|* Titelbereich zurueckgeben
|*
\************************************************************************/
Rectangle SdPage::GetTitleRect() const
{
Rectangle aTitleRect;
if (ePageKind != PK_HANDOUT)
{
/******************************************************************
* Standard- oder Notiz-Seite: Titelbereich
******************************************************************/
Point aTitlePos ( GetLftBorder(), GetUppBorder() );
Size aTitleSize ( GetSize() );
aTitleSize.Width() -= GetLftBorder() + GetRgtBorder();
aTitleSize.Height() -= GetUppBorder() + GetLwrBorder();
if (ePageKind == PK_STANDARD)
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aTitlePos.X() += long( aTitleSize.Width() * 0.05 );
aTitlePos.Y() += long( aTitleSize.Height() * 0.0399 );
aTitleSize.Width() = long( aTitleSize.Width() * 0.9 );
2000-09-18 23:16:46 +00:00
aTitleSize.Height() = long( aTitleSize.Height() * 0.167 );
}
else if (ePageKind == PK_NOTES)
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
Point aPos = aTitlePos;
aPos.Y() += long( aTitleSize.Height() * 0.076 );
2000-09-18 23:16:46 +00:00
// Hoehe beschraenken
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aTitleSize.Height() = (long) (aTitleSize.Height() * 0.375);
2000-09-18 23:16:46 +00:00
Size aPartArea = aTitleSize;
Size aSize;
SdrPage* pPage = pModel->GetPage( GetPageNum() - 1 );
if ( pPage )
{
// tatsaechliche Seitengroesse in das Handout-Rechteck skalieren
double fH = (double) aPartArea.Width() / pPage->GetWdt();
double fV = (double) aPartArea.Height() / pPage->GetHgt();
if ( fH > fV )
fH = fV;
aSize.Width() = (long) (fH * pPage->GetWdt());
aSize.Height() = (long) (fH * pPage->GetHgt());
aPos.X() += (aPartArea.Width() - aSize.Width()) / 2;
aPos.Y() += (aPartArea.Height()- aSize.Height())/ 2;
}
aTitlePos = aPos;
aTitleSize = aSize;
}
aTitleRect.SetPos(aTitlePos);
aTitleRect.SetSize(aTitleSize);
}
return aTitleRect;
}
/*************************************************************************
|*
|* Gliederungsbereich zurueckgeben
|*
\************************************************************************/
Rectangle SdPage::GetLayoutRect() const
{
Rectangle aLayoutRect;
if (ePageKind != PK_HANDOUT)
{
Point aLayoutPos ( GetLftBorder(), GetUppBorder() );
Size aLayoutSize ( GetSize() );
aLayoutSize.Width() -= GetLftBorder() + GetRgtBorder();
aLayoutSize.Height() -= GetUppBorder() + GetLwrBorder();
if (ePageKind == PK_STANDARD)
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aLayoutPos.X() += long( aLayoutSize.Width() * 0.05 );
aLayoutPos.Y() += long( aLayoutSize.Height() * 0.234 );
aLayoutSize.Width() = long( aLayoutSize.Width() * 0.9 );
aLayoutSize.Height() = long( aLayoutSize.Height() * 0.66 );
2000-09-18 23:16:46 +00:00
aLayoutRect.SetPos(aLayoutPos);
aLayoutRect.SetSize(aLayoutSize);
}
else if (ePageKind == PK_NOTES)
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aLayoutPos.X() += long( aLayoutSize.Width() * 0.1 );
aLayoutPos.Y() += long( aLayoutSize.Height() * 0.475 );
aLayoutSize.Width() = long( aLayoutSize.Width() * 0.8 );
aLayoutSize.Height() = long( aLayoutSize.Height() * 0.45 );
2000-09-18 23:16:46 +00:00
aLayoutRect.SetPos(aLayoutPos);
aLayoutRect.SetSize(aLayoutSize);
}
}
return aLayoutRect;
}
/**************************************************************************
|*
|* Diese Methode weist ein AutoLayout zu
|*
\*************************************************************************/
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
void SdPage::SetAutoLayout(AutoLayout eLayout, BOOL bInit, BOOL bCreate )
2000-09-18 23:16:46 +00:00
{
eAutoLayout = eLayout;
bOwnArrangement = TRUE;
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
CreateTitleAndLayout(bInit, bCreate);
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if ((eAutoLayout == AUTOLAYOUT_NONE && maPresObjList.empty()) || bMaster)
2000-09-18 23:16:46 +00:00
{
// MasterPage oder:
// Kein AutoLayout gewuenscht und keine Praesentationsobjekte
// vorhanden, also ist nichts zu tun
bOwnArrangement = FALSE;
return;
}
SdPage* pMasterPage = (SdPage*) GetMasterPage(0);
Rectangle aTitleRect;
Rectangle aLayoutRect;
BOOL bFound = FALSE;
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
SdrObject* pMasterTitle = pMasterPage->GetPresObj( PRESOBJ_TITLE );
SdrObject* pMasterOutline = pMasterPage->GetPresObj( ePageKind==PK_NOTES ? PRESOBJ_NOTES : PRESOBJ_OUTLINE );
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( pMasterTitle )
aTitleRect = pMasterTitle->GetLogicRect();
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( pMasterOutline )
aLayoutRect = pMasterOutline->GetLogicRect();
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( ePageKind != PK_HANDOUT )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if (aTitleRect.IsEmpty() )
{
/**********************************************************************
* Titelobj. auf MasterPage nicht vorhanden -> Defaultgroesse bestimmen
**********************************************************************/
aTitleRect = GetTitleRect();
}
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if (aLayoutRect.IsEmpty() )
{
/**********************************************************************
* Gliederungsobj. auf MasterPage nicht vorhanden -> Defaultgroesse bestimmen
**********************************************************************/
aLayoutRect = GetLayoutRect();
}
2000-09-18 23:16:46 +00:00
}
2002-08-01 10:30:12 +00:00
Rectangle aRect0( aTitleRect );
Rectangle aRect1( aLayoutRect );
Rectangle aRect2( aLayoutRect );
Rectangle aRect3( aLayoutRect );
Rectangle aRect4( aLayoutRect );
Size aTitleSize( aTitleRect.GetSize() );
Point aTitlePos( aTitleRect.TopLeft() );
Size aLayoutSize( aLayoutRect.GetSize() );
Point aLayoutPos( aLayoutRect.TopLeft() );
Size aTempSize;
Point aTempPnt;
PresObjKind nObjKind[ MAX_PRESOBJ ];
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
PresentationObjectList aObjList;
2002-08-01 10:30:12 +00:00
sal_Bool bRightToLeft = ( GetModel() && static_cast< SdDrawDocument* >( GetModel() )->GetDefaultWritingMode() == ::com::sun::star::text::WritingMode_RL_TB );
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
SdrObject* pObj;
2000-09-18 23:16:46 +00:00
switch (eAutoLayout)
{
case AUTOLAYOUT_NONE:
{
/******************************************************************
* Notwendig fuer Objekte aus dem Gliederungsmodus
******************************************************************/
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( pObj && pObj->GetUserCall() )
2000-09-18 23:16:46 +00:00
{
pObj->SetLogicRect(aRect0);
pObj->SetUserCall(this);
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if(pObj && (!pObj->IsEmptyPresObj() || !bInit))
aObjList.push_back(PresentationObjectDescriptor(pObj, nObjKind[0]));
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( pObj && pObj->GetUserCall() )
2000-09-18 23:16:46 +00:00
{
pObj->SetLogicRect(aRect1);
pObj->SetUserCall(this);
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if(pObj && (!pObj->IsEmptyPresObj() || !bInit))
aObjList.push_back(PresentationObjectDescriptor(pObj, nObjKind[1]));
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_NOTES:
{
nObjKind[0] = PRESOBJ_PAGE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_NOTES;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_TITLE:
{
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_TEXT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_ENUM:
{
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_CHART:
{
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_CHART;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_2TEXT:
{
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.X() = long (aLayoutPos.X() + aLayoutSize.Width() * 1.05);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
2002-08-01 10:30:12 +00:00
if( bRightToLeft )
::std::swap< Rectangle >( aRect1, aRect2 );
2000-09-18 23:16:46 +00:00
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2000-09-18 23:16:46 +00:00
USHORT nIndex = 1;
2001-02-26 09:20:50 +00:00
if ( InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList) )
2000-09-18 23:16:46 +00:00
nIndex++;
nObjKind[2] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2], nIndex);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_TEXTCHART:
{
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.X() = long (aLayoutPos.X() + aLayoutSize.Width() * 1.05);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
2002-08-01 10:30:12 +00:00
if( bRightToLeft )
::std::swap< Rectangle >( aRect1, aRect2 );
2000-09-18 23:16:46 +00:00
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[2] = PRESOBJ_CHART;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_ORG:
{
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_ORGCHART;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_TEXTCLIP:
{
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.X() = long (aLayoutPos.X() + aLayoutSize.Width() * 1.05);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
2002-08-01 10:30:12 +00:00
if( bRightToLeft )
::std::swap< Rectangle >( aRect1, aRect2 );
2000-09-18 23:16:46 +00:00
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[2] = PRESOBJ_GRAPHIC;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_CHARTTEXT:
{
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.X() = long (aLayoutPos.X() + aLayoutSize.Width() * 1.05);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
2002-08-01 10:30:12 +00:00
if( bRightToLeft )
::std::swap< Rectangle >( aRect1, aRect2 );
2000-09-18 23:16:46 +00:00
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_CHART;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[2] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_TAB:
{
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_TABLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_CLIPTEXT:
{
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.X() = long (aLayoutPos.X() + aLayoutSize.Width() * 1.05);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
2002-08-01 10:30:12 +00:00
if( bRightToLeft )
::std::swap< Rectangle >( aRect1, aRect2 );
2000-09-18 23:16:46 +00:00
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_GRAPHIC;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[2] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_TEXTOBJ:
{
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.X() = long (aLayoutPos.X() + aLayoutSize.Width() * 1.05);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
2002-08-01 10:30:12 +00:00
if( bRightToLeft )
::std::swap< Rectangle >( aRect1, aRect2 );
2000-09-18 23:16:46 +00:00
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[2] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_OBJ:
{
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_TEXT2OBJ:
{
aTempPnt = aLayoutPos;
aTempSize = aLayoutSize;
aLayoutSize.Height() = long (aLayoutSize.Height() * 0.477);
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aLayoutPos.X() = long (aLayoutPos.X() + aLayoutSize.Width() * 1.05);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.Y() = long (aLayoutPos.Y() + aLayoutSize.Height() * 1.095);
aRect3 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos = aTempPnt;
aLayoutSize = aTempSize;
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
2002-08-01 10:30:12 +00:00
if( bRightToLeft )
{
::std::swap< long >( aRect1.Left(), aRect2.Left() );
aRect3.Left() = aRect2.Left();
}
2000-09-18 23:16:46 +00:00
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[2] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2]);
2000-09-18 23:16:46 +00:00
USHORT nIndex = 1;
2001-02-26 09:20:50 +00:00
if ( InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList) )
2000-09-18 23:16:46 +00:00
nIndex++;
nObjKind[3] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[3], nIndex);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[3], FALSE, aRect3, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_OBJTEXT:
{
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.X() = long (aLayoutPos.X() + aLayoutSize.Width() * 1.05);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
2002-08-01 10:30:12 +00:00
if( bRightToLeft )
::std::swap< Rectangle >( aRect1, aRect2 );
2000-09-18 23:16:46 +00:00
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[2] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_OBJOVERTEXT:
{
aLayoutSize.Height() = long (aLayoutSize.Height() * 0.477);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.Y() = long (aLayoutPos.Y() + aLayoutSize.Height() * 1.095);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[2] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_2OBJTEXT:
{
aTempPnt = aLayoutPos;
aTempSize = aLayoutSize;
aLayoutSize.Height() = long (aLayoutSize.Height() * 0.477);
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.Y() = long (aLayoutPos.Y() + aLayoutSize.Height() * 1.095);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos = aTempPnt;
aLayoutSize = aTempSize;
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aLayoutPos.X() = long (aLayoutPos.X() + aLayoutSize.Width() * 1.05);
aRect3 = Rectangle (aLayoutPos, aLayoutSize);
2002-08-01 10:30:12 +00:00
if( bRightToLeft )
{
::std::swap< long >( aRect1.Left(), aRect2.Left() );
aRect3.Left() = aRect2.Left();
}
2000-09-18 23:16:46 +00:00
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2000-09-18 23:16:46 +00:00
USHORT nIndex = 1;
2001-02-26 09:20:50 +00:00
if ( InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList) )
2000-09-18 23:16:46 +00:00
nIndex++;
nObjKind[2] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2], nIndex);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[3] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[3]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[3], FALSE, aRect3, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_2OBJOVERTEXT:
{
aLayoutSize.Height() = long (aLayoutSize.Height() * 0.477);
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
aTempPnt = aLayoutPos;
aLayoutPos.X() = long (aLayoutPos.X() + aLayoutSize.Width() * 1.05);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.X() = aTempPnt.X();
aLayoutPos.Y() = long (aLayoutPos.Y() + aLayoutSize.Height() * 1.095);
aLayoutSize.Width() = long (aLayoutSize.Width() / 0.488);
aRect3 = Rectangle (aLayoutPos, aLayoutSize);
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2000-09-18 23:16:46 +00:00
USHORT nIndex = 1;
2001-02-26 09:20:50 +00:00
if ( InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList) )
2000-09-18 23:16:46 +00:00
nIndex++;
nObjKind[2] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2], nIndex);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[3] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[3]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[3], FALSE, aRect3, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_TEXTOVEROBJ:
{
aLayoutSize.Height() = long (aLayoutSize.Height() * 0.477);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.Y() = long (aLayoutPos.Y() + aLayoutSize.Height() * 1.095);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[2] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_4OBJ:
{
ULONG nX = long (aLayoutPos.X());
ULONG nY = long (aLayoutPos.Y());
aLayoutSize.Height() = long (aLayoutSize.Height() * 0.477);
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.X() = long (nX + aLayoutSize.Width() * 1.05);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.Y() = long (aLayoutPos.Y() + aLayoutSize.Height() * 1.095);
aRect3 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.X() = nX;
aRect4 = Rectangle (aLayoutPos, aLayoutSize);
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
2000-09-18 23:16:46 +00:00
nObjKind[1] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2000-09-18 23:16:46 +00:00
USHORT nIndex = 1;
2001-02-26 09:20:50 +00:00
if ( InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList) )
2000-09-18 23:16:46 +00:00
nIndex++;
nObjKind[2] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2], nIndex);
2001-02-26 09:20:50 +00:00
if ( InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList) )
2000-09-18 23:16:46 +00:00
nIndex++;
nObjKind[3] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[3], nIndex);
2001-02-26 09:20:50 +00:00
if ( InsertPresObj(pObj, nObjKind[3], FALSE, aRect3, bInit, aObjList) )
2000-09-18 23:16:46 +00:00
nIndex++;
nObjKind[4] = PRESOBJ_OBJECT;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[4], nIndex);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[4], FALSE, aRect4, bInit, aObjList);
2000-09-18 23:16:46 +00:00
}
break;
case AUTOLAYOUT_ONLY_TITLE:
{
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
}
break;
2001-03-08 10:40:25 +00:00
case AUTOLAYOUT_VERTICAL_TITLE_TEXT_CHART:
{
Size aSize( aRect0.GetSize().Height(), aRect1.BottomLeft().Y() - aRect0.TopLeft().Y() );
aRect0.SetSize( aSize );
aRect0.SetPos( aTitleRect.TopRight() - Point( aSize.Width(), 0 ) );
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-03-08 10:40:25 +00:00
InsertPresObj(pObj, nObjKind[0], TRUE, aRect0, bInit, aObjList);
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
if ( pObj )
{
SfxItemSet aNewSet(pObj->GetMergedItemSet());
aNewSet.Put( SdrTextAutoGrowWidthItem(TRUE) );
aNewSet.Put( SdrTextAutoGrowHeightItem(FALSE) );
pObj->SetMergedItemSet(aNewSet);
}
2001-03-08 10:40:25 +00:00
Size aLayoutSize ( GetSize() );
aLayoutSize.Height() -= GetUppBorder() + GetLwrBorder();
aSize.Height() = long ( aRect0.GetSize().Height() * 0.47 );
aSize.Width() = long( aLayoutSize.Width() * 0.7 );
aRect1.SetPos( aTitleRect.TopLeft() );
aRect1.SetSize( aSize );
nObjKind[1] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-03-08 10:40:25 +00:00
InsertPresObj(pObj, nObjKind[1], TRUE, aRect1, bInit, aObjList);
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
if ( pObj )
{
SfxItemSet aNewSet(pObj->GetMergedItemSet());
aNewSet.Put( SdrTextAutoGrowWidthItem(TRUE) );
aNewSet.Put( SdrTextAutoGrowHeightItem(FALSE) );
// #90790#
aNewSet.Put( SdrTextVertAdjustItem(SDRTEXTVERTADJUST_TOP) );
aNewSet.Put( SdrTextHorzAdjustItem(SDRTEXTHORZADJUST_RIGHT) );
pObj->SetMergedItemSet(aNewSet);
}
2001-03-08 10:40:25 +00:00
aSize.Height() = aRect0.GetSize().Height();
Point aPos( aTitleRect.TopLeft() );
aPos.Y() += long ( aSize.Height() * 0.53 );
aRect2.SetPos( aPos );
aSize.Height() = long ( aRect0.GetSize().Height() * 0.47 );
aRect2.SetSize( aSize );
nObjKind[2] = PRESOBJ_CHART;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2]);
2001-03-08 10:40:25 +00:00
InsertPresObj(pObj, nObjKind[2], FALSE, aRect2, bInit, aObjList);
}
break;
case AUTOLAYOUT_VERTICAL_TITLE_VERTICAL_OUTLINE:
{
Size aSize( aRect0.GetSize().Height(), aRect1.BottomLeft().Y() - aRect0.TopLeft().Y() );
aRect0.SetSize( aSize );
aRect0.SetPos( aTitleRect.TopRight() - Point( aSize.Width(), 0 ) );
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-03-08 10:40:25 +00:00
InsertPresObj(pObj, nObjKind[0], TRUE, aRect0, bInit, aObjList);
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
if ( pObj )
{
SfxItemSet aNewSet(pObj->GetMergedItemSet());
aNewSet.Put( SdrTextAutoGrowWidthItem(TRUE) );
aNewSet.Put( SdrTextAutoGrowHeightItem(FALSE) );
pObj->SetMergedItemSet(aNewSet);
}
2001-03-08 10:40:25 +00:00
Size aLayoutSize ( GetSize() );
aLayoutSize.Height() -= GetUppBorder() + GetLwrBorder();
aSize.Height() = aRect0.GetSize().Height();
aSize.Width() = long( aLayoutSize.Width() * 0.7 );
aRect1.SetPos( aTitleRect.TopLeft() );
aRect1.SetSize( aSize );
nObjKind[1] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-03-08 10:40:25 +00:00
InsertPresObj(pObj, nObjKind[1], TRUE, aRect1, bInit, aObjList);
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
if ( pObj )
{
SfxItemSet aNewSet(pObj->GetMergedItemSet());
aNewSet.Put( SdrTextAutoGrowWidthItem(TRUE) );
aNewSet.Put( SdrTextAutoGrowHeightItem(FALSE) );
// #90790#
aNewSet.Put( SdrTextVertAdjustItem(SDRTEXTVERTADJUST_TOP) );
aNewSet.Put( SdrTextHorzAdjustItem(SDRTEXTHORZADJUST_RIGHT) );
pObj->SetMergedItemSet(aNewSet);
}
2001-03-08 10:40:25 +00:00
}
break;
2001-02-26 09:20:50 +00:00
case AUTOLAYOUT_TITLE_VERTICAL_OUTLINE:
{
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
nObjKind[1] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], TRUE, aRect1, bInit, aObjList);
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
if ( pObj )
{
SfxItemSet aNewSet(pObj->GetMergedItemSet());
aNewSet.Put( SdrTextAutoGrowWidthItem(TRUE) );
aNewSet.Put( SdrTextAutoGrowHeightItem(FALSE) );
// #90790#
aNewSet.Put( SdrTextVertAdjustItem(SDRTEXTVERTADJUST_TOP) );
aNewSet.Put( SdrTextHorzAdjustItem(SDRTEXTHORZADJUST_RIGHT) );
pObj->SetMergedItemSet(aNewSet);
}
2001-02-26 09:20:50 +00:00
}
break;
case AUTOLAYOUT_TITLE_VERTICAL_OUTLINE_CLIPART:
{
aLayoutSize.Width() = long (aLayoutSize.Width() * 0.488);
aRect1 = Rectangle (aLayoutPos, aLayoutSize);
aLayoutPos.X() = long (aLayoutPos.X() + aLayoutSize.Width() * 1.05);
aRect2 = Rectangle (aLayoutPos, aLayoutSize);
nObjKind[0] = PRESOBJ_TITLE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[0]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[0], FALSE, aRect0, bInit, aObjList);
nObjKind[1] = PRESOBJ_GRAPHIC;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[1]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[1], FALSE, aRect1, bInit, aObjList);
nObjKind[2] = PRESOBJ_OUTLINE;
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2]);
2001-02-26 09:20:50 +00:00
InsertPresObj(pObj, nObjKind[2], TRUE, aRect2, bInit, aObjList);
2001-06-22 10:24:53 +00:00
pObj = GetPresObj(nObjKind[2]);
if ( pObj )
{
SfxItemSet aNewSet(pObj->GetMergedItemSet());
aNewSet.Put( SdrTextAutoGrowWidthItem(TRUE) );
aNewSet.Put( SdrTextAutoGrowHeightItem(FALSE) );
// #90790#
aNewSet.Put( SdrTextVertAdjustItem(SDRTEXTVERTADJUST_TOP) );
aNewSet.Put( SdrTextHorzAdjustItem(SDRTEXTHORZADJUST_RIGHT) );
pObj->SetMergedItemSet(aNewSet);
}
2000-09-18 23:16:46 +00:00
}
break;
default:
break;
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
// now delete all empty presentation objects that are no longer
// used by the new layout and then make the generated presentation
// object list the one that is used by the page
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
PresentationObjectList::iterator aIter( maPresObjList.begin() );
const PresentationObjectList::iterator aEnd( maPresObjList.end() );
const PresentationObjectList::iterator aObjListBegin( aObjList.begin() );
const PresentationObjectList::iterator aObjListEnd( aObjList.end() );
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
for(; aIter != aEnd; aIter++)
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( ::std::find( aObjListBegin, aObjListEnd, (*aIter) ) == aObjListEnd )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if ( (*aIter).mpObject->IsEmptyPresObj() )
{
delete RemoveObject( (*aIter).mpObject->GetOrdNum() );
}
2000-09-18 23:16:46 +00:00
}
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
maPresObjList.swap( aObjList );
}
2000-09-18 23:16:46 +00:00
bOwnArrangement = FALSE;
2001-03-19 08:53:25 +00:00
}
2000-09-18 23:16:46 +00:00
/*************************************************************************
|*
|* Objekt einfuegen
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
void SdPage::NbcInsertObject(SdrObject* pObj, ULONG nPos, const SdrInsertReason* pReason)
2000-09-18 23:16:46 +00:00
{
FmFormPage::NbcInsertObject(pObj, nPos, pReason);
((SdDrawDocument*) pModel)->InsertObject(pObj, this);
SdrLayerID nId = pObj->GetLayer();
if( bMaster )
{
if( nId == 0 )
pObj->NbcSetLayer( 2 ); // wrong layer. corrected to BackgroundObj layer
}
else
{
if( nId == 2 )
pObj->NbcSetLayer( 0 ); // wrong layer. corrected to layout layer
}
}
/*************************************************************************
|*
|* Objekt loeschen
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
SdrObject* SdPage::RemoveObject(ULONG nObjNum)
2000-09-18 23:16:46 +00:00
{
SdrObject* pObj = FmFormPage::RemoveObject(nObjNum);
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if(pObj && (pObj->GetUserCall()!=this) && IsPresObj(pObj))
2000-09-18 23:16:46 +00:00
{
// Objekt hat keinen UserCall auf diese Seite, es ist jedoch noch in
// der PresObjList eingetragen -> austragen
Changed(*pObj, SDRUSERCALL_REMOVED, pObj->GetLastBoundRect());
2000-09-18 23:16:46 +00:00
}
((SdDrawDocument*) pModel)->RemoveObject(pObj, this);
return(pObj);
}
/*************************************************************************
|*
|* Objekt loeschen, ohne Broadcast
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
SdrObject* SdPage::NbcRemoveObject(ULONG nObjNum)
2000-09-18 23:16:46 +00:00
{
SdrObject* pObj = FmFormPage::NbcRemoveObject(nObjNum);
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if (pObj && (pObj->GetUserCall()!=this) && IsPresObj(pObj) )
2000-09-18 23:16:46 +00:00
{
// Objekt hat keinen UserCall auf diese Seite, es ist jedoch noch in
// der PresObjList eingetragen -> austragen
Changed(*pObj, SDRUSERCALL_REMOVED, pObj->GetLastBoundRect());
2000-09-18 23:16:46 +00:00
}
((SdDrawDocument*) pModel)->RemoveObject(pObj, this);
return(pObj);
}
/*************************************************************************
|*
|*
|*
\************************************************************************/
// #95876# Also overload ReplaceObject methods to realize when
// objects are removed with this mechanism instead of RemoveObject
SdrObject* SdPage::NbcReplaceObject(SdrObject* pNewObj, ULONG nObjNum)
{
SdrObject* pOldObj = FmFormPage::NbcReplaceObject(pNewObj, nObjNum);
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if(pOldObj && (pOldObj->GetUserCall()!=this) && IsPresObj(pOldObj))
Changed(*pOldObj, SDRUSERCALL_REMOVED, pOldObj->GetLastBoundRect());
return pOldObj;
}
// #95876# Also overload ReplaceObject methods to realize when
// objects are removed with this mechanism instead of RemoveObject
SdrObject* SdPage::ReplaceObject(SdrObject* pNewObj, ULONG nObjNum)
{
SdrObject* pOldObj = FmFormPage::ReplaceObject(pNewObj, nObjNum);
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if(pOldObj && (pOldObj->GetUserCall()!=this) && IsPresObj(pOldObj))
Changed(*pOldObj, SDRUSERCALL_REMOVED, pOldObj->GetLastBoundRect());
return pOldObj;
}
2000-09-18 23:16:46 +00:00
/*************************************************************************
|*
|*
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
void SdPage::SetSize(const Size& aSize)
2000-09-18 23:16:46 +00:00
{
Size aOldSize = GetSize();
if (aSize != aOldSize)
{
FmFormPage::SetSize(aSize);
AdjustBackgroundSize();
if (aOldSize.Height() == 10 && aOldSize.Width() == 10)
{
// Die Seite bekommt erstmalig eine gueltige Groesse gesetzt,
// daher wird nun die Orientation initialisiert
if (aSize.Width() > aSize.Height())
{
eOrientation = ORIENTATION_LANDSCAPE;
}
else
{
eOrientation = ORIENTATION_PORTRAIT;
}
}
}
}
/*************************************************************************
|*
|*
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
void SdPage::SetBorder(INT32 nLft, INT32 nUpp, INT32 nRgt, INT32 nLwr)
2000-09-18 23:16:46 +00:00
{
if (nLft != GetLftBorder() || nUpp != GetUppBorder() ||
nRgt != GetRgtBorder() || nLwr != GetLwrBorder() )
{
FmFormPage::SetBorder(nLft, nUpp, nRgt, nLwr);
AdjustBackgroundSize();
}
}
/*************************************************************************
|*
|*
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
void SdPage::SetLftBorder(INT32 nBorder)
2000-09-18 23:16:46 +00:00
{
if (nBorder != GetLftBorder() )
{
FmFormPage::SetLftBorder(nBorder);
AdjustBackgroundSize();
}
}
/*************************************************************************
|*
|*
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
void SdPage::SetRgtBorder(INT32 nBorder)
2000-09-18 23:16:46 +00:00
{
if (nBorder != GetRgtBorder() )
{
FmFormPage::SetRgtBorder(nBorder);
AdjustBackgroundSize();
}
}
/*************************************************************************
|*
|*
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
void SdPage::SetUppBorder(INT32 nBorder)
2000-09-18 23:16:46 +00:00
{
if (nBorder != GetUppBorder() )
{
FmFormPage::SetUppBorder(nBorder);
AdjustBackgroundSize();
}
}
/*************************************************************************
|*
|*
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
void SdPage::SetLwrBorder(INT32 nBorder)
2000-09-18 23:16:46 +00:00
{
if (nBorder != GetLwrBorder() )
{
FmFormPage::SetLwrBorder(nBorder);
AdjustBackgroundSize();
}
}
/*************************************************************************
|*
|* Setzt BackgroundFullSize und ruft dann AdjustBackground auf
|*
\************************************************************************/
void SdPage::SetBackgroundFullSize( BOOL bIn )
{
if( bIn != bBackgroundFullSize )
{
bBackgroundFullSize = bIn;
AdjustBackgroundSize();
}
}
/*************************************************************************
|*
|* Alle Objekte an neue Seitengroesse anpassen
|*
|* bScaleAllObj: Alle Objekte werden in die neue Flaeche innerhalb der
|* Seitenraender skaliert. Dabei werden die Position, Groesse und bei
|* Praesentationsobjekten auf der MasterPage auch die Schrifthoehe der
|* Praesentationsvorlagen skaliert.
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
void SdPage::ScaleObjects(const Size& rNewPageSize, const Rectangle& rNewBorderRect, BOOL bScaleAllObj)
2000-09-18 23:16:46 +00:00
{
bOwnArrangement = TRUE;
bScaleObjects = bScaleAllObj;
SdrObject* pObj = NULL;
Point aRefPnt(0, 0);
Size aNewPageSize(rNewPageSize);
INT32 nLeft = rNewBorderRect.Left();
INT32 nRight = rNewBorderRect.Right();
INT32 nUpper = rNewBorderRect.Top();
INT32 nLower = rNewBorderRect.Bottom();
// Negative Werte stehen fuer nicht zu aendernde Werte
// -> aktuelle Werte verwenden
if (aNewPageSize.Width() < 0)
{
aNewPageSize.Width() = GetWdt();
}
if (aNewPageSize.Height() < 0)
{
aNewPageSize.Height() = GetHgt();
}
if (nLeft < 0)
{
nLeft = GetLftBorder();
}
if (nRight < 0)
{
nRight = GetRgtBorder();
}
if (nUpper < 0)
{
nUpper = GetUppBorder();
}
if (nLower < 0)
{
nLower = GetLwrBorder();
}
Point aBackgroundPos(nLeft, nUpper);
Size aBackgroundSize(aNewPageSize);
Rectangle aBorderRect (aBackgroundPos, aBackgroundSize);
if (bScaleObjects)
{
aBackgroundSize.Width() -= nLeft + nRight;
aBackgroundSize.Height() -= nUpper + nLower;
aBorderRect.SetSize(aBackgroundSize);
aNewPageSize = aBackgroundSize;
}
long nOldWidth = GetWdt() - GetLftBorder() - GetRgtBorder();
long nOldHeight = GetHgt() - GetUppBorder() - GetLwrBorder();
Fraction aFractX = Fraction(aNewPageSize.Width(), nOldWidth);
Fraction aFractY = Fraction(aNewPageSize.Height(), nOldHeight);
ULONG nObjCnt = (bScaleObjects ? GetObjCount() : 0);
for (ULONG nObj = 0; nObj < nObjCnt; nObj++)
{
BOOL bIsPresObjOnMaster = FALSE;
SfxStyleSheet* pSheet = NULL;
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
// Alle Objekte
pObj = GetObj(nObj);
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if (bMaster && IsPresObj(pObj))
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
// Es ist ein Praesentationsobjekt auf der MasterPage
bIsPresObjOnMaster = TRUE;
2000-09-18 23:16:46 +00:00
}
if (pObj)
{
USHORT nIndexBackground = 0;
// #88084# remember aTopLeft as original TopLeft
Point aTopLeft(pObj->GetCurrentBoundRect().TopLeft());
2000-09-18 23:16:46 +00:00
if (bIsPresObjOnMaster &&
(ePageKind == PK_HANDOUT ||
pObj == GetPresObj(PRESOBJ_BACKGROUND, nIndexBackground)))
{
/**************************************************************
* 1. Praesentationsobjekte auf Handzettelseite sollen nur positioniert werden
* 2. Hintergrundobjekt wird nicht skaliert
**************************************************************/
}
else if (!pObj->IsEdgeObj())
{
/**************************************************************
* Objekt skalieren
**************************************************************/
if (bScaleObjects)
{
// #88084# use aTopLeft as original TopLeft
aRefPnt = aTopLeft;
2000-09-18 23:16:46 +00:00
}
pObj->Resize(aRefPnt, aFractX, aFractY);
if (bScaleObjects)
{
SdrObjKind eObjKind = (SdrObjKind) pObj->GetObjIdentifier();
if (bIsPresObjOnMaster)
{
/**********************************************************
* Praesentationsvorlage: Texthoehe anpassen
**********************************************************/
USHORT nIndexTitle = 0;
USHORT nIndexOutline = 0;
USHORT nIndexNotes = 0;
if (pObj == GetPresObj(PRESOBJ_TITLE, nIndexTitle))
{
SfxStyleSheet* pSheet = GetStyleSheetForPresObj(PRESOBJ_TITLE);
if (pSheet)
{
SfxItemSet& rSet = pSheet->GetItemSet();
2000-11-16 12:55:39 +00:00
SvxFontHeightItem& rOldHgt = (SvxFontHeightItem&) rSet.Get(EE_CHAR_FONTHEIGHT);
2000-09-18 23:16:46 +00:00
ULONG nFontHeight = rOldHgt.GetHeight();
nFontHeight = long(nFontHeight * (double) aFractY);
2000-11-16 12:55:39 +00:00
rSet.Put(SvxFontHeightItem(nFontHeight, 100, EE_CHAR_FONTHEIGHT));
2000-12-20 14:50:13 +00:00
if( SFX_ITEM_AVAILABLE == rSet.GetItemState( EE_CHAR_FONTHEIGHT_CJK ) )
{
rOldHgt = (SvxFontHeightItem&) rSet.Get(EE_CHAR_FONTHEIGHT_CJK);
nFontHeight = rOldHgt.GetHeight();
nFontHeight = long(nFontHeight * (double) aFractY);
rSet.Put(SvxFontHeightItem(nFontHeight, 100, EE_CHAR_FONTHEIGHT_CJK));
}
2000-11-16 12:55:39 +00:00
2000-12-20 14:50:13 +00:00
if( SFX_ITEM_AVAILABLE == rSet.GetItemState( EE_CHAR_FONTHEIGHT_CTL ) )
{
rOldHgt = (SvxFontHeightItem&) rSet.Get(EE_CHAR_FONTHEIGHT_CTL);
nFontHeight = rOldHgt.GetHeight();
nFontHeight = long(nFontHeight * (double) aFractY);
rSet.Put(SvxFontHeightItem(nFontHeight, 100, EE_CHAR_FONTHEIGHT_CTL));
}
2000-11-16 12:55:39 +00:00
2000-09-18 23:16:46 +00:00
pSheet->Broadcast(SfxSimpleHint(SFX_HINT_DATACHANGED));
}
}
else if (pObj == GetPresObj(PRESOBJ_OUTLINE, nIndexOutline))
{
ULONG nHeight = pObj->GetLogicRect().GetSize().Height() / 9;
String aName(GetLayoutName());
aName += sal_Unicode( ' ' );
for (USHORT i=1; i<=9; i++)
{
String aLayoutName(aName);
aLayoutName += String::CreateFromInt32( (sal_Int32)i );
SfxStyleSheet* pSheet = (SfxStyleSheet*)
((SdDrawDocument*) pModel)->GetStyleSheetPool()->
Find(aLayoutName, SD_LT_FAMILY);
if (pSheet)
{
// Neue Fonthoehe berechnen
SfxItemSet aTempSet(pSheet->GetItemSet());
2000-11-16 12:55:39 +00:00
SvxFontHeightItem& rOldHgt = (SvxFontHeightItem&) aTempSet.Get(EE_CHAR_FONTHEIGHT);
2000-09-18 23:16:46 +00:00
ULONG nFontHeight = rOldHgt.GetHeight();
nFontHeight = long(nFontHeight * (double) aFractY);
2000-11-16 12:55:39 +00:00
aTempSet.Put(SvxFontHeightItem(nFontHeight, 100, EE_CHAR_FONTHEIGHT));
2000-12-20 14:50:13 +00:00
if( SFX_ITEM_AVAILABLE == aTempSet.GetItemState( EE_CHAR_FONTHEIGHT_CJK ) )
{
rOldHgt = (SvxFontHeightItem&) aTempSet.Get(EE_CHAR_FONTHEIGHT_CJK);
nFontHeight = rOldHgt.GetHeight();
nFontHeight = long(nFontHeight * (double) aFractY);
aTempSet.Put(SvxFontHeightItem(nFontHeight, 100, EE_CHAR_FONTHEIGHT_CJK));
}
2000-11-16 12:55:39 +00:00
2000-12-20 14:50:13 +00:00
if( SFX_ITEM_AVAILABLE == aTempSet.GetItemState( EE_CHAR_FONTHEIGHT_CTL ) )
{
rOldHgt = (SvxFontHeightItem&) aTempSet.Get(EE_CHAR_FONTHEIGHT_CTL);
nFontHeight = rOldHgt.GetHeight();
nFontHeight = long(nFontHeight * (double) aFractY);
aTempSet.Put(SvxFontHeightItem(nFontHeight, 100, EE_CHAR_FONTHEIGHT_CTL));
}
2000-09-18 23:16:46 +00:00
// Bullet anpassen
((SdStyleSheet*) pSheet)->AdjustToFontHeight(aTempSet, FALSE);
// Sonderbehandlung: die INVALIDS auf NULL-Pointer
// zurueckgesetzen (sonst landen INVALIDs oder
// Pointer auf die DefaultItems in der Vorlage;
// beides wuerde die Attribut-Vererbung unterbinden)
aTempSet.ClearInvalidItems();
// Sonderbehandlung: nur die gueltigen Anteile des
// BulletItems
2000-12-20 14:50:13 +00:00
if (aTempSet.GetItemState(EE_PARA_BULLET) == SFX_ITEM_AVAILABLE)
2000-09-18 23:16:46 +00:00
{
SvxBulletItem aOldBulItem((SvxBulletItem&) pSheet->GetItemSet().Get(EE_PARA_BULLET));
SvxBulletItem& rNewBulItem = (SvxBulletItem&) aTempSet.Get(EE_PARA_BULLET);
aOldBulItem.CopyValidProperties(rNewBulItem);
aTempSet.Put(aOldBulItem);
}
pSheet->GetItemSet().Put(aTempSet);
pSheet->Broadcast(SfxSimpleHint(SFX_HINT_DATACHANGED));
}
}
}
else if (pObj == GetPresObj(PRESOBJ_NOTES, nIndexNotes))
{
SfxStyleSheet* pSheet = GetStyleSheetForPresObj(PRESOBJ_NOTES);
if (pSheet)
{
ULONG nHeight = pObj->GetLogicRect().GetSize().Height();
ULONG nFontHeight = (ULONG) (nHeight * 0.0741);
2000-11-16 12:55:39 +00:00
SfxItemSet& rSet = pSheet->GetItemSet();
rSet.Put( SvxFontHeightItem(nFontHeight, EE_CHAR_FONTHEIGHT ));
rSet.Put( SvxFontHeightItem(nFontHeight, EE_CHAR_FONTHEIGHT_CJK ));
rSet.Put( SvxFontHeightItem(nFontHeight, EE_CHAR_FONTHEIGHT_CTL ));
2000-09-18 23:16:46 +00:00
pSheet->Broadcast(SfxSimpleHint(SFX_HINT_DATACHANGED));
}
}
}
else if ( eObjKind != OBJ_TITLETEXT &&
eObjKind != OBJ_OUTLINETEXT &&
pObj->ISA(SdrTextObj) &&
pObj->GetOutlinerParaObject() )
{
/******************************************************
* Normales Textobjekt: Texthoehe anpassen
******************************************************/
2000-12-20 14:50:13 +00:00
ULONG nScriptType = pObj->GetOutlinerParaObject()->GetTextObject().GetScriptType();
USHORT nWhich = EE_CHAR_FONTHEIGHT;
if ( nScriptType == SCRIPTTYPE_ASIAN )
nWhich = EE_CHAR_FONTHEIGHT_CJK;
else if ( nScriptType == SCRIPTTYPE_COMPLEX )
nWhich = EE_CHAR_FONTHEIGHT_CTL;
// #88084# use more modern method to scale the text height
sal_uInt32 nFontHeight = ((SvxFontHeightItem&)pObj->GetMergedItem(nWhich)).GetHeight();
sal_uInt32 nNewFontHeight = sal_uInt32((double)nFontHeight * (double)aFractY);
pObj->SetMergedItem(SvxFontHeightItem(nNewFontHeight, 100, nWhich));
2000-09-18 23:16:46 +00:00
}
}
}
if (bScaleObjects && !pObj->IsEdgeObj())
{
/**************************************************************
* Objektposition skalieren
**************************************************************/
Point aNewPos;
2000-09-18 23:16:46 +00:00
// #76447# corrected scaling; only distances may be scaled
// #88084# use aTopLeft as original TopLeft
aNewPos.X() = long((aTopLeft.X() - GetLftBorder()) * (double)aFractX) + nLeft;
aNewPos.Y() = long((aTopLeft.Y() - GetUppBorder()) * (double)aFractY) + nUpper;
2000-09-18 23:16:46 +00:00
Size aVec(aNewPos.X() - aTopLeft.X(), aNewPos.Y() - aTopLeft.Y());
2000-09-18 23:16:46 +00:00
if (aVec.Height() != 0 || aVec.Width() != 0)
{
pObj->NbcMove(aVec);
}
Rectangle aBoundRect = pObj->GetCurrentBoundRect();
2000-09-18 23:16:46 +00:00
if (!aBorderRect.IsInside(aBoundRect))
{
/**********************************************************
* Objekt liegt nicht vollstaendig innerhalb der Raender
* -> Position korrigieren
**********************************************************/
Point aOldPos(aBoundRect.TopLeft());
Point aNewPos(aOldPos);
// Position links oben ggf. korrigieren
aNewPos.X() = Max(aNewPos.X(), aBorderRect.Left());
aNewPos.Y() = Max(aNewPos.Y(), aBorderRect.Top());
Size aVec(aNewPos.X() - aOldPos.X(), aNewPos.Y() - aOldPos.Y());
if (aVec.Height() != 0 || aVec.Width() != 0)
{
pObj->NbcMove(aVec);
}
// Position rechts unten ggf. korrigieren
aOldPos = aBoundRect.BottomRight();
aNewPos = aOldPos;
aNewPos.X() = Min(aNewPos.X(), aBorderRect.Right());
aNewPos.Y() = Min(aNewPos.Y(), aBorderRect.Bottom());
aVec = Size(aNewPos.X() - aOldPos.X(), aNewPos.Y() - aOldPos.Y());
if (aVec.Height() != 0 || aVec.Width() != 0)
{
pObj->NbcMove(aVec);
}
}
pObj->SetChanged();
pObj->BroadcastObjectChange();
2000-09-18 23:16:46 +00:00
}
}
}
bOwnArrangement = FALSE;
}
/*************************************************************************
|*
|*
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
BOOL SdPage::InsertPresObj(SdrObject* pObj, PresObjKind eObjKind, BOOL bVertical,
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
Rectangle aRect, BOOL bInit, PresentationObjectList& rObjList)
2000-09-18 23:16:46 +00:00
{
BOOL bIncrement = FALSE;
if (!pObj && bInit)
{
2001-02-26 09:20:50 +00:00
pObj = CreatePresObj(eObjKind, bVertical, aRect);
2000-09-18 23:16:46 +00:00
}
else if ( pObj && (pObj->GetUserCall() || bInit) )
{
if ( pObj->ISA(SdrGrafObj) && !pObj->IsEmptyPresObj() )
( (SdrGrafObj*) pObj)->AdjustToMaxRect( aRect, FALSE );
else
pObj->SetLogicRect(aRect);
pObj->SetUserCall(this);
2001-06-22 10:24:53 +00:00
if ( pObj->ISA(SdrTextObj) )
2000-09-18 23:16:46 +00:00
{
2001-06-22 10:24:53 +00:00
if( ((SdrTextObj*) pObj)->IsVerticalWriting() != bVertical )
{
2001-06-22 10:24:53 +00:00
((SdrTextObj*) pObj)->SetVerticalWriting( bVertical );
2000-09-18 23:16:46 +00:00
// #94826# here make sure the correct anchoring is used when the object
// is re-used but orientation is changed
if(PRESOBJ_OUTLINE == eObjKind)
{
if(bVertical)
{
// vertical activated on once horizontal outline object
((SdrTextObj*) pObj)->SetMergedItem(SdrTextHorzAdjustItem(SDRTEXTHORZADJUST_RIGHT));
}
else
{
// horizontal activated on once vertical outline object
((SdrTextObj*) pObj)->SetMergedItem(SdrTextHorzAdjustItem(SDRTEXTHORZADJUST_BLOCK));
}
}
}
2001-06-22 10:24:53 +00:00
if( !bMaster )
2001-02-26 09:20:50 +00:00
{
2001-06-22 10:24:53 +00:00
if ( ((SdrTextObj*) pObj)->IsAutoGrowHeight() )
{
// switch off AutoGrowHeight, set new MinHeight
SfxItemSet aTempAttr( ((SdDrawDocument*) pModel)->GetPool() );
SdrTextMinFrameHeightItem aMinHeight( aRect.GetSize().Height() );
aTempAttr.Put( aMinHeight );
aTempAttr.Put( SdrTextAutoGrowHeightItem(FALSE) );
pObj->SetMergedItemSet(aTempAttr);
2001-06-22 10:24:53 +00:00
pObj->SetLogicRect(aRect);
// switch on AutoGrowHeight
SfxItemSet aAttr( ((SdDrawDocument*) pModel)->GetPool() );
aAttr.Put( SdrTextAutoGrowHeightItem(TRUE) );
pObj->SetMergedItemSet(aAttr);
2001-06-22 10:24:53 +00:00
}
if ( ((SdrTextObj*) pObj)->IsAutoGrowWidth() )
{
// switch off AutoGrowWidth , set new MinWidth
SfxItemSet aTempAttr( ((SdDrawDocument*) pModel)->GetPool() );
SdrTextMinFrameWidthItem aMinWidth( aRect.GetSize().Width() );
aTempAttr.Put( aMinWidth );
aTempAttr.Put( SdrTextAutoGrowWidthItem(FALSE) );
pObj->SetMergedItemSet(aTempAttr);
2001-06-22 10:24:53 +00:00
pObj->SetLogicRect(aRect);
// switch on AutoGrowWidth
SfxItemSet aAttr( ((SdDrawDocument*) pModel)->GetPool() );
aAttr.Put( SdrTextAutoGrowWidthItem(TRUE) );
pObj->SetMergedItemSet(aAttr);
2001-06-22 10:24:53 +00:00
}
2001-02-26 09:20:50 +00:00
}
2000-09-18 23:16:46 +00:00
}
}
if (pObj)
{
bIncrement = TRUE;
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
rObjList.push_back(PresentationObjectDescriptor(pObj, eObjKind));
2000-09-18 23:16:46 +00:00
if (eObjKind == PRESOBJ_OUTLINE && pObj->IsEmptyPresObj())
{
// Gibt es ev. noch ein Untertitel?
SdrObject* pSubtitle = GetPresObj(PRESOBJ_TEXT);
if (pSubtitle)
{
// Text des Untertitels in das PRESOBJ_OUTLINE setzen
OutlinerParaObject* pOutlParaObj = pSubtitle->GetOutlinerParaObject();
if (pOutlParaObj)
{
if (!pSubtitle->IsEmptyPresObj())
{
// Text umsetzen
::sd::Outliner* pOutl = ( (SdDrawDocument*) pModel )->GetInternalOutliner( TRUE );
2000-09-18 23:16:46 +00:00
pOutl->Clear();
pOutl->SetText( *pOutlParaObj );
pOutl->SetMinDepth(1, TRUE);
pOutlParaObj = pOutl->CreateParaObject();
pObj->SetOutlinerParaObject( pOutlParaObj );
pOutl->Clear();
pObj->SetEmptyPresObj(FALSE);
}
for (USHORT nLevel = 1; nLevel < 10; nLevel++)
{
// Neue Vorlage zuweisen
String aName(aLayoutName);
aName += sal_Unicode( ' ' );
aName += String::CreateFromInt32( nLevel );
SfxStyleSheet* pSheet = (SfxStyleSheet*) pModel->GetStyleSheetPool()->Find(aName, SD_LT_FAMILY);
if (pSheet)
{
if (nLevel == 1)
{
SfxStyleSheet* pSubtitleSheet = GetStyleSheetForPresObj(PRESOBJ_TEXT);
if (pSubtitleSheet)
pOutlParaObj->ChangeStyleSheetName(SD_LT_FAMILY, pSubtitleSheet->GetName(),
pSheet->GetName());
}
pObj->StartListening(*pSheet);
}
}
// LRSpace-Item loeschen
SfxItemSet aSet(((SdDrawDocument*) pModel)->GetPool(), EE_PARA_LRSPACE, EE_PARA_LRSPACE );
aSet.Put(pObj->GetMergedItemSet());
2000-09-18 23:16:46 +00:00
aSet.ClearItem(EE_PARA_LRSPACE);
pObj->SetMergedItemSet(aSet);
2000-09-18 23:16:46 +00:00
// Untertitel loeschen
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
RemovePresObj(pSubtitle);
2000-09-18 23:16:46 +00:00
RemoveObject( pObj->GetOrdNum() );
ReplaceObject( pObj, pSubtitle->GetOrdNum() );
( (SdDrawDocument*) pModel)->RemoveObject( pSubtitle, this );
delete pSubtitle;
}
}
}
else if (eObjKind == PRESOBJ_TEXT && pObj->IsEmptyPresObj())
{
// Gibt es ev. noch ein Gliederungsobjekt?
SdrObject* pOutlineObj = GetPresObj(PRESOBJ_OUTLINE);
if (pOutlineObj)
{
// Text des Gliederungsobjekts in das PRESOBJ_TITLE setzen
OutlinerParaObject* pOutlParaObj = pOutlineObj->GetOutlinerParaObject();
if (pOutlParaObj)
{
if (!pOutlineObj->IsEmptyPresObj())
{
// Text umsetzen
::sd::Outliner* pOutl = ( (SdDrawDocument*) pModel )->GetInternalOutliner();
2000-09-18 23:16:46 +00:00
pOutl->Clear();
pOutl->SetText( *pOutlParaObj );
pOutl->SetMinDepth(0, TRUE);
pOutlParaObj = pOutl->CreateParaObject();
pObj->SetOutlinerParaObject( pOutlParaObj );
pOutl->Clear();
pObj->SetEmptyPresObj(FALSE);
}
// Linken Einzug zuruecksetzen
SfxItemSet aSet(((SdDrawDocument*) pModel)->GetPool(), EE_PARA_LRSPACE, EE_PARA_LRSPACE );
aSet.Put(pObj->GetMergedItemSet());
2000-09-18 23:16:46 +00:00
const SvxLRSpaceItem& rLRItem = (const SvxLRSpaceItem&) aSet.Get(EE_PARA_LRSPACE);
SvxLRSpaceItem aNewLRItem(rLRItem);
aNewLRItem.SetTxtLeft(0);
aSet.Put(aNewLRItem);
pObj->SetMergedItemSet(aSet);
2000-09-18 23:16:46 +00:00
SfxStyleSheet* pSheet = GetStyleSheetForPresObj(PRESOBJ_TEXT);
if (pSheet)
pObj->SetStyleSheet(pSheet, TRUE);
// Gliederungsobjekt loeschen
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
RemovePresObj(pOutlineObj);
2000-09-18 23:16:46 +00:00
RemoveObject( pObj->GetOrdNum() );
ReplaceObject( pObj, pOutlineObj->GetOrdNum() );
( (SdDrawDocument*) pModel)->RemoveObject( pOutlineObj, this );
delete pOutlineObj;
}
}
}
}
return(bIncrement);
}
/*************************************************************************
|*
|* Liefert den PresObjKind eines Objektes zurueck
|*
\************************************************************************/
PresObjKind SdPage::GetPresObjKind(SdrObject* pObj)
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
PresentationObjectList::iterator aIter( FindPresObj( pObj ) );
const PresentationObjectList::iterator aEnd( maPresObjList.end() );
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( aIter != aEnd )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
return (*aIter).meKind;
}
else
{
return PRESOBJ_NONE;
}
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
/*
PresObjKind eObjKind = PRESOBJ_NONE;
if (pObj && IsPresObj(pObj) && pObj->GetObjInventor() == SdrInventor)
{
2000-09-18 23:16:46 +00:00
SdrObjKind eSdrObjKind = (SdrObjKind) pObj->GetObjIdentifier();
if (eSdrObjKind==OBJ_TITLETEXT)
{
eObjKind = PRESOBJ_TITLE;
}
else if (eSdrObjKind==OBJ_OUTLINETEXT)
{
eObjKind = PRESOBJ_OUTLINE;
}
else if (eSdrObjKind==OBJ_TEXT && ePageKind==PK_NOTES)
{
eObjKind = PRESOBJ_NOTES;
}
else if (eSdrObjKind==OBJ_TEXT && ePageKind!=PK_NOTES)
{
eObjKind = PRESOBJ_TEXT;
}
else if (eSdrObjKind==OBJ_GRAF)
{
eObjKind = PRESOBJ_GRAPHIC;
}
else if (eSdrObjKind==OBJ_RECT)
{
eObjKind = PRESOBJ_BACKGROUND;
}
else if (eSdrObjKind==OBJ_PAGE && ePageKind==PK_HANDOUT)
{
eObjKind = PRESOBJ_HANDOUT;
}
else if (eSdrObjKind==OBJ_PAGE && ePageKind!=PK_HANDOUT)
{
eObjKind = PRESOBJ_PAGE;
}
else if (eSdrObjKind==OBJ_OLE2)
{
String aName = ( (SdrOle2Obj*) pObj)->GetProgName();
if (aName.EqualsAscii( "StarChart" ))
{
eObjKind = PRESOBJ_CHART;
}
else if (aName.EqualsAscii( "StarOrg" ))
{
eObjKind = PRESOBJ_ORGCHART;
}
else if (aName.EqualsAscii( "StarCalc" ))
{
eObjKind = PRESOBJ_TABLE;
}
#ifdef STARIMAGE_AVAILABLE
else if (aName.EqualsAscii( "StarImage" ))
{
eObjKind = PRESOBJ_IMAGE;
}
#endif
else
{
eObjKind = PRESOBJ_OBJECT;
}
}
}
return(eObjKind);
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
*/
}
bool SdPage::IsPresObj(const SdrObject* pObj)
{
return FindPresObj( pObj ) != maPresObjList.end();
}
void SdPage::RemovePresObj(const SdrObject* pObj)
{
PresentationObjectList::iterator aIter( FindPresObj( pObj ) );
if( aIter != maPresObjList.end() )
{
maPresObjList.erase( aIter );
}
else
{
DBG_ERROR("presentation object not in list before removal");
}
}
void SdPage::InsertPresObj(SdrObject* pObj, PresObjKind eKind )
{
DBG_ASSERT( pObj, "invalid presentation object inserted!" );
DBG_ASSERT( !IsPresObj(pObj), "presentation object inserted twice!" );
if( pObj )
maPresObjList.push_back( PresentationObjectDescriptor( pObj, eKind ) );
}
PresentationObjectList::iterator SdPage::FindPresObj(const SdrObject* pObj)
{
PresentationObjectList::iterator aIter( maPresObjList.begin() );
const PresentationObjectList::iterator aEnd( maPresObjList.end() );
while( aIter != aEnd )
{
if( (*aIter).mpObject == pObj )
break;
aIter++;
}
return aIter;
2000-09-18 23:16:46 +00:00
}
/*************************************************************************
|*
|* BASIC anfordern
|*
\************************************************************************/
2001-02-26 09:20:50 +00:00
void SdPage::RequestBasic()
2000-09-18 23:16:46 +00:00
{
::sd::DrawDocShell* pDocShell =
static_cast<SdDrawDocument*>(GetModel())->GetDocSh();
2000-09-18 23:16:46 +00:00
if (pDocShell)
{
SetBasic( pDocShell->GetBasicManager()->GetLib(0) );
}
}
/*************************************************************************
|*
|* Text des Objektes setzen
|*
\************************************************************************/
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
void SdPage::SetObjText(SdrTextObj* pObj, SdrOutliner* pOutliner, PresObjKind eObjKind, const String& rString )
2000-09-18 23:16:46 +00:00
{
if ( pObj )
{
DBG_ASSERT( pObj->ISA(SdrTextObj), "SetObjText: Kein SdrTextObj!" );
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
::Outliner* pOutl = pOutliner;
2000-09-18 23:16:46 +00:00
if (!pOutliner)
{
SfxItemPool* pPool = ((SdDrawDocument*) GetModel())->GetDrawOutliner().GetEmptyItemSet().GetPool();
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
pOutl = new ::Outliner( pPool, OUTLINERMODE_OUTLINEOBJECT );
2002-07-26 07:32:44 +00:00
pOutl->SetRefDevice( SD_MOD()->GetRefDevice( *( (SdDrawDocument*) GetModel() )->GetDocSh() ) );
2000-09-18 23:16:46 +00:00
pOutl->SetEditTextObjectPool(pPool);
pOutl->SetStyleSheetPool((SfxStyleSheetPool*)GetModel()->GetStyleSheetPool());
pOutl->SetMinDepth(0);
pOutl->EnableUndo(FALSE);
pOutl->SetUpdateMode( FALSE );
}
USHORT nOutlMode = pOutl->GetMode();
USHORT nMinDepth = pOutl->GetMinDepth();
Size aPaperSize = pOutl->GetPaperSize();
BOOL bUpdateMode = pOutl->GetUpdateMode();
pOutl->SetUpdateMode(FALSE);
pOutl->SetParaAttribs( 0, pOutl->GetEmptyItemSet() );
// #95114# Always set the object's StyleSheet at the Outliner to
// use the current objects StyleSheet. Thus it's the same as in
// SetText(...).
// #95114# Moved this implementation from where SetObjText(...) was called
// to inside this method to work even when outliner is fetched here.
pOutl->SetStyleSheet(0, pObj->GetStyleSheet());
2000-09-18 23:16:46 +00:00
String aString;
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
switch( eObjKind )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
case PRESOBJ_OUTLINE:
{
pOutl->Init( OUTLINERMODE_OUTLINEOBJECT );
pOutl->SetMinDepth(1);
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aString += sal_Unicode( '\t' );
aString += rString;
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if (bMaster)
{
pOutl->SetStyleSheet( 0, GetStyleSheetForPresObj(eObjKind) );
aString += String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\n\t\t" ));
aString += String ( SdResId( STR_PRESOBJ_MPOUTLLAYER2 ) );
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aString += String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\n\t\t\t" ));
aString += String ( SdResId( STR_PRESOBJ_MPOUTLLAYER3 ) );
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aString += String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\n\t\t\t\t" ));
aString += String ( SdResId( STR_PRESOBJ_MPOUTLLAYER4 ) );
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aString += String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\n\t\t\t\t\t" ));
aString += String ( SdResId( STR_PRESOBJ_MPOUTLLAYER5 ) );
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aString += String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\n\t\t\t\t\t\t" ));
aString += String ( SdResId( STR_PRESOBJ_MPOUTLLAYER6 ) );
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aString += String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\n\t\t\t\t\t\t\t" ));
aString += String ( SdResId( STR_PRESOBJ_MPOUTLLAYER7 ) );
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aString += String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\n\t\t\t\t\t\t\t\t" ));
aString += String ( SdResId( STR_PRESOBJ_MPOUTLLAYER8 ) );
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
aString += String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "\n\t\t\t\t\t\t\t\t\t" ));
aString += String ( SdResId( STR_PRESOBJ_MPOUTLLAYER9 ) );
}
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
break;
case PRESOBJ_TITLE:
{
pOutl->Init( OUTLINERMODE_TITLEOBJECT );
pOutl->SetMinDepth(0);
aString += rString;
}
break;
default:
{
pOutl->Init( OUTLINERMODE_TEXTOBJECT );
pOutl->SetMinDepth(0);
aString += rString;
// check if we need to add a text field
SvxFieldData* pData = NULL;
switch( eObjKind )
{
case PRESOBJ_HEADER:
pData = new SvxHeaderField();
break;
case PRESOBJ_FOOTER:
pData = new SvxFooterField();
break;
case PRESOBJ_SLIDENUMBER:
pData = new SvxPageField();
break;
case PRESOBJ_DATETIME:
pData = new SvxDateTimeField();
break;
}
if( pData )
{
ESelection e;
SvxFieldItem aField( *pData );
pOutl->QuickInsertField(aField,e);
delete pData;
}
}
break;
2000-09-18 23:16:46 +00:00
}
pOutl->SetPaperSize( pObj->GetLogicRect().GetSize() );
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
if( aString.Len() )
pOutl->SetText( aString, pOutl->GetParagraph( 0 ) );
2000-09-18 23:16:46 +00:00
// MT: Wird nicht gebraucht...
// pOutl->SetUpdateMode(TRUE);
( (SdrTextObj*) pObj)->SetOutlinerParaObject( pOutl->CreateParaObject() );
if (!pOutliner)
{
delete pOutl;
pOutl = NULL;
}
else
{
// Outliner restaurieren
pOutl->Init( nOutlMode );
pOutl->SetParaAttribs( 0, pOutl->GetEmptyItemSet() );
pOutl->SetUpdateMode( bUpdateMode );
pOutl->SetMinDepth( nMinDepth );
pOutl->SetPaperSize( aPaperSize );
}
}
}
/*************************************************************************
|*
|* Link & Daten von einem VControl empfangen
|*
\************************************************************************/
void SdPage::SetLinkData(const String& rLinkName, const String& rLinkData)
{
}
/*************************************************************************
|*
|* Layoutname setzen
|*
\************************************************************************/
void SdPage::SetLayoutName(String aName)
{
aLayoutName = aName;
if( bMaster )
{
String aSep( RTL_CONSTASCII_USTRINGPARAM(SD_LT_SEPARATOR) );
USHORT nPos = aLayoutName.Search( aSep );
if ( nPos != STRING_NOTFOUND )
{
aPageName = aLayoutName;
aPageName.Erase( nPos );
}
}
}
/*************************************************************************
|*
|* Seitenname zurueckgeben und ggf. generieren
|*
\************************************************************************/
const String& SdPage::GetName()
{
if (aPageName.Len() == 0)
{
if ((ePageKind == PK_STANDARD || ePageKind == PK_NOTES) &&
!bMaster)
{
/**********************************************************************
* Defaultname fuer Handzettelseiten
**********************************************************************/
// Seitennummer per Methode holen, denn die Drawing Engine laesst
// die Nummern bis zur naechsten Anforderung unsortiert
USHORT nNum = (GetPageNum() + 1) / 2;
BOOL bUpper = FALSE;
aCreatedPageName = String(SdResId(STR_PAGE));
aCreatedPageName += sal_Unicode( ' ' );
aCreatedPageName += ((SdDrawDocument*) GetModel())->CreatePageNumValue(nNum);
}
else
{
/******************************************************************
* Defaultname fuer Handzettelseiten
******************************************************************/
aCreatedPageName = String(SdResId(STR_LAYOUT_DEFAULT_NAME));
}
}
else
{
aCreatedPageName = aPageName;
}
if (ePageKind == PK_NOTES)
{
aCreatedPageName += sal_Unicode( ' ' );
aCreatedPageName += String(SdResId(STR_NOTES));
}
else if (ePageKind == PK_HANDOUT && bMaster)
{
aCreatedPageName += String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( " (" ));
aCreatedPageName += String(SdResId(STR_HANDOUT));
aCreatedPageName += sal_Unicode( ')' );
}
return aCreatedPageName;
}
/*************************************************************************
|*
|*
|*
\************************************************************************/
void SdPage::AdjustBackgroundSize()
{
SdrObject* pObj = GetPresObj(PRESOBJ_BACKGROUND);
if (pObj)
{
// Hintergrund-Objekt verschieben
pObj->SetMoveProtect(FALSE);
pObj->SetResizeProtect(FALSE);
bOwnArrangement = TRUE;
Point aBackgroundPos;
Size aBackgroundSize( GetSize() );
if( !bBackgroundFullSize )
{
aBackgroundPos = Point( GetLftBorder(), GetUppBorder() );
aBackgroundSize.Width() -= GetLftBorder() + GetRgtBorder() - 1;
aBackgroundSize.Height() -= GetUppBorder() + GetLwrBorder() - 1;
}
Rectangle aBackgroundRect (aBackgroundPos, aBackgroundSize);
pObj->SetLogicRect(aBackgroundRect);
bOwnArrangement = FALSE;
pObj->SetMoveProtect(TRUE);
pObj->SetResizeProtect(TRUE);
}
}
/*************************************************************************
|*
|*
|*
\************************************************************************/
void SdPage::SetOrientation( Orientation eOrient)
{
eOrientation = eOrient;
}
2000-09-18 23:16:46 +00:00
/*************************************************************************
|*
|*
|*
\************************************************************************/
Orientation SdPage::GetOrientation() const
{
return eOrientation;
}
2000-09-18 23:16:46 +00:00
/*************************************************************************
|*
|* Liefert den Default-Text eines PresObjektes zurueck
|*
\************************************************************************/
String SdPage::GetPresObjText(PresObjKind eObjKind)
{
String aString;
if (eObjKind == PRESOBJ_TITLE)
{
if (bMaster)
{
if (ePageKind != PK_NOTES)
{
aString = String ( SdResId( STR_PRESOBJ_MPTITLE ) );
}
else
{
aString = String ( SdResId( STR_PRESOBJ_MPNOTESTITLE ) );
}
}
else
{
aString = String ( SdResId( STR_PRESOBJ_TITLE ) );
}
}
else if (eObjKind == PRESOBJ_OUTLINE)
{
if (bMaster)
{
aString = String ( SdResId( STR_PRESOBJ_MPOUTLINE ) );
}
else
{
aString = String ( SdResId( STR_PRESOBJ_OUTLINE ) );
}
}
else if (eObjKind == PRESOBJ_NOTES)
{
if (bMaster)
{
aString = String ( SdResId( STR_PRESOBJ_MPNOTESTEXT ) );
}
else
{
aString = String ( SdResId( STR_PRESOBJ_NOTESTEXT ) );
}
}
else if (eObjKind == PRESOBJ_TEXT)
{
aString = String ( SdResId( STR_PRESOBJ_TEXT ) );
}
else if (eObjKind == PRESOBJ_GRAPHIC)
{
aString = String ( SdResId( STR_PRESOBJ_GRAPHIC ) );
}
else if (eObjKind == PRESOBJ_OBJECT)
{
aString = String ( SdResId( STR_PRESOBJ_OBJECT ) );
}
else if (eObjKind == PRESOBJ_CHART)
{
aString = String ( SdResId( STR_PRESOBJ_CHART ) );
}
else if (eObjKind == PRESOBJ_ORGCHART)
{
aString = String ( SdResId( STR_PRESOBJ_ORGCHART ) );
}
else if (eObjKind == PRESOBJ_TABLE)
{
aString = String ( SdResId( STR_PRESOBJ_TABLE ) );
}
#ifdef STARIMAGE_AVAILABLE
else if (eObjKind == PRESOBJ_IMAGE)
{
aString = String ( SdResId( STR_PRESOBJ_IMAGE ) );
}
#endif
return(aString);
}
extern uno::Reference< uno::XInterface > createUnoPageImpl( SdPage* pPage );
uno::Reference< uno::XInterface > SdPage::createUnoPage()
{
2000-11-30 10:25:28 +00:00
return createUnoPageImpl( this );
}
INTEGRATION: CWS interop12 (1.35.118); FILE MERGED 2004/03/24 18:09:17 cl 1.35.118.21: #i20949# correctly delete shapes from presobjlist 2004/03/23 18:29:44 cl 1.35.118.20: #i20949# correctly delete shapes from presobjlist 2004/03/22 14:35:48 cl 1.35.118.19: fixed a merge problem 2004/03/19 13:20:29 cl 1.35.118.18: fixed merge conflict 2004/03/17 10:23:17 cl 1.35.118.17: RESYNC: (1.38-1.39); FILE MERGED 2004/02/25 16:00:55 cl 1.35.118.16: #115632# remove disposed SdrObjects from the deletet presentation object list 2004/02/17 12:24:30 cl 1.35.118.15: fixed merge problems 2004/02/13 22:27:46 cl 1.35.118.14: RESYNC: (1.37-1.38); FILE MERGED 2004/02/05 15:15:54 cl 1.35.118.13: #i20949# added header&footer support for impress 2004/01/20 17:08:42 cl 1.35.118.12: #i20949# use SvxAdjustItem for header&footer 2004/01/20 16:13:01 cl 1.35.118.11: #i20949# use displayinfo 2003/12/09 23:37:57 cl 1.35.118.10: RESYNC: (1.35-1.37); FILE MERGED 2003/11/25 12:40:21 cl 1.35.118.9: fixed unix compiler problems 2003/11/24 15:25:48 cl 1.35.118.8: fixed unix compile problems 2003/11/20 12:16:47 cl 1.35.118.7: #i20949# added header&footer support for impress 2003/11/19 14:53:43 cl 1.35.118.6: #i20949# header objects on masterpage now have the default style 2003/11/07 09:13:13 cl 1.35.118.5: #i20949# added header&footer support for impress 2003/11/05 17:05:53 cl 1.35.118.4: #i20949# added support for header&footer 2003/11/04 16:38:03 cl 1.35.118.3: #i20949# added header&footer support for impress 2003/10/30 11:18:35 cl 1.35.118.2: #i20949# added header&footer support for impress 2003/09/19 14:38:20 cl 1.35.118.1: #111385# initial version
2004-03-30 14:44:43 +00:00
HeaderFooterSettings& SdPage::getHeaderFooterSettings()
{
if( ePageKind == PK_HANDOUT && !bMaster )
{
return ((SdPage*)GetMasterPage(0))->maHeaderFooterSettings;
}
else
{
return maHeaderFooterSettings;
}
}
bool SdPage::checkVisibility( SdrPaintProcRec* pRecord, bool bEdit )
{
if( !FmFormPage::checkVisibility( pRecord, bEdit ) )
return false;
SdrObject* pObj = pRecord->pObj;
if( pObj == NULL )
return false;
const bool bIsPrinting = pRecord->rOut.GetOutDev()->GetOutDevType() == OUTDEV_PRINTER;
const SdrPageView* pPageView = pRecord->rInfoRec.pPV;
const ::sdr::contact::DisplayInfo* pDisplayInfo = pPageView ? pPageView->GetCurrentPaintingDisplayInfo() : 0;
const bool bIsInsidePageObj = pPageView && pDisplayInfo && pPageView->GetPage() != pDisplayInfo->GetProcessedPage();
// empty presentation objects only visible during edit mode
if( (bIsPrinting || !bEdit || bIsInsidePageObj ) && pObj->IsEmptyPresObj() )
{
if( (pObj->GetObjInventor() != SdrInventor) || ( (pObj->GetObjIdentifier() != OBJ_RECT) && (pObj->GetObjIdentifier() != OBJ_PAGE) ) )
return false;
}
if( ( pObj->GetObjInventor() == SdrInventor ) && ( pObj->GetObjIdentifier() == OBJ_TEXT ) )
{
SdPage* pPage = (SdPage*)pObj->GetPage();
if( pPage )
{
PresObjKind eKind = pPage->GetPresObjKind(pObj);
if((eKind == PRESOBJ_FOOTER) || (eKind == PRESOBJ_HEADER) || (eKind == PRESOBJ_DATETIME) || (eKind == PRESOBJ_SLIDENUMBER) )
{
const bool bMasterObj = (pRecord->rInfoRec.nPaintMode & SDRPAINTMODE_MASTERPAGE) != 0;
if( bMasterObj || ( pPage->GetPageKind() == PK_HANDOUT && bIsPrinting ) )
{
if( pPageView )
{
// get the page that is currently painted
SdPage* pPage;
// if we paint a display info, we need to get that page
if( pDisplayInfo )
pPage = (SdPage*) pDisplayInfo->GetProcessedPage();
else
pPage = (SdPage*) pPageView->GetPage();
if( pPage )
{
// if we are not on a masterpage, see if we have to draw this header&footer object at all
const sd::HeaderFooterSettings& rSettings = pPage->getHeaderFooterSettings();
switch( eKind )
{
case PRESOBJ_FOOTER:
return rSettings.mbFooterVisible;
case PRESOBJ_HEADER:
return rSettings.mbHeaderVisible;
case PRESOBJ_DATETIME:
return rSettings.mbDateTimeVisible;
case PRESOBJ_SLIDENUMBER:
return rSettings.mbSlideNumberVisible;
}
}
}
}
}
}
}
return true;
}
HeaderFooterSettings::HeaderFooterSettings()
{
mbHeaderVisible = true;
mbFooterVisible = true;
mbSlideNumberVisible = false;
mbDateTimeVisible = true;
mbDateTimeIsFixed = true;
meDateTimeFormat = SVXDATEFORMAT_A;
}
bool HeaderFooterSettings::operator==( const HeaderFooterSettings& rSettings )
{
return (mbHeaderVisible == rSettings.mbHeaderVisible) &&
(maHeaderText == rSettings.maHeaderText) &&
(mbFooterVisible == rSettings.mbFooterVisible) &&
(maFooterText == rSettings.maFooterText) &&
(mbSlideNumberVisible == rSettings.mbSlideNumberVisible) &&
(mbDateTimeVisible == rSettings.mbDateTimeVisible) &&
(mbDateTimeIsFixed == rSettings.mbDateTimeIsFixed) &&
(meDateTimeFormat == rSettings.meDateTimeFormat) &&
(maDateTimeText == rSettings.maDateTimeText);
}
// stl functions to use with the presentation object list
void sd::removePresObj_func::operator() (PresentationObjectDescriptor x)
{
delete mpPage->RemoveObject(x.mpObject->GetOrdNum());
}