LCOV - code coverage report
Current view: top level - sw/source/filter/ww8 - ww8par2.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 2 2 100.0 %
Date: 2015-06-13 12:38:46 Functions: 2 3 66.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_SW_SOURCE_FILTER_WW8_WW8PAR2_HXX
      21             : #define INCLUDED_SW_SOURCE_FILTER_WW8_WW8PAR2_HXX
      22             : 
      23             : #include <swtypes.hxx>
      24             : #include <fmtfsize.hxx>
      25             : #include <fmtornt.hxx>
      26             : #include <fmtsrnd.hxx>
      27             : #include <editeng/lrspitem.hxx>
      28             : 
      29             : #include "ww8scan.hxx"
      30             : #include "ww8par.hxx"
      31             : 
      32             : class WW8RStyle;
      33             : 
      34         182 : class WW8DupProperties
      35             : {
      36             : public:
      37             :     WW8DupProperties(SwDoc &rDoc, SwWW8FltControlStack *pStk);
      38             :     void Insert(const SwPosition &rPos);
      39             : private:
      40             :     WW8DupProperties(const WW8DupProperties&) SAL_DELETED_FUNCTION;
      41             :     WW8DupProperties& operator=(const WW8DupProperties&) SAL_DELETED_FUNCTION;
      42             :     SwWW8FltControlStack* pCtrlStck;
      43             :     SfxItemSet aChrSet,aParSet;
      44             : };
      45             : 
      46             : struct WW8SwFlyPara
      47             : {
      48             :     SwFlyFrameFormat* pFlyFormat;
      49             : 
      50             :                 // 1. Teil: daraus abgeleitete Sw-Attribute
      51             :     sal_Int16 nXPos, nYPos;         // Position
      52             :     sal_Int16 nLeMgn, nRiMgn;       // Raender
      53             :     sal_Int16 nUpMgn, nLoMgn;       // Raender
      54             :     sal_Int16 nWidth, nHeight;      // Groesse
      55             :     sal_Int16 nNetWidth;
      56             : 
      57             :     SwFrmSize eHeightFix;       // Hoehe Fix oder Min
      58             :     RndStdIds eAnchor;          // Bindung
      59             :     short eHRel;     // Seite oder Seitenrand
      60             :     short eVRel;     // Seite oder Seitenrand
      61             :     sal_Int16 eVAlign;       // Oben, unten, mittig
      62             :     sal_Int16 eHAlign;       // links, rechts, mittig
      63             :     SwSurround eSurround;       // Wrap-Mode
      64             : 
      65             :     sal_uInt8 nXBind, nYBind;        // relativ zu was gebunden
      66             : 
      67             :                 // 2.Teil: sich waehrend des Einlesens ergebende AEnderungen
      68             :     long nNewNetWidth;
      69             :     SwPosition* pMainTextPos;   // um nach Apo in Haupttext zurueckzukehren
      70             :     sal_uInt16 nLineSpace;          // LineSpace in tw fuer Graf-Apos
      71             :     bool bAutoWidth;
      72             :     bool bToggelPos;
      73             : 
      74             :     // add parameter <nWWPgTop> - WW8's page top margin
      75             :     WW8SwFlyPara( SwPaM& rPaM,
      76             :                   SwWW8ImplReader& rIo,
      77             :                   WW8FlyPara& rWW,
      78             :                   const sal_uInt32 nWWPgTop,
      79             :                   const sal_uInt32 nPgLeft,
      80             :                   const sal_uInt32 nPgWidth,
      81             :                   const sal_Int32 nIniFlyDx,
      82             :                   const sal_Int32 nIniFlyDy );
      83             : 
      84             :     void BoxUpWidth( long nWidth );
      85             :     SwWW8FltAnchorStack *pOldAnchorStck;
      86             : };
      87             : 
      88             : class WW8RStyle: public WW8Style
      89             : {
      90             : friend class SwWW8ImplReader;
      91             :     wwSprmParser maSprmParser;
      92             :     SwWW8ImplReader* pIo;   // Parser-Klasse
      93             :     SvStream* pStStrm;      // Input-File
      94             : 
      95             :     SwNumRule* pStyRule;    // Bullets und Aufzaehlungen in Styles
      96             : 
      97             :     sal_uInt8* pParaSprms;           // alle ParaSprms des UPX falls UPX.Papx
      98             :     sal_uInt16 nSprmsLen;           // Laenge davon
      99             : 
     100             :     sal_uInt8 nWwNumLevel;           // fuer Bullets und Aufzaehlungen in Styles
     101             : 
     102             :     bool bTextColChanged;
     103             :     bool bFontChanged;      // For Simulating Default-Font
     104             :     bool bCJKFontChanged;   // For Simulating Default-CJK Font
     105             :     bool bCTLFontChanged;   // For Simulating Default-CTL Font
     106             :     bool bFSizeChanged;     // For Simulating Default-FontSize
     107             :     bool bFCTLSizeChanged;  // For Simulating Default-CTL FontSize
     108             :     bool bWidowsChanged;    // For Simulating Default-Widows / Orphans
     109             : 
     110             :     void ImportSprms(sal_Size nPosFc, short nLen, bool bPap);
     111             :     void ImportSprms(sal_uInt8 *pSprms, short nLen, bool bPap);
     112             :     void ImportGrupx(short nLen, bool bPara, bool bOdd);
     113             :     short ImportUPX(short nLen, bool bPAP, bool bOdd);
     114             : 
     115             :     void Set1StyleDefaults();
     116             :     void Import1Style(sal_uInt16 nNr);
     117             :     void RecursiveReg(sal_uInt16 nNr);
     118             : 
     119             :     void ImportStyles();
     120             : 
     121             :     void ImportNewFormatStyles();
     122             :     void ScanStyles();
     123             :     void ImportOldFormatStyles();
     124             : 
     125             :     bool PrepareStyle(SwWW8StyInf &rSI, ww::sti eSti, sal_uInt16 nThisStyle, sal_uInt16 nNextStyle);
     126             :     void PostStyle(SwWW8StyInf &rSI, bool bOldNoImp);
     127             : 
     128             :     WW8RStyle(const WW8RStyle&) SAL_DELETED_FUNCTION;
     129             :     WW8RStyle& operator=(const WW8RStyle&) SAL_DELETED_FUNCTION;
     130             : public:
     131             :     WW8RStyle( WW8Fib& rFib, SwWW8ImplReader* pI );
     132             :     void Import();
     133             :     void PostProcessStyles();
     134             :     const sal_uInt8* HasParaSprm( sal_uInt16 nId ) const;
     135             : };
     136             : 
     137          36 : class WW8FlySet: public SfxItemSet
     138             : {
     139             : private:
     140             :     const WW8FlySet& operator=(const WW8FlySet&) SAL_DELETED_FUNCTION;
     141             :     void Init(const SwWW8ImplReader& rReader, const SwPaM* pPaM);
     142             : public:
     143             :     WW8FlySet(SwWW8ImplReader& rReader, const WW8FlyPara* pFW,
     144             :         const WW8SwFlyPara* pFS, bool bGraf);
     145             :     WW8FlySet(SwWW8ImplReader& rReader, const SwPaM* pPaM, const WW8_PIC& rPic,
     146             :         long nWidth, long nHeight);
     147             : };
     148             : 
     149             : enum WW8LvlType {WW8_None, WW8_Outline, WW8_Numbering, WW8_Sequence, WW8_Pause};
     150             : 
     151             : WW8LvlType GetNumType(sal_uInt8 nWwLevelNo);
     152             : #endif
     153             : 
     154             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11