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
cc0943a5
Kaydet (Commit)
cc0943a5
authored
Ock 09, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DOC export of annotation marks
Change-Id: Ib29aef7838b9d31d7956c93e1aa5b896852e4b89
üst
6af2caab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
+20
-9
ww8export.cxx
sw/qa/extras/ww8export/ww8export.cxx
+4
-7
wrtww8.cxx
sw/source/filter/ww8/wrtww8.cxx
+16
-1
ww8atr.cxx
sw/source/filter/ww8/ww8atr.cxx
+0
-1
No files found.
sw/qa/extras/ww8export/ww8export.cxx
Dosyayı görüntüle @
cc0943a5
...
@@ -152,8 +152,6 @@ DECLARE_WW8EXPORT_TEST(testCharacterBorder, "charborder.odt")
...
@@ -152,8 +152,6 @@ DECLARE_WW8EXPORT_TEST(testCharacterBorder, "charborder.odt")
DECLARE_WW8EXPORT_TEST
(
testFdo59530
,
"fdo59530.doc"
)
DECLARE_WW8EXPORT_TEST
(
testFdo59530
,
"fdo59530.doc"
)
{
{
#if 0
// FIXME port to AnnotationMarks
// See ooxmlexport's testFdo38244().
// See ooxmlexport's testFdo38244().
// Test comment range feature.
// Test comment range feature.
uno
::
Reference
<
text
::
XTextDocument
>
xTextDocument
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
text
::
XTextDocument
>
xTextDocument
(
mxComponent
,
uno
::
UNO_QUERY
);
...
@@ -163,10 +161,10 @@ DECLARE_WW8EXPORT_TEST(testFdo59530, "fdo59530.doc")
...
@@ -163,10 +161,10 @@ DECLARE_WW8EXPORT_TEST(testFdo59530, "fdo59530.doc")
uno
::
Reference
<
container
::
XEnumeration
>
xRunEnum
=
xRunEnumAccess
->
createEnumeration
();
uno
::
Reference
<
container
::
XEnumeration
>
xRunEnum
=
xRunEnumAccess
->
createEnumeration
();
xRunEnum
->
nextElement
();
xRunEnum
->
nextElement
();
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
xRunEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
xRunEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL(OUString("
TextFieldStart
"), getProperty<OUString>(xPropertySet, "TextPortionType"));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"
Annotation
"
),
getProperty
<
OUString
>
(
xPropertySet
,
"TextPortionType"
));
xRunEnum
->
nextElement
();
xRunEnum
->
nextElement
();
xPropertySet
.
set
(
xRunEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
xPropertySet
.
set
(
xRunEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL(OUString("
TextField
End"), getProperty<OUString>(xPropertySet, "TextPortionType"));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"
Annotation
End"
),
getProperty
<
OUString
>
(
xPropertySet
,
"TextPortionType"
));
// Test initials.
// Test initials.
uno
::
Reference
<
text
::
XTextFieldsSupplier
>
xTextFieldsSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
text
::
XTextFieldsSupplier
>
xTextFieldsSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
...
@@ -181,14 +179,13 @@ DECLARE_WW8EXPORT_TEST(testFdo59530, "fdo59530.doc")
...
@@ -181,14 +179,13 @@ DECLARE_WW8EXPORT_TEST(testFdo59530, "fdo59530.doc")
xRunEnum
=
xRunEnumAccess
->
createEnumeration
();
xRunEnum
=
xRunEnumAccess
->
createEnumeration
();
xRunEnum
->
nextElement
();
xRunEnum
->
nextElement
();
xPropertySet
.
set
(
xRunEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
xPropertySet
.
set
(
xRunEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL(OUString("
TextFieldStart
"), getProperty<OUString>(xPropertySet, "TextPortionType"));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"
Annotation
"
),
getProperty
<
OUString
>
(
xPropertySet
,
"TextPortionType"
));
// Comment ends in the third paragraph
// Comment ends in the third paragraph
xRunEnumAccess
.
set
(
xParaEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
xRunEnumAccess
.
set
(
xParaEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
xRunEnum
=
xRunEnumAccess
->
createEnumeration
();
xRunEnum
=
xRunEnumAccess
->
createEnumeration
();
xRunEnum
->
nextElement
();
xRunEnum
->
nextElement
();
xPropertySet
.
set
(
xRunEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
xPropertySet
.
set
(
xRunEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL(OUString("TextFieldEnd"), getProperty<OUString>(xPropertySet, "TextPortionType"));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"AnnotationEnd"
),
getProperty
<
OUString
>
(
xPropertySet
,
"TextPortionType"
));
#endif
}
}
#endif
#endif
...
...
sw/source/filter/ww8/wrtww8.cxx
Dosyayı görüntüle @
cc0943a5
...
@@ -1387,8 +1387,23 @@ void WW8Export::AppendBookmarks( const SwTxtNode& rNd, sal_Int32 nAktPos, sal_In
...
@@ -1387,8 +1387,23 @@ void WW8Export::AppendBookmarks( const SwTxtNode& rNd, sal_Int32 nAktPos, sal_In
}
}
}
}
void
WW8Export
::
AppendAnnotationMarks
(
const
SwTxtNode
&
/*rNd*/
,
sal_Int32
/*nAktPos*/
,
sal_Int32
/*nLen*/
)
void
WW8Export
::
AppendAnnotationMarks
(
const
SwTxtNode
&
rNode
,
sal_Int32
nAktPos
,
sal_Int32
nLen
)
{
{
std
::
vector
<
OUString
>
aStarts
;
IMarkVector
aMarks
;
if
(
GetAnnotationMarks
(
rNode
,
nAktPos
,
nAktPos
+
nLen
,
aMarks
))
{
for
(
IMarkVector
::
const_iterator
it
=
aMarks
.
begin
(),
end
=
aMarks
.
end
();
it
!=
end
;
++
it
)
{
sw
::
mark
::
IMark
*
pMark
=
(
*
it
);
const
sal_Int32
nStart
=
pMark
->
GetMarkStart
().
nContent
.
GetIndex
();
if
(
nStart
==
nAktPos
)
{
pAtn
->
AddRangeStartPosition
(
Fc2Cp
(
Strm
().
Tell
()));
return
;
}
}
}
}
}
void
WW8Export
::
MoveFieldMarks
(
WW8_CP
nFrom
,
WW8_CP
nTo
)
void
WW8Export
::
MoveFieldMarks
(
WW8_CP
nFrom
,
WW8_CP
nTo
)
...
...
sw/source/filter/ww8/ww8atr.cxx
Dosyayı görüntüle @
cc0943a5
...
@@ -2490,7 +2490,6 @@ void WW8AttributeOutput::PostitField( const SwField* pFld )
...
@@ -2490,7 +2490,6 @@ void WW8AttributeOutput::PostitField( const SwField* pFld )
void
WW8AttributeOutput
::
WritePostitFieldStart
()
void
WW8AttributeOutput
::
WritePostitFieldStart
()
{
{
m_rWW8Export
.
pAtn
->
AddRangeStartPosition
(
m_rWW8Export
.
Fc2Cp
(
m_rWW8Export
.
Strm
().
Tell
()
)
);
}
}
bool
WW8AttributeOutput
::
DropdownField
(
const
SwField
*
pFld
)
bool
WW8AttributeOutput
::
DropdownField
(
const
SwField
*
pFld
)
...
...
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