Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
ff4f5d73
Kaydet (Commit)
ff4f5d73
authored
Kas 16, 2000
tarafından
jp
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
export CJK attributes
üst
7e0f231b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
25 deletions
+34
-25
rtfatr.cxx
sw/source/filter/rtf/rtfatr.cxx
+0
-0
wrtrtf.cxx
sw/source/filter/rtf/wrtrtf.cxx
+12
-15
wrtrtf.hxx
sw/source/filter/rtf/wrtrtf.hxx
+22
-10
No files found.
sw/source/filter/rtf/rtfatr.cxx
Dosyayı görüntüle @
ff4f5d73
This diff is collapsed.
Click to expand it.
sw/source/filter/rtf/wrtrtf.cxx
Dosyayı görüntüle @
ff4f5d73
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: wrtrtf.cxx,v $
*
* $Revision: 1.
2
$
* $Revision: 1.
3
$
*
* last change: $Author: jp $ $Date: 2000-1
0-09 13:31:40
$
* last change: $Author: jp $ $Date: 2000-1
1-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
;
nFontHeigh
t
=
0
;
pCurEndPosLs
t
=
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
...
...
sw/source/filter/rtf/wrtrtf.hxx
Dosyayı görüntüle @
ff4f5d73
...
...
@@ -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:5
6 $
* last change: $Author:
jp $ $Date: 2000-11-16 09:57:3
6 $
*
* 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
();
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment