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
a297df5f
Kaydet (Commit)
a297df5f
authored
Haz 19, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: WW8 export: remove WW6 export, partB: newly dead functions
Change-Id: I3531ca574239ee9e47a111d1a1d73b623292c80f
üst
cd3881d7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
120 deletions
+0
-120
wrtw8nds.cxx
sw/source/filter/ww8/wrtw8nds.cxx
+0
-49
wrtw8num.cxx
sw/source/filter/ww8/wrtw8num.cxx
+0
-31
wrtw8sty.cxx
sw/source/filter/ww8/wrtw8sty.cxx
+0
-30
wrtww8.hxx
sw/source/filter/ww8/wrtww8.hxx
+0
-7
ww8attributeoutput.hxx
sw/source/filter/ww8/ww8attributeoutput.hxx
+0
-3
No files found.
sw/source/filter/ww8/wrtw8nds.cxx
Dosyayı görüntüle @
a297df5f
...
...
@@ -2845,55 +2845,6 @@ void WW8Export::AppendSection( const SwPageDesc *pPageDesc, const SwSectionForma
// Flys
void
WW8Export
::
OutWW6FlyFrmsInContent
(
const
SwTextNode
&
rNd
)
{
assert
(
false
);
// TODO
if
(
const
SwpHints
*
pTextAttrs
=
rNd
.
GetpSwpHints
())
{
for
(
size_t
n
=
0
;
n
<
pTextAttrs
->
Count
();
++
n
)
{
const
SwTextAttr
*
pAttr
=
(
*
pTextAttrs
)[
n
];
if
(
RES_TXTATR_FLYCNT
==
pAttr
->
Which
()
)
{
// attribute bound to a character
const
SwFormatFlyCnt
&
rFlyContent
=
pAttr
->
GetFlyCnt
();
const
SwFlyFrameFormat
&
rFlyFrameFormat
=
*
static_cast
<
SwFlyFrameFormat
*>
(
rFlyContent
.
GetFrameFormat
());
const
SwNodeIndex
*
pNodeIndex
=
rFlyFrameFormat
.
GetContent
().
GetContentIdx
();
if
(
pNodeIndex
)
{
sal_uLong
nStt
=
pNodeIndex
->
GetIndex
()
+
1
,
nEnd
=
pNodeIndex
->
GetNode
().
EndOfSectionIndex
();
if
(
(
nStt
<
nEnd
)
&&
!
m_pDoc
->
GetNodes
()[
nStt
]
->
IsNoTextNode
()
)
{
Point
aOffset
;
// get rectangle (bounding box?) of Fly and paragraph
SwRect
aParentRect
(
rNd
.
FindLayoutRect
(
false
,
&
aOffset
)),
aFlyRect
(
rFlyFrameFormat
.
FindLayoutRect
(
false
,
&
aOffset
)
);
aOffset
=
aFlyRect
.
Pos
()
-
aParentRect
.
Pos
();
// let PaM point to content of Fly-frame format
SaveData
(
nStt
,
nEnd
);
// is analysed in OutputFormat()
m_pFlyOffset
=
&
aOffset
;
m_eNewAnchorType
=
rFlyFrameFormat
.
GetAnchor
().
GetAnchorId
();
sw
::
Frame
aFrm
(
rFlyFrameFormat
,
SwPosition
(
rNd
));
m_pParentFrame
=
&
aFrm
;
// Ok, write it out:
WriteText
();
RestoreData
();
}
}
}
}
}
}
void
WW8AttributeOutput
::
OutputFlyFrame_Impl
(
const
sw
::
Frame
&
rFormat
,
const
Point
&
rNdTopLeft
)
{
const
SwFrameFormat
&
rFrameFormat
=
rFormat
.
GetFrameFormat
();
...
...
sw/source/filter/ww8/wrtw8num.cxx
Dosyayı görüntüle @
a297df5f
...
...
@@ -597,37 +597,6 @@ void WW8Export::OutListNamesTab()
// old WW95-Code
void
WW8Export
::
OutputOlst
(
const
SwNumRule
&
rRule
)
{
assert
(
false
);
// TODO
static
const
sal_uInt8
aAnlvBase
[]
=
{
// Defaults
1
,
0
,
0
,
// Upper Roman
0x0C
,
// Hanging Indent, fPrev
0
,
0
,
1
,
0x80
,
0
,
0
,
1
,
0
,
0x1b
,
1
,
0
,
0
};
static
const
sal_uInt8
aSprmOlstHdr
[]
=
{
133
,
212
};
pO
->
insert
(
pO
->
end
(),
aSprmOlstHdr
,
aSprmOlstHdr
+
sizeof
(
aSprmOlstHdr
)
);
WW8_OLST
aOlst
;
memset
(
&
aOlst
,
0
,
sizeof
(
aOlst
)
);
sal_uInt8
*
pC
=
aOlst
.
rgch
;
sal_uInt8
*
pChars
=
pC
;
sal_uInt16
nCharLen
=
64
;
for
(
sal_uInt16
j
=
0
;
j
<
WW8ListManager
::
nMaxLevel
;
j
++
)
// 9 variable ANLVs
{
memcpy
(
&
aOlst
.
rganlv
[
j
],
aAnlvBase
,
sizeof
(
WW8_ANLV
)
);
// Defaults
const
SwNumFormat
*
pFormat
=
rRule
.
GetNumFormat
(
j
);
if
(
pFormat
)
BuildAnlvBase
(
aOlst
.
rganlv
[
j
],
pChars
,
nCharLen
,
rRule
,
*
pFormat
,
(
sal_uInt8
)
j
);
}
pO
->
insert
(
pO
->
end
(),
reinterpret_cast
<
sal_uInt8
*>
(
&
aOlst
),
reinterpret_cast
<
sal_uInt8
*>
(
&
aOlst
)
+
sizeof
(
aOlst
)
);
}
void
WW8Export
::
Out_WwNumLvl
(
sal_uInt8
nWwLevel
)
{
pO
->
push_back
(
13
);
...
...
sw/source/filter/ww8/wrtw8sty.cxx
Dosyayı görüntüle @
a297df5f
...
...
@@ -1438,27 +1438,6 @@ void WW8AttributeOutput::SectionType( sal_uInt8 nBreakCode )
}
}
// TODO
void
WW8AttributeOutput
::
SectionWW6HeaderFooterFlags
(
sal_uInt8
nHeadFootFlags
)
{
if
(
nHeadFootFlags
&&
false
)
{
sal_uInt8
nTmpFlags
=
nHeadFootFlags
;
if
(
m_rWW8Export
.
pDop
->
fFacingPages
)
{
if
(
!
(
nTmpFlags
&
WW8_FOOTER_EVEN
)
&&
(
nTmpFlags
&
WW8_FOOTER_ODD
)
)
nTmpFlags
|=
WW8_FOOTER_EVEN
;
if
(
!
(
nTmpFlags
&
WW8_HEADER_EVEN
)
&&
(
nTmpFlags
&
WW8_HEADER_ODD
)
)
nTmpFlags
|=
WW8_HEADER_EVEN
;
}
// sprmSGprfIhdt, is only needed in WW95
m_rWW8Export
.
pO
->
push_back
(
153
);
m_rWW8Export
.
pO
->
push_back
(
nTmpFlags
);
}
}
void
WW8Export
::
SetupSectionPositions
(
WW8_PdAttrDesc
*
pA
)
{
if
(
!
pA
)
...
...
@@ -1705,14 +1684,6 @@ void MSWordExportBase::SectionProperties( const WW8_SepInfo& rSepInfo, WW8_PdAtt
AttrOutput
().
SectionType
(
nBreakCode
);
const
SwTextNode
*
pNd
=
rSepInfo
.
pNumNd
;
if
(
pNd
)
{
const
SwNumRule
*
pRule
=
pNd
->
GetNumRule
();
if
(
pRule
)
OutputOlst
(
*
pRule
);
}
// Header or Footer
sal_uInt8
nHeadFootFlags
=
0
;
...
...
@@ -1737,7 +1708,6 @@ void MSWordExportBase::SectionProperties( const WW8_SepInfo& rSepInfo, WW8_PdAtt
if
(
!
pPd
->
IsFooterShared
()
||
bLeftRightPgChain
)
MSWordSections
::
SetFooterFlag
(
nHeadFootFlags
,
*
pPdLeftFormat
,
WW8_FOOTER_EVEN
);
AttrOutput
().
SectionWW6HeaderFooterFlags
(
nHeadFootFlags
);
}
// binary filters only
...
...
sw/source/filter/ww8/wrtww8.hxx
Dosyayı görüntüle @
a297df5f
...
...
@@ -731,9 +731,6 @@ public:
void
SubstituteBullet
(
OUString
&
rNumStr
,
rtl_TextEncoding
&
rChrSet
,
OUString
&
rFontName
)
const
;
/// No-op for the newer WW versions.
virtual
void
OutputOlst
(
const
SwNumRule
&
/*rRule*/
)
{}
/// Setup the pA's info.
virtual
void
SetupSectionPositions
(
WW8_PdAttrDesc
*
/*pA*/
)
{}
...
...
@@ -999,7 +996,6 @@ private:
void
DoCheckBox
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
beans
::
XPropertySet
>
xPropSet
);
public
:
virtual
void
OutputOlst
(
const
SwNumRule
&
rRule
)
SAL_OVERRIDE
;
/// Setup the pA's info.
virtual
void
SetupSectionPositions
(
WW8_PdAttrDesc
*
pA
)
SAL_OVERRIDE
;
...
...
@@ -1022,9 +1018,6 @@ public:
const
SvxBrushItem
*
GetCurrentPageBgBrush
()
const
;
SvxBrushItem
TrueFrameBgBrush
(
const
SwFrameFormat
&
rFlyFormat
)
const
;
/// Output all textframes anchored as character for the winword 7- format.
void
OutWW6FlyFrmsInContent
(
const
SwTextNode
&
rNd
);
void
AppendFlyInFlys
(
const
sw
::
Frame
&
rFrameFormat
,
const
Point
&
rNdTopLeft
);
void
WriteOutliner
(
const
OutlinerParaObject
&
rOutliner
,
sal_uInt8
nTyp
);
void
WriteSdrTextObj
(
const
SdrTextObj
&
rObj
,
sal_uInt8
nTyp
);
...
...
sw/source/filter/ww8/ww8attributeoutput.hxx
Dosyayı görüntüle @
a297df5f
...
...
@@ -178,9 +178,6 @@ public:
/// The type of breaking.
virtual
void
SectionType
(
sal_uInt8
nBreakCode
)
SAL_OVERRIDE
;
/// Special header/footer flags, needed for old versions only.
virtual
void
SectionWW6HeaderFooterFlags
(
sal_uInt8
nHeadFootFlags
)
SAL_OVERRIDE
;
/// Definition of a numbering instance.
virtual
void
NumberingDefinition
(
sal_uInt16
nId
,
const
SwNumRule
&
rRule
)
SAL_OVERRIDE
;
...
...
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