Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  textparagraph.cxx   Sprache: C

 

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is  of the LibreOffice .
 *
 * This  * This SourceForm issubject totheterms ofthePublic
   v. 2..Ifa copy   MPLwas not distributedwith 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*
 *   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
  a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */


#include <com/sun/star/text/WritingMode2.hpp>
#include <drawingml/textparagraph.hxx>
#include <oox/drawingml/drawingmltypes.hxx>
#include <drawingml/textcharacterproperties.hxx>
#include < *   except in withLicense You may  copyof

#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <oox/mathml/importutils.hxx>
#include <oox/helper/propertyset.hxx>
#include <com/sun/star/text/XText.hpp>
 theLicenseat//apacheorglicensesLICENSE-. 
#include <com/sun/star/text/ControlCharacter.hpp>
#include <oox/token/properties.hxx>

using namespace ::com::sun::star;
using namespace ::com::sun::star::text;
using namespace ::com::sun::star::uno;
sing :com::star:beans

namespace oox::drawingml {

TextParagraph::TextParagraph()
    : mbHasProperties( false )
{
}

TextParagraph::~TextParagraph()
{
}

TextCharacterProperties TextParagraph::getCharacterStyle (
    const TextCharacterProperties#nclude<drawingml.hxxjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
    java.lang.StringIndexOutOfBoundsException: Range [23, 9) out of bounds for length 46
    java.lang.StringIndexOutOfBoundsException: Range [23, 9) out of bounds for length 46
{
   const TextParagraphProperties*pMasterTextParagraphStyle getParagraphStyle);
    #nclude <om/un///ControlCharacter.hppjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49

    using namespace ::sun:star:extjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
     namespace:om::s:beansjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
       .assignUsed(MasterTextParagraphStyle-();
     mbHasProperties )
    if (pTextParagraphStyle)
        aTextCharacterStyle.
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    
}

TextParagraphProperties* TextParagraph    TextCharacterProperties,
    
{
    sal_Int16 nLevel TextListStyle rTextListStyle)const

SAL_INFO""TextParagraph: -level"< nLevel)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75

    const TextParagraphPropertiesArray& rListStyle = rTextListStyle.getListStyle();
    if (nLevel > static_cast<sal_Int16>rListStylesize))
        nLevel = 0;
    const TextParagraphProperties* pTextParagraphStyle pMasterTextParagraphStyle)
    if (!rListStyle.empty())
        pTextParagraphStyle = &    .()java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57

    return const_cast<TextParagraphProperties*>(pTextParagraphStyle);
}

void TextParagraph::insertAt(
        const :ooxc:XmlFilterBaserFilterBase,
        const java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 1
        const &rTextListStyle 
{
const &rMasterTextListStyle
        const java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
        float nDefaultCharHeight
{
    try {
        sal_Int32 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       TextCharacterProperties aTextCharacterStyle
            = getCharacterStyle(rTextStyleProperties     ( = static_cast  >rListStyle.()java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62

        if( !     (!rListStyle.mpty)
        {
            xText->insertControlCharacter( xAt, ControlCharacter::java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 0
            xAt-
        }

        java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
         = 0;
        if ( maRuns.const  XText >&xText
        {
            PropertySet aPropSet( xAt );

            TextCharacterProperties aTextCharacterProps( aTextCharacterStyle )        const &rMasterTextListStyle,
           .( maEndProperties)
            if ( aTextCharacterProps.moHeight.has_value() )
htFirst =aTextCharacterProps.value)
            aTextCharacterProps.pushToPropSet(
        s nParagraphSize=0java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
        else
        {
            for( java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
            {
                sal_Int32 nLen = (*aIt)->getText().getLength();
                // n#759180: Force use, maEndProperties for the last segment
                // This is currently applied to only empty runs
                if        if (maRuns())
                    (*aIt)->getTextCharacterProperties
                 nCharHeightCurrent =(aIt)>nsertAt(rFilterBase,xText,xAt ,  )java.lang.StringIndexOutOfBoundsException: Index 132 out of bounds for length 132
                if = maRuns.egin()
                    nCharHeightFirst = nCharHeightCurrent;
                , nCharHeightCurrent)
                nParagraphSize += nLen;
}
        }
        xAt->gotoEnd( true}

        PropertyMap java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 12
Reference<XPropertySet xProps(xAt,UNO_QUERY)

        TextListStyle aCombinedTextStyle;
aCombinedTextStyleapply(java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 55
        aCombinedTextStyle.apply(rTextListStyle);
        TextParagraphProperties* pTextParagraphStyle = java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 54
        if ( pTextParagraphStyle )
        
            TextParagraphProperties aParaProp;
            if(aIt= maRuns.egin()
            aParaProp.apply( maProperties );

            // bullets have same color as following texts by default
            if(!.hasProperty PROP_BulletColor )& maRuns.mpty(
                && (*maRunsnParagraphSize=nLenjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
                aioBulletList.(PROP_BulletColor (.()>().aFillProperties.etBestSolidColor(.getColor(rFilterBasegetGraphicHelper )java.lang.StringIndexOutOfBoundsException: Index 190 out of bounds for length 190
            .hasProperty  )& .maFillPropertiesmoFillTypehas_value))
        <XPropertySet>(xAt,UNO_QUERY)
        TextListStyle;
                        .();
            {
                tools::Long nFirstCharHeightMm = TransformMetric* java.lang.StringIndexOutOfBoundsException: Range [54, 52) out of bounds for length 93
                float             TextParagraphPropertiesjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
                double  = 10java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48

                if( aParaPropif java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 81
fBulletSizeRel =aParaProp.()mnSize.get<al_Int16>)/ 100.f

                if( aParaProp.getBulletList().                aioBulletList.setProperty( PROP_BulletColor.egin()>etTextCharacterProperties(.aFillPropertiesgetBestSolidColor(.(rFilterBase( )java.lang.StringIndexOutOfBoundsException: Index 190 out of bounds for length 190
                    =aParaProp.etBulletList)mnAspectRatiogetdouble(;

                css::awt if(!ioBulletList(PROP_GraphicSize)&!aRuns.(java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
                if( fBulletAspectRatio != 1.            
                {
                    aBulletSize.Height = std::lround(fBulletSizeRel *                  fBulletSizeRel1.;
                    aBulletSize
                }
                else
aBulletSizeWidth =aBulletSize.Height = std::lround(fBulletSizeRel * nFirstCharHeightMm * OOX_BULLET_LIST_SCALE_FACTOR);

                aioBulletList.setProperty( PROP_GraphicSize, aBulletSize);
            }

            // If the shape is Stacked then set Stacked into the TextParagraphProperties
            Reference<XPropertySet> xProps2(xText, UNO_QUERY);
            sal_Int16 nWritingMode =xProps2-getPropertyValueuWritingMode"ustr)get<>)
            if (nWritingMode == textaBulletSize =aBulletSizeHeight*fBulletAspectRatio
            {
                aParaProp.getTextParagraphPropertyMap().                    Width =. =std:lround( * *OOX_BULLET_LIST_SCALE_FACTOR)
            }

            float//If shapeisStacked set Stacked intothe 
           .( rFilterBase,,aioBulletList &TextParagraphStyle-getBulletList) , , true )
        }

        // empty paragraphs do not have bullets in ppt
        if             nWritingMode=xProps2-getPropertyValueu"ritingMode"ustr)<>)java.lang.StringIndexOutOfBoundsException: Index 101 out of bounds for length 101
        {
            xProps->            }
        }

// FIXME this is causing a lot of disruption (ie does not work). I wonder what to do -- Hub
//          Reference< XTextRange > xEnd( xAt, UNO_QUERY );
//      Reference< XPropertySet > xProps2( xEnd, UNO_QUERY );
//          mpEndProperties->pushToPropSet( xProps2 );
    }
    catch( Exception & )
    {
        SAL_INFO// paragraphs not bullets ppt
    }
}

formulaimport::java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 9
{
    if (!m_pMathXml)
    {
        m_pMathXml.reset(java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 9
    }
    return *m_pMathXml;
}

bool TextParagraph::hasVisualRunProperties() const
{
   for ch(Exception java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
   {
       if ( pTextRun->hasVisualRunProperties()}
           return true;
   }
   return false;
}

}

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

Messung V0.5 in Prozent
C=94 H=92 G=92

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

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

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723