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
569d5dc0
Kaydet (Commit)
569d5dc0
authored
Nis 16, 2018
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add Move() to ooo.vba.word.XApplication
Change-Id: Ib230e730f68a30b82915ed6d7898bf1c02690b70
üst
5abf9d26
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
XApplication.idl
oovbaapi/ooo/vba/word/XApplication.idl
+1
-0
vbaapplication.cxx
sw/source/ui/vba/vbaapplication.cxx
+12
-1
vbaapplication.hxx
sw/source/ui/vba/vbaapplication.hxx
+1
-0
No files found.
oovbaapi/ooo/vba/word/XApplication.idl
Dosyayı görüntüle @
569d5dc0
...
...
@@ -44,6 +44,7 @@ interface XApplication : XConnectable
float
CentimetersToPoints
(
[
in
]
float
Centimeters
)
;
void
ShowMe
()
;
void
Resize
(
[
in
]
long
Width
,
[
in
]
long
Height
)
;
void
Move
(
[
in
]
long
Left
,
[
in
]
long
Top
)
;
}
;
}
; }; };
...
...
sw/source/ui/vba/vbaapplication.cxx
Dosyayı görüntüle @
569d5dc0
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4
; fill-column:100
-*- */
/*
* This file is part of the LibreOffice project.
*
...
...
@@ -233,11 +233,22 @@ void SAL_CALL SwVbaApplication::ShowMe()
void
SAL_CALL
SwVbaApplication
::
Resize
(
sal_Int32
Width
,
sal_Int32
Height
)
{
// Have to do it like this as the Width and Height are hidden away in the ooo::vba::XWindowBase
// which ooo::vba::word::XApplication does not inherit from. SwVbaWindow, however, does inherit
// from XWindowBase. Ugh.
auto
pWindow
=
getActiveSwVbaWindow
();
pWindow
->
setWidth
(
Width
);
pWindow
->
setHeight
(
Height
);
}
void
SAL_CALL
SwVbaApplication
::
Move
(
sal_Int32
Left
,
sal_Int32
Top
)
{
// See comment in Resize().
auto
pWindow
=
getActiveSwVbaWindow
();
pWindow
->
setLeft
(
Left
);
pWindow
->
setTop
(
Top
);
}
// XInterfaceWithIID
OUString
SAL_CALL
...
...
sw/source/ui/vba/vbaapplication.hxx
Dosyayı görüntüle @
569d5dc0
...
...
@@ -79,6 +79,7 @@ public:
virtual
float
SAL_CALL
CentimetersToPoints
(
float
Centimeters
)
override
;
virtual
void
SAL_CALL
ShowMe
()
override
;
virtual
void
SAL_CALL
Resize
(
sal_Int32
Width
,
sal_Int32
Height
)
override
;
virtual
void
SAL_CALL
Move
(
sal_Int32
Left
,
sal_Int32
Top
)
override
;
// XInterfaceWithIID
virtual
OUString
SAL_CALL
getIID
()
override
;
...
...
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