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
83682252
Kaydet (Commit)
83682252
authored
Tem 14, 2012
tarafından
Rafael Dominguez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Create overlay for online templates.
Change-Id: Ie09c91e23527d3e1389fc13bd13a8234bda080f3
üst
e81b4275
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
templateonlineview.hxx
sfx2/inc/sfx2/templateonlineview.hxx
+10
-0
templateonlineview.cxx
sfx2/source/control/templateonlineview.cxx
+18
-1
No files found.
sfx2/inc/sfx2/templateonlineview.hxx
Dosyayı görüntüle @
83682252
...
...
@@ -14,6 +14,8 @@
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
class
TemplateView
;
class
TemplateOnlineView
:
public
ThumbnailView
{
public
:
...
...
@@ -25,8 +27,16 @@ public:
// Load repositories from user settings.
void
Populate
();
void
setItemDimensions
(
long
ItemWidth
,
long
ThumbnailHeight
,
long
DisplayHeight
,
int
itemPadding
);
private
:
virtual
void
Resize
();
private
:
TemplateView
*
mpItemView
;
com
::
sun
::
star
::
uno
::
Sequence
<
rtl
::
OUString
>
maUrls
;
com
::
sun
::
star
::
uno
::
Sequence
<
rtl
::
OUString
>
maNames
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>
m_xCmdEnv
;
...
...
sfx2/source/control/templateonlineview.cxx
Dosyayı görüntüle @
83682252
...
...
@@ -12,6 +12,7 @@
#include <comphelper/processfactory.hxx>
#include <officecfg/Office/Common.hxx>
#include <sfx2/templateonlineviewitem.hxx>
#include <sfx2/templateview.hxx>
#include <ucbhelper/content.hxx>
#include <ucbhelper/commandenvironment.hxx>
...
...
@@ -25,8 +26,11 @@ using namespace com::sun::star::ucb;
using
namespace
com
::
sun
::
star
::
uno
;
TemplateOnlineView
::
TemplateOnlineView
(
Window
*
pParent
,
WinBits
nWinStyle
,
bool
bDisableTransientChildren
)
:
ThumbnailView
(
pParent
,
nWinStyle
,
bDisableTransientChildren
)
:
ThumbnailView
(
pParent
,
nWinStyle
,
bDisableTransientChildren
),
mpItemView
(
new
TemplateView
(
this
,
NULL
))
{
mpItemView
->
SetPosPixel
(
Point
(
0
,
0
));
Reference
<
XMultiServiceFactory
>
xFactory
=
comphelper
::
getProcessServiceFactory
();
Reference
<
XInteractionHandler
>
xGlobalInteractionHandler
=
Reference
<
XInteractionHandler
>
(
xFactory
->
createInstance
(
"com.sun.star.task.InteractionHandler"
),
UNO_QUERY
);
...
...
@@ -36,6 +40,7 @@ TemplateOnlineView::TemplateOnlineView (Window *pParent, WinBits nWinStyle, bool
TemplateOnlineView
::~
TemplateOnlineView
()
{
delete
mpItemView
;
}
void
TemplateOnlineView
::
Populate
()
...
...
@@ -63,4 +68,16 @@ void TemplateOnlineView::Populate()
Invalidate
();
}
void
TemplateOnlineView
::
setItemDimensions
(
long
ItemWidth
,
long
ThumbnailHeight
,
long
DisplayHeight
,
int
itemPadding
)
{
ThumbnailView
::
setItemDimensions
(
ItemWidth
,
ThumbnailHeight
,
DisplayHeight
,
itemPadding
);
mpItemView
->
setItemDimensions
(
ItemWidth
,
ThumbnailHeight
,
DisplayHeight
,
itemPadding
);
}
void
TemplateOnlineView
::
Resize
()
{
mpItemView
->
SetSizePixel
(
GetSizePixel
());
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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