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
3514df0f
Kaydet (Commit)
3514df0f
authored
Agu 01, 2012
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add TabRatio api and detect macro at group shape fixes bnc#770708
Change-Id: I73eb612edaba21aa5bb07577b42bd31f8de2dd2a
üst
13dc61da
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
9 deletions
+37
-9
XWindow.idl
oovbaapi/ooo/vba/excel/XWindow.idl
+1
-0
fusel.cxx
sc/source/ui/drawfunc/fusel.cxx
+10
-7
tabview.hxx
sc/source/ui/inc/tabview.hxx
+2
-2
vbawindow.cxx
sc/source/ui/vba/vbawindow.cxx
+22
-0
vbawindow.hxx
sc/source/ui/vba/vbawindow.hxx
+2
-0
No files found.
oovbaapi/ooo/vba/excel/XWindow.idl
Dosyayı görüntüle @
3514df0f
...
...
@@ -51,6 +51,7 @@ interface XWindow : com::sun::star::uno::XInterface
[
attribute
,
readonly
]
XRange
VisibleRange
;
[
attribute
]
any
WindowState
;
[
attribute
]
any
Zoom
;
[
attribute
]
double
TabRatio
;
any
SelectedSheets
(
[
in
]
any
Index
)
;
void
SmallScroll
(
[
in
]
any
Down
,
[
in
]
any
Up
,
[
in
]
any
ToRight
,
[
in
]
any
ToLeft
)
;
void
LargeScroll
(
[
in
]
any
Down
,
[
in
]
any
Up
,
[
in
]
any
ToRight
,
[
in
]
any
ToLeft
)
;
...
...
sc/source/ui/drawfunc/fusel.cxx
Dosyayı görüntüle @
3514df0f
...
...
@@ -186,19 +186,22 @@ sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
// associated with the clicked object is used only
// additionally you can also select a macro in Excel for a grouped
// objects and this
results in the macro being set for the elements
//
in the group and no macro is exported for the group
// objects and this
*usually* results in the macro being set
//
for the elements in the group and no macro is exported
// for the group itself ( this however is not always true )
// if a macro and hlink are defined favour the hlink
// If a group object has no hyperlink use the hyperlink of the
// object clicked
if
(
pObj
->
IsGroupObject
()
)
{
SdrObject
*
pHit
=
NULL
;
if
(
pView
->
PickObj
(
aMDPos
,
pView
->
getHitTolLog
(),
pHit
,
pPV
,
SDRSEARCH_DEEP
)
)
pObj
=
pHit
;
ScMacroInfo
*
pTmpInfo
=
ScDrawLayer
::
GetMacroInfo
(
pObj
);
if
(
!
pTmpInfo
||
pTmpInfo
->
GetMacro
().
isEmpty
()
)
{
SdrObject
*
pHit
=
NULL
;
if
(
pView
->
PickObj
(
aMDPos
,
pView
->
getHitTolLog
(),
pHit
,
pPV
,
SDRSEARCH_DEEP
)
)
pObj
=
pHit
;
}
}
ScMacroInfo
*
pInfo
=
ScDrawLayer
::
GetMacroInfo
(
pObj
,
true
);
...
...
sc/source/ui/inc/tabview.hxx
Dosyayı görüntüle @
3514df0f
...
...
@@ -255,14 +255,14 @@ public:
void
SetTabBarWidth
(
long
nNewWidth
);
/** Sets a relative tab bar width.
@param fRelTabBarWidth Tab bar width relative to frame window width (0.0 ... 1.0). */
void
SetRelTabBarWidth
(
double
fRelTabBarWidth
);
SC_DLLPUBLIC
void
SetRelTabBarWidth
(
double
fRelTabBarWidth
);
/** Sets a relative tab bar width. Tab bar is resized again in next DoResize().
@param fRelTabBarWidth Tab bar width relative to frame window width (0.0 ... 1.0). */
void
SetPendingRelTabBarWidth
(
double
fRelTabBarWidth
);
/** Returns the current tab bar width in pixels. */
long
GetTabBarWidth
()
const
;
/** Returns the current tab bar width relative to the frame window width (0.0 ... 1.0). */
double
GetRelTabBarWidth
()
const
;
SC_DLLPUBLIC
double
GetRelTabBarWidth
()
const
;
/** Returns the pending tab bar width relative to the frame window width (0.0 ... 1.0). */
double
GetPendingRelTabBarWidth
()
const
;
...
...
sc/source/ui/vba/vbawindow.cxx
Dosyayı görüntüle @
3514df0f
...
...
@@ -851,6 +851,28 @@ ScVbaWindow::PrintPreview( const css::uno::Any& EnableChanges ) throw (css::scri
PrintPreviewHelper
(
EnableChanges
,
excel
::
getBestViewShell
(
m_xModel
)
);
}
double
SAL_CALL
ScVbaWindow
::
getTabRatio
()
throw
(
css
::
uno
::
RuntimeException
)
{
ScTabViewShell
*
pViewShell
=
excel
::
getBestViewShell
(
m_xModel
);
if
(
pViewShell
&&
pViewShell
->
GetViewData
()
&&
pViewShell
->
GetViewData
()
->
GetView
()
)
{
double
fRatio
=
pViewShell
->
GetViewData
()
->
GetView
()
->
GetRelTabBarWidth
();
if
(
fRatio
>=
0.0
&&
fRatio
<=
1.0
)
return
fRatio
;
}
return
0.0
;
}
void
SAL_CALL
ScVbaWindow
::
setTabRatio
(
double
fRatio
)
throw
(
css
::
uno
::
RuntimeException
)
{
ScTabViewShell
*
pViewShell
=
excel
::
getBestViewShell
(
m_xModel
);
if
(
pViewShell
&&
pViewShell
->
GetViewData
()
&&
pViewShell
->
GetViewData
()
->
GetView
()
)
{
if
(
fRatio
>=
0.0
&&
fRatio
<=
1.0
)
pViewShell
->
GetViewData
()
->
GetView
()
->
SetRelTabBarWidth
(
fRatio
);
}
}
rtl
::
OUString
ScVbaWindow
::
getServiceImplName
()
{
...
...
sc/source/ui/vba/vbawindow.hxx
Dosyayı görüntüle @
3514df0f
...
...
@@ -112,6 +112,8 @@ public:
virtual
void
SAL_CALL
setWindowState
(
const
css
::
uno
::
Any
&
_windowstate
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Any
SAL_CALL
getZoom
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setZoom
(
const
css
::
uno
::
Any
&
_zoom
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
double
SAL_CALL
getTabRatio
()
throw
(
css
::
uno
::
RuntimeException
)
;
virtual
void
SAL_CALL
setTabRatio
(
double
_tabratio
)
throw
(
css
::
uno
::
RuntimeException
)
;
// Methods
virtual
void
SAL_CALL
SmallScroll
(
const
css
::
uno
::
Any
&
Down
,
const
css
::
uno
::
Any
&
Up
,
const
css
::
uno
::
Any
&
ToRight
,
const
css
::
uno
::
Any
&
ToLeft
)
throw
(
css
::
uno
::
RuntimeException
);
...
...
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