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
11f63d1a
Kaydet (Commit)
11f63d1a
authored
Ock 23, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tk: Constructor feature for UnoTree(Control|Model).
Change-Id: I83a9e621199b15672cd680e847d78dfb11437885
üst
2bc11eb5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
95 deletions
+87
-95
treecontrol.cxx
toolkit/source/controls/tree/treecontrol.cxx
+82
-17
treecontrol.hxx
toolkit/source/controls/tree/treecontrol.hxx
+1
-72
registerservices.cxx
toolkit/source/helper/registerservices.cxx
+0
-4
tk.component
toolkit/util/tk.component
+4
-2
No files found.
toolkit/source/controls/tree/treecontrol.cxx
Dosyayı görüntüle @
11f63d1a
...
@@ -20,17 +20,16 @@
...
@@ -20,17 +20,16 @@
#include <treecontrol.hxx>
#include <treecontrol.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/awt/tree/XTreeControl.hpp>
#include <com/sun/star/view/SelectionType.hpp>
#include <com/sun/star/awt/tree/XTreeDataModel.hpp>
#include <com/sun/star/awt/tree/XTreeDataModel.hpp>
#include <com/sun/star/view/SelectionType.hpp>
#include <toolkit/helper/unopropertyarrayhelper.hxx>
#include <toolkit/helper/unopropertyarrayhelper.hxx>
#include <toolkit/helper/property.hxx>
#include <toolkit/helper/property.hxx>
#include <com/sun/star/awt/XVclWindowPeer.hpp>
#include <comphelper/processfactory.hxx>
#include <osl/diagnose.h>
#include <osl/diagnose.h>
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
awt
;
using
namespace
::
com
::
sun
::
star
::
awt
::
tree
;
using
namespace
::
com
::
sun
::
star
::
awt
::
tree
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
::
com
::
sun
::
star
::
beans
;
using
namespace
::
com
::
sun
::
star
::
beans
;
...
@@ -124,10 +123,70 @@ Reference< XPropertySetInfo > UnoTreeModel::getPropertySetInfo( ) throw(Runtime
...
@@ -124,10 +123,70 @@ Reference< XPropertySetInfo > UnoTreeModel::getPropertySetInfo( ) throw(Runtime
return
xInfo
;
return
xInfo
;
}
}
}
namespace
{
typedef
::
cppu
::
ImplInheritanceHelper1
<
UnoControlBase
,
css
::
awt
::
tree
::
XTreeControl
>
UnoTreeControl_Base
;
class
UnoTreeControl
:
public
UnoTreeControl_Base
{
public
:
UnoTreeControl
();
OUString
GetComponentServiceName
();
// css::lang::XComponent
void
SAL_CALL
dispose
(
)
throw
(
css
::
uno
::
RuntimeException
);
// css::awt::XControl
void
SAL_CALL
createPeer
(
const
css
::
uno
::
Reference
<
css
::
awt
::
XToolkit
>&
Toolkit
,
const
css
::
uno
::
Reference
<
css
::
awt
::
XWindowPeer
>&
Parent
)
throw
(
css
::
uno
::
RuntimeException
);
// css::view::XSelectionSupplier
virtual
::
sal_Bool
SAL_CALL
select
(
const
css
::
uno
::
Any
&
xSelection
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Any
SAL_CALL
getSelection
(
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
addSelectionChangeListener
(
const
css
::
uno
::
Reference
<
css
::
view
::
XSelectionChangeListener
>&
xListener
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
removeSelectionChangeListener
(
const
css
::
uno
::
Reference
<
css
::
view
::
XSelectionChangeListener
>&
xListener
)
throw
(
css
::
uno
::
RuntimeException
);
// css::view::XMultiSelectionSupplier
virtual
::
sal_Bool
SAL_CALL
addSelection
(
const
css
::
uno
::
Any
&
Selection
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
removeSelection
(
const
css
::
uno
::
Any
&
Selection
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
clearSelection
(
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
::
sal_Int32
SAL_CALL
getSelectionCount
(
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Reference
<
css
::
container
::
XEnumeration
>
SAL_CALL
createSelectionEnumeration
(
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Reference
<
css
::
container
::
XEnumeration
>
SAL_CALL
createReverseSelectionEnumeration
(
)
throw
(
css
::
uno
::
RuntimeException
);
// css::awt::XTreeControl
virtual
OUString
SAL_CALL
getDefaultExpandedGraphicURL
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setDefaultExpandedGraphicURL
(
const
OUString
&
_defaultexpandedgraphicurl
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
OUString
SAL_CALL
getDefaultCollapsedGraphicURL
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setDefaultCollapsedGraphicURL
(
const
OUString
&
_defaultcollapsedgraphicurl
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
::
sal_Bool
SAL_CALL
isNodeExpanded
(
const
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
uno
::
RuntimeException
);
virtual
::
sal_Bool
SAL_CALL
isNodeCollapsed
(
const
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
makeNodeVisible
(
const
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
awt
::
tree
::
ExpandVetoException
,
css
::
uno
::
RuntimeException
);
virtual
::
sal_Bool
SAL_CALL
isNodeVisible
(
const
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
expandNode
(
const
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
awt
::
tree
::
ExpandVetoException
,
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
collapseNode
(
const
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
awt
::
tree
::
ExpandVetoException
,
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
addTreeExpansionListener
(
const
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeExpansionListener
>&
Listener
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
removeTreeExpansionListener
(
const
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeExpansionListener
>&
Listener
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeNode
>
SAL_CALL
getNodeForLocation
(
::
sal_Int32
x
,
::
sal_Int32
y
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeNode
>
SAL_CALL
getClosestNodeForLocation
(
::
sal_Int32
x
,
::
sal_Int32
y
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
awt
::
Rectangle
SAL_CALL
getNodeRect
(
const
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
uno
::
RuntimeException
);
virtual
::
sal_Bool
SAL_CALL
isEditing
(
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
::
sal_Bool
SAL_CALL
stopEditing
(
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
cancelEditing
(
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
startEditingAtNode
(
const
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
addTreeEditListener
(
const
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeEditListener
>&
Listener
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
removeTreeEditListener
(
const
css
::
uno
::
Reference
<
css
::
awt
::
tree
::
XTreeEditListener
>&
Listener
)
throw
(
css
::
uno
::
RuntimeException
);
// css::lang::XServiceInfo
DECLIMPL_SERVICEINFO_DERIVED
(
UnoTreeControl
,
UnoControlBase
,
szServiceName_TreeControl
)
using
UnoControl
::
getPeer
;
private
:
TreeSelectionListenerMultiplexer
maSelectionListeners
;
TreeExpansionListenerMultiplexer
maTreeExpansionListeners
;
TreeEditListenerMultiplexer
maTreeEditListeners
;
};
// ----------------------------------------------------
// class UnoTreeControl
// ----------------------------------------------------
UnoTreeControl
::
UnoTreeControl
()
UnoTreeControl
::
UnoTreeControl
()
:
UnoTreeControl_Base
()
:
UnoTreeControl_Base
()
,
maSelectionListeners
(
*
this
)
,
maSelectionListeners
(
*
this
)
...
@@ -441,16 +500,6 @@ void UnoTreeControl::createPeer( const uno::Reference< awt::XToolkit > & rxToolk
...
@@ -441,16 +500,6 @@ void UnoTreeControl::createPeer( const uno::Reference< awt::XToolkit > & rxToolk
}
}
Reference
<
XInterface
>
SAL_CALL
TreeControl_CreateInstance
(
const
Reference
<
XMultiServiceFactory
>&
)
{
return
Reference
<
XInterface
>
(
(
::
cppu
::
OWeakObject
*
)
new
::
toolkit
::
UnoTreeControl
()
);
}
Reference
<
XInterface
>
SAL_CALL
TreeControlModel_CreateInstance
(
const
Reference
<
XMultiServiceFactory
>&
i_factory
)
{
return
Reference
<
XInterface
>
(
(
::
cppu
::
OWeakObject
*
)
new
::
toolkit
::
UnoTreeModel
(
comphelper
::
getComponentContext
(
i_factory
)
)
);
}
void
SAL_CALL
TreeEditListenerMultiplexer
::
nodeEditing
(
const
Reference
<
XTreeNode
>&
Node
)
throw
(
RuntimeException
,
::
com
::
sun
::
star
::
util
::
VetoException
)
void
SAL_CALL
TreeEditListenerMultiplexer
::
nodeEditing
(
const
Reference
<
XTreeNode
>&
Node
)
throw
(
RuntimeException
,
::
com
::
sun
::
star
::
util
::
VetoException
)
{
{
::
cppu
::
OInterfaceIteratorHelper
aIt
(
*
this
);
::
cppu
::
OInterfaceIteratorHelper
aIt
(
*
this
);
...
@@ -499,4 +548,20 @@ void SAL_CALL TreeEditListenerMultiplexer::nodeEdited( const Reference< XTreeNod
...
@@ -499,4 +548,20 @@ void SAL_CALL TreeEditListenerMultiplexer::nodeEdited( const Reference< XTreeNod
}
}
}
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
stardiv_Toolkit_TreeControlModel_get_implementation
(
css
::
uno
::
XComponentContext
*
context
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
)
{
return
cppu
::
acquire
(
new
toolkit
::
UnoTreeModel
(
context
));
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
stardiv_Toolkit_TreeControl_get_implementation
(
css
::
uno
::
XComponentContext
*
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
)
{
return
cppu
::
acquire
(
new
UnoTreeControl
());
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
toolkit/source/controls/tree/treecontrol.hxx
Dosyayı görüntüle @
11f63d1a
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#ifndef TOOLKIT_TREE_CONTROL_HXX
#ifndef TOOLKIT_TREE_CONTROL_HXX
#define TOOLKIT_TREE_CONTROL_HXX
#define TOOLKIT_TREE_CONTROL_HXX
#include <com/sun/star/awt/tree/XTreeControl.hpp>
#include <toolkit/controls/unocontrols.hxx>
#include <toolkit/controls/unocontrols.hxx>
#include <toolkit/controls/unocontrolmodel.hxx>
#include <toolkit/controls/unocontrolmodel.hxx>
#include <toolkit/helper/servicenames.hxx>
#include <toolkit/helper/servicenames.hxx>
...
@@ -30,19 +29,13 @@
...
@@ -30,19 +29,13 @@
namespace
toolkit
{
namespace
toolkit
{
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
awt
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
::
com
::
sun
::
star
::
beans
;
using
namespace
::
com
::
sun
::
star
::
container
;
// ===================================================================
// ===================================================================
// = UnoTreeModel
// = UnoTreeModel
// ===================================================================
// ===================================================================
class
UnoTreeModel
:
public
UnoControlModel
class
UnoTreeModel
:
public
UnoControlModel
{
{
protected
:
protected
:
Any
ImplGetDefaultValue
(
sal_uInt16
nPropId
)
const
;
css
::
uno
::
Any
ImplGetDefaultValue
(
sal_uInt16
nPropId
)
const
;
::
cppu
::
IPropertyArrayHelper
&
SAL_CALL
getInfoHelper
();
::
cppu
::
IPropertyArrayHelper
&
SAL_CALL
getInfoHelper
();
public
:
public
:
...
@@ -61,70 +54,6 @@ public:
...
@@ -61,70 +54,6 @@ public:
DECLIMPL_SERVICEINFO_DERIVED
(
UnoTreeModel
,
UnoControlModel
,
szServiceName_TreeControlModel
)
DECLIMPL_SERVICEINFO_DERIVED
(
UnoTreeModel
,
UnoControlModel
,
szServiceName_TreeControlModel
)
};
};
// ===================================================================
// = UnoTreeControl
// ===================================================================
typedef
::
cppu
::
ImplInheritanceHelper1
<
UnoControlBase
,
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeControl
>
UnoTreeControl_Base
;
class
UnoTreeControl
:
public
UnoTreeControl_Base
{
public
:
UnoTreeControl
();
OUString
GetComponentServiceName
();
// ::com::sun::star::lang::XComponent
void
SAL_CALL
dispose
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// ::com::sun::star::awt::XControl
void
SAL_CALL
createPeer
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
XToolkit
>&
Toolkit
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
XWindowPeer
>&
Parent
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// ::com::sun::star::view::XSelectionSupplier
virtual
::
sal_Bool
SAL_CALL
select
(
const
::
com
::
sun
::
star
::
uno
::
Any
&
xSelection
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
com
::
sun
::
star
::
uno
::
Any
SAL_CALL
getSelection
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
addSelectionChangeListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
view
::
XSelectionChangeListener
>&
xListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
removeSelectionChangeListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
view
::
XSelectionChangeListener
>&
xListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// ::com::sun::star::view::XMultiSelectionSupplier
virtual
::
sal_Bool
SAL_CALL
addSelection
(
const
::
com
::
sun
::
star
::
uno
::
Any
&
Selection
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
removeSelection
(
const
::
com
::
sun
::
star
::
uno
::
Any
&
Selection
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
clearSelection
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
sal_Int32
SAL_CALL
getSelectionCount
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XEnumeration
>
SAL_CALL
createSelectionEnumeration
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XEnumeration
>
SAL_CALL
createReverseSelectionEnumeration
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// ::com::sun::star::awt::XTreeControl
virtual
OUString
SAL_CALL
getDefaultExpandedGraphicURL
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setDefaultExpandedGraphicURL
(
const
OUString
&
_defaultexpandedgraphicurl
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
OUString
SAL_CALL
getDefaultCollapsedGraphicURL
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setDefaultCollapsedGraphicURL
(
const
OUString
&
_defaultcollapsedgraphicurl
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
sal_Bool
SAL_CALL
isNodeExpanded
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
sal_Bool
SAL_CALL
isNodeCollapsed
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
makeNodeVisible
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
awt
::
tree
::
ExpandVetoException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
sal_Bool
SAL_CALL
isNodeVisible
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
expandNode
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
awt
::
tree
::
ExpandVetoException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
collapseNode
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
awt
::
tree
::
ExpandVetoException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
addTreeExpansionListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeExpansionListener
>&
Listener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
removeTreeExpansionListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeExpansionListener
>&
Listener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeNode
>
SAL_CALL
getNodeForLocation
(
::
sal_Int32
x
,
::
sal_Int32
y
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeNode
>
SAL_CALL
getClosestNodeForLocation
(
::
sal_Int32
x
,
::
sal_Int32
y
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
com
::
sun
::
star
::
awt
::
Rectangle
SAL_CALL
getNodeRect
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
sal_Bool
SAL_CALL
isEditing
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
sal_Bool
SAL_CALL
stopEditing
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
cancelEditing
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
startEditingAtNode
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeNode
>&
Node
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
addTreeEditListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeEditListener
>&
Listener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
removeTreeEditListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tree
::
XTreeEditListener
>&
Listener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// ::com::sun::star::lang::XServiceInfo
DECLIMPL_SERVICEINFO_DERIVED
(
UnoTreeControl
,
UnoControlBase
,
szServiceName_TreeControl
)
using
UnoControl
::
getPeer
;
private
:
TreeSelectionListenerMultiplexer
maSelectionListeners
;
TreeExpansionListenerMultiplexer
maTreeExpansionListeners
;
TreeEditListenerMultiplexer
maTreeEditListeners
;
};
}
// toolkit
}
// toolkit
#endif // _TOOLKIT_TREE_CONTROL_HXX
#endif // _TOOLKIT_TREE_CONTROL_HXX
...
...
toolkit/source/helper/registerservices.cxx
Dosyayı görüntüle @
11f63d1a
...
@@ -171,8 +171,6 @@ IMPL_CREATEINSTANCE_CTX( UnoControlRoadmapModel )
...
@@ -171,8 +171,6 @@ IMPL_CREATEINSTANCE_CTX( UnoControlRoadmapModel )
IMPL_CREATE_INSTANCE_WITH_GEOMETRY
(
UnoControlDialogModel
)
IMPL_CREATE_INSTANCE_WITH_GEOMETRY
(
UnoControlDialogModel
)
extern
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
SAL_CALL
TreeControl_CreateInstance
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
);
extern
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
SAL_CALL
TreeControlModel_CreateInstance
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
);
extern
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
SAL_CALL
MutableTreeDataModel_CreateInstance
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
);
extern
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
SAL_CALL
MutableTreeDataModel_CreateInstance
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
);
extern
"C"
extern
"C"
...
@@ -248,8 +246,6 @@ TOOLKIT_DLLPUBLIC void* SAL_CALL tk_component_getFactory( const sal_Char* sImple
...
@@ -248,8 +246,6 @@ TOOLKIT_DLLPUBLIC void* SAL_CALL tk_component_getFactory( const sal_Char* sImple
GET_FACTORY
(
UnoFrameControl
,
szServiceName_UnoFrameControl
,
NULL
)
GET_FACTORY
(
UnoFrameControl
,
szServiceName_UnoFrameControl
,
NULL
)
GET_FACTORY
(
UnoSpinButtonModel
,
szServiceName_UnoSpinButtonModel
,
NULL
)
GET_FACTORY
(
UnoSpinButtonModel
,
szServiceName_UnoSpinButtonModel
,
NULL
)
GET_FACTORY
(
UnoSpinButtonControl
,
szServiceName_UnoSpinButtonControl
,
NULL
)
GET_FACTORY
(
UnoSpinButtonControl
,
szServiceName_UnoSpinButtonControl
,
NULL
)
GET_FACTORY
(
TreeControl
,
szServiceName_TreeControl
,
NULL
)
GET_FACTORY
(
TreeControlModel
,
szServiceName_TreeControlModel
,
NULL
)
GET_FACTORY
(
MutableTreeDataModel
,
szServiceName_MutableTreeDataModel
,
NULL
)
GET_FACTORY
(
MutableTreeDataModel
,
szServiceName_MutableTreeDataModel
,
NULL
)
GET_FACTORY
(
UnoFixedHyperlinkControl
,
szServiceName_UnoControlFixedHyperlink
,
NULL
)
GET_FACTORY
(
UnoFixedHyperlinkControl
,
szServiceName_UnoControlFixedHyperlink
,
NULL
)
GET_FACTORY
(
UnoControlFixedHyperlinkModel
,
szServiceName_UnoControlFixedHyperlinkModel
,
NULL
)
GET_FACTORY
(
UnoControlFixedHyperlinkModel
,
szServiceName_UnoControlFixedHyperlinkModel
,
NULL
)
...
...
toolkit/util/tk.component
Dosyayı görüntüle @
11f63d1a
...
@@ -78,10 +78,12 @@
...
@@ -78,10 +78,12 @@
<service
name=
"com.sun.star.awt.TabControllerModel"
/>
<service
name=
"com.sun.star.awt.TabControllerModel"
/>
<service
name=
"stardiv.vcl.controlmodel.TabController"
/>
<service
name=
"stardiv.vcl.controlmodel.TabController"
/>
</implementation>
</implementation>
<implementation
name=
"stardiv.Toolkit.TreeControl"
>
<implementation
name=
"stardiv.Toolkit.TreeControl"
constructor=
"stardiv_Toolkit_TreeControl_get_implementation"
>
<service
name=
"com.sun.star.awt.tree.TreeControl"
/>
<service
name=
"com.sun.star.awt.tree.TreeControl"
/>
</implementation>
</implementation>
<implementation
name=
"stardiv.Toolkit.TreeControlModel"
>
<implementation
name=
"stardiv.Toolkit.TreeControlModel"
constructor=
"stardiv_Toolkit_TreeControlModel_get_implementation"
>
<service
name=
"com.sun.star.awt.tree.TreeControlModel"
/>
<service
name=
"com.sun.star.awt.tree.TreeControlModel"
/>
</implementation>
</implementation>
<implementation
name=
"stardiv.Toolkit.UnoButtonControl"
>
<implementation
name=
"stardiv.Toolkit.UnoButtonControl"
>
...
...
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