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
5b4c29b1
Kaydet (Commit)
5b4c29b1
authored
Eki 26, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc: implement vcl::ITiledRenderable::isMimeTypeSupported()
Change-Id: I0b9de068ddf0f4ff92d8fbf003b7529516f1f80a
üst
b08546eb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
4 deletions
+20
-4
ITiledRenderable.hxx
include/vcl/ITiledRenderable.hxx
+2
-4
docuno.hxx
sc/inc/docuno.hxx
+3
-0
docuno.cxx
sc/source/ui/unoobj/docuno.cxx
+13
-0
unotxdoc.cxx
sw/source/uibase/uno/unotxdoc.cxx
+2
-0
No files found.
include/vcl/ITiledRenderable.hxx
Dosyayı görüntüle @
5b4c29b1
...
@@ -151,10 +151,8 @@ public:
...
@@ -151,10 +151,8 @@ public:
/// Returns the current vcl::Window of the component.
/// Returns the current vcl::Window of the component.
virtual
vcl
::
Window
*
getWindow
()
=
0
;
virtual
vcl
::
Window
*
getWindow
()
=
0
;
virtual
bool
isMimeTypeSupported
()
/// If the current contents of the clipboard is something we can paste.
{
virtual
bool
isMimeTypeSupported
()
=
0
;
return
false
;
}
};
};
}
// namespace vcl
}
// namespace vcl
...
...
sc/inc/docuno.hxx
Dosyayı görüntüle @
5b4c29b1
...
@@ -415,6 +415,9 @@ public:
...
@@ -415,6 +415,9 @@ public:
/// @see vcl::ITiledRenderable::getWindow().
/// @see vcl::ITiledRenderable::getWindow().
virtual
vcl
::
Window
*
getWindow
()
override
;
virtual
vcl
::
Window
*
getWindow
()
override
;
/// @see vcl::ITiledRenderable::isMimeTypeSupported().
virtual
bool
isMimeTypeSupported
()
override
;
};
};
class
ScDrawPagesObj
:
public
cppu
::
WeakImplHelper
<
class
ScDrawPagesObj
:
public
cppu
::
WeakImplHelper
<
...
...
sc/source/ui/unoobj/docuno.cxx
Dosyayı görüntüle @
5b4c29b1
...
@@ -856,6 +856,19 @@ vcl::Window* ScModelObj::getWindow()
...
@@ -856,6 +856,19 @@ vcl::Window* ScModelObj::getWindow()
return
pViewData
->
GetActiveWin
();
return
pViewData
->
GetActiveWin
();
}
}
bool
ScModelObj
::
isMimeTypeSupported
()
{
SolarMutexGuard
aGuard
;
ScViewData
*
pViewData
=
ScDocShell
::
GetViewData
();
if
(
!
pViewData
)
return
0
;
TransferableDataHelper
aDataHelper
(
TransferableDataHelper
::
CreateFromSystemClipboard
(
pViewData
->
GetActiveWin
()));
return
EditEngine
::
HasValidData
(
aDataHelper
.
GetTransferable
());
}
void
ScModelObj
::
initializeForTiledRendering
()
void
ScModelObj
::
initializeForTiledRendering
()
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
...
...
sw/source/uibase/uno/unotxdoc.cxx
Dosyayı görüntüle @
5b4c29b1
...
@@ -3191,6 +3191,8 @@ vcl::Window* SwXTextDocument::getWindow()
...
@@ -3191,6 +3191,8 @@ vcl::Window* SwXTextDocument::getWindow()
bool
SwXTextDocument
::
isMimeTypeSupported
()
bool
SwXTextDocument
::
isMimeTypeSupported
()
{
{
SolarMutexGuard
aGuard
;
SwWrtShell
*
pWrtShell
=
pDocShell
->
GetWrtShell
();
SwWrtShell
*
pWrtShell
=
pDocShell
->
GetWrtShell
();
if
(
!
pWrtShell
)
if
(
!
pWrtShell
)
return
false
;
return
false
;
...
...
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