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
3e11d7a6
Kaydet (Commit)
3e11d7a6
authored
Eki 22, 2013
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc: remove StringPtr type, just use OUString directly
Change-Id: I2e74afb0c5bdd4d980feb43500117e731cdf578e
üst
e6c47b03
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
xecontent.cxx
sc/source/filter/excel/xecontent.cxx
+6
-6
xecontent.hxx
sc/source/filter/inc/xecontent.hxx
+3
-4
No files found.
sc/source/filter/excel/xecontent.cxx
Dosyayı görüntüle @
3e11d7a6
...
...
@@ -350,7 +350,7 @@ XclExpHyperlink::XclExpHyperlink( const XclExpRoot& rRoot, const SvxURLField& rU
aXclStrm
<<
sal_uInt16
(
0
);
mnFlags
|=
EXC_HLINK_DESCR
;
m
xRepr
.
reset
(
new
OUString
(
rRepr
)
)
;
m
_Repr
=
rRepr
;
}
// file link or URL
...
...
@@ -387,8 +387,8 @@ XclExpHyperlink::XclExpHyperlink( const XclExpRoot& rRoot, const SvxURLField& rU
<<
sal_uInt16
(
0x0003
);
aLink
.
WriteBuffer
(
aXclStrm
);
// NO flags
if
(
!
mxRepr
.
get
()
)
m
xRepr
.
reset
(
new
OUString
(
aFileName
)
)
;
if
(
m_Repr
.
isEmpty
()
)
m
_Repr
=
aFileName
;
msTarget
=
XclXmlUtils
::
ToOUString
(
aLink
);
// ooxml expects the file:/// part appended ( or at least
...
...
@@ -404,8 +404,8 @@ XclExpHyperlink::XclExpHyperlink( const XclExpRoot& rRoot, const SvxURLField& rU
aXclStrm
<<
sal_uInt16
(
0
);
mnFlags
|=
EXC_HLINK_BODY
|
EXC_HLINK_ABS
;
if
(
!
mxRepr
.
get
()
)
m
xRepr
.
reset
(
new
OUString
(
rUrl
)
)
;
if
(
m_Repr
.
isEmpty
()
)
m
_Repr
=
rUrl
;
msTarget
=
XclXmlUtils
::
ToOUString
(
aUrl
);
}
...
...
@@ -513,7 +513,7 @@ void XclExpHyperlink::SaveXml( XclExpXmlStream& rStrm )
?
XclXmlUtils
::
ToOString
(
*
mxTextMark
).
getStr
()
:
NULL
,
// OOXTODO: XML_tooltip, from record HLinkTooltip 800h wzTooltip
XML_display
,
XclXmlUtils
::
ToOString
(
*
mxRepr
).
getStr
(),
XML_display
,
XclXmlUtils
::
ToOString
(
m_Repr
).
getStr
(),
FSEND
);
}
...
...
sc/source/filter/inc/xecontent.hxx
Dosyayı görüntüle @
3e11d7a6
...
...
@@ -104,7 +104,7 @@ public:
virtual
~
XclExpHyperlink
();
/** Returns the cell representation text or 0, if not available. */
inline
const
OUString
*
GetRepr
()
const
{
return
m
xRepr
.
get
()
;
}
inline
const
OUString
*
GetRepr
()
const
{
return
m
_Repr
.
isEmpty
()
?
0
:
&
m_Repr
;
}
virtual
void
SaveXml
(
XclExpXmlStream
&
rStrm
);
...
...
@@ -121,14 +121,13 @@ private:
virtual
void
WriteBody
(
XclExpStream
&
rStrm
);
private
:
typedef
boost
::
scoped_ptr
<
OUString
>
StringPtr
;
typedef
boost
::
scoped_ptr
<
SvStream
>
SvStreamPtr
;
ScAddress
maScPos
;
/// Position of the hyperlink.
StringPtr
mx
Repr
;
/// Cell representation text.
OUString
m_
Repr
;
/// Cell representation text.
SvStreamPtr
mxVarData
;
/// Buffer stream with variable data.
sal_uInt32
mnFlags
;
/// Option flags.
XclExpStringRef
mxTextMark
;
/// Location within m
x
Repr
XclExpStringRef
mxTextMark
;
/// Location within m
_
Repr
OUString
msTarget
;
/// Target URL
};
...
...
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