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
f8990bbf
Kaydet (Commit)
f8990bbf
authored
Kas 13, 2000
tarafından
jp
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
new method PutCJKandCTLFontsInAttrPool
üst
49cdab9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
37 deletions
+48
-37
shellio.hxx
sw/inc/shellio.hxx
+5
-3
writer.cxx
sw/source/filter/writer/writer.cxx
+35
-19
wrtww8.cxx
sw/source/filter/ww8/wrtww8.cxx
+8
-15
No files found.
sw/inc/shellio.hxx
Dosyayı görüntüle @
f8990bbf
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: shellio.hxx,v $
* $RCSfile: shellio.hxx,v $
*
*
* $Revision: 1.
2
$
* $Revision: 1.
3
$
*
*
* last change: $Author: jp $ $Date: 2000-11-
01 19:26:54
$
* last change: $Author: jp $ $Date: 2000-11-
13 17:26:12
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -442,6 +442,7 @@ class Writer : public SvRefBase
...
@@ -442,6 +442,7 @@ class Writer : public SvRefBase
SwAsciiOptions
aAscOpts
;
SwAsciiOptions
aAscOpts
;
void
_AddFontItem
(
SfxItemPool
&
rPool
,
const
SvxFontItem
&
rFont
);
void
_AddFontItem
(
SfxItemPool
&
rPool
,
const
SvxFontItem
&
rFont
);
void
_AddFontItems
(
SfxItemPool
&
rPool
,
USHORT
nWhichId
);
protected
:
protected
:
Writer_Impl
*
pImpl
;
Writer_Impl
*
pImpl
;
...
@@ -454,7 +455,8 @@ protected:
...
@@ -454,7 +455,8 @@ protected:
BOOL
CopyNextPam
(
SwPaM
**
);
BOOL
CopyNextPam
(
SwPaM
**
);
void
PutNumFmtFontsInAttrPool
();
void
PutNumFmtFontsInAttrPool
();
void
PutEditEngFontsInAttrPool
();
void
PutEditEngFontsInAttrPool
(
BOOL
bIncl_CJK_CTL
=
TRUE
);
void
PutCJKandCTLFontsInAttrPool
();
virtual
ULONG
WriteStream
()
=
0
;
virtual
ULONG
WriteStream
()
=
0
;
...
...
sw/source/filter/writer/writer.cxx
Dosyayı görüntüle @
f8990bbf
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: writer.cxx,v $
* $RCSfile: writer.cxx,v $
*
*
* $Revision: 1.
3
$
* $Revision: 1.
4
$
*
*
* last change: $Author: jp $ $Date: 2000-11-
01 19:31:51
$
* last change: $Author: jp $ $Date: 2000-11-
13 17:26:24
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -94,10 +94,6 @@
...
@@ -94,10 +94,6 @@
#include <svx/eeitem.hxx>
#include <svx/eeitem.hxx>
#endif
#endif
#ifndef _TOOLS_TEMPFILE_HXX
#include <tools/tempfile.hxx>
#endif
#ifndef _SHELLIO_HXX
#ifndef _SHELLIO_HXX
#include <shellio.hxx>
#include <shellio.hxx>
#endif
#endif
...
@@ -503,23 +499,40 @@ void Writer::PutNumFmtFontsInAttrPool()
...
@@ -503,23 +499,40 @@ void Writer::PutNumFmtFontsInAttrPool()
}
}
}
}
void
Writer
::
PutEditEngFontsInAttrPool
()
void
Writer
::
PutEditEngFontsInAttrPool
(
BOOL
bIncl_CJK_CTL
)
{
{
SfxItemPool
&
rPool
=
pDoc
->
GetAttr
Pool
();
SfxItemPool
*
pPool
=
pDoc
->
GetAttrPool
().
GetSecondary
Pool
();
if
(
rPool
.
GetSecondaryPool
()
)
if
(
pPool
)
{
{
USHORT
nW
=
EE_CHAR_FONTINFO
;
_AddFontItems
(
*
pPool
,
EE_CHAR_FONTINFO
);
const
SvxFontItem
*
pFont
=
(
const
SvxFontItem
*
)
&
rPool
.
GetDefaultItem
(
nW
);
if
(
bIncl_CJK_CTL
)
{
_AddFontItems
(
*
pPool
,
EE_CHAR_FONTINFO_CJK
);
_AddFontItems
(
*
pPool
,
EE_CHAR_FONTINFO_CTL
);
}
}
}
void
Writer
::
PutCJKandCTLFontsInAttrPool
()
{
SfxItemPool
&
rPool
=
pDoc
->
GetAttrPool
();
_AddFontItems
(
rPool
,
RES_CHRATR_CJK_FONT
);
_AddFontItems
(
rPool
,
RES_CHRATR_CTL_FONT
);
}
void
Writer
::
_AddFontItems
(
SfxItemPool
&
rPool
,
USHORT
nW
)
{
const
SvxFontItem
*
pFont
=
(
const
SvxFontItem
*
)
&
rPool
.
GetDefaultItem
(
nW
);
_AddFontItem
(
rPool
,
*
pFont
);
if
(
0
!=
(
pFont
=
(
const
SvxFontItem
*
)
rPool
.
GetPoolDefaultItem
(
nW
))
)
_AddFontItem
(
rPool
,
*
pFont
);
_AddFontItem
(
rPool
,
*
pFont
);
if
(
0
!=
(
pFont
=
(
const
SvxFontItem
*
)
rPool
.
GetPoolDefaultItem
(
nW
))
)
USHORT
nMaxItem
=
rPool
.
GetItemCount
(
nW
);
for
(
USHORT
nGet
=
0
;
nGet
<
nMaxItem
;
++
nGet
)
if
(
0
!=
(
pFont
=
(
const
SvxFontItem
*
)
rPool
.
GetItem
(
nW
,
nGet
))
)
_AddFontItem
(
rPool
,
*
pFont
);
_AddFontItem
(
rPool
,
*
pFont
);
USHORT
nMaxItem
=
rPool
.
GetItemCount
(
nW
);
for
(
USHORT
nGet
=
0
;
nGet
<
nMaxItem
;
++
nGet
)
if
(
0
!=
(
pFont
=
(
const
SvxFontItem
*
)
rPool
.
GetItem
(
nW
,
nGet
))
)
_AddFontItem
(
rPool
,
*
pFont
);
}
}
}
void
Writer
::
_AddFontItem
(
SfxItemPool
&
rPool
,
const
SvxFontItem
&
rFont
)
void
Writer
::
_AddFontItem
(
SfxItemPool
&
rPool
,
const
SvxFontItem
&
rFont
)
...
@@ -636,11 +649,14 @@ ULONG StgWriter::Write( SwPaM& rPaM, SvStorage& rStg, const String* pFName )
...
@@ -636,11 +649,14 @@ ULONG StgWriter::Write( SwPaM& rPaM, SvStorage& rStg, const String* pFName )
Source Code Control System - Header
Source Code Control System - Header
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/filter/writer/writer.cxx,v 1.
3 2000-11-01 19:31:51
jp Exp $
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/filter/writer/writer.cxx,v 1.
4 2000-11-13 17:26:24
jp Exp $
Source Code Control System - Update
Source Code Control System - Update
$Log: not supported by cvs2svn $
$Log: not supported by cvs2svn $
Revision 1.3 2000/11/01 19:31:51 jp
Writer:CopyLocalFileToINet: export of mail graphics removed and SvFileStream access removed
Revision 1.2 2000/10/17 15:13:50 os
Revision 1.2 2000/10/17 15:13:50 os
Change: SfxMedium Ctor
Change: SfxMedium Ctor
...
...
sw/source/filter/ww8/wrtww8.cxx
Dosyayı görüntüle @
f8990bbf
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: wrtww8.cxx,v $
* $RCSfile: wrtww8.cxx,v $
*
*
* $Revision: 1.
2
$
* $Revision: 1.
3
$
*
*
* last change: $Author:
cmc $ $Date: 2000-10-10 16:54:06
$
* last change: $Author:
jp $ $Date: 2000-11-13 17:30:15
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -100,15 +100,12 @@
...
@@ -100,15 +100,12 @@
#ifndef _SVX_HYZNITEM_HXX //autogen
#ifndef _SVX_HYZNITEM_HXX //autogen
#include <svx/hyznitem.hxx>
#include <svx/hyznitem.hxx>
#endif
#endif
#if SUPD>593
#ifndef _MSOLEEXP_HXX
#ifndef _MSOLEEXP_HXX
#include <svx/msoleexp.hxx>
#include <svx/msoleexp.hxx>
#endif
#endif
#ifndef _MSOCXIMEX_HXX
#ifndef _MSOCXIMEX_HXX
#include <svx/msocximex.hxx>
#include <svx/msocximex.hxx>
#endif
#endif
#endif
#ifndef _OFA_FLTRCFG_HXX
#ifndef _OFA_FLTRCFG_HXX
#include <offmgr/fltrcfg.hxx>
#include <offmgr/fltrcfg.hxx>
...
@@ -1732,7 +1729,6 @@ ULONG SwWW8Writer::StoreDoc()
...
@@ -1732,7 +1729,6 @@ ULONG SwWW8Writer::StoreDoc()
if
(
aTOXArr
.
Count
()
)
if
(
aTOXArr
.
Count
()
)
aTOXArr
.
Remove
(
0
,
aTOXArr
.
Count
()
);
aTOXArr
.
Remove
(
0
,
aTOXArr
.
Count
()
);
#if SUPD>593
if
(
!
pOLEExp
)
if
(
!
pOLEExp
)
{
{
UINT32
nSvxMSDffOLEConvFlags
=
0
;
UINT32
nSvxMSDffOLEConvFlags
=
0
;
...
@@ -1751,12 +1747,12 @@ ULONG SwWW8Writer::StoreDoc()
...
@@ -1751,12 +1747,12 @@ ULONG SwWW8Writer::StoreDoc()
if
(
!
pOCXExp
)
if
(
!
pOCXExp
)
pOCXExp
=
new
SwMSConvertControls
(
pDoc
->
GetDocShell
(),
pCurPam
);
pOCXExp
=
new
SwMSConvertControls
(
pDoc
->
GetDocShell
(),
pCurPam
);
#endif
PrepareStorage
();
PrepareStorage
();
PutNumFmtFontsInAttrPool
();
PutNumFmtFontsInAttrPool
();
PutEditEngFontsInAttrPool
();
PutEditEngFontsInAttrPool
();
PutCJKandCTLFontsInAttrPool
();
pFib
=
new
WW8Fib
(
bWrtWW8
?
8
:
6
);
pFib
=
new
WW8Fib
(
bWrtWW8
?
8
:
6
);
...
@@ -2029,10 +2025,7 @@ ULONG SwWW8Writer::WriteStorage()
...
@@ -2029,10 +2025,7 @@ ULONG SwWW8Writer::WriteStorage()
SwWW8Writer
::
SwWW8Writer
(
const
String
&
rFltName
)
SwWW8Writer
::
SwWW8Writer
(
const
String
&
rFltName
)
:
pChpIter
(
0
),
aMainStg
(
sMainStream
),
pPapPlc
(
0
),
pChpPlc
(
0
),
:
pChpIter
(
0
),
aMainStg
(
sMainStream
),
pPapPlc
(
0
),
pChpPlc
(
0
),
pO
(
0
),
pAktPageDesc
(
0
),
pISet
(
0
),
pUsedNumTbl
(
0
),
pBmpPal
(
0
),
pO
(
0
),
pAktPageDesc
(
0
),
pISet
(
0
),
pUsedNumTbl
(
0
),
pBmpPal
(
0
),
pKeyMap
(
0
)
pKeyMap
(
0
),
pOLEExp
(
0
),
pOCXExp
(
0
)
#if SUPD>593
,
pOLEExp
(
0
),
pOCXExp
(
0
)
#endif
{
{
bWrtWW8
=
rFltName
.
EqualsAscii
(
FILTER_WW8
);
bWrtWW8
=
rFltName
.
EqualsAscii
(
FILTER_WW8
);
}
}
...
@@ -2046,13 +2039,10 @@ SwWW8Writer::~SwWW8Writer()
...
@@ -2046,13 +2039,10 @@ SwWW8Writer::~SwWW8Writer()
NfKeywordTable
*
pDel
=
(
NfKeywordTable
*
)
pKeyMap
;
NfKeywordTable
*
pDel
=
(
NfKeywordTable
*
)
pKeyMap
;
delete
[]
pDel
;
delete
[]
pDel
;
}
}
#if SUPD>593
if
(
pOLEExp
)
if
(
pOLEExp
)
delete
pOLEExp
;
delete
pOLEExp
;
if
(
pOCXExp
)
if
(
pOCXExp
)
delete
pOCXExp
;
delete
pOCXExp
;
#endif
}
}
void
GetWW8Writer
(
const
String
&
rFltName
,
WriterRef
&
xRet
)
void
GetWW8Writer
(
const
String
&
rFltName
,
WriterRef
&
xRet
)
...
@@ -2066,11 +2056,14 @@ void GetWW8Writer( const String& rFltName, WriterRef& xRet )
...
@@ -2066,11 +2056,14 @@ void GetWW8Writer( const String& rFltName, WriterRef& xRet )
Source Code Control System - Header
Source Code Control System - Header
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/filter/ww8/wrtww8.cxx,v 1.
2 2000-10-10 16:54:06 cmc
Exp $
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/filter/ww8/wrtww8.cxx,v 1.
3 2000-11-13 17:30:15 jp
Exp $
Source Code Control System - Update
Source Code Control System - Update
$Log: not supported by cvs2svn $
$Log: not supported by cvs2svn $
Revision 1.2 2000/10/10 16:54:06 cmc
MSOffice 97/2000 Controls {Im|Ex}port
Revision 1.1.1.1 2000/09/18 17:14:58 hr
Revision 1.1.1.1 2000/09/18 17:14:58 hr
initial import
initial import
...
...
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