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
abd92f37
Kaydet (Commit)
abd92f37
authored
Haz 19, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sd::ViewShell::GetTextSelection: fix text/richtext handling
Change-Id: If7d75d48667cd48d9426b02a38d2cf539b248d26
üst
e72e79df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
tiledrendering.cxx
sd/qa/unit/tiledrendering/tiledrendering.cxx
+3
-0
viewshel.cxx
sd/source/ui/view/viewshel.cxx
+6
-0
No files found.
sd/qa/unit/tiledrendering/tiledrendering.cxx
Dosyayı görüntüle @
abd92f37
...
...
@@ -303,6 +303,9 @@ void SdTiledRenderingTest::testGetTextSelection()
rEditView
.
SetSelection
(
aWordSelection
);
// Did we indeed manage to copy the selected text?
CPPUNIT_ASSERT_EQUAL
(
OString
(
"Shape"
),
pXImpressDocument
->
getTextSelection
(
"text/plain;charset=utf-8"
));
// Make sure returned RTF is not empty.
CPPUNIT_ASSERT
(
!
OString
(
pXImpressDocument
->
getTextSelection
(
"text/richtext"
)).
isEmpty
());
}
void
SdTiledRenderingTest
::
testSetGraphicSelection
()
...
...
sd/source/ui/view/viewshel.cxx
Dosyayı görüntüle @
abd92f37
...
...
@@ -597,6 +597,12 @@ OString ViewShell::GetTextSelection(const OString& _aMimeType)
else
aRet
=
OString
(
reinterpret_cast
<
const
sal_Char
*>
(
aString
.
getStr
()),
aString
.
getLength
()
*
sizeof
(
sal_Unicode
));
}
else
{
uno
::
Sequence
<
sal_Int8
>
aSequence
;
aAny
>>=
aSequence
;
aRet
=
OString
(
reinterpret_cast
<
sal_Char
*>
(
aSequence
.
getArray
()),
aSequence
.
getLength
());
}
return
aRet
;
}
...
...
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