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
2716dc0d
Kaydet (Commit)
2716dc0d
authored
Mar 20, 2013
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
export placeholder (RES_JUMPEDITFLD) to .docx (part of bnc#779630)
Change-Id: Idbf2b1e04eebab703ba3e6c3fac8e50829833c70
üst
16b44693
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
52 additions
and
1 deletion
+52
-1
attributeoutputbase.hxx
sw/source/filter/ww8/attributeoutputbase.hxx
+1
-0
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+32
-0
docxattributeoutput.hxx
sw/source/filter/ww8/docxattributeoutput.hxx
+3
-0
rtfattributeoutput.cxx
sw/source/filter/ww8/rtfattributeoutput.cxx
+5
-0
rtfattributeoutput.hxx
sw/source/filter/ww8/rtfattributeoutput.hxx
+1
-0
ww8atr.cxx
sw/source/filter/ww8/ww8atr.cxx
+9
-1
ww8attributeoutput.hxx
sw/source/filter/ww8/ww8attributeoutput.hxx
+1
-0
No files found.
sw/source/filter/ww8/attributeoutputbase.hxx
Dosyayı görüntüle @
2716dc0d
...
@@ -568,6 +568,7 @@ protected:
...
@@ -568,6 +568,7 @@ protected:
virtual
void
SetField
(
const
SwField
&
rFld
,
ww
::
eField
eType
,
const
String
&
rCmd
)
=
0
;
virtual
void
SetField
(
const
SwField
&
rFld
,
ww
::
eField
eType
,
const
String
&
rCmd
)
=
0
;
virtual
void
PostitField
(
const
SwField
*
pFld
)
=
0
;
virtual
void
PostitField
(
const
SwField
*
pFld
)
=
0
;
virtual
bool
DropdownField
(
const
SwField
*
pFld
)
=
0
;
virtual
bool
DropdownField
(
const
SwField
*
pFld
)
=
0
;
virtual
bool
PlaceholderField
(
const
SwField
*
pFld
)
=
0
;
virtual
bool
AnalyzeURL
(
const
String
&
rUrl
,
const
String
&
rTarget
,
String
*
pLinkURL
,
String
*
pMark
);
virtual
bool
AnalyzeURL
(
const
String
&
rUrl
,
const
String
&
rTarget
,
String
*
pLinkURL
,
String
*
pMark
);
...
...
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
2716dc0d
...
@@ -622,6 +622,7 @@ void DocxAttributeOutput::EndRun()
...
@@ -622,6 +622,7 @@ void DocxAttributeOutput::EndRun()
m_pSerializer
->
endElementNS
(
XML_w
,
XML_r
);
m_pSerializer
->
endElementNS
(
XML_w
,
XML_r
);
WritePostponedMath
();
WritePostponedMath
();
WritePendingPlaceholder
();
if
(
m_closeHyperlinkInThisRun
)
if
(
m_closeHyperlinkInThisRun
)
{
{
...
@@ -3781,6 +3782,36 @@ bool DocxAttributeOutput::DropdownField( const SwField* pFld )
...
@@ -3781,6 +3782,36 @@ bool DocxAttributeOutput::DropdownField( const SwField* pFld )
return
bExpand
;
return
bExpand
;
}
}
bool
DocxAttributeOutput
::
PlaceholderField
(
const
SwField
*
pFld
)
{
assert
(
pendingPlaceholder
==
NULL
);
pendingPlaceholder
=
pFld
;
return
false
;
// do not expand
}
void
DocxAttributeOutput
::
WritePendingPlaceholder
()
{
if
(
pendingPlaceholder
==
NULL
)
return
;
const
SwField
*
pFld
=
pendingPlaceholder
;
pendingPlaceholder
=
NULL
;
m_pSerializer
->
startElementNS
(
XML_w
,
XML_sdt
,
FSEND
);
m_pSerializer
->
startElementNS
(
XML_w
,
XML_sdtPr
,
FSEND
);
if
(
!
pFld
->
GetPar2
().
isEmpty
())
m_pSerializer
->
singleElementNS
(
XML_w
,
XML_alias
,
FSNS
(
XML_w
,
XML_val
),
OUStringToOString
(
pFld
->
GetPar2
(),
RTL_TEXTENCODING_UTF8
),
FSEND
);
m_pSerializer
->
singleElementNS
(
XML_w
,
XML_temporary
,
FSEND
);
m_pSerializer
->
singleElementNS
(
XML_w
,
XML_showingPlcHdr
,
FSEND
);
m_pSerializer
->
singleElementNS
(
XML_w
,
XML_text
,
FSEND
);
m_pSerializer
->
endElementNS
(
XML_w
,
XML_sdtPr
);
m_pSerializer
->
startElementNS
(
XML_w
,
XML_sdtContent
,
FSEND
);
m_pSerializer
->
startElementNS
(
XML_w
,
XML_r
,
FSEND
);
RunText
(
pFld
->
GetPar1
());
m_pSerializer
->
endElementNS
(
XML_w
,
XML_r
);
m_pSerializer
->
endElementNS
(
XML_w
,
XML_sdtContent
);
m_pSerializer
->
endElementNS
(
XML_w
,
XML_sdt
);
}
void
DocxAttributeOutput
::
SetField
(
const
SwField
&
rFld
,
ww
::
eField
eType
,
const
String
&
rCmd
)
void
DocxAttributeOutput
::
SetField
(
const
SwField
&
rFld
,
ww
::
eField
eType
,
const
String
&
rCmd
)
{
{
// field bookmarks are handled in the EndRun method
// field bookmarks are handled in the EndRun method
...
@@ -4834,6 +4865,7 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
...
@@ -4834,6 +4865,7 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
m_startedHyperlink
(
false
),
m_startedHyperlink
(
false
),
m_postponedGraphic
(
NULL
),
m_postponedGraphic
(
NULL
),
m_postponedMath
(
NULL
),
m_postponedMath
(
NULL
),
pendingPlaceholder
(
NULL
),
m_postitFieldsMaxId
(
0
),
m_postitFieldsMaxId
(
0
),
m_anchorId
(
0
),
m_anchorId
(
0
),
m_nextFontId
(
1
),
m_nextFontId
(
1
),
...
...
sw/source/filter/ww8/docxattributeoutput.hxx
Dosyayı görüntüle @
2716dc0d
...
@@ -326,6 +326,7 @@ private:
...
@@ -326,6 +326,7 @@ private:
void
FinishTableRowCell
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pInner
,
bool
bForceEmptyParagraph
=
false
);
void
FinishTableRowCell
(
ww8
::
WW8TableNodeInfoInner
::
Pointer_t
pInner
,
bool
bForceEmptyParagraph
=
false
);
void
WriteFFData
(
const
FieldInfos
&
rInfos
);
void
WriteFFData
(
const
FieldInfos
&
rInfos
);
void
WritePendingPlaceholder
();
void
EmbedFontStyle
(
const
OUString
&
name
,
int
tag
,
FontFamily
family
,
FontItalic
italic
,
FontWeight
weight
,
void
EmbedFontStyle
(
const
OUString
&
name
,
int
tag
,
FontFamily
family
,
FontItalic
italic
,
FontWeight
weight
,
FontPitch
pitch
,
rtl_TextEncoding
encoding
);
FontPitch
pitch
,
rtl_TextEncoding
encoding
);
...
@@ -532,6 +533,7 @@ protected:
...
@@ -532,6 +533,7 @@ protected:
virtual
void
SetField
(
const
SwField
&
rFld
,
ww
::
eField
eType
,
const
String
&
rCmd
);
virtual
void
SetField
(
const
SwField
&
rFld
,
ww
::
eField
eType
,
const
String
&
rCmd
);
virtual
void
PostitField
(
const
SwField
*
pFld
);
virtual
void
PostitField
(
const
SwField
*
pFld
);
virtual
bool
DropdownField
(
const
SwField
*
pFld
);
virtual
bool
DropdownField
(
const
SwField
*
pFld
);
virtual
bool
PlaceholderField
(
const
SwField
*
pFld
);
virtual
bool
AnalyzeURL
(
const
String
&
rURL
,
const
String
&
rTarget
,
String
*
pLinkURL
,
String
*
pMark
);
virtual
bool
AnalyzeURL
(
const
String
&
rURL
,
const
String
&
rTarget
,
String
*
pLinkURL
,
String
*
pMark
);
...
@@ -627,6 +629,7 @@ private:
...
@@ -627,6 +629,7 @@ private:
};
};
std
::
list
<
PostponedGraphic
>*
m_postponedGraphic
;
std
::
list
<
PostponedGraphic
>*
m_postponedGraphic
;
const
SwOLENode
*
m_postponedMath
;
const
SwOLENode
*
m_postponedMath
;
const
SwField
*
pendingPlaceholder
;
std
::
vector
<
const
SwPostItField
*
>
m_postitFields
;
std
::
vector
<
const
SwPostItField
*
>
m_postitFields
;
unsigned
int
m_postitFieldsMaxId
;
unsigned
int
m_postitFieldsMaxId
;
int
m_anchorId
;
int
m_anchorId
;
...
...
sw/source/filter/ww8/rtfattributeoutput.cxx
Dosyayı görüntüle @
2716dc0d
...
@@ -3074,6 +3074,11 @@ bool RtfAttributeOutput::DropdownField( const SwField* /*pFld*/ )
...
@@ -3074,6 +3074,11 @@ bool RtfAttributeOutput::DropdownField( const SwField* /*pFld*/ )
return
true
;
return
true
;
}
}
bool
RtfAttributeOutput
::
PlaceholderField
(
const
SwField
*
)
{
return
true
;
// expand to text?
}
RtfAttributeOutput
::
RtfAttributeOutput
(
RtfExport
&
rExport
)
RtfAttributeOutput
::
RtfAttributeOutput
(
RtfExport
&
rExport
)
:
m_rExport
(
rExport
),
:
m_rExport
(
rExport
),
m_bStrikeDouble
(
false
),
m_bStrikeDouble
(
false
),
...
...
sw/source/filter/ww8/rtfattributeoutput.hxx
Dosyayı görüntüle @
2716dc0d
...
@@ -407,6 +407,7 @@ protected:
...
@@ -407,6 +407,7 @@ protected:
virtual
void
SetField
(
const
SwField
&
rFld
,
ww
::
eField
eType
,
const
String
&
rCmd
);
virtual
void
SetField
(
const
SwField
&
rFld
,
ww
::
eField
eType
,
const
String
&
rCmd
);
virtual
void
PostitField
(
const
SwField
*
pFld
);
virtual
void
PostitField
(
const
SwField
*
pFld
);
virtual
bool
DropdownField
(
const
SwField
*
pFld
);
virtual
bool
DropdownField
(
const
SwField
*
pFld
);
virtual
bool
PlaceholderField
(
const
SwField
*
pFld
);
/// Reference to the export, where to get the data from
/// Reference to the export, where to get the data from
RtfExport
&
m_rExport
;
RtfExport
&
m_rExport
;
...
...
sw/source/filter/ww8/ww8atr.cxx
Dosyayı görüntüle @
2716dc0d
...
@@ -2473,6 +2473,11 @@ bool WW8AttributeOutput::DropdownField( const SwField* pFld )
...
@@ -2473,6 +2473,11 @@ bool WW8AttributeOutput::DropdownField( const SwField* pFld )
return
bExpand
;
return
bExpand
;
}
}
bool
WW8AttributeOutput
::
PlaceholderField
(
const
SwField
*
)
{
return
true
;
// expand to text?
}
void
WW8AttributeOutput
::
RefField
(
const
SwField
&
rFld
,
const
String
&
rRef
)
void
WW8AttributeOutput
::
RefField
(
const
SwField
&
rFld
,
const
String
&
rRef
)
{
{
String
sStr
(
FieldString
(
ww
::
eREF
)
);
String
sStr
(
FieldString
(
ww
::
eREF
)
);
...
@@ -2922,7 +2927,7 @@ void AttributeOutputBase::TextField( const SwFmtFld& rField )
...
@@ -2922,7 +2927,7 @@ void AttributeOutputBase::TextField( const SwFmtFld& rField )
}
}
}
}
break
;
break
;
case
RES_HIDDENTXTFLD
:
case
RES_HIDDENTXTFLD
:
{
{
String
sExpand
(
pFld
->
GetPar2
());
String
sExpand
(
pFld
->
GetPar2
());
if
(
sExpand
.
Len
())
if
(
sExpand
.
Len
())
...
@@ -2931,6 +2936,9 @@ void AttributeOutputBase::TextField( const SwFmtFld& rField )
...
@@ -2931,6 +2936,9 @@ void AttributeOutputBase::TextField( const SwFmtFld& rField )
}
}
}
}
break
;
break
;
case
RES_JUMPEDITFLD
:
bWriteExpand
=
PlaceholderField
(
pFld
);
break
;
default
:
default
:
bWriteExpand
=
true
;
bWriteExpand
=
true
;
break
;
break
;
...
...
sw/source/filter/ww8/ww8attributeoutput.hxx
Dosyayı görüntüle @
2716dc0d
...
@@ -391,6 +391,7 @@ protected:
...
@@ -391,6 +391,7 @@ protected:
virtual
void
SetField
(
const
SwField
&
rFld
,
ww
::
eField
eType
,
const
String
&
rCmd
);
virtual
void
SetField
(
const
SwField
&
rFld
,
ww
::
eField
eType
,
const
String
&
rCmd
);
virtual
void
PostitField
(
const
SwField
*
pFld
);
virtual
void
PostitField
(
const
SwField
*
pFld
);
virtual
bool
DropdownField
(
const
SwField
*
pFld
);
virtual
bool
DropdownField
(
const
SwField
*
pFld
);
virtual
bool
PlaceholderField
(
const
SwField
*
pFld
);
virtual
bool
AnalyzeURL
(
const
String
&
rURL
,
const
String
&
rTarget
,
String
*
pLinkURL
,
String
*
pMark
);
virtual
bool
AnalyzeURL
(
const
String
&
rURL
,
const
String
&
rTarget
,
String
*
pLinkURL
,
String
*
pMark
);
...
...
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