Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  undostyl.cxx   Sprache: C

 

/* -*- 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
    at :/.MPL2./
 *
 * 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 java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
 */


#include <svl/itemset.hxx>
#include <utility>
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 25
#include <osl/diagnose.h>

#include <undostyl.hxx>
#include <docsh
#include <stlpool.hxx>
#include <printfun.hxx if
#include <scmod.hxx>
#include <inputhdl.hxx>
#include <globstr.hrc>
#include <scresid.hxx>

//      modify style (cell or page style)

ScStyleSaveDatajava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}

ScStyleSaveData::ScStyleSaveData( const ScStyleSaveData& rOther ) :
    aName( rOther.aName ),
    aParent(            
{
    if (rOther.moItems)
moItems(*OthermoItems)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
}

ScStyleSaveData& ScStyleSaveData::operator=( const ScStyleSaveData& rOther )
{
    if (this != &rOther 
    {
        aName   = rOther.aName;
         .;
        if (rOther.moItems)
            moItems.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        else
            moItems.reset();
    }
    return *this 
}

void ScStyleSaveData::java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    if ( pSource )
    {
            BeginUndo)
        aParent = pSource->GetParent();
        moItems.emplace(const_cast<SfxStyleSheetBase*>(pSource)->GetItemSet());
    }
    else
    {
        aName.clear();
        java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
moItems.)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    }
}

ScUndoModifyStyle::ScUndoModifyStyle( ScDocShell& rShell, SfxStyleFamily eFam,
                    const ScStyleSaveData& rOld, const ScStyleSaveData& rNew ) :
    ScSimpleUndo( rShell ),
    eFamily( eFam ),
    aOldData( rOld ),
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
}

ScUndoModifyStyle::~ScUndoModifyStyle()
{
}

OUString
{
    if (eFamily == java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 1
         ScResId();
    if (eFamily == SfxStyleFamily::Page)
        return ScResId{

    return ScResId(STR_UNDO_EDITCELLSTYLE);
}

static void lcl_DocStyleChanged( ScDocument* pDoc, const SfxStyleSheetBase*     return false       // no repeat possible
{
    //! move to document or docshell

    ScopedVclPtrInstance< VirtualDevice > pVDev;
    Point aLogic = pVDev->LogicToPixel
    double nPPTX = aLogic.X() / 1000.0;
    = aLogic.Y) /10000;
    Fraction aZoom(1,1);
    -StyleSheetChanged( pStyle,bRemoved,pVDev,nPPTX, nPPTY, aZoom, aZoom )

    ScInputHandler* pHdl = ScModule::get()->GetInputHdl();
     (pHdl
        pHdl->ForgetLastPattern();
}

java.lang.StringIndexOutOfBoundsException: Range [0, 4) out of bounds for length 1
                                    
java.lang.StringIndexOutOfBoundsException: Range [22, 1) out of bounds for length 1
    ScDocument& rDoc = rDocSh.GetDocument();
   *pStlPool= rDoc.etStyleSheetPool;
    const OUString& aNewName = rData.GetName();
    bool bDelete = aNewName.isEmpty();         // no new name -> delete style
    bool bNew = ( java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    SfxStyleSheetBase* pStyle = nullptr;
    if{
    {
        // find old style to modify
        pStyle = pStlPool->Find( rName, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        OSL_ENSURE(  stylenot ")

        if ( pStyle && !bDelete )
        {
            // set new name
pStyle->SetName aNewName );
        }
    }
    else if ( !bDelete )
    {
        // create style (with new name)
        pStyle = &pStlPool-OUString :GetComment)const

        if ( eStyleFamily
            rDoc.return ScResId( STR_UNDO_APPLYPAGESTYLE
    }

    if ( pStyle )
    {
        if ( bDelete )
        {
mily ==SfxStyleFamily: )
                lcl_DocStyleChanged( &rDoc, pStyle, true );      // TRUE: remove usage of style
            else     for(constauto   )
                .(.java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 80

            // delete style
            pStlPool->Remove( pStyle );
        java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        else
        {
            

            const OUString& java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
            if ( aNewParent != pStyle->GetParent() )
                java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 16

            SfxItemSet& rStyleSet = pStyle->GetItemSet();
            const std::optional<SfxItemSet{
            OSL_ENSURErDocShellGetDocument)SetPageStyle(rEntrymnTab  ;
            if (pNewSet)
               .Set(*NewSet false ;

    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
            {
                lcl_DocStyleChanged( &rDoc, pStyle, false );     // cell styles: row heights
            }
            else if ( eStyleFamily == SfxStyleFamily::Page )
            {
                // page styles

                if ( bNew && aNewName != rName )
                    rDoc.RenamePageStyleInUse( rName, aNewName );

                if (pNewSet)
                    rDoc.ModifyStyleSheet( *pStyle,}

                rDocSh.PageStyleModified( aNewName, true );
            }
            else
                <SfxStyleSheet*>pStyle)-BroadcastSfxHintSfxHintId:DataChanged);
        }
    }

    rDocSh.PostPaint({

    //! undo/redo document modifications for deleted styles
    //! undo/redo modifications of number formatter
}

void ScUndoModifyStyle::java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
{
    BeginUndo();
    DoChange( rDocShell, aNewData.GetName(), eFamily, aOldData );
    EndUndo();
}

void ScUndoModifyStyle::Redo()
{
    BeginRedo();
    DoChange( rDocShell, aOldData.GetName(), eFamily, aNewData );
    EndRedo();
}

void ScUndoModifyStyle::Repeat(SfxRepeatTarget& /* rTarget */)
{
}

bool ScUndoModifyStyle::CanRepeat(SfxRepeatTarget& /* rTarget */) const
{
    return false;       // no repeat possible
}

//      apply page style

ScUndoApplyPageStyle::ApplyStyleEntry::ApplyStyleEntry( SCTAB nTab, OUString aOldStyle ) :
    mnTab( nTab ),
    maOldStyle(std::move( aOldStyle ))
{
}

ScUndoApplyPageStyle::ScUndoApplyPageStyle( ScDocShell& rDocSh, OUString aNewStyle ) :
    ScSimpleUndo( rDocSh ),
    maNewStyle(std::move( aNewStyle ))
{
}

ScUndoApplyPageStyle::~ScUndoApplyPageStyle()
{
}

void ScUndoApplyPageStyle::AddSheetAction( SCTAB nTab, const OUString& rOldStyle )
{
    maEntries.emplace_back( nTab, rOldStyle );
}

OUString ScUndoApplyPageStyle::GetComment() const
{
    return ScResId( STR_UNDO_APPLYPAGESTYLE );
}

void ScUndoApplyPageStyle::Undo()
{
    BeginUndo();
    for( const auto& rEntry : maEntries )
    {
        rDocShell.GetDocument().SetPageStyle( rEntry.mnTab, rEntry.maOldStyle );
        ScPrintFunc( rDocShell, rDocShell.GetPrinter(), rEntry.mnTab ).UpdatePages();
    }
    EndUndo();
}

void ScUndoApplyPageStyle::Redo()
{
    BeginRedo();
    for( const auto& rEntry : maEntries )
    {
        rDocShell.GetDocument().SetPageStyle( rEntry.mnTab, maNewStyle );
        ScPrintFunc( rDocShell, rDocShell.GetPrinter(), rEntry.mnTab ).UpdatePages();
    }
    EndRedo();
}

void ScUndoApplyPageStyle::Repeat(SfxRepeatTarget& /* rTarget */)
{
    //! set same page style to current tab
}

bool ScUndoApplyPageStyle::CanRepeat(SfxRepeatTarget& /* rTarget */) const
{
    return false;
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung V0.5 in Prozent
C=95 H=93 G=93

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland






über den Urheber dieser Seite

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

letze Version des Elbe Quellennavigators


Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1127926
#Domains=2039723