Kaydet (Commit) ff4f5d73 authored tarafından jp's avatar jp

export CJK attributes

üst 7e0f231b
This diff is collapsed.
......@@ -2,9 +2,9 @@
*
* $RCSfile: wrtrtf.cxx,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: jp $ $Date: 2000-10-09 13:31:40 $
* last change: $Author: jp $ $Date: 2000-11-16 09:57:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -206,7 +206,7 @@ const sal_Char __FAR_DATA SwRTFWriter::sNewLine[] = "\015\012";
SV_DECL_VARARR( RTFColorTbl, Color, 5, 2 )
SV_DECL_VARARR( RTFColorTbl, Color, 5, 8 )
SV_IMPL_VARARR( RTFColorTbl, Color )
......@@ -231,7 +231,7 @@ ULONG SwRTFWriter::WriteStream()
bAutoAttrSet = bOutListNumTxt = bOutLeftHeadFoot = bIgnoreNextPgBreak =
FALSE;
nFontHeight = 0;
pCurEndPosLst = 0;
nBkmkTabPos = USHRT_MAX;
pAktPageDesc = 0;
pAttrSet = 0;
......@@ -818,15 +818,9 @@ void SwRTFWriter::OutRTFColorTab()
{
const Color& rCol = (*pColTbl)[ n ];
Strm() << sRTF_RED;
#ifdef VCL
OutULong( rCol.GetRed() ) << sRTF_GREEN;
OutULong( rCol.GetGreen() ) << sRTF_BLUE;
OutULong( rCol.GetBlue() ) << ';';
#else
OutULong( ( rCol.GetRed() & 0xff00 ) >> 8 ) << sRTF_GREEN;
OutULong( ( rCol.GetGreen() & 0xff00 ) >> 8 ) << sRTF_BLUE;
OutULong( ( rCol.GetBlue() & 0xff00 ) >> 8 ) << ';';
#endif
}
Strm() << '}';
}
......@@ -881,6 +875,7 @@ void SwRTFWriter::OutRTFFontTab()
_OutFont( *this, *pFont, n++ );
PutNumFmtFontsInAttrPool();
PutCJKandCTLFontsInAttrPool();
USHORT nMaxItem = rPool.GetItemCount( RES_CHRATR_FONT );
for( USHORT nGet = 0; nGet < nMaxItem; ++nGet )
......@@ -1370,8 +1365,7 @@ RTFSaveData::RTFSaveData( SwRTFWriter& rWriter, ULONG nStt, ULONG nEnd )
: rWrt( rWriter ),
pOldPam( rWrt.pCurPam ), pOldEnd( rWrt.GetEndPaM() ),
pOldFlyFmt( rWrt.pFlyFmt ), pOldPageDesc( rWrt.pAktPageDesc ),
pOldAttrSet( rWrt.pAttrSet )
pOldAttrSet( rWrt.GetAttrSet() )
{
bOldWriteAll = rWrt.bWriteAll;
bOldOutTable = rWrt.bOutTable;
......@@ -1391,7 +1385,7 @@ RTFSaveData::RTFSaveData( SwRTFWriter& rWriter, ULONG nStt, ULONG nEnd )
rWrt.bWriteAll = TRUE;
rWrt.bOutTable = FALSE;
rWrt.bOutPageAttr = FALSE;
rWrt.pAttrSet = 0;
rWrt.SetAttrSet( 0 );
rWrt.bAutoAttrSet = FALSE;
rWrt.bOutSection = FALSE;
}
......@@ -1407,7 +1401,7 @@ RTFSaveData::~RTFSaveData()
rWrt.bOutTable = bOldOutTable;
rWrt.pFlyFmt = pOldFlyFmt;
rWrt.pAktPageDesc = pOldPageDesc;
rWrt.pAttrSet = pOldAttrSet;
rWrt.SetAttrSet( pOldAttrSet );
rWrt.bAutoAttrSet = bOldAutoAttrSet;
rWrt.bOutPageAttr = bOldOutPageAttr;
rWrt.bOutSection = bOldOutSection;
......@@ -1424,11 +1418,14 @@ void GetRTFWriter( const String& rFltName, WriterRef& xRet )
Source Code Control System - Header
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/filter/rtf/wrtrtf.cxx,v 1.2 2000-10-09 13:31:40 jp Exp $
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/filter/rtf/wrtrtf.cxx,v 1.3 2000-11-16 09:57:36 jp Exp $
Source Code Control System - Update
$Log: not supported by cvs2svn $
Revision 1.2 2000/10/09 13:31:40 jp
Bug #78626#: _OutFont - dontknow is a valid value
Revision 1.1.1.1 2000/09/18 17:14:56 hr
initial import
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: wrtrtf.hxx,v $
*
* $Revision: 1.1.1.1 $
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2000-09-18 17:14:56 $
* last change: $Author: jp $ $Date: 2000-11-16 09:57:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -85,6 +85,7 @@ class SwNumRule;
class SwNumRuleTbl;
class SwNodeNum;
class DateTime;
class RTFEndPosLst;
extern SwAttrFnTab aRTFAttrFnTab;
extern SwNodeFnTab aRTFNodeFnTab;
......@@ -101,9 +102,16 @@ extern SwNodeFnTab aRTFNodeFnTab;
class SwRTFWriter : public Writer
{
friend class RTFEndPosLst;
SvPtrarr* pFontRemoveLst;
RTFColorTbl* pColTbl;
SwPosFlyFrms* pFlyPos; // Pointer auf die aktuelle "FlyFrmTabelle"
RTFEndPosLst* pCurEndPosLst;
const SfxItemSet* pAttrSet; // akt. Format/Collection vom Node
// fuer den Zugriff auf einige Attribute
// z.B. Font-Size, LR-Space,..
USHORT nAktFlyPos; // Index auf das naechste "FlyFrmFmt"
void OutRTFColorTab();
......@@ -123,11 +131,7 @@ public:
SwFlyFrmFmt* pFlyFmt; // liegt der Node in einem FlyFrame,
// ist das Format gesetzt, sonst 0
const SwPageDesc* pAktPageDesc; // aktuell gesetzter PageDesc.
const SwAttrSet* pAttrSet; // akt. Format/Collection vom Node
// fuer den Zugriff auf einige Attribute
// z.B. Font-Size, LR-Space,..
USHORT nBkmkTabPos; // akt. Position in der Bookmark-Tabelle
USHORT nFontHeight; // akt. Hoehe vom Font
#if defined(MAC) || defined(UNX)
static const sal_Char sNewLine; // nur \012 oder \015
......@@ -189,6 +193,14 @@ public:
// fuer RTFSaveData
SwPaM* GetEndPaM() { return pOrigPam; }
void SetEndPaM( SwPaM* pPam ) { pOrigPam = pPam; }
const SfxPoolItem& GetItem( USHORT nWhich ) const;
const SfxItemSet* GetAttrSet() const { return pAttrSet; }
void SetAttrSet( const SfxItemSet* p ) { pAttrSet = p; }
const RTFEndPosLst* GetEndPosLst() const { return pCurEndPosLst; }
};
......@@ -203,16 +215,16 @@ struct RTFSaveData
{
SwRTFWriter& rWrt;
SwPaM* pOldPam, *pOldEnd;
SwFlyFrmFmt* pOldFlyFmt;
const SwPageDesc* pOldPageDesc;
const SfxItemSet* pOldAttrSet; // akt. Attribute vom Node
BOOL bOldWriteAll : 1;
BOOL bOldOutTable : 1;
BOOL bOldOutPageAttr : 1;
BOOL bOldAutoAttrSet : 1;
BOOL bOldOutSection : 1;
SwFlyFrmFmt* pOldFlyFmt;
const SwPageDesc* pOldPageDesc;
const SwAttrSet* pOldAttrSet; // akt. Attribute vom Node
RTFSaveData( SwRTFWriter&, ULONG nStt, ULONG nEnd );
~RTFSaveData();
};
......
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