/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * 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 .
*/
pOutSet.reset( new SfxItemSet( rStyleBase.GetItemSet() ) );
pOutSet->ClearItem();
// If there is no bullet item in this stylesheet, we get it // from 'Outline 1' style sheet. const SfxPoolItem *pItem = nullptr; if( SfxItemState::SET != aInputSet.GetItemState(EE_PARA_NUMBULLET, false, &pItem ))
{
OUString aStyleName(SdResId(STR_PSEUDOSHEET_OUTLINE) + " 1");
SfxStyleSheetBase* pFirstStyleSheet = pSSPool->Find( aStyleName, SfxStyleFamily::Pseudo);
// set title and add corresponding pages to dialog
OUString aTitle;
switch( ePO )
{ case PresentationObjects::Title:
aTitle = SdResId(STR_PSEUDOSHEET_TITLE); break;
case PresentationObjects::Subtitle:
aTitle = SdResId(STR_PSEUDOSHEET_SUBTITLE); break;
case PresentationObjects::Background:
aTitle = SdResId(STR_PSEUDOSHEET_BACKGROUND); break;
case PresentationObjects::BackgroundObjects:
aTitle = SdResId(STR_PSEUDOSHEET_BACKGROUNDOBJECTS); break;
case PresentationObjects::Outline_1: case PresentationObjects::Outline_2: case PresentationObjects::Outline_3: case PresentationObjects::Outline_4: case PresentationObjects::Outline_5: case PresentationObjects::Outline_6: case PresentationObjects::Outline_7: case PresentationObjects::Outline_8: case PresentationObjects::Outline_9:
aTitle = SdResId(STR_PSEUDOSHEET_OUTLINE) + " " +
OUString::number( static_cast<int>(ePO) - static_cast<int>(PresentationObjects::Outline_1) + 1 ); break;
case PresentationObjects::Notes:
aTitle = SdResId(STR_PSEUDOSHEET_NOTES); break;
}
m_xDialog->set_title(aTitle);
}
sal_uInt16 SdPresLayoutTemplateDlg::GetOutlineLevel() const
{ switch( ePO )
{ case PresentationObjects::Outline_1: return0; case PresentationObjects::Outline_2: return1; case PresentationObjects::Outline_3: return2; case PresentationObjects::Outline_4: return3; case PresentationObjects::Outline_5: return4; case PresentationObjects::Outline_6: return5; case PresentationObjects::Outline_7: return6; case PresentationObjects::Outline_8: return7; case PresentationObjects::Outline_9: return8; default:
SAL_WARN( "sd", "Wrong Po! [CL]");
} return0;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.