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
29e8c9ca
Kaydet (Commit)
29e8c9ca
authored
Mar 16, 2015
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
basctl, forms, svx: cleanup for new VclPtr API.
Change-Id: I3bfd7933d2cddf707662d10e9366e0c82f33d276
üst
65741289
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
27 deletions
+26
-27
basicrenderable.cxx
basctl/source/basicide/basicrenderable.cxx
+1
-1
basicrenderable.hxx
basctl/source/basicide/basicrenderable.hxx
+1
-1
richtextcontrol.cxx
forms/source/richtext/richtextcontrol.cxx
+6
-6
fmgridif.cxx
svx/source/fmcomp/fmgridif.cxx
+18
-19
No files found.
basctl/source/basicide/basicrenderable.cxx
Dosyayı görüntüle @
29e8c9ca
...
@@ -86,7 +86,7 @@ VclPtr< Printer > Renderable::getPrinter()
...
@@ -86,7 +86,7 @@ VclPtr< Printer > Renderable::getPrinter()
if
(
aValue
>>=
xRenderDevice
)
if
(
aValue
>>=
xRenderDevice
)
{
{
VCLXDevice
*
pDevice
=
VCLXDevice
::
GetImplementation
(
xRenderDevice
);
VCLXDevice
*
pDevice
=
VCLXDevice
::
GetImplementation
(
xRenderDevice
);
VclPtr
<
OutputDevice
>
pOut
=
pDevice
?
pDevice
->
GetOutputDevice
()
:
VclPtr
<
OutputDevice
>
;
VclPtr
<
OutputDevice
>
pOut
=
pDevice
?
pDevice
->
GetOutputDevice
()
:
VclPtr
<
OutputDevice
>
()
;
pPrinter
=
dynamic_cast
<
Printer
*>
(
pOut
.
get
());
pPrinter
=
dynamic_cast
<
Printer
*>
(
pOut
.
get
());
}
}
return
pPrinter
;
return
pPrinter
;
...
...
basctl/source/basicide/basicrenderable.hxx
Dosyayı görüntüle @
29e8c9ca
...
@@ -36,7 +36,7 @@ class Renderable :
...
@@ -36,7 +36,7 @@ class Renderable :
VclPtr
<
BaseWindow
>
mpWindow
;
VclPtr
<
BaseWindow
>
mpWindow
;
osl
::
Mutex
maMutex
;
osl
::
Mutex
maMutex
;
Printer
*
getPrinter
();
VclPtr
<
Printer
>
getPrinter
();
public
:
public
:
Renderable
(
BaseWindow
*
);
Renderable
(
BaseWindow
*
);
virtual
~
Renderable
();
virtual
~
Renderable
();
...
...
forms/source/richtext/richtextcontrol.cxx
Dosyayı görüntüle @
29e8c9ca
...
@@ -314,7 +314,7 @@ namespace frm
...
@@ -314,7 +314,7 @@ namespace frm
{
{
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
VclPtr
<
RichTextControl
>
pRichTextControl
=
GetAs
<
RichTextControl
*
>
();
VclPtr
<
RichTextControl
>
pRichTextControl
=
GetAs
<
RichTextControl
>
();
if
(
pRichTextControl
)
if
(
pRichTextControl
)
{
{
...
@@ -340,7 +340,7 @@ namespace frm
...
@@ -340,7 +340,7 @@ namespace frm
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
RichTextControl
*
pControl
=
static_cast
<
RichTextControl
*
>
(
GetWindow
()
);
VclPtr
<
RichTextControl
>
pControl
=
GetAs
<
RichTextControl
>
(
);
if
(
!
pControl
)
if
(
!
pControl
)
return
;
return
;
...
@@ -375,7 +375,7 @@ namespace frm
...
@@ -375,7 +375,7 @@ namespace frm
if
(
_rPropertyName
==
PROPERTY_BACKGROUNDCOLOR
)
if
(
_rPropertyName
==
PROPERTY_BACKGROUNDCOLOR
)
{
{
RichTextControl
*
pControl
=
static_cast
<
RichTextControl
*
>
(
GetWindow
()
);
VclPtr
<
RichTextControl
>
pControl
=
GetAs
<
RichTextControl
>
(
);
if
(
!
_rValue
.
hasValue
()
)
if
(
!
_rValue
.
hasValue
()
)
{
{
pControl
->
SetBackgroundColor
(
);
pControl
->
SetBackgroundColor
(
);
...
@@ -401,7 +401,7 @@ namespace frm
...
@@ -401,7 +401,7 @@ namespace frm
}
}
else
if
(
_rPropertyName
==
PROPERTY_READONLY
)
else
if
(
_rPropertyName
==
PROPERTY_READONLY
)
{
{
RichTextControl
*
pControl
=
static_cast
<
RichTextControl
*
>
(
GetWindow
()
);
VclPtr
<
RichTextControl
>
pControl
=
GetAs
<
RichTextControl
>
(
);
bool
bReadOnly
(
pControl
->
IsReadOnly
()
);
bool
bReadOnly
(
pControl
->
IsReadOnly
()
);
OSL_VERIFY
(
_rValue
>>=
bReadOnly
);
OSL_VERIFY
(
_rValue
>>=
bReadOnly
);
pControl
->
SetReadOnly
(
bReadOnly
);
pControl
->
SetReadOnly
(
bReadOnly
);
...
@@ -417,7 +417,7 @@ namespace frm
...
@@ -417,7 +417,7 @@ namespace frm
}
}
else
if
(
_rPropertyName
==
PROPERTY_HIDEINACTIVESELECTION
)
else
if
(
_rPropertyName
==
PROPERTY_HIDEINACTIVESELECTION
)
{
{
VclPtr
<
RichTextControl
>
pRichTextControl
=
GetAs
<
RichTextControl
*
>
();
VclPtr
<
RichTextControl
>
pRichTextControl
=
GetAs
<
RichTextControl
>
();
bool
bHide
=
pRichTextControl
->
GetHideInactiveSelection
();
bool
bHide
=
pRichTextControl
->
GetHideInactiveSelection
();
OSL_VERIFY
(
_rValue
>>=
bHide
);
OSL_VERIFY
(
_rValue
>>=
bHide
);
pRichTextControl
->
SetHideInactiveSelection
(
bHide
);
pRichTextControl
->
SetHideInactiveSelection
(
bHide
);
...
@@ -469,7 +469,7 @@ namespace frm
...
@@ -469,7 +469,7 @@ namespace frm
ORichTextPeer
::
SingleAttributeDispatcher
ORichTextPeer
::
implCreateDispatcher
(
SfxSlotId
_nSlotId
,
const
::
com
::
sun
::
star
::
util
::
URL
&
_rURL
)
ORichTextPeer
::
SingleAttributeDispatcher
ORichTextPeer
::
implCreateDispatcher
(
SfxSlotId
_nSlotId
,
const
::
com
::
sun
::
star
::
util
::
URL
&
_rURL
)
{
{
VclPtr
<
RichTextControl
>
pRichTextControl
=
GetAs
<
RichTextControl
*
>
();
VclPtr
<
RichTextControl
>
pRichTextControl
=
GetAs
<
RichTextControl
>
();
OSL_PRECOND
(
pRichTextControl
,
"ORichTextPeer::implCreateDispatcher: invalid window!"
);
OSL_PRECOND
(
pRichTextControl
,
"ORichTextPeer::implCreateDispatcher: invalid window!"
);
if
(
!
pRichTextControl
)
if
(
!
pRichTextControl
)
return
SingleAttributeDispatcher
(
NULL
);
return
SingleAttributeDispatcher
(
NULL
);
...
...
svx/source/fmcomp/fmgridif.cxx
Dosyayı görüntüle @
29e8c9ca
...
@@ -1398,7 +1398,7 @@ void FmXGridPeer::propertyChange(const PropertyChangeEvent& evt) throw( RuntimeE
...
@@ -1398,7 +1398,7 @@ void FmXGridPeer::propertyChange(const PropertyChangeEvent& evt) throw( RuntimeE
// this should not be (deadlock) critical, as by definition, every component should release
// this should not be (deadlock) critical, as by definition, every component should release
// any own mutexes before notifying
// any own mutexes before notifying
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
if
(
!
pGrid
)
if
(
!
pGrid
)
return
;
return
;
...
@@ -1518,7 +1518,7 @@ void FmXGridPeer::removeUpdateListener(const Reference< XUpdateListener >& l) th
...
@@ -1518,7 +1518,7 @@ void FmXGridPeer::removeUpdateListener(const Reference< XUpdateListener >& l) th
sal_Bool
FmXGridPeer
::
commit
()
throw
(
RuntimeException
,
std
::
exception
)
sal_Bool
FmXGridPeer
::
commit
()
throw
(
RuntimeException
,
std
::
exception
)
{
{
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
if
(
!
m_xCursor
.
is
()
||
!
pGrid
)
if
(
!
m_xCursor
.
is
()
||
!
pGrid
)
return
sal_True
;
return
sal_True
;
...
@@ -1541,7 +1541,7 @@ sal_Bool FmXGridPeer::commit() throw( RuntimeException, std::exception )
...
@@ -1541,7 +1541,7 @@ sal_Bool FmXGridPeer::commit() throw( RuntimeException, std::exception )
void
FmXGridPeer
::
cursorMoved
(
const
EventObject
&
_rEvent
)
throw
(
RuntimeException
,
std
::
exception
)
void
FmXGridPeer
::
cursorMoved
(
const
EventObject
&
_rEvent
)
throw
(
RuntimeException
,
std
::
exception
)
{
{
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
// we are not interested in move to insert row only in the resetted event
// we are not interested in move to insert row only in the resetted event
// which is fired after positioning an the insert row
// which is fired after positioning an the insert row
if
(
pGrid
&&
pGrid
->
IsOpen
()
&&
!::
comphelper
::
getBOOL
(
Reference
<
XPropertySet
>
(
_rEvent
.
Source
,
UNO_QUERY
)
->
getPropertyValue
(
FM_PROP_ISNEW
)))
if
(
pGrid
&&
pGrid
->
IsOpen
()
&&
!::
comphelper
::
getBOOL
(
Reference
<
XPropertySet
>
(
_rEvent
.
Source
,
UNO_QUERY
)
->
getPropertyValue
(
FM_PROP_ISNEW
)))
...
@@ -1551,7 +1551,7 @@ void FmXGridPeer::cursorMoved(const EventObject& _rEvent) throw( RuntimeExceptio
...
@@ -1551,7 +1551,7 @@ void FmXGridPeer::cursorMoved(const EventObject& _rEvent) throw( RuntimeExceptio
void
FmXGridPeer
::
rowChanged
(
const
EventObject
&
_rEvent
)
throw
(
RuntimeException
,
std
::
exception
)
void
FmXGridPeer
::
rowChanged
(
const
EventObject
&
_rEvent
)
throw
(
RuntimeException
,
std
::
exception
)
{
{
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
if
(
pGrid
&&
pGrid
->
IsOpen
())
if
(
pGrid
&&
pGrid
->
IsOpen
())
{
{
if
(
m_xCursor
->
rowUpdated
()
&&
!
pGrid
->
IsCurrentAppending
())
if
(
m_xCursor
->
rowUpdated
()
&&
!
pGrid
->
IsCurrentAppending
())
...
@@ -1654,7 +1654,7 @@ void FmXGridPeer::setColumns(const Reference< XIndexContainer >& Columns) throw(
...
@@ -1654,7 +1654,7 @@ void FmXGridPeer::setColumns(const Reference< XIndexContainer >& Columns) throw(
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*
>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
if
(
m_xColumns
.
is
())
if
(
m_xColumns
.
is
())
{
{
...
@@ -1770,7 +1770,7 @@ void FmXGridPeer::elementReplaced(const ContainerEvent& evt) throw( RuntimeExcep
...
@@ -1770,7 +1770,7 @@ void FmXGridPeer::elementReplaced(const ContainerEvent& evt) throw( RuntimeExcep
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
// Handle Column beruecksichtigen
// Handle Column beruecksichtigen
if
(
!
pGrid
||
!
m_xColumns
.
is
()
||
pGrid
->
IsInColumnMove
())
if
(
!
pGrid
||
!
m_xColumns
.
is
()
||
pGrid
->
IsInColumnMove
())
...
@@ -1825,7 +1825,7 @@ void FmXGridPeer::elementRemoved(const ContainerEvent& evt) throw( RuntimeExcept
...
@@ -1825,7 +1825,7 @@ void FmXGridPeer::elementRemoved(const ContainerEvent& evt) throw( RuntimeExcept
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
// Handle Column beruecksichtigen
// Handle Column beruecksichtigen
if
(
!
pGrid
||
!
m_xColumns
.
is
()
||
pGrid
->
IsInColumnMove
()
||
m_xColumns
->
getCount
()
==
((
sal_Int32
)
pGrid
->
GetModelColCount
()))
if
(
!
pGrid
||
!
m_xColumns
.
is
()
||
pGrid
->
IsInColumnMove
()
||
m_xColumns
->
getCount
()
==
((
sal_Int32
)
pGrid
->
GetModelColCount
()))
...
@@ -1842,7 +1842,7 @@ void FmXGridPeer::setProperty( const OUString& PropertyName, const Any& Value) t
...
@@ -1842,7 +1842,7 @@ void FmXGridPeer::setProperty( const OUString& PropertyName, const Any& Value) t
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
bool
bVoid
=
!
Value
.
hasValue
();
bool
bVoid
=
!
Value
.
hasValue
();
...
@@ -2255,14 +2255,14 @@ void SAL_CALL FmXGridPeer::removeGridControlListener( const Reference< XGridCont
...
@@ -2255,14 +2255,14 @@ void SAL_CALL FmXGridPeer::removeGridControlListener( const Reference< XGridCont
sal_Int16
FmXGridPeer
::
getCurrentColumnPosition
()
throw
(
RuntimeException
,
std
::
exception
)
sal_Int16
FmXGridPeer
::
getCurrentColumnPosition
()
throw
(
RuntimeException
,
std
::
exception
)
{
{
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
return
pGrid
?
pGrid
->
GetViewColumnPos
(
pGrid
->
GetCurColumnId
())
:
-
1
;
return
pGrid
?
pGrid
->
GetViewColumnPos
(
pGrid
->
GetCurColumnId
())
:
-
1
;
}
}
void
FmXGridPeer
::
setCurrentColumnPosition
(
sal_Int16
nPos
)
throw
(
RuntimeException
,
std
::
exception
)
void
FmXGridPeer
::
setCurrentColumnPosition
(
sal_Int16
nPos
)
throw
(
RuntimeException
,
std
::
exception
)
{
{
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
if
(
pGrid
)
if
(
pGrid
)
pGrid
->
GoToColumnId
(
pGrid
->
GetColumnIdFromViewPos
(
nPos
));
pGrid
->
GoToColumnId
(
pGrid
->
GetColumnIdFromViewPos
(
nPos
));
}
}
...
@@ -2272,7 +2272,7 @@ void FmXGridPeer::selectionChanged(const EventObject& evt) throw( RuntimeExcepti
...
@@ -2272,7 +2272,7 @@ void FmXGridPeer::selectionChanged(const EventObject& evt) throw( RuntimeExcepti
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
if
(
pGrid
)
if
(
pGrid
)
{
{
Reference
<
::
com
::
sun
::
star
::
view
::
XSelectionSupplier
>
xSelSupplier
(
evt
.
Source
,
UNO_QUERY
);
Reference
<
::
com
::
sun
::
star
::
view
::
XSelectionSupplier
>
xSelSupplier
(
evt
.
Source
,
UNO_QUERY
);
...
@@ -2340,7 +2340,7 @@ Reference< XEnumeration > FmXGridPeer::createEnumeration() throw( RuntimeExcept
...
@@ -2340,7 +2340,7 @@ Reference< XEnumeration > FmXGridPeer::createEnumeration() throw( RuntimeExcept
sal_Int32
FmXGridPeer
::
getCount
()
throw
(
RuntimeException
,
std
::
exception
)
sal_Int32
FmXGridPeer
::
getCount
()
throw
(
RuntimeException
,
std
::
exception
)
{
{
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
if
(
pGrid
)
if
(
pGrid
)
return
pGrid
->
GetViewColCount
();
return
pGrid
->
GetViewColCount
();
else
else
...
@@ -2350,7 +2350,7 @@ sal_Int32 FmXGridPeer::getCount() throw( RuntimeException, std::exception )
...
@@ -2350,7 +2350,7 @@ sal_Int32 FmXGridPeer::getCount() throw( RuntimeException, std::exception )
Any
FmXGridPeer
::
getByIndex
(
sal_Int32
_nIndex
)
throw
(
IndexOutOfBoundsException
,
WrappedTargetException
,
RuntimeException
,
std
::
exception
)
Any
FmXGridPeer
::
getByIndex
(
sal_Int32
_nIndex
)
throw
(
IndexOutOfBoundsException
,
WrappedTargetException
,
RuntimeException
,
std
::
exception
)
{
{
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
if
(
_nIndex
<
0
||
if
(
_nIndex
<
0
||
_nIndex
>=
getCount
()
||
!
pGrid
)
_nIndex
>=
getCount
()
||
!
pGrid
)
throw
IndexOutOfBoundsException
();
throw
IndexOutOfBoundsException
();
...
@@ -2429,7 +2429,7 @@ sal_Bool FmXGridPeer::supportsMode(const OUString& Mode) throw( RuntimeException
...
@@ -2429,7 +2429,7 @@ sal_Bool FmXGridPeer::supportsMode(const OUString& Mode) throw( RuntimeException
void
FmXGridPeer
::
columnVisible
(
DbGridColumn
*
pColumn
)
void
FmXGridPeer
::
columnVisible
(
DbGridColumn
*
pColumn
)
{
{
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
sal_Int32
_nIndex
=
pGrid
->
GetModelColumnPos
(
pColumn
->
GetId
());
sal_Int32
_nIndex
=
pGrid
->
GetModelColumnPos
(
pColumn
->
GetId
());
Reference
<
::
com
::
sun
::
star
::
awt
::
XControl
>
xControl
(
pColumn
->
GetCell
());
Reference
<
::
com
::
sun
::
star
::
awt
::
XControl
>
xControl
(
pColumn
->
GetCell
());
...
@@ -2444,7 +2444,7 @@ void FmXGridPeer::columnVisible(DbGridColumn* pColumn)
...
@@ -2444,7 +2444,7 @@ void FmXGridPeer::columnVisible(DbGridColumn* pColumn)
void
FmXGridPeer
::
columnHidden
(
DbGridColumn
*
pColumn
)
void
FmXGridPeer
::
columnHidden
(
DbGridColumn
*
pColumn
)
{
{
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
sal_Int32
_nIndex
=
pGrid
->
GetModelColumnPos
(
pColumn
->
GetId
());
sal_Int32
_nIndex
=
pGrid
->
GetModelColumnPos
(
pColumn
->
GetId
());
Reference
<
::
com
::
sun
::
star
::
awt
::
XControl
>
xControl
(
pColumn
->
GetCell
());
Reference
<
::
com
::
sun
::
star
::
awt
::
XControl
>
xControl
(
pColumn
->
GetCell
());
...
@@ -2599,7 +2599,7 @@ void FmXGridPeer::statusChanged(const ::com::sun::star::frame::FeatureStateEvent
...
@@ -2599,7 +2599,7 @@ void FmXGridPeer::statusChanged(const ::com::sun::star::frame::FeatureStateEvent
{
{
DBG_ASSERT
(
m_pDispatchers
[
i
]
==
Event
.
Source
,
"FmXGridPeer::statusChanged : the event source is a little bit suspect !"
);
DBG_ASSERT
(
m_pDispatchers
[
i
]
==
Event
.
Source
,
"FmXGridPeer::statusChanged : the event source is a little bit suspect !"
);
m_pStateCache
[
i
]
=
Event
.
IsEnabled
;
m_pStateCache
[
i
]
=
Event
.
IsEnabled
;
FmGridControl
*
pGrid
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pGrid
=
GetAs
<
FmGridControl
>
(
);
if
(
*
pSlots
!=
SID_FM_RECORD_UNDO
)
if
(
*
pSlots
!=
SID_FM_RECORD_UNDO
)
pGrid
->
GetNavigationBar
().
InvalidateState
(
*
pSlots
);
pGrid
->
GetNavigationBar
().
InvalidateState
(
*
pSlots
);
break
;
break
;
...
@@ -2621,8 +2621,7 @@ sal_Bool SAL_CALL FmXGridPeer::select( const Any& _rSelection ) throw (IllegalAr
...
@@ -2621,8 +2621,7 @@ sal_Bool SAL_CALL FmXGridPeer::select( const Any& _rSelection ) throw (IllegalAr
if
(
!
(
_rSelection
>>=
aBookmarks
)
)
if
(
!
(
_rSelection
>>=
aBookmarks
)
)
throw
IllegalArgumentException
();
throw
IllegalArgumentException
();
FmGridControl
*
pVclControl
=
static_cast
<
FmGridControl
*>
(
GetWindow
());
return
GetAs
<
FmGridControl
>
()
->
selectBookmarks
(
aBookmarks
);
return
pVclControl
->
selectBookmarks
(
aBookmarks
);
// TODO:
// TODO:
// speaking strictly, we would have to adjust our model, as our ColumnSelection may have changed.
// speaking strictly, we would have to adjust our model, as our ColumnSelection may have changed.
...
@@ -2635,7 +2634,7 @@ sal_Bool SAL_CALL FmXGridPeer::select( const Any& _rSelection ) throw (IllegalAr
...
@@ -2635,7 +2634,7 @@ sal_Bool SAL_CALL FmXGridPeer::select( const Any& _rSelection ) throw (IllegalAr
Any
SAL_CALL
FmXGridPeer
::
getSelection
(
)
throw
(
RuntimeException
,
std
::
exception
)
Any
SAL_CALL
FmXGridPeer
::
getSelection
(
)
throw
(
RuntimeException
,
std
::
exception
)
{
{
FmGridControl
*
pVclControl
=
static_cast
<
FmGridControl
*>
(
GetWindow
()
);
VclPtr
<
FmGridControl
>
pVclControl
=
GetAs
<
FmGridControl
>
(
);
Sequence
<
Any
>
aSelectionBookmarks
=
pVclControl
->
getSelectionBookmarks
();
Sequence
<
Any
>
aSelectionBookmarks
=
pVclControl
->
getSelectionBookmarks
();
return
makeAny
(
aSelectionBookmarks
);
return
makeAny
(
aSelectionBookmarks
);
}
}
...
...
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