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
ad292b0a
Kaydet (Commit)
ad292b0a
authored
Kas 08, 2018
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw_redlinehide_3: adapt SwFormatFootnote::GetFootnoteText()
Change-Id: I206d7345525a4de0f9ece6bac575f82ff1f96df8
üst
d9976f4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
fmtftn.hxx
sw/inc/fmtftn.hxx
+1
-1
atrftn.cxx
sw/source/core/txtnode/atrftn.cxx
+8
-3
edtwin2.cxx
sw/source/uibase/docvw/edtwin2.cxx
+1
-2
No files found.
sw/inc/fmtftn.hxx
Dosyayı görüntüle @
ad292b0a
...
@@ -85,7 +85,7 @@ public:
...
@@ -85,7 +85,7 @@ public:
const
SwTextFootnote
*
GetTextFootnote
()
const
{
return
m_pTextAttr
;
}
const
SwTextFootnote
*
GetTextFootnote
()
const
{
return
m_pTextAttr
;
}
SwTextFootnote
*
GetTextFootnote
()
{
return
m_pTextAttr
;
}
SwTextFootnote
*
GetTextFootnote
()
{
return
m_pTextAttr
;
}
void
GetFootnoteText
(
OUString
&
rStr
)
const
;
OUString
GetFootnoteText
(
SwRootFrame
const
&
rLayout
)
const
;
/// Returns string to be displayed of footnote / endnote.
/// Returns string to be displayed of footnote / endnote.
OUString
GetViewNumStr
(
const
SwDoc
&
rDoc
,
SwRootFrame
const
*
pLayout
,
OUString
GetViewNumStr
(
const
SwDoc
&
rDoc
,
SwRootFrame
const
*
pLayout
,
...
...
sw/source/core/txtnode/atrftn.cxx
Dosyayı görüntüle @
ad292b0a
...
@@ -179,8 +179,9 @@ SwFormatFootnote::~SwFormatFootnote()
...
@@ -179,8 +179,9 @@ SwFormatFootnote::~SwFormatFootnote()
{
{
}
}
void
SwFormatFootnote
::
GetFootnoteText
(
OUString
&
rStr
)
const
OUString
SwFormatFootnote
::
GetFootnoteText
(
SwRootFrame
const
&
rLayout
)
const
{
{
OUStringBuffer
buf
;
if
(
m_pTextAttr
->
GetStartNode
()
)
if
(
m_pTextAttr
->
GetStartNode
()
)
{
{
SwNodeIndex
aIdx
(
*
m_pTextAttr
->
GetStartNode
(),
1
);
SwNodeIndex
aIdx
(
*
m_pTextAttr
->
GetStartNode
(),
1
);
...
@@ -189,16 +190,20 @@ void SwFormatFootnote::GetFootnoteText( OUString& rStr ) const
...
@@ -189,16 +190,20 @@ void SwFormatFootnote::GetFootnoteText( OUString& rStr ) const
pCNd
=
aIdx
.
GetNodes
().
GoNext
(
&
aIdx
);
pCNd
=
aIdx
.
GetNodes
().
GoNext
(
&
aIdx
);
if
(
pCNd
->
IsTextNode
()
)
{
if
(
pCNd
->
IsTextNode
()
)
{
rStr
=
static_cast
<
SwTextNode
*>
(
pCNd
)
->
GetExpandText
(
nullptr
/*TODO*/
);
buf
.
append
(
static_cast
<
SwTextNode
*>
(
pCNd
)
->
GetExpandText
(
&
rLayout
)
);
++
aIdx
;
++
aIdx
;
while
(
!
aIdx
.
GetNode
().
IsEndNode
()
)
{
while
(
!
aIdx
.
GetNode
().
IsEndNode
()
)
{
if
(
aIdx
.
GetNode
().
IsTextNode
()
)
if
(
aIdx
.
GetNode
().
IsTextNode
()
)
rStr
+=
" "
+
aIdx
.
GetNode
().
GetTextNode
()
->
GetExpandText
(
nullptr
/*TODO*/
);
{
buf
.
append
(
" "
);
buf
.
append
(
aIdx
.
GetNode
().
GetTextNode
()
->
GetExpandText
(
&
rLayout
));
}
++
aIdx
;
++
aIdx
;
}
}
}
}
}
}
return
buf
.
makeStringAndClear
();
}
}
/// return the view string of the foot/endnote
/// return the view string of the foot/endnote
...
...
sw/source/uibase/docvw/edtwin2.cxx
Dosyayı görüntüle @
ad292b0a
...
@@ -246,8 +246,7 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
...
@@ -246,8 +246,7 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
if
(
aContentAtPos
.
pFndTextAttr
&&
aContentAtPos
.
aFnd
.
pAttr
)
if
(
aContentAtPos
.
pFndTextAttr
&&
aContentAtPos
.
aFnd
.
pAttr
)
{
{
const
SwFormatFootnote
*
pFootnote
=
static_cast
<
const
SwFormatFootnote
*>
(
aContentAtPos
.
aFnd
.
pAttr
);
const
SwFormatFootnote
*
pFootnote
=
static_cast
<
const
SwFormatFootnote
*>
(
aContentAtPos
.
aFnd
.
pAttr
);
OUString
sTmp
;
OUString
sTmp
(
pFootnote
->
GetFootnoteText
(
*
rSh
.
GetLayout
()));
pFootnote
->
GetFootnoteText
(
sTmp
);
sText
=
SwResId
(
pFootnote
->
IsEndNote
()
sText
=
SwResId
(
pFootnote
->
IsEndNote
()
?
STR_ENDNOTE
:
STR_FTNNOTE
)
+
sTmp
;
?
STR_ENDNOTE
:
STR_FTNNOTE
)
+
sTmp
;
bBalloon
=
true
;
bBalloon
=
true
;
...
...
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