2010-10-12 15:51:52 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-27 16:10:40 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2004-09-20 08:51:14 +00:00
|
|
|
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
|
|
|
|
#include <com/sun/star/beans/XPropertySet.hpp>
|
|
|
|
#include <com/sun/star/container/XNameAccess.hpp>
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2004-01-20 10:19:32 +00:00
|
|
|
#include "futempl.hxx"
|
|
|
|
|
2010-01-08 18:32:51 +01:00
|
|
|
#include <editeng/editdata.hxx>
|
2013-02-12 13:41:53 -05:00
|
|
|
#include <editeng/bulletitem.hxx>
|
2013-10-22 15:58:57 +03:00
|
|
|
#include <svx/svxids.hrc>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include <sfx2/bindings.hxx>
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <svl/aeitem.hxx>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include <sfx2/dispatch.hxx>
|
|
|
|
#include <vcl/msgbox.hxx>
|
2010-01-08 18:32:51 +01:00
|
|
|
#include <editeng/eeitem.hxx>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include <sfx2/request.hxx>
|
2010-01-08 18:32:51 +01:00
|
|
|
#include <editeng/numitem.hxx>
|
|
|
|
#include <editeng/editeng.hxx>
|
|
|
|
#include <editeng/lrspitem.hxx>
|
2001-04-26 10:50:12 +00:00
|
|
|
#include <svx/svdopage.hxx>
|
|
|
|
#include <svx/svditer.hxx>
|
2011-12-06 02:24:51 +01:00
|
|
|
#include <svx/sdr/properties/properties.hxx>
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2004-10-04 17:35:22 +00:00
|
|
|
#include <sfx2/viewfrm.hxx>
|
2001-10-26 11:44:09 +00:00
|
|
|
#include <svx/xlndsit.hxx>
|
|
|
|
#include <svx/xlnstit.hxx>
|
|
|
|
#include <svx/xlnedit.hxx>
|
2010-07-19 17:13:56 +02:00
|
|
|
#include "app.hrc"
|
2000-09-18 16:07:07 +00:00
|
|
|
#include "stlsheet.hxx"
|
2001-04-26 10:50:12 +00:00
|
|
|
#include "sdpage.hxx"
|
2000-09-18 16:07:07 +00:00
|
|
|
#include "stlpool.hxx"
|
2013-04-19 15:49:58 -04:00
|
|
|
#include "sdmod.hxx"
|
2004-01-20 10:19:32 +00:00
|
|
|
#include "View.hxx"
|
|
|
|
#include "Window.hxx"
|
2000-09-18 16:07:07 +00:00
|
|
|
#include "drawview.hxx"
|
|
|
|
#include "drawdoc.hxx"
|
2004-01-20 10:19:32 +00:00
|
|
|
#include "DrawDocShell.hxx"
|
|
|
|
#include "DrawViewShell.hxx"
|
|
|
|
#include "ViewShell.hxx"
|
2000-09-18 16:07:07 +00:00
|
|
|
#include "res_bmp.hrc"
|
|
|
|
#include "glob.hrc"
|
2013-10-22 15:58:57 +03:00
|
|
|
#include "prlayout.hxx"
|
|
|
|
#include "prltempl.hrc"
|
2012-02-12 19:18:44 +01:00
|
|
|
#include <svx/xfillit.hxx>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include "sdresid.hxx"
|
2004-01-20 10:19:32 +00:00
|
|
|
#include "OutlineViewShell.hxx"
|
2000-09-18 16:07:07 +00:00
|
|
|
#include "strings.hrc"
|
|
|
|
#include "helpids.h"
|
2006-12-12 16:25:05 +00:00
|
|
|
#include "sdabstdlg.hxx"
|
2014-05-22 00:36:41 +09:00
|
|
|
#include <boost/scoped_ptr.hpp>
|
2006-12-12 16:25:05 +00:00
|
|
|
|
2008-03-12 10:40:34 +00:00
|
|
|
using namespace com::sun::star::uno;
|
|
|
|
using namespace com::sun::star::container;
|
|
|
|
using namespace com::sun::star::beans;
|
|
|
|
using namespace com::sun::star::style;
|
|
|
|
|
2006-12-12 16:25:05 +00:00
|
|
|
namespace sd
|
|
|
|
{
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
TYPEINIT1( FuTemplate, FuPoor );
|
|
|
|
|
2004-01-20 10:19:32 +00:00
|
|
|
FuTemplate::FuTemplate (
|
|
|
|
ViewShell* pViewSh,
|
|
|
|
::sd::Window* pWin,
|
|
|
|
::sd::View* pView,
|
|
|
|
SdDrawDocument* pDoc,
|
|
|
|
SfxRequest& rReq )
|
|
|
|
: FuPoor( pViewSh, pWin, pView, pDoc, rReq )
|
2005-12-14 16:05:04 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-10-25 15:42:11 +02:00
|
|
|
rtl::Reference<FuPoor> FuTemplate::Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq )
|
2005-12-14 16:05:04 +00:00
|
|
|
{
|
2013-10-25 15:42:11 +02:00
|
|
|
rtl::Reference<FuPoor> xFunc( new FuTemplate( pViewSh, pWin, pView, pDoc, rReq ) );
|
2005-12-14 16:05:04 +00:00
|
|
|
xFunc->DoExecute(rReq);
|
|
|
|
return xFunc;
|
|
|
|
}
|
|
|
|
|
|
|
|
void FuTemplate::DoExecute( SfxRequest& rReq )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
const SfxItemSet* pArgs = rReq.GetArgs();
|
2011-01-17 11:41:00 +01:00
|
|
|
sal_uInt16 nSId = rReq.GetSlot();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-03-12 20:27:21 +01:00
|
|
|
// get StyleSheet parameter
|
2006-12-12 16:25:05 +00:00
|
|
|
SfxStyleSheetBasePool* pSSPool = mpDoc->GetDocSh()->GetStyleSheetPool();
|
2000-09-18 16:07:07 +00:00
|
|
|
SfxStyleSheetBase* pStyleSheet = NULL;
|
|
|
|
|
2004-09-20 08:51:14 +00:00
|
|
|
const SfxPoolItem* pItem;
|
2011-01-17 11:41:00 +01:00
|
|
|
sal_uInt16 nFamily = USHRT_MAX;
|
2014-09-10 17:53:41 +02:00
|
|
|
if( pArgs && SfxItemState::SET == pArgs->GetItemState( SID_STYLE_FAMILY,
|
2014-02-19 21:49:02 +01:00
|
|
|
false, &pItem ))
|
2004-09-20 08:51:14 +00:00
|
|
|
{
|
2014-10-29 11:04:25 +02:00
|
|
|
nFamily = static_cast<const SfxUInt16Item &>( pArgs->Get( SID_STYLE_FAMILY ) ).GetValue();
|
2004-09-20 08:51:14 +00:00
|
|
|
}
|
2014-09-10 17:53:41 +02:00
|
|
|
else if( pArgs && SfxItemState::SET == pArgs->GetItemState( SID_STYLE_FAMILYNAME,
|
2014-02-19 21:49:02 +01:00
|
|
|
false, &pItem ))
|
2004-09-20 08:51:14 +00:00
|
|
|
{
|
2014-10-29 11:04:25 +02:00
|
|
|
OUString sFamily = static_cast<const SfxStringItem &>( pArgs->Get( SID_STYLE_FAMILYNAME ) ).GetValue();
|
2013-08-24 22:22:45 +04:00
|
|
|
if (sFamily == "graphics")
|
2008-03-12 10:40:34 +00:00
|
|
|
nFamily = SD_STYLE_FAMILY_GRAPHICS;
|
2004-09-20 08:51:14 +00:00
|
|
|
else
|
2008-03-12 10:40:34 +00:00
|
|
|
nFamily = SD_STYLE_FAMILY_PSEUDO;
|
2004-09-20 08:51:14 +00:00
|
|
|
}
|
|
|
|
|
2013-02-21 03:54:57 +05:30
|
|
|
OUString aStyleName;
|
2012-11-25 15:24:42 +01:00
|
|
|
sal_uInt16 nRetMask = SFXSTYLEBIT_ALL;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2006-12-12 16:25:05 +00:00
|
|
|
switch( nSId )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
case SID_STYLE_APPLY:
|
|
|
|
case SID_STYLE_EDIT:
|
|
|
|
case SID_STYLE_DELETE:
|
2012-11-25 15:24:42 +01:00
|
|
|
case SID_STYLE_HIDE:
|
2012-12-04 10:31:35 +01:00
|
|
|
case SID_STYLE_SHOW:
|
2000-09-18 16:07:07 +00:00
|
|
|
case SID_STYLE_FAMILY:
|
|
|
|
case SID_STYLE_NEW_BY_EXAMPLE:
|
|
|
|
{
|
2014-01-28 20:00:21 +01:00
|
|
|
SFX_REQUEST_ARG( rReq, pNameItem, SfxStringItem, SID_APPLY_STYLE, false );
|
|
|
|
SFX_REQUEST_ARG( rReq, pFamilyItem, SfxStringItem, SID_STYLE_FAMILYNAME, false );
|
2004-09-20 08:51:14 +00:00
|
|
|
if ( pFamilyItem && pNameItem )
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
2008-03-12 10:40:34 +00:00
|
|
|
Reference< XStyleFamiliesSupplier > xModel(mpDoc->GetDocSh()->GetModel(), UNO_QUERY_THROW );
|
|
|
|
Reference< XNameAccess > xCont( xModel->getStyleFamilies() );
|
|
|
|
Reference< XNameAccess > xStyles( xCont->getByName(pFamilyItem->GetValue()), UNO_QUERY_THROW );
|
|
|
|
Reference< XPropertySet > xInfo( xStyles->getByName( pNameItem->GetValue() ), UNO_QUERY_THROW );
|
|
|
|
|
|
|
|
OUString aUIName;
|
2012-04-13 15:07:17 -03:00
|
|
|
xInfo->getPropertyValue( "DisplayName" ) >>= aUIName;
|
2012-01-08 09:52:25 -02:00
|
|
|
if ( !aUIName.isEmpty() )
|
2006-12-12 16:25:05 +00:00
|
|
|
rReq.AppendItem( SfxStringItem( nSId, aUIName ) );
|
2004-09-20 08:51:14 +00:00
|
|
|
}
|
2008-03-12 10:40:34 +00:00
|
|
|
catch( Exception& )
|
2004-09-20 08:51:14 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-09-10 17:53:41 +02:00
|
|
|
if (pArgs && pArgs->GetItemState(nSId) == SfxItemState::SET)
|
2014-10-29 11:04:25 +02:00
|
|
|
aStyleName = static_cast<const SfxStringItem &>( pArgs->Get( nSId ) ).GetValue();
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-12-12 16:25:05 +00:00
|
|
|
switch( nSId )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
case SID_STYLE_NEW:
|
|
|
|
{
|
2008-03-12 10:40:34 +00:00
|
|
|
SfxStyleSheetBase *p = pSSPool->Find(aStyleName, (SfxStyleFamily) nFamily, SFXSTYLEBIT_ALL );
|
2000-09-18 16:07:07 +00:00
|
|
|
if(p)
|
|
|
|
{
|
2008-03-12 10:40:34 +00:00
|
|
|
pSSPool->Remove(p);
|
2000-09-18 16:07:07 +00:00
|
|
|
p = 0;
|
|
|
|
}
|
2008-03-12 10:40:34 +00:00
|
|
|
pStyleSheet = &pSSPool->Make( aStyleName, (SfxStyleFamily) nFamily, SFXSTYLEBIT_USERDEF );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2014-09-10 17:53:41 +02:00
|
|
|
if (pArgs && pArgs->GetItemState(SID_STYLE_REFERENCE) == SfxItemState::SET)
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2014-10-29 11:04:25 +02:00
|
|
|
OUString aParentName(static_cast<const SfxStringItem&>( pArgs->Get(SID_STYLE_REFERENCE)).GetValue());
|
2000-09-18 16:07:07 +00:00
|
|
|
pStyleSheet->SetParent(aParentName);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2013-08-24 13:15:47 +04:00
|
|
|
pStyleSheet->SetParent(SD_RESSTR(STR_STANDARD_STYLESHEET_NAME));
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_STYLE_NEW_BY_EXAMPLE:
|
|
|
|
{
|
2013-03-12 20:27:21 +01:00
|
|
|
// at the moment, the dialog to enter the name of the template is still opened
|
2014-07-06 06:46:07 +02:00
|
|
|
SfxStyleSheetBase *p = pSSPool->Find(aStyleName, (SfxStyleFamily) nFamily, SFXSTYLEBIT_ALL );
|
|
|
|
if(p)
|
|
|
|
{
|
|
|
|
pSSPool->Remove(p);
|
|
|
|
p = 0;
|
|
|
|
}
|
|
|
|
pStyleSheet = &pSSPool->Make( aStyleName, (SfxStyleFamily) nFamily, SFXSTYLEBIT_USERDEF );
|
|
|
|
pStyleSheet->SetParent(SD_RESSTR(STR_STANDARD_STYLESHEET_NAME));
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_STYLE_EDIT:
|
|
|
|
pStyleSheet = pSSPool->Find( aStyleName, (SfxStyleFamily) nFamily);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_STYLE_DELETE:
|
|
|
|
pStyleSheet = pSSPool->Find( aStyleName, (SfxStyleFamily) nFamily);
|
|
|
|
if( pStyleSheet )
|
|
|
|
{
|
2008-03-12 10:40:34 +00:00
|
|
|
pSSPool->Remove( pStyleSheet );
|
2015-04-28 11:17:03 +02:00
|
|
|
nRetMask = sal_uInt16(true);
|
2014-02-11 11:43:35 +02:00
|
|
|
mpDoc->SetChanged(true);
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
2008-03-12 10:40:34 +00:00
|
|
|
else
|
|
|
|
{
|
2015-04-28 11:17:03 +02:00
|
|
|
nRetMask = sal_uInt16(false);
|
2008-03-12 10:40:34 +00:00
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
break;
|
|
|
|
|
2012-11-25 15:24:42 +01:00
|
|
|
case SID_STYLE_HIDE:
|
2012-12-04 10:31:35 +01:00
|
|
|
case SID_STYLE_SHOW:
|
2012-11-25 15:24:42 +01:00
|
|
|
pStyleSheet = pSSPool->Find( aStyleName, (SfxStyleFamily) nFamily);
|
2012-12-04 10:31:35 +01:00
|
|
|
pStyleSheet->SetHidden( nSId == SID_STYLE_HIDE );
|
2015-04-28 11:17:03 +02:00
|
|
|
nRetMask = sal_uInt16(true);
|
2012-11-25 15:24:42 +01:00
|
|
|
break;
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
case SID_STYLE_APPLY:
|
2013-03-12 20:27:21 +01:00
|
|
|
// apply the template to the document
|
2000-09-18 16:07:07 +00:00
|
|
|
pStyleSheet = pSSPool->Find( aStyleName, (SfxStyleFamily) nFamily);
|
|
|
|
|
2008-03-12 10:40:34 +00:00
|
|
|
// do not set presentation styles, they will be set implicit
|
|
|
|
if ( pStyleSheet && pStyleSheet->GetFamily() != SD_STYLE_FAMILY_PSEUDO )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2006-12-12 16:25:05 +00:00
|
|
|
SfxStyleSheet* pOldStyleSheet = mpView->GetStyleSheet();
|
2013-03-02 15:40:14 +01:00
|
|
|
OUString aStr;
|
2008-03-12 10:40:34 +00:00
|
|
|
|
|
|
|
if( // if the object had no style sheet, allow all
|
|
|
|
!pOldStyleSheet ||
|
|
|
|
|
|
|
|
// allow if old and new style sheet has same family
|
|
|
|
pStyleSheet->GetFamily() == pOldStyleSheet->GetFamily() ||
|
|
|
|
|
|
|
|
// allow if old was background objects and new is graphics
|
2014-01-15 12:04:20 +01:00
|
|
|
(pStyleSheet->GetFamily() == SD_STYLE_FAMILY_GRAPHICS && pOldStyleSheet->GetHelpId( aStr ) == HID_PSEUDOSHEET_BACKGROUNDOBJECTS) ||
|
2008-03-12 10:40:34 +00:00
|
|
|
|
|
|
|
// allow if old was presentation and we are a drawing document
|
2008-12-11 07:05:03 +00:00
|
|
|
(pOldStyleSheet->GetFamily() == SD_STYLE_FAMILY_MASTERPAGE && mpDoc->GetDocumentType() == DOCUMENT_TYPE_DRAW) )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2014-10-29 11:04:25 +02:00
|
|
|
mpView->SetStyleSheet( static_cast<SfxStyleSheet*>(pStyleSheet));
|
2014-02-11 11:43:35 +02:00
|
|
|
mpDoc->SetChanged(true);
|
2006-12-12 16:25:05 +00:00
|
|
|
mpViewShell->GetViewFrame()->GetBindings().Invalidate( SID_STYLE_FAMILY2 );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_STYLE_WATERCAN:
|
|
|
|
{
|
|
|
|
if( !SD_MOD()->GetWaterCan() )
|
|
|
|
{
|
2014-09-10 17:53:41 +02:00
|
|
|
if (pArgs && pArgs->GetItemState( nSId ) == SfxItemState::SET)
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2014-10-29 11:04:25 +02:00
|
|
|
aStyleName = static_cast<const SfxStringItem &>( pArgs->Get( nSId ) ).GetValue();
|
2014-04-24 10:52:02 +02:00
|
|
|
SD_MOD()->SetWaterCan( true );
|
2000-09-18 16:07:07 +00:00
|
|
|
pStyleSheet = pSSPool->Find( aStyleName, (SfxStyleFamily) nFamily);
|
|
|
|
}
|
2013-03-12 20:27:21 +01:00
|
|
|
// no presentation object templates, they are only allowed implicitly
|
2008-03-12 10:40:34 +00:00
|
|
|
if( pStyleSheet && pStyleSheet->GetFamily() != SD_STYLE_FAMILY_PSEUDO )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2014-10-29 11:04:25 +02:00
|
|
|
static_cast<SdStyleSheetPool*>( pSSPool )->SetActualStyleSheet( pStyleSheet );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-03-12 20:27:21 +01:00
|
|
|
// we switch explicitly into selection mode
|
2006-12-12 16:25:05 +00:00
|
|
|
mpViewShell->GetViewFrame()->GetDispatcher()->Execute( SID_OBJECT_SELECT,
|
2014-10-11 16:01:26 +02:00
|
|
|
SfxCallMode::ASYNCHRON | SfxCallMode::RECORD );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
else
|
2014-04-24 10:52:02 +02:00
|
|
|
SD_MOD()->SetWaterCan( false );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2014-04-24 10:52:02 +02:00
|
|
|
SD_MOD()->SetWaterCan( false );
|
2013-03-12 20:27:21 +01:00
|
|
|
// we have to re-enable to tools-bar
|
2006-12-12 16:25:05 +00:00
|
|
|
mpViewShell->Invalidate();
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2006-12-12 16:25:05 +00:00
|
|
|
switch( nSId )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
case SID_STYLE_NEW:
|
|
|
|
case SID_STYLE_EDIT:
|
|
|
|
{
|
2006-12-12 16:25:05 +00:00
|
|
|
PresentationObjects ePO = PO_OUTLINE_1;
|
2003-03-27 09:58:12 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
if( pStyleSheet )
|
|
|
|
{
|
2014-05-22 00:36:41 +09:00
|
|
|
boost::scoped_ptr<SfxAbstractTabDialog> pStdDlg;
|
|
|
|
boost::scoped_ptr<SfxAbstractTabDialog> pPresDlg;
|
2006-12-12 16:25:05 +00:00
|
|
|
SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create();
|
2014-04-24 10:52:02 +02:00
|
|
|
bool bOldDocInOtherLanguage = false;
|
2000-09-18 16:07:07 +00:00
|
|
|
SfxItemSet aOriSet( pStyleSheet->GetItemSet() );
|
|
|
|
|
|
|
|
SfxStyleFamily eFamily = pStyleSheet->GetFamily();
|
|
|
|
|
2008-03-12 10:40:34 +00:00
|
|
|
if (eFamily == SD_STYLE_FAMILY_GRAPHICS)
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2014-05-22 00:36:41 +09:00
|
|
|
pStdDlg.reset(pFact ? pFact->CreateSdTabTemplateDlg( 0, mpDoc->GetDocSh(), *pStyleSheet, mpDoc, mpView ) : 0);
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
2008-03-12 10:40:34 +00:00
|
|
|
else if (eFamily == SD_STYLE_FAMILY_PSEUDO)
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2013-08-24 22:22:45 +04:00
|
|
|
OUString aName(pStyleSheet->GetName());
|
2011-01-17 11:41:00 +01:00
|
|
|
sal_uInt16 nDlgId = 0;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-08-24 13:15:47 +04:00
|
|
|
if (aName == SD_RESSTR(STR_PSEUDOSHEET_TITLE))
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
CWS-TOOLING: integrate CWS impress172
2009-07-30 15:29:39 +0200 cl r274492 : #i102921# remove reference to inssrc.obj which was moved to svx
2009-07-29 11:40:35 +0200 wg r274445 : i103869
2009-07-22 14:39:13 +0200 sj r274241 : #i102713# fixed cloud shape
2009-07-07 15:28:04 +0200 sj r273800 : fixed build problem
2009-07-07 13:27:13 +0200 cl r273792 : #i102921# moved insert col/rows dialog to svx
2009-07-07 10:36:05 +0200 cl r273782 : fixed compiler warnings
2009-07-02 10:40:21 +0200 sj r273626 : fixed build problem
2009-07-02 10:27:56 +0200 cl r273624 : fixed merge problem
2009-07-02 10:27:19 +0200 cl r273623 : fixed compiler warning
2009-07-01 10:04:58 +0200 cl r273550 : CWS-TOOLING: rebase CWS impress172 to trunk@273468 (milestone: DEV300:m51)
2009-06-30 16:22:02 +0200 cl r273518 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:20:46 +0200 cl r273517 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:20:28 +0200 cl r273516 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:19:49 +0200 cl r273515 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:19:28 +0200 cl r273514 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:17:38 +0200 cl r273513 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:45:44 +0200 cl r273511 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:37:16 +0200 cl r273510 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:33:47 +0200 cl r273509 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:32:10 +0200 cl r273508 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:30:05 +0200 cl r273507 : #i102921# added insert table row/col dialog for impress tables
2009-06-29 12:32:42 +0200 sj r273465 : #158632# fixed textrange hyperlinks to specific pages, added slide names
2009-06-24 15:17:59 +0200 sj r273349 : #158636# fixed text range hyperlink to first/last slide
2009-06-22 13:18:30 +0200 sj r273224 : #158651# fixed header footer import
2009-06-19 15:18:24 +0200 sj r273160 : #158614# default text of presentation objects now cleared
2009-06-16 15:54:19 +0200 sj r273023 : #i101545# fixed crash - bracketing of graphic links has been done twice leading to a broken graphic state stack
2009-06-15 16:26:26 +0200 sj r272998 : #158635# importing bookmark interactions: firstslide, lastslide, nextslide, previousslide
2009-06-15 16:25:26 +0200 sj r272997 : #158635# added bookmark interactions: firstslide, lastslide, nextslide, previousslide
2009-06-12 13:17:32 +0200 sj r272915 : #i102713# fixed cloud shape
2009-06-10 18:36:58 +0200 sj r272833 : #158674# fixed curvedleftarrow, curvedrightarrow, curveddownarrow, curveduparrow
2009-06-08 19:52:28 +0200 sj r272746 : #158674# fixed curvedleftarrow, curvedrightarrow, curveddownarrow, curveduparrow
2009-06-04 15:28:32 +0200 cl r272640 : #i102358# applied patch to remove warnings
2009-06-04 14:39:45 +0200 cl r272630 : #i99423# applied path to change impress wizard create button to open when opening exisitng documents
2009-06-03 18:21:26 +0200 sj r272601 : #158635# now using the correct paragraph bottom spacing. using font independent linespacing for impress text objects
2009-06-03 15:47:27 +0200 cl r272583 : #i101817# added color collection based on scribus
2009-06-03 14:43:59 +0200 cl r272580 : #i102163# use weak ref to SdrObject instead of listening to the model
2009-06-03 12:39:29 +0200 cl r272556 : #i93308# correct namespace for com.sun.star.text.textfields
2009-06-03 12:27:00 +0200 cl r272555 : #i93308# correct namespace for com.sun.star.text.textfields
2009-06-03 11:33:44 +0200 cl r272553 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-03 11:30:59 +0200 cl r272552 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-03 11:30:22 +0200 cl r272551 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-02 18:41:07 +0200 sj r272527 : #i28358# applied patch (better conversion of dotted lines)
2009-06-02 11:52:13 +0200 cl r272491 : #i98668# applied patch to fix possible endless loop if exception occours
2009-05-28 17:02:55 +0200 sj r272416 : #i102336# retaining graphic file names unchanged
2009-05-28 17:00:25 +0200 sj r272415 : #i102336# retaining graphic file names unchanged
2009-05-28 17:00:10 +0200 sj r272414 : #i102336# retaining graphic file names unchanged
2009-05-25 12:43:58 +0200 sj r272232 : #i102069# added patch from thb (fixed rotated group objects)
2009-08-05 17:01:07 +00:00
|
|
|
nDlgId = TAB_PRES_LAYOUT_TEMPLATE;
|
2000-09-18 16:07:07 +00:00
|
|
|
ePO = PO_TITLE;
|
|
|
|
}
|
2013-08-24 13:15:47 +04:00
|
|
|
else if (aName == SD_RESSTR(STR_PSEUDOSHEET_SUBTITLE))
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
CWS-TOOLING: integrate CWS impress172
2009-07-30 15:29:39 +0200 cl r274492 : #i102921# remove reference to inssrc.obj which was moved to svx
2009-07-29 11:40:35 +0200 wg r274445 : i103869
2009-07-22 14:39:13 +0200 sj r274241 : #i102713# fixed cloud shape
2009-07-07 15:28:04 +0200 sj r273800 : fixed build problem
2009-07-07 13:27:13 +0200 cl r273792 : #i102921# moved insert col/rows dialog to svx
2009-07-07 10:36:05 +0200 cl r273782 : fixed compiler warnings
2009-07-02 10:40:21 +0200 sj r273626 : fixed build problem
2009-07-02 10:27:56 +0200 cl r273624 : fixed merge problem
2009-07-02 10:27:19 +0200 cl r273623 : fixed compiler warning
2009-07-01 10:04:58 +0200 cl r273550 : CWS-TOOLING: rebase CWS impress172 to trunk@273468 (milestone: DEV300:m51)
2009-06-30 16:22:02 +0200 cl r273518 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:20:46 +0200 cl r273517 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:20:28 +0200 cl r273516 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:19:49 +0200 cl r273515 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:19:28 +0200 cl r273514 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:17:38 +0200 cl r273513 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:45:44 +0200 cl r273511 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:37:16 +0200 cl r273510 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:33:47 +0200 cl r273509 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:32:10 +0200 cl r273508 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:30:05 +0200 cl r273507 : #i102921# added insert table row/col dialog for impress tables
2009-06-29 12:32:42 +0200 sj r273465 : #158632# fixed textrange hyperlinks to specific pages, added slide names
2009-06-24 15:17:59 +0200 sj r273349 : #158636# fixed text range hyperlink to first/last slide
2009-06-22 13:18:30 +0200 sj r273224 : #158651# fixed header footer import
2009-06-19 15:18:24 +0200 sj r273160 : #158614# default text of presentation objects now cleared
2009-06-16 15:54:19 +0200 sj r273023 : #i101545# fixed crash - bracketing of graphic links has been done twice leading to a broken graphic state stack
2009-06-15 16:26:26 +0200 sj r272998 : #158635# importing bookmark interactions: firstslide, lastslide, nextslide, previousslide
2009-06-15 16:25:26 +0200 sj r272997 : #158635# added bookmark interactions: firstslide, lastslide, nextslide, previousslide
2009-06-12 13:17:32 +0200 sj r272915 : #i102713# fixed cloud shape
2009-06-10 18:36:58 +0200 sj r272833 : #158674# fixed curvedleftarrow, curvedrightarrow, curveddownarrow, curveduparrow
2009-06-08 19:52:28 +0200 sj r272746 : #158674# fixed curvedleftarrow, curvedrightarrow, curveddownarrow, curveduparrow
2009-06-04 15:28:32 +0200 cl r272640 : #i102358# applied patch to remove warnings
2009-06-04 14:39:45 +0200 cl r272630 : #i99423# applied path to change impress wizard create button to open when opening exisitng documents
2009-06-03 18:21:26 +0200 sj r272601 : #158635# now using the correct paragraph bottom spacing. using font independent linespacing for impress text objects
2009-06-03 15:47:27 +0200 cl r272583 : #i101817# added color collection based on scribus
2009-06-03 14:43:59 +0200 cl r272580 : #i102163# use weak ref to SdrObject instead of listening to the model
2009-06-03 12:39:29 +0200 cl r272556 : #i93308# correct namespace for com.sun.star.text.textfields
2009-06-03 12:27:00 +0200 cl r272555 : #i93308# correct namespace for com.sun.star.text.textfields
2009-06-03 11:33:44 +0200 cl r272553 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-03 11:30:59 +0200 cl r272552 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-03 11:30:22 +0200 cl r272551 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-02 18:41:07 +0200 sj r272527 : #i28358# applied patch (better conversion of dotted lines)
2009-06-02 11:52:13 +0200 cl r272491 : #i98668# applied patch to fix possible endless loop if exception occours
2009-05-28 17:02:55 +0200 sj r272416 : #i102336# retaining graphic file names unchanged
2009-05-28 17:00:25 +0200 sj r272415 : #i102336# retaining graphic file names unchanged
2009-05-28 17:00:10 +0200 sj r272414 : #i102336# retaining graphic file names unchanged
2009-05-25 12:43:58 +0200 sj r272232 : #i102069# added patch from thb (fixed rotated group objects)
2009-08-05 17:01:07 +00:00
|
|
|
nDlgId = TAB_PRES_LAYOUT_TEMPLATE;
|
2000-09-18 16:07:07 +00:00
|
|
|
ePO = PO_SUBTITLE;
|
|
|
|
}
|
2006-12-12 16:25:05 +00:00
|
|
|
else if (aName ==
|
2013-08-24 13:15:47 +04:00
|
|
|
SD_RESSTR(STR_PSEUDOSHEET_BACKGROUND))
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
CWS-TOOLING: integrate CWS impress172
2009-07-30 15:29:39 +0200 cl r274492 : #i102921# remove reference to inssrc.obj which was moved to svx
2009-07-29 11:40:35 +0200 wg r274445 : i103869
2009-07-22 14:39:13 +0200 sj r274241 : #i102713# fixed cloud shape
2009-07-07 15:28:04 +0200 sj r273800 : fixed build problem
2009-07-07 13:27:13 +0200 cl r273792 : #i102921# moved insert col/rows dialog to svx
2009-07-07 10:36:05 +0200 cl r273782 : fixed compiler warnings
2009-07-02 10:40:21 +0200 sj r273626 : fixed build problem
2009-07-02 10:27:56 +0200 cl r273624 : fixed merge problem
2009-07-02 10:27:19 +0200 cl r273623 : fixed compiler warning
2009-07-01 10:04:58 +0200 cl r273550 : CWS-TOOLING: rebase CWS impress172 to trunk@273468 (milestone: DEV300:m51)
2009-06-30 16:22:02 +0200 cl r273518 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:20:46 +0200 cl r273517 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:20:28 +0200 cl r273516 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:19:49 +0200 cl r273515 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:19:28 +0200 cl r273514 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:17:38 +0200 cl r273513 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:45:44 +0200 cl r273511 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:37:16 +0200 cl r273510 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:33:47 +0200 cl r273509 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:32:10 +0200 cl r273508 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:30:05 +0200 cl r273507 : #i102921# added insert table row/col dialog for impress tables
2009-06-29 12:32:42 +0200 sj r273465 : #158632# fixed textrange hyperlinks to specific pages, added slide names
2009-06-24 15:17:59 +0200 sj r273349 : #158636# fixed text range hyperlink to first/last slide
2009-06-22 13:18:30 +0200 sj r273224 : #158651# fixed header footer import
2009-06-19 15:18:24 +0200 sj r273160 : #158614# default text of presentation objects now cleared
2009-06-16 15:54:19 +0200 sj r273023 : #i101545# fixed crash - bracketing of graphic links has been done twice leading to a broken graphic state stack
2009-06-15 16:26:26 +0200 sj r272998 : #158635# importing bookmark interactions: firstslide, lastslide, nextslide, previousslide
2009-06-15 16:25:26 +0200 sj r272997 : #158635# added bookmark interactions: firstslide, lastslide, nextslide, previousslide
2009-06-12 13:17:32 +0200 sj r272915 : #i102713# fixed cloud shape
2009-06-10 18:36:58 +0200 sj r272833 : #158674# fixed curvedleftarrow, curvedrightarrow, curveddownarrow, curveduparrow
2009-06-08 19:52:28 +0200 sj r272746 : #158674# fixed curvedleftarrow, curvedrightarrow, curveddownarrow, curveduparrow
2009-06-04 15:28:32 +0200 cl r272640 : #i102358# applied patch to remove warnings
2009-06-04 14:39:45 +0200 cl r272630 : #i99423# applied path to change impress wizard create button to open when opening exisitng documents
2009-06-03 18:21:26 +0200 sj r272601 : #158635# now using the correct paragraph bottom spacing. using font independent linespacing for impress text objects
2009-06-03 15:47:27 +0200 cl r272583 : #i101817# added color collection based on scribus
2009-06-03 14:43:59 +0200 cl r272580 : #i102163# use weak ref to SdrObject instead of listening to the model
2009-06-03 12:39:29 +0200 cl r272556 : #i93308# correct namespace for com.sun.star.text.textfields
2009-06-03 12:27:00 +0200 cl r272555 : #i93308# correct namespace for com.sun.star.text.textfields
2009-06-03 11:33:44 +0200 cl r272553 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-03 11:30:59 +0200 cl r272552 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-03 11:30:22 +0200 cl r272551 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-02 18:41:07 +0200 sj r272527 : #i28358# applied patch (better conversion of dotted lines)
2009-06-02 11:52:13 +0200 cl r272491 : #i98668# applied patch to fix possible endless loop if exception occours
2009-05-28 17:02:55 +0200 sj r272416 : #i102336# retaining graphic file names unchanged
2009-05-28 17:00:25 +0200 sj r272415 : #i102336# retaining graphic file names unchanged
2009-05-28 17:00:10 +0200 sj r272414 : #i102336# retaining graphic file names unchanged
2009-05-25 12:43:58 +0200 sj r272232 : #i102069# added patch from thb (fixed rotated group objects)
2009-08-05 17:01:07 +00:00
|
|
|
nDlgId = TAB_PRES_LAYOUT_TEMPLATE_BACKGROUND;
|
2000-09-18 16:07:07 +00:00
|
|
|
ePO = PO_BACKGROUND;
|
|
|
|
}
|
2006-12-12 16:25:05 +00:00
|
|
|
else if (aName ==
|
2013-08-24 13:15:47 +04:00
|
|
|
SD_RESSTR(STR_PSEUDOSHEET_BACKGROUNDOBJECTS))
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
nDlgId = TAB_PRES_LAYOUT_TEMPLATE;
|
|
|
|
ePO = PO_BACKGROUNDOBJECTS;
|
|
|
|
}
|
2006-12-12 16:25:05 +00:00
|
|
|
else if (aName ==
|
2013-08-24 13:15:47 +04:00
|
|
|
SD_RESSTR(STR_PSEUDOSHEET_NOTES))
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
CWS-TOOLING: integrate CWS impress172
2009-07-30 15:29:39 +0200 cl r274492 : #i102921# remove reference to inssrc.obj which was moved to svx
2009-07-29 11:40:35 +0200 wg r274445 : i103869
2009-07-22 14:39:13 +0200 sj r274241 : #i102713# fixed cloud shape
2009-07-07 15:28:04 +0200 sj r273800 : fixed build problem
2009-07-07 13:27:13 +0200 cl r273792 : #i102921# moved insert col/rows dialog to svx
2009-07-07 10:36:05 +0200 cl r273782 : fixed compiler warnings
2009-07-02 10:40:21 +0200 sj r273626 : fixed build problem
2009-07-02 10:27:56 +0200 cl r273624 : fixed merge problem
2009-07-02 10:27:19 +0200 cl r273623 : fixed compiler warning
2009-07-01 10:04:58 +0200 cl r273550 : CWS-TOOLING: rebase CWS impress172 to trunk@273468 (milestone: DEV300:m51)
2009-06-30 16:22:02 +0200 cl r273518 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:20:46 +0200 cl r273517 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:20:28 +0200 cl r273516 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:19:49 +0200 cl r273515 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:19:28 +0200 cl r273514 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:17:38 +0200 cl r273513 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:45:44 +0200 cl r273511 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:37:16 +0200 cl r273510 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:33:47 +0200 cl r273509 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:32:10 +0200 cl r273508 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:30:05 +0200 cl r273507 : #i102921# added insert table row/col dialog for impress tables
2009-06-29 12:32:42 +0200 sj r273465 : #158632# fixed textrange hyperlinks to specific pages, added slide names
2009-06-24 15:17:59 +0200 sj r273349 : #158636# fixed text range hyperlink to first/last slide
2009-06-22 13:18:30 +0200 sj r273224 : #158651# fixed header footer import
2009-06-19 15:18:24 +0200 sj r273160 : #158614# default text of presentation objects now cleared
2009-06-16 15:54:19 +0200 sj r273023 : #i101545# fixed crash - bracketing of graphic links has been done twice leading to a broken graphic state stack
2009-06-15 16:26:26 +0200 sj r272998 : #158635# importing bookmark interactions: firstslide, lastslide, nextslide, previousslide
2009-06-15 16:25:26 +0200 sj r272997 : #158635# added bookmark interactions: firstslide, lastslide, nextslide, previousslide
2009-06-12 13:17:32 +0200 sj r272915 : #i102713# fixed cloud shape
2009-06-10 18:36:58 +0200 sj r272833 : #158674# fixed curvedleftarrow, curvedrightarrow, curveddownarrow, curveduparrow
2009-06-08 19:52:28 +0200 sj r272746 : #158674# fixed curvedleftarrow, curvedrightarrow, curveddownarrow, curveduparrow
2009-06-04 15:28:32 +0200 cl r272640 : #i102358# applied patch to remove warnings
2009-06-04 14:39:45 +0200 cl r272630 : #i99423# applied path to change impress wizard create button to open when opening exisitng documents
2009-06-03 18:21:26 +0200 sj r272601 : #158635# now using the correct paragraph bottom spacing. using font independent linespacing for impress text objects
2009-06-03 15:47:27 +0200 cl r272583 : #i101817# added color collection based on scribus
2009-06-03 14:43:59 +0200 cl r272580 : #i102163# use weak ref to SdrObject instead of listening to the model
2009-06-03 12:39:29 +0200 cl r272556 : #i93308# correct namespace for com.sun.star.text.textfields
2009-06-03 12:27:00 +0200 cl r272555 : #i93308# correct namespace for com.sun.star.text.textfields
2009-06-03 11:33:44 +0200 cl r272553 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-03 11:30:59 +0200 cl r272552 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-03 11:30:22 +0200 cl r272551 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-02 18:41:07 +0200 sj r272527 : #i28358# applied patch (better conversion of dotted lines)
2009-06-02 11:52:13 +0200 cl r272491 : #i98668# applied patch to fix possible endless loop if exception occours
2009-05-28 17:02:55 +0200 sj r272416 : #i102336# retaining graphic file names unchanged
2009-05-28 17:00:25 +0200 sj r272415 : #i102336# retaining graphic file names unchanged
2009-05-28 17:00:10 +0200 sj r272414 : #i102336# retaining graphic file names unchanged
2009-05-25 12:43:58 +0200 sj r272232 : #i102069# added patch from thb (fixed rotated group objects)
2009-08-05 17:01:07 +00:00
|
|
|
nDlgId = TAB_PRES_LAYOUT_TEMPLATE;
|
2000-09-18 16:07:07 +00:00
|
|
|
ePO = PO_NOTES;
|
|
|
|
}
|
2013-08-24 22:22:45 +04:00
|
|
|
else if(aName.indexOf(SD_RESSTR(STR_PSEUDOSHEET_OUTLINE)) != -1)
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
CWS-TOOLING: integrate CWS impress172
2009-07-30 15:29:39 +0200 cl r274492 : #i102921# remove reference to inssrc.obj which was moved to svx
2009-07-29 11:40:35 +0200 wg r274445 : i103869
2009-07-22 14:39:13 +0200 sj r274241 : #i102713# fixed cloud shape
2009-07-07 15:28:04 +0200 sj r273800 : fixed build problem
2009-07-07 13:27:13 +0200 cl r273792 : #i102921# moved insert col/rows dialog to svx
2009-07-07 10:36:05 +0200 cl r273782 : fixed compiler warnings
2009-07-02 10:40:21 +0200 sj r273626 : fixed build problem
2009-07-02 10:27:56 +0200 cl r273624 : fixed merge problem
2009-07-02 10:27:19 +0200 cl r273623 : fixed compiler warning
2009-07-01 10:04:58 +0200 cl r273550 : CWS-TOOLING: rebase CWS impress172 to trunk@273468 (milestone: DEV300:m51)
2009-06-30 16:22:02 +0200 cl r273518 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:20:46 +0200 cl r273517 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:20:28 +0200 cl r273516 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:19:49 +0200 cl r273515 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:19:28 +0200 cl r273514 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:17:38 +0200 cl r273513 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:45:44 +0200 cl r273511 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:37:16 +0200 cl r273510 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:33:47 +0200 cl r273509 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:32:10 +0200 cl r273508 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:30:05 +0200 cl r273507 : #i102921# added insert table row/col dialog for impress tables
2009-06-29 12:32:42 +0200 sj r273465 : #158632# fixed textrange hyperlinks to specific pages, added slide names
2009-06-24 15:17:59 +0200 sj r273349 : #158636# fixed text range hyperlink to first/last slide
2009-06-22 13:18:30 +0200 sj r273224 : #158651# fixed header footer import
2009-06-19 15:18:24 +0200 sj r273160 : #158614# default text of presentation objects now cleared
2009-06-16 15:54:19 +0200 sj r273023 : #i101545# fixed crash - bracketing of graphic links has been done twice leading to a broken graphic state stack
2009-06-15 16:26:26 +0200 sj r272998 : #158635# importing bookmark interactions: firstslide, lastslide, nextslide, previousslide
2009-06-15 16:25:26 +0200 sj r272997 : #158635# added bookmark interactions: firstslide, lastslide, nextslide, previousslide
2009-06-12 13:17:32 +0200 sj r272915 : #i102713# fixed cloud shape
2009-06-10 18:36:58 +0200 sj r272833 : #158674# fixed curvedleftarrow, curvedrightarrow, curveddownarrow, curveduparrow
2009-06-08 19:52:28 +0200 sj r272746 : #158674# fixed curvedleftarrow, curvedrightarrow, curveddownarrow, curveduparrow
2009-06-04 15:28:32 +0200 cl r272640 : #i102358# applied patch to remove warnings
2009-06-04 14:39:45 +0200 cl r272630 : #i99423# applied path to change impress wizard create button to open when opening exisitng documents
2009-06-03 18:21:26 +0200 sj r272601 : #158635# now using the correct paragraph bottom spacing. using font independent linespacing for impress text objects
2009-06-03 15:47:27 +0200 cl r272583 : #i101817# added color collection based on scribus
2009-06-03 14:43:59 +0200 cl r272580 : #i102163# use weak ref to SdrObject instead of listening to the model
2009-06-03 12:39:29 +0200 cl r272556 : #i93308# correct namespace for com.sun.star.text.textfields
2009-06-03 12:27:00 +0200 cl r272555 : #i93308# correct namespace for com.sun.star.text.textfields
2009-06-03 11:33:44 +0200 cl r272553 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-03 11:30:59 +0200 cl r272552 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-03 11:30:22 +0200 cl r272551 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-02 18:41:07 +0200 sj r272527 : #i28358# applied patch (better conversion of dotted lines)
2009-06-02 11:52:13 +0200 cl r272491 : #i98668# applied patch to fix possible endless loop if exception occours
2009-05-28 17:02:55 +0200 sj r272416 : #i102336# retaining graphic file names unchanged
2009-05-28 17:00:25 +0200 sj r272415 : #i102336# retaining graphic file names unchanged
2009-05-28 17:00:10 +0200 sj r272414 : #i102336# retaining graphic file names unchanged
2009-05-25 12:43:58 +0200 sj r272232 : #i102069# added patch from thb (fixed rotated group objects)
2009-08-05 17:01:07 +00:00
|
|
|
nDlgId = TAB_PRES_LAYOUT_TEMPLATE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-08-24 22:22:45 +04:00
|
|
|
OUString aOutlineStr(SD_RESSTR(STR_PSEUDOSHEET_OUTLINE));
|
2013-03-12 20:27:21 +01:00
|
|
|
// determine number, mind the blank between name and number
|
2013-08-24 22:22:45 +04:00
|
|
|
OUString aNumStr(aName.copy(aOutlineStr.getLength() + 1));
|
|
|
|
sal_uInt16 nLevel = (sal_uInt16)aNumStr.toInt32();
|
2000-09-18 16:07:07 +00:00
|
|
|
switch (nLevel)
|
|
|
|
{
|
|
|
|
case 1: ePO = PO_OUTLINE_1; break;
|
|
|
|
case 2: ePO = PO_OUTLINE_2; break;
|
|
|
|
case 3: ePO = PO_OUTLINE_3; break;
|
|
|
|
case 4: ePO = PO_OUTLINE_4; break;
|
|
|
|
case 5: ePO = PO_OUTLINE_5; break;
|
|
|
|
case 6: ePO = PO_OUTLINE_6; break;
|
|
|
|
case 7: ePO = PO_OUTLINE_7; break;
|
|
|
|
case 8: ePO = PO_OUTLINE_8; break;
|
|
|
|
case 9: ePO = PO_OUTLINE_9; break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2013-03-11 22:51:42 +01:00
|
|
|
OSL_FAIL("StyleSheet from older version with different language");
|
2014-04-24 10:52:02 +02:00
|
|
|
bOldDocInOtherLanguage = true;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if( !bOldDocInOtherLanguage )
|
2006-12-12 16:25:05 +00:00
|
|
|
{
|
2014-05-22 00:36:41 +09:00
|
|
|
pPresDlg.reset(pFact ? pFact->CreateSdPresLayoutTemplateDlg( mpDocSh, NULL, SdResId(nDlgId), *pStyleSheet, ePO, pSSPool ) : 0);
|
2004-05-10 14:49:08 +00:00
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
2008-03-12 10:40:34 +00:00
|
|
|
else if (eFamily == SD_STYLE_FAMILY_CELL)
|
|
|
|
{
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2011-01-17 11:41:00 +01:00
|
|
|
sal_uInt16 nResult = RET_CANCEL;
|
2000-09-18 16:07:07 +00:00
|
|
|
const SfxItemSet* pOutSet = NULL;
|
|
|
|
if (pStdDlg)
|
|
|
|
{
|
|
|
|
nResult = pStdDlg->Execute();
|
|
|
|
pOutSet = pStdDlg->GetOutputItemSet();
|
|
|
|
}
|
|
|
|
else if( pPresDlg )
|
|
|
|
{
|
|
|
|
nResult = pPresDlg->Execute();
|
|
|
|
pOutSet = pPresDlg->GetOutputItemSet();
|
|
|
|
}
|
|
|
|
|
|
|
|
switch( nResult )
|
|
|
|
{
|
|
|
|
case RET_OK:
|
|
|
|
{
|
|
|
|
nRetMask = pStyleSheet->GetMask();
|
|
|
|
|
2008-03-12 10:40:34 +00:00
|
|
|
if (eFamily == SD_STYLE_FAMILY_PSEUDO)
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
SfxItemSet aTempSet(*pOutSet);
|
2014-10-29 11:04:25 +02:00
|
|
|
static_cast<SdStyleSheet*>(pStyleSheet)->AdjustToFontHeight(aTempSet);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-03-12 20:27:21 +01:00
|
|
|
/* Special treatment: reset the INVALIDS to
|
|
|
|
NULL-Pointer (otherwise INVALIDs or pointer point
|
|
|
|
to DefaultItems in the template; both would
|
|
|
|
prevent the attribute inheritance) */
|
2000-09-18 16:07:07 +00:00
|
|
|
aTempSet.ClearInvalidItems();
|
2003-03-27 09:58:12 +00:00
|
|
|
|
|
|
|
// EE_PARA_NUMBULLET item is only valid in first outline template
|
|
|
|
if( (ePO >= PO_OUTLINE_2) && (ePO <= PO_OUTLINE_9) )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2014-09-10 17:53:41 +02:00
|
|
|
if (aTempSet.GetItemState(EE_PARA_NUMBULLET) == SfxItemState::SET)
|
2003-03-27 09:58:12 +00:00
|
|
|
{
|
2014-10-29 11:04:25 +02:00
|
|
|
SvxNumRule aRule(*static_cast<const SvxNumBulletItem*>(aTempSet.GetItem(EE_PARA_NUMBULLET))->GetNumRule());
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-08-24 22:22:45 +04:00
|
|
|
OUString sStyleName(SD_RESSTR(STR_PSEUDOSHEET_OUTLINE) + " 1");
|
2008-03-12 10:40:34 +00:00
|
|
|
SfxStyleSheetBase* pFirstStyleSheet = pSSPool->Find( sStyleName, SD_STYLE_FAMILY_PSEUDO);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2003-03-27 09:58:12 +00:00
|
|
|
if(pFirstStyleSheet)
|
|
|
|
{
|
|
|
|
pFirstStyleSheet->GetItemSet().Put( SvxNumBulletItem( aRule, EE_PARA_NUMBULLET ));
|
2014-10-29 11:04:25 +02:00
|
|
|
SdStyleSheet* pRealSheet = static_cast<SdStyleSheet*>(pFirstStyleSheet)->GetRealStyleSheet();
|
2003-03-27 09:58:12 +00:00
|
|
|
pRealSheet->Broadcast(SfxSimpleHint(SFX_HINT_DATACHANGED));
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2003-03-27 09:58:12 +00:00
|
|
|
aTempSet.ClearItem( EE_PARA_NUMBULLET );
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2003-03-27 09:58:12 +00:00
|
|
|
pStyleSheet->GetItemSet().Put(aTempSet);
|
2014-06-13 11:23:07 +01:00
|
|
|
SdStyleSheet::BroadcastSdStyleSheetChange(pStyleSheet, ePO, pSSPool);
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2001-04-24 14:23:03 +00:00
|
|
|
SfxItemSet& rAttr = pStyleSheet->GetItemSet();
|
2008-06-06 11:06:41 +00:00
|
|
|
|
2011-12-06 02:24:51 +01:00
|
|
|
sdr::properties::CleanupFillProperties( rAttr );
|
|
|
|
|
2001-10-26 11:44:09 +00:00
|
|
|
// check for unique names of named items for xml
|
2014-09-10 17:53:41 +02:00
|
|
|
if( rAttr.GetItemState( XATTR_FILLBITMAP ) == SfxItemState::SET )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
const SfxPoolItem* pOldItem = rAttr.GetItem( XATTR_FILLBITMAP );
|
2014-10-29 11:04:25 +02:00
|
|
|
SfxPoolItem* pNewItem = static_cast<const XFillBitmapItem*>(pOldItem)->checkForUniqueItem( mpDoc );
|
2014-08-01 14:50:54 +02:00
|
|
|
if( pNewItem )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
rAttr.Put( *pNewItem );
|
|
|
|
delete pNewItem;
|
|
|
|
}
|
|
|
|
}
|
2014-09-10 17:53:41 +02:00
|
|
|
if( rAttr.GetItemState( XATTR_LINEDASH ) == SfxItemState::SET )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
const SfxPoolItem* pOldItem = rAttr.GetItem( XATTR_LINEDASH );
|
2014-10-29 11:04:25 +02:00
|
|
|
SfxPoolItem* pNewItem = static_cast<const XLineDashItem*>(pOldItem)->checkForUniqueItem( mpDoc );
|
2014-08-01 14:50:54 +02:00
|
|
|
if( pNewItem )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
rAttr.Put( *pNewItem );
|
|
|
|
delete pNewItem;
|
|
|
|
}
|
|
|
|
}
|
2014-09-10 17:53:41 +02:00
|
|
|
if( rAttr.GetItemState( XATTR_LINESTART ) == SfxItemState::SET )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
const SfxPoolItem* pOldItem = rAttr.GetItem( XATTR_LINESTART );
|
2014-10-29 11:04:25 +02:00
|
|
|
SfxPoolItem* pNewItem = static_cast<const XLineStartItem*>(pOldItem)->checkForUniqueItem( mpDoc );
|
2014-08-01 14:50:54 +02:00
|
|
|
if( pNewItem )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
rAttr.Put( *pNewItem );
|
|
|
|
delete pNewItem;
|
|
|
|
}
|
|
|
|
}
|
2014-09-10 17:53:41 +02:00
|
|
|
if( rAttr.GetItemState( XATTR_LINEEND ) == SfxItemState::SET )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
const SfxPoolItem* pOldItem = rAttr.GetItem( XATTR_LINEEND );
|
2014-10-29 11:04:25 +02:00
|
|
|
SfxPoolItem* pNewItem = static_cast<const XLineEndItem*>(pOldItem)->checkForUniqueItem( mpDoc );
|
2014-08-01 14:50:54 +02:00
|
|
|
if( pNewItem )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
rAttr.Put( *pNewItem );
|
|
|
|
delete pNewItem;
|
|
|
|
}
|
|
|
|
}
|
2014-09-10 17:53:41 +02:00
|
|
|
if( rAttr.GetItemState( XATTR_FILLGRADIENT ) == SfxItemState::SET )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
const SfxPoolItem* pOldItem = rAttr.GetItem( XATTR_FILLGRADIENT );
|
2014-10-29 11:04:25 +02:00
|
|
|
SfxPoolItem* pNewItem = static_cast<const XFillGradientItem*>(pOldItem)->checkForUniqueItem( mpDoc );
|
2014-08-01 14:50:54 +02:00
|
|
|
if( pNewItem )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
rAttr.Put( *pNewItem );
|
|
|
|
delete pNewItem;
|
|
|
|
}
|
|
|
|
}
|
2014-09-10 17:53:41 +02:00
|
|
|
if( rAttr.GetItemState( XATTR_FILLFLOATTRANSPARENCE ) == SfxItemState::SET )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
const SfxPoolItem* pOldItem = rAttr.GetItem( XATTR_FILLFLOATTRANSPARENCE );
|
2014-10-29 11:04:25 +02:00
|
|
|
SfxPoolItem* pNewItem = static_cast<const XFillFloatTransparenceItem*>(pOldItem)->checkForUniqueItem( mpDoc );
|
2014-08-01 14:50:54 +02:00
|
|
|
if( pNewItem )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
rAttr.Put( *pNewItem );
|
|
|
|
delete pNewItem;
|
|
|
|
}
|
|
|
|
}
|
2014-09-10 17:53:41 +02:00
|
|
|
if( rAttr.GetItemState( XATTR_FILLHATCH ) == SfxItemState::SET )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
const SfxPoolItem* pOldItem = rAttr.GetItem( XATTR_FILLHATCH );
|
2014-10-29 11:04:25 +02:00
|
|
|
SfxPoolItem* pNewItem = static_cast<const XFillHatchItem*>(pOldItem)->checkForUniqueItem( mpDoc );
|
2014-08-01 14:50:54 +02:00
|
|
|
if( pNewItem )
|
2001-10-26 11:44:09 +00:00
|
|
|
{
|
|
|
|
rAttr.Put( *pNewItem );
|
|
|
|
delete pNewItem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-29 11:04:25 +02:00
|
|
|
static_cast<SfxStyleSheet*>( pStyleSheet )->Broadcast( SfxSimpleHint( SFX_HINT_DATACHANGED ) );
|
2001-04-26 10:50:12 +00:00
|
|
|
|
2006-12-12 16:25:05 +00:00
|
|
|
DrawViewShell* pDrawViewShell = dynamic_cast< DrawViewShell* >( mpViewShell );
|
2005-12-14 16:05:04 +00:00
|
|
|
if( pDrawViewShell )
|
2001-04-26 10:50:12 +00:00
|
|
|
{
|
2005-12-14 16:05:04 +00:00
|
|
|
PageKind ePageKind = pDrawViewShell->GetPageKind();
|
2001-04-26 10:50:12 +00:00
|
|
|
if( ePageKind == PK_NOTES || ePageKind == PK_HANDOUT )
|
|
|
|
{
|
2006-12-12 16:25:05 +00:00
|
|
|
SdPage* pPage = mpViewShell->GetActualPage();
|
2001-04-26 10:50:12 +00:00
|
|
|
|
2005-12-14 16:05:04 +00:00
|
|
|
if(pDrawViewShell->GetEditMode() == EM_MASTERPAGE)
|
2004-07-12 14:08:19 +00:00
|
|
|
{
|
|
|
|
pPage = static_cast<SdPage*>((&(pPage->TRG_GetMasterPage())));
|
|
|
|
}
|
2001-04-26 10:50:12 +00:00
|
|
|
|
|
|
|
if( pPage )
|
|
|
|
{
|
|
|
|
SdrObjListIter aIter( *pPage );
|
|
|
|
while( aIter.IsMore() )
|
|
|
|
{
|
|
|
|
SdrObject* pObj = aIter.Next();
|
|
|
|
if( pObj->ISA(SdrPageObj) )
|
2003-11-24 16:15:45 +00:00
|
|
|
{
|
|
|
|
// repaint only
|
|
|
|
pObj->ActionChanged();
|
|
|
|
// pObj->SendRepaintBroadcast();
|
|
|
|
}
|
2001-04-26 10:50:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-12-12 16:25:05 +00:00
|
|
|
if( mpDoc->GetOnlineSpell() )
|
2001-11-23 10:29:44 +00:00
|
|
|
{
|
2006-12-12 16:25:05 +00:00
|
|
|
const SfxPoolItem* pTempItem;
|
2014-09-10 17:53:41 +02:00
|
|
|
if( SfxItemState::SET == rAttr.GetItemState(EE_CHAR_LANGUAGE, false, &pTempItem ) ||
|
|
|
|
SfxItemState::SET == rAttr.GetItemState(EE_CHAR_LANGUAGE_CJK, false, &pTempItem ) ||
|
|
|
|
SfxItemState::SET == rAttr.GetItemState(EE_CHAR_LANGUAGE_CTL, false, &pTempItem ) )
|
2001-11-23 10:29:44 +00:00
|
|
|
{
|
2006-12-12 16:25:05 +00:00
|
|
|
mpDoc->StopOnlineSpelling();
|
|
|
|
mpDoc->StartOnlineSpelling();
|
2001-11-23 10:29:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-11 11:43:35 +02:00
|
|
|
mpDoc->SetChanged(true);
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
{
|
2006-12-12 16:25:05 +00:00
|
|
|
if( nSId == SID_STYLE_NEW )
|
2008-03-12 10:40:34 +00:00
|
|
|
pSSPool->Remove( pStyleSheet );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
2013-03-12 20:27:21 +01:00
|
|
|
return; // Cancel
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_STYLE_NEW_BY_EXAMPLE:
|
|
|
|
{
|
|
|
|
if( pStyleSheet )
|
|
|
|
{
|
|
|
|
nRetMask = pStyleSheet->GetMask();
|
2006-12-12 16:25:05 +00:00
|
|
|
SfxItemSet aCoreSet( mpDoc->GetPool() );
|
2014-04-24 10:52:02 +02:00
|
|
|
mpView->GetAttributes( aCoreSet, true );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-03-12 20:27:21 +01:00
|
|
|
// if the object had a template, this becomes parent of the new template
|
2006-12-12 16:25:05 +00:00
|
|
|
SfxStyleSheet* pOldStyle = mpView->GetStyleSheet();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-03-12 20:27:21 +01:00
|
|
|
// if pOldStyle == pStyleSheet -> recursion
|
2000-09-18 16:07:07 +00:00
|
|
|
if( pOldStyle != pStyleSheet )
|
|
|
|
{
|
|
|
|
if (pOldStyle)
|
|
|
|
{
|
|
|
|
pStyleSheet->SetParent(pOldStyle->GetName());
|
|
|
|
}
|
|
|
|
|
|
|
|
SfxItemSet* pStyleSet = &pStyleSheet->GetItemSet();
|
|
|
|
pStyleSet->Put(aCoreSet);
|
|
|
|
|
2013-03-12 20:27:21 +01:00
|
|
|
/* apply template (but not when somebody is editing a text.
|
|
|
|
To do this, the edit engine had to be capable to use
|
|
|
|
templates on a character level. */
|
2006-12-12 16:25:05 +00:00
|
|
|
if (!mpView->GetTextEditObject())
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2014-10-29 11:04:25 +02:00
|
|
|
mpView->SetStyleSheet( static_cast<SfxStyleSheet*>(pStyleSheet));
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2014-10-29 11:04:25 +02:00
|
|
|
static_cast<SfxStyleSheet*>( pStyleSheet )->Broadcast( SfxSimpleHint( SFX_HINT_DATACHANGED ) );
|
2014-02-11 11:43:35 +02:00
|
|
|
mpDoc->SetChanged(true);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2006-12-12 16:25:05 +00:00
|
|
|
mpViewShell->GetViewFrame()->GetBindings().Invalidate( SID_STYLE_FAMILY2 );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_STYLE_UPDATE_BY_EXAMPLE:
|
|
|
|
{
|
CWS-TOOLING: integrate CWS impress172
2009-07-30 15:29:39 +0200 cl r274492 : #i102921# remove reference to inssrc.obj which was moved to svx
2009-07-29 11:40:35 +0200 wg r274445 : i103869
2009-07-22 14:39:13 +0200 sj r274241 : #i102713# fixed cloud shape
2009-07-07 15:28:04 +0200 sj r273800 : fixed build problem
2009-07-07 13:27:13 +0200 cl r273792 : #i102921# moved insert col/rows dialog to svx
2009-07-07 10:36:05 +0200 cl r273782 : fixed compiler warnings
2009-07-02 10:40:21 +0200 sj r273626 : fixed build problem
2009-07-02 10:27:56 +0200 cl r273624 : fixed merge problem
2009-07-02 10:27:19 +0200 cl r273623 : fixed compiler warning
2009-07-01 10:04:58 +0200 cl r273550 : CWS-TOOLING: rebase CWS impress172 to trunk@273468 (milestone: DEV300:m51)
2009-06-30 16:22:02 +0200 cl r273518 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:20:46 +0200 cl r273517 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:20:28 +0200 cl r273516 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:19:49 +0200 cl r273515 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:19:28 +0200 cl r273514 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 16:17:38 +0200 cl r273513 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:45:44 +0200 cl r273511 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:37:16 +0200 cl r273510 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:33:47 +0200 cl r273509 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:32:10 +0200 cl r273508 : #i102921# added insert table row/col dialog for impress tables
2009-06-30 15:30:05 +0200 cl r273507 : #i102921# added insert table row/col dialog for impress tables
2009-06-29 12:32:42 +0200 sj r273465 : #158632# fixed textrange hyperlinks to specific pages, added slide names
2009-06-24 15:17:59 +0200 sj r273349 : #158636# fixed text range hyperlink to first/last slide
2009-06-22 13:18:30 +0200 sj r273224 : #158651# fixed header footer import
2009-06-19 15:18:24 +0200 sj r273160 : #158614# default text of presentation objects now cleared
2009-06-16 15:54:19 +0200 sj r273023 : #i101545# fixed crash - bracketing of graphic links has been done twice leading to a broken graphic state stack
2009-06-15 16:26:26 +0200 sj r272998 : #158635# importing bookmark interactions: firstslide, lastslide, nextslide, previousslide
2009-06-15 16:25:26 +0200 sj r272997 : #158635# added bookmark interactions: firstslide, lastslide, nextslide, previousslide
2009-06-12 13:17:32 +0200 sj r272915 : #i102713# fixed cloud shape
2009-06-10 18:36:58 +0200 sj r272833 : #158674# fixed curvedleftarrow, curvedrightarrow, curveddownarrow, curveduparrow
2009-06-08 19:52:28 +0200 sj r272746 : #158674# fixed curvedleftarrow, curvedrightarrow, curveddownarrow, curveduparrow
2009-06-04 15:28:32 +0200 cl r272640 : #i102358# applied patch to remove warnings
2009-06-04 14:39:45 +0200 cl r272630 : #i99423# applied path to change impress wizard create button to open when opening exisitng documents
2009-06-03 18:21:26 +0200 sj r272601 : #158635# now using the correct paragraph bottom spacing. using font independent linespacing for impress text objects
2009-06-03 15:47:27 +0200 cl r272583 : #i101817# added color collection based on scribus
2009-06-03 14:43:59 +0200 cl r272580 : #i102163# use weak ref to SdrObject instead of listening to the model
2009-06-03 12:39:29 +0200 cl r272556 : #i93308# correct namespace for com.sun.star.text.textfields
2009-06-03 12:27:00 +0200 cl r272555 : #i93308# correct namespace for com.sun.star.text.textfields
2009-06-03 11:33:44 +0200 cl r272553 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-03 11:30:59 +0200 cl r272552 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-03 11:30:22 +0200 cl r272551 : #i23221# allow all settings (that make sense) for presentation styles
2009-06-02 18:41:07 +0200 sj r272527 : #i28358# applied patch (better conversion of dotted lines)
2009-06-02 11:52:13 +0200 cl r272491 : #i98668# applied patch to fix possible endless loop if exception occours
2009-05-28 17:02:55 +0200 sj r272416 : #i102336# retaining graphic file names unchanged
2009-05-28 17:00:25 +0200 sj r272415 : #i102336# retaining graphic file names unchanged
2009-05-28 17:00:10 +0200 sj r272414 : #i102336# retaining graphic file names unchanged
2009-05-25 12:43:58 +0200 sj r272232 : #i102069# added patch from thb (fixed rotated group objects)
2009-08-05 17:01:07 +00:00
|
|
|
if ((mpView->AreObjectsMarked() && mpView->GetMarkedObjectList().GetMarkCount() == 1) ||
|
|
|
|
mpView->ISA(OutlineView))
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2006-12-12 16:25:05 +00:00
|
|
|
pStyleSheet = mpView->GetStyleSheet();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if( pStyleSheet )
|
|
|
|
{
|
|
|
|
nRetMask = pStyleSheet->GetMask();
|
2006-12-12 16:25:05 +00:00
|
|
|
SfxItemSet aCoreSet( mpDoc->GetPool() );
|
|
|
|
mpView->GetAttributes( aCoreSet );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
SfxItemSet* pStyleSet = &pStyleSheet->GetItemSet();
|
|
|
|
pStyleSet->Put( aCoreSet );
|
|
|
|
|
2014-10-29 11:04:25 +02:00
|
|
|
mpView->SetStyleSheet( static_cast<SfxStyleSheet*>(pStyleSheet));
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2014-10-29 11:04:25 +02:00
|
|
|
static_cast<SfxStyleSheet*>( pStyleSheet )->Broadcast( SfxSimpleHint( SFX_HINT_DATACHANGED ) );
|
2014-02-11 11:43:35 +02:00
|
|
|
mpDoc->SetChanged(true);
|
2006-12-12 16:25:05 +00:00
|
|
|
mpViewShell->GetViewFrame()->GetBindings().Invalidate( SID_STYLE_FAMILY2 );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
2012-11-25 15:24:42 +01:00
|
|
|
if( nRetMask != SFXSTYLEBIT_ALL )
|
2006-12-12 16:25:05 +00:00
|
|
|
rReq.SetReturnValue( SfxUInt16Item( nSId, nRetMask ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2005-12-14 16:05:04 +00:00
|
|
|
void FuTemplate::Activate()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void FuTemplate::Deactivate()
|
|
|
|
{
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2004-01-20 10:19:32 +00:00
|
|
|
} // end of namespace sd
|
2010-10-12 15:51:52 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|