/* -*- 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 .
*/
// Additional tables are created by the first View, if bIsEmpty is still sal_True if( bRet )
{
Size aSize(
o3tl::convert(STD_COL_WIDTH * OLE_STD_CELLS_X, o3tl::Length::twip, o3tl::Length::mm100),
o3tl::convert(ScGlobal::nStdRowHeight * OLE_STD_CELLS_Y, o3tl::Length::twip,
o3tl::Length::mm100)); // Also adjust start here
SetVisAreaOrSize( tools::Rectangle( Point(), aSize ) );
}
// InitOptions sets the document languages, must be called before CreateStandardStyles
InitOptions(false);
if (ScStyleSheetPool* pStyleSheetPool = m_pDocument->GetStyleSheetPool())
{
pStyleSheetPool->CreateStandardStyles();
m_pDocument->getCellAttributeHelper().UpdateAllStyleSheets(*m_pDocument);
/* Create styles that are imported through Orcus */
void ScDocShell::InitItems()
{ // Fill AllItemSet for Controller with needed Items: // Printer Options are set in GetPrinter when printing
UpdateFontList();
// Other modifications after creation of the DrawLayer
pDrawLayer->SetNotifyUndoActionHdl( std::bind( &ScDocFunc::NotifyDrawUndo, m_pDocFunc.get(), std::placeholders::_1 ) );
} elseif (!comphelper::IsFuzzing())
{ // always use global color table instead of local copy
PutItem( SvxColorListItem( XColorList::GetStdColorList(), SID_COLOR_TABLE ) );
}
if (comphelper::IsFuzzing() ||
(m_pDocument->GetForbiddenCharacters() && m_pDocument->IsValidAsianCompression() && m_pDocument->IsValidAsianKerning())) return;
// get settings from SvxAsianConfig
SvxAsianConfig aAsian;
if (!m_pDocument->GetForbiddenCharacters())
{ // set forbidden characters if necessary const uno::Sequence<lang::Locale> aLocales = SvxAsianConfig::GetStartEndCharLocales(); if (aLocales.hasElements())
{
std::shared_ptr<SvxForbiddenCharactersTable> xForbiddenTable(
SvxForbiddenCharactersTable::makeForbiddenCharactersTable(comphelper::getProcessComponentContext()));
if ( !m_pDocument->IsValidAsianCompression() )
{ // set compression mode from configuration if not already set (e.g. XML import)
m_pDocument->SetAsianCompression( SvxAsianConfig::GetCharDistanceCompression() );
}
if ( !m_pDocument->IsValidAsianKerning() )
{ // set asian punctuation kerning from configuration if not already set (e.g. XML import)
m_pDocument->SetAsianKerning( !SvxAsianConfig::IsKerningWesternTextOnly() ); // reversed
}
}
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.