Kaydet (Commit) 621b0f29 authored tarafından Luboš Luňák's avatar Luboš Luňák

PCH support for Library_sw

With MSVC2010 compile time goes 20 minutes -> 7 minutes. With Clang
it's however 7 minutes -> 10 minutes, apparently the overhead
caused by all the extra data is bigger than the gain.
üst b1ed6678
......@@ -23,6 +23,8 @@ $(eval $(call gb_Library_add_sdi_headers,sw,sw/sdi/swslots))
$(eval $(call gb_Library_set_componentfile,sw,sw/util/sw))
$(eval $(call gb_Library_set_precompiled_header,sw,$(SRCDIR)/sw/inc/pch/precompiled_sw))
$(eval $(call gb_Library_set_include,sw,\
-I$(SRCDIR)/sw/source/core/inc \
-I$(SRCDIR)/sw/source/filter/inc \
......
/* -*- 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/.
*/
#include "precompiled_sw.hxx"
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This diff is collapsed.
......@@ -237,15 +237,15 @@ sal_uInt16 GetWhichOfScript( sal_uInt16 nWhich, sal_uInt16 nScript )
sal_uInt16 nRet;
if( pM )
{
using namespace ::com::sun::star::i18n;
using namespace ::com::sun::star;
{
if( ScriptType::WEAK == nScript )
if( i18n::ScriptType::WEAK == nScript )
nScript = GetI18NScriptTypeOfLanguage( (sal_uInt16)GetAppLanguage() );
switch( nScript)
{
case ScriptType::COMPLEX:
case i18n::ScriptType::COMPLEX:
++pM; // no break;
case ScriptType::ASIAN:
case i18n::ScriptType::ASIAN:
++pM; // no break;
default:
nRet = *pM;
......
......@@ -3486,7 +3486,7 @@ namespace {
rTxtNode.RemoveFromList();
if ( bParagraphStyleChanged )
{
::lcl_ResetParAttrs(rTxtNode);
lcl_ResetParAttrs(rTxtNode);
}
}
else
......@@ -3514,7 +3514,7 @@ namespace {
rTxtNode.RemoveFromList();
if ( bParagraphStyleChanged )
{
::lcl_ResetParAttrs(rTxtNode);
lcl_ResetParAttrs(rTxtNode);
// #i70748#
if ( dynamic_cast<const SfxUInt16Item &>(rTxtNode.GetAttr( RES_PARATR_OUTLINELEVEL, sal_False )).GetValue() > 0 )
{
......
......@@ -27,13 +27,13 @@
#include <ndtxt.hxx>
#include <txatbase.hxx>
using namespace ::com::sun::star::i18n;
using namespace ::com::sun::star;
SwScriptIterator::SwScriptIterator( const String& rStr, xub_StrLen nStt, bool bFrwrd )
: rText( rStr ),
nChgPos( rStr.Len() ),
nCurScript( ScriptType::WEAK ),
nCurScript( i18n::ScriptType::WEAK ),
bForward( bFrwrd )
{
if( pBreakIt->GetBreakIter().is() )
......@@ -43,7 +43,7 @@ SwScriptIterator::SwScriptIterator( const String& rStr, xub_StrLen nStt, bool bF
xub_StrLen nPos = nStt;
nCurScript = pBreakIt->GetBreakIter()->getScriptType( rText, nPos );
if( ScriptType::WEAK == nCurScript )
if( i18n::ScriptType::WEAK == nCurScript )
{
if( nPos )
{
......
......@@ -381,7 +381,7 @@ void SwModule::ShowDBObj(SwView& rView, const SwDBData& rData, sal_Bool /*bOnlyI
Reference<XFrame> xFrame = rView.GetViewFrame()->GetFrame().GetFrameInterface();
Reference<XDispatchProvider> xDP(xFrame, uno::UNO_QUERY);
uno::Reference<frame::XFrame> xBeamerFrame = xFrame->findFrame("_beamer", FrameSearchFlag::CHILDREN);
uno::Reference<XFrame> xBeamerFrame = xFrame->findFrame("_beamer", FrameSearchFlag::CHILDREN);
if (xBeamerFrame.is())
{ // the beamer has been opened by the SfxViewFrame
Reference<XController> xController = xBeamerFrame->getController();
......
......@@ -2430,7 +2430,7 @@ void SwNewDBMgr::ExecuteFormLetter( SwWrtShell& rSh,
beans::PropertyValue* pValues = aValues.getArray();
pValues[0].Name = C2U("FilterName");
pValues[0].Value <<= ::rtl::OUString(pSfxFlt->GetFilterName());
uno::Reference< frame::XStorable > xStore( xDocShell->GetModel(), uno::UNO_QUERY);
uno::Reference< XStorable > xStore( xDocShell->GetModel(), uno::UNO_QUERY);
sTempURL = URIHelper::SmartRel2Abs( INetURLObject(), utl::TempFile::CreateTempName() );
xStore->storeToURL( sTempURL, aValues );
}
......
......@@ -72,6 +72,7 @@ using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame;
#define DB_DD_DELIM 0x0b
......@@ -214,7 +215,7 @@ void SwTextShell::ExecDB(SfxRequest &rReq)
aData.aDBColumn = ((SfxUsrAnyItem*)pColumnItem)->GetValue();
aFldMgr.InsertFld(aData);
SfxViewFrame* pViewFrame = GetView().GetViewFrame();
uno::Reference< frame::XDispatchRecorder > xRecorder =
uno::Reference< XDispatchRecorder > xRecorder =
pViewFrame->GetBindings().GetRecorder();
if ( xRecorder.is() )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment