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
08d10512
Kaydet (Commit)
08d10512
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 UnoControlTabPageContainer(Model).
Change-Id: I0e32eb49235a1769f8dacc1af95ee863ee514621
üst
badc48eb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
16 deletions
+26
-16
tabpagecontainer.hxx
include/toolkit/controls/tabpagecontainer.hxx
+2
-2
controlmodelcontainerbase.cxx
toolkit/source/controls/controlmodelcontainerbase.cxx
+2
-2
tabpagecontainer.cxx
toolkit/source/controls/tabpagecontainer.cxx
+18
-3
registerservices.cxx
toolkit/source/helper/registerservices.cxx
+0
-5
servicenames.cxx
toolkit/source/helper/servicenames.cxx
+0
-2
tk.component
toolkit/util/tk.component
+4
-2
No files found.
include/toolkit/controls/tabpagecontainer.hxx
Dosyayı görüntüle @
08d10512
...
@@ -60,7 +60,7 @@ public:
...
@@ -60,7 +60,7 @@ public:
OUString
SAL_CALL
getServiceName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
OUString
SAL_CALL
getServiceName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// ::com::sun::star::lang::XServiceInfo
// ::com::sun::star::lang::XServiceInfo
DECLIMPL_SERVICEINFO_DERIVED
(
UnoControlTabPageContainerModel
,
UnoControlModel
,
szServiceName_UnoControlTabPageContainerModel
)
DECLIMPL_SERVICEINFO_DERIVED
(
UnoControlTabPageContainerModel
,
UnoControlModel
,
"com.sun.star.awt.tab.UnoControlTabPageContainerModel"
)
// XTabPageContainerModel
// XTabPageContainerModel
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tab
::
XTabPageModel
>
SAL_CALL
createTabPage
(
::
sal_Int16
TabPageID
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
tab
::
XTabPageModel
>
SAL_CALL
createTabPage
(
::
sal_Int16
TabPageID
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
...
@@ -120,7 +120,7 @@ public:
...
@@ -120,7 +120,7 @@ public:
virtual
void
SAL_CALL
addControl
(
const
OUString
&
Name
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
XControl
>&
Control
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
addControl
(
const
OUString
&
Name
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
XControl
>&
Control
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// ::com::sun::star::lang::XServiceInfo
// ::com::sun::star::lang::XServiceInfo
DECLIMPL_SERVICEINFO_DERIVED
(
UnoControlTabPageContainer
,
UnoControlBase
,
szServiceName_UnoControlTabPageContainer
)
DECLIMPL_SERVICEINFO_DERIVED
(
UnoControlTabPageContainer
,
UnoControlBase
,
"com.sun.star.awt.tab.UnoControlTabPageContainer"
)
// using UnoControl::getPeer;
// using UnoControl::getPeer;
protected
:
protected
:
...
...
toolkit/source/controls/controlmodelcontainerbase.cxx
Dosyayı görüntüle @
08d10512
...
@@ -377,7 +377,7 @@ Reference< XInterface > ControlModelContainerBase::createInstance( const OUStrin
...
@@ -377,7 +377,7 @@ Reference< XInterface > ControlModelContainerBase::createInstance( const OUStrin
pNewModel
=
new
OGeometryControlModel
<
UnoTreeModel
>
(
m_xContext
);
pNewModel
=
new
OGeometryControlModel
<
UnoTreeModel
>
(
m_xContext
);
else
if
(
aServiceSpecifier
.
equalsAscii
(
szServiceName_GridControlModel
)
)
else
if
(
aServiceSpecifier
.
equalsAscii
(
szServiceName_GridControlModel
)
)
pNewModel
=
new
OGeometryControlModel
<
UnoGridModel
>
(
m_xContext
);
pNewModel
=
new
OGeometryControlModel
<
UnoGridModel
>
(
m_xContext
);
else
if
(
aServiceSpecifier
.
equalsAscii
(
szServiceName_UnoControlTabPageContainerModel
)
)
else
if
(
aServiceSpecifier
==
"com.sun.star.awt.tab.UnoControlTabPageContainerModel"
)
pNewModel
=
new
OGeometryControlModel
<
UnoControlTabPageContainerModel
>
(
m_xContext
);
pNewModel
=
new
OGeometryControlModel
<
UnoControlTabPageContainerModel
>
(
m_xContext
);
else
if
(
aServiceSpecifier
.
equalsAscii
(
szServiceName_UnoMultiPageModel
)
)
else
if
(
aServiceSpecifier
.
equalsAscii
(
szServiceName_UnoMultiPageModel
)
)
pNewModel
=
new
OGeometryControlModel
<
UnoMultiPageModel
>
(
m_xContext
);
pNewModel
=
new
OGeometryControlModel
<
UnoMultiPageModel
>
(
m_xContext
);
...
@@ -450,7 +450,7 @@ Sequence< OUString > ControlModelContainerBase::getAvailableServiceNames() throw
...
@@ -450,7 +450,7 @@ Sequence< OUString > ControlModelContainerBase::getAvailableServiceNames() throw
pNames
[
19
]
=
OUString
::
createFromAscii
(
szServiceName2_UnoControlRoadmapModel
);
pNames
[
19
]
=
OUString
::
createFromAscii
(
szServiceName2_UnoControlRoadmapModel
);
pNames
[
20
]
=
OUString
::
createFromAscii
(
szServiceName_TreeControlModel
);
pNames
[
20
]
=
OUString
::
createFromAscii
(
szServiceName_TreeControlModel
);
pNames
[
21
]
=
OUString
::
createFromAscii
(
szServiceName_GridControlModel
);
pNames
[
21
]
=
OUString
::
createFromAscii
(
szServiceName_GridControlModel
);
pNames
[
22
]
=
OUString
::
createFromAscii
(
szServiceName_UnoControlTabPageContainerModel
);
pNames
[
22
]
=
OUString
(
"com.sun.star.awt.tab.UnoControlTabPageContainerModel"
);
pNames
[
23
]
=
OUString
(
"com.sun.star.awt.tab.UnoControlTabPageModel"
);
pNames
[
23
]
=
OUString
(
"com.sun.star.awt.tab.UnoControlTabPageModel"
);
pNames
[
24
]
=
OUString
::
createFromAscii
(
szServiceName_UnoMultiPageModel
);
pNames
[
24
]
=
OUString
::
createFromAscii
(
szServiceName_UnoMultiPageModel
);
pNames
[
25
]
=
OUString
::
createFromAscii
(
szServiceName_UnoFrameModel
);
pNames
[
25
]
=
OUString
::
createFromAscii
(
szServiceName_UnoFrameModel
);
...
...
toolkit/source/controls/tabpagecontainer.cxx
Dosyayı görüntüle @
08d10512
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include <com/sun/star/awt/XVclWindowPeer.hpp>
#include <com/sun/star/awt/XVclWindowPeer.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <comphelper/processfactory.hxx>
#include <osl/diagnose.h>
#include <osl/diagnose.h>
#include <tools/diagnose_ex.h>
#include <tools/diagnose_ex.h>
#include <vcl/svapp.hxx>
#include <vcl/svapp.hxx>
...
@@ -62,7 +61,7 @@ UnoControlTabPageContainerModel::UnoControlTabPageContainerModel( const Referenc
...
@@ -62,7 +61,7 @@ UnoControlTabPageContainerModel::UnoControlTabPageContainerModel( const Referenc
OUString
UnoControlTabPageContainerModel
::
getServiceName
()
throw
(
RuntimeException
)
OUString
UnoControlTabPageContainerModel
::
getServiceName
()
throw
(
RuntimeException
)
{
{
return
OUString
::
createFromAscii
(
szServiceName_UnoControlTabPageContainerModel
);
return
OUString
(
"com.sun.star.awt.tab.UnoControlTabPageContainerModel"
);
}
}
uno
::
Any
UnoControlTabPageContainerModel
::
ImplGetDefaultValue
(
sal_uInt16
nPropId
)
const
uno
::
Any
UnoControlTabPageContainerModel
::
ImplGetDefaultValue
(
sal_uInt16
nPropId
)
const
...
@@ -70,7 +69,7 @@ uno::Any UnoControlTabPageContainerModel::ImplGetDefaultValue( sal_uInt16 nPropI
...
@@ -70,7 +69,7 @@ uno::Any UnoControlTabPageContainerModel::ImplGetDefaultValue( sal_uInt16 nPropI
switch
(
nPropId
)
switch
(
nPropId
)
{
{
case
BASEPROPERTY_DEFAULTCONTROL
:
case
BASEPROPERTY_DEFAULTCONTROL
:
return
uno
::
makeAny
(
OUString
::
createFromAscii
(
szServiceName_UnoControlTabPageContainer
)
);
return
uno
::
makeAny
(
OUString
(
"com.sun.star.awt.tab.UnoControlTabPageContainer"
)
);
case
BASEPROPERTY_BORDER
:
case
BASEPROPERTY_BORDER
:
return
uno
::
makeAny
((
sal_Int16
)
0
);
// No Border
return
uno
::
makeAny
((
sal_Int16
)
0
);
// No Border
default
:
default
:
...
@@ -333,4 +332,20 @@ void SAL_CALL UnoControlTabPageContainer::addControl( const OUString& Name, cons
...
@@ -333,4 +332,20 @@ void SAL_CALL UnoControlTabPageContainer::addControl( const OUString& Name, cons
xContainerListener
->
elementInserted
(
aEvent
);
xContainerListener
->
elementInserted
(
aEvent
);
}
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
stardiv_Toolkit_UnoControlTabPageContainerModel_get_implementation
(
css
::
uno
::
XComponentContext
*
context
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
)
{
return
cppu
::
acquire
(
new
UnoControlTabPageContainerModel
(
context
));
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
stardiv_Toolkit_UnoControlTabPageContainer_get_implementation
(
css
::
uno
::
XComponentContext
*
context
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
)
{
return
cppu
::
acquire
(
new
UnoControlTabPageContainer
(
context
));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
toolkit/source/helper/registerservices.cxx
Dosyayı görüntüle @
08d10512
...
@@ -41,7 +41,6 @@
...
@@ -41,7 +41,6 @@
#include <toolkit/controls/roadmapcontrol.hxx>
#include <toolkit/controls/roadmapcontrol.hxx>
#include <toolkit/controls/tkscrollbar.hxx>
#include <toolkit/controls/tkscrollbar.hxx>
#include "toolkit/controls/tkspinbutton.hxx"
#include "toolkit/controls/tkspinbutton.hxx"
#include <toolkit/controls/tabpagecontainer.hxx>
#include "toolkit/dllapi.h"
#include "toolkit/dllapi.h"
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
...
@@ -169,8 +168,6 @@ IMPL_CREATEINSTANCE( VCLXPopupMenu )
...
@@ -169,8 +168,6 @@ IMPL_CREATEINSTANCE( VCLXPopupMenu )
IMPL_CREATEINSTANCE
(
VCLXPrinterServer
)
IMPL_CREATEINSTANCE
(
VCLXPrinterServer
)
IMPL_CREATEINSTANCE
(
UnoRoadmapControl
)
IMPL_CREATEINSTANCE
(
UnoRoadmapControl
)
IMPL_CREATEINSTANCE_CTX
(
UnoControlRoadmapModel
)
IMPL_CREATEINSTANCE_CTX
(
UnoControlRoadmapModel
)
IMPL_CREATEINSTANCE_CTX
(
UnoControlTabPageContainer
)
IMPL_CREATEINSTANCE_CTX
(
UnoControlTabPageContainerModel
)
IMPL_CREATE_INSTANCE_WITH_GEOMETRY
(
UnoControlDialogModel
)
IMPL_CREATE_INSTANCE_WITH_GEOMETRY
(
UnoControlDialogModel
)
...
@@ -270,8 +267,6 @@ TOOLKIT_DLLPUBLIC void* SAL_CALL tk_component_getFactory( const sal_Char* sImple
...
@@ -270,8 +267,6 @@ TOOLKIT_DLLPUBLIC void* SAL_CALL tk_component_getFactory( const sal_Char* sImple
GET_FACTORY
(
DefaultGridColumnModel
,
szServiceName_DefaultGridColumnModel
,
NULL
);
GET_FACTORY
(
DefaultGridColumnModel
,
szServiceName_DefaultGridColumnModel
,
NULL
);
GET_FACTORY_WITH_IMPL_PREFIX
(
GridColumn
,
"org.openoffice.comp.toolkit"
,
szServiceName_GridColumn
,
NULL
);
GET_FACTORY_WITH_IMPL_PREFIX
(
GridColumn
,
"org.openoffice.comp.toolkit"
,
szServiceName_GridColumn
,
NULL
);
GET_FACTORY_WITH_IMPL_PREFIX
(
SortableGridDataModel
,
"org.openoffice.comp.toolkit"
,
szServiceName_SortableGridDataModel
,
NULL
);
GET_FACTORY_WITH_IMPL_PREFIX
(
SortableGridDataModel
,
"org.openoffice.comp.toolkit"
,
szServiceName_SortableGridDataModel
,
NULL
);
GET_FACTORY
(
UnoControlTabPageContainerModel
,
szServiceName_UnoControlTabPageContainerModel
,
NULL
)
GET_FACTORY
(
UnoControlTabPageContainer
,
szServiceName_UnoControlTabPageContainer
,
NULL
)
if
(
rtl_str_compare
(
sImplementationName
,
"com.sun.star.awt.comp.AsyncCallback"
)
==
0
)
if
(
rtl_str_compare
(
sImplementationName
,
"com.sun.star.awt.comp.AsyncCallback"
)
==
0
)
return
comp_AsyncCallback_component_getFactory
(
sImplementationName
,
_pServiceManager
,
_pRegistryKey
);
return
comp_AsyncCallback_component_getFactory
(
sImplementationName
,
_pServiceManager
,
_pRegistryKey
);
...
...
toolkit/source/helper/servicenames.cxx
Dosyayı görüntüle @
08d10512
...
@@ -94,8 +94,6 @@ const sal_Char szServiceName_GridControlModel[] = "com.sun.star.awt.grid.UnoCont
...
@@ -94,8 +94,6 @@ const sal_Char szServiceName_GridControlModel[] = "com.sun.star.awt.grid.UnoCont
const
sal_Char
szServiceName_DefaultGridDataModel
[]
=
"com.sun.star.awt.grid.DefaultGridDataModel"
;
const
sal_Char
szServiceName_DefaultGridDataModel
[]
=
"com.sun.star.awt.grid.DefaultGridDataModel"
;
const
sal_Char
szServiceName_DefaultGridColumnModel
[]
=
"com.sun.star.awt.grid.DefaultGridColumnModel"
;
const
sal_Char
szServiceName_DefaultGridColumnModel
[]
=
"com.sun.star.awt.grid.DefaultGridColumnModel"
;
const
sal_Char
szServiceName_GridColumn
[]
=
"com.sun.star.awt.grid.GridColumn"
;
const
sal_Char
szServiceName_GridColumn
[]
=
"com.sun.star.awt.grid.GridColumn"
;
const
sal_Char
szServiceName_UnoControlTabPageContainerModel
[]
=
"com.sun.star.awt.tab.UnoControlTabPageContainerModel"
;
const
sal_Char
szServiceName_UnoControlTabPageContainer
[]
=
"com.sun.star.awt.tab.UnoControlTabPageContainer"
;
const
sal_Char
szServiceName_SortableGridDataModel
[]
=
"com.sun.star.awt.grid.SortableGridDataModel"
;
const
sal_Char
szServiceName_SortableGridDataModel
[]
=
"com.sun.star.awt.grid.SortableGridDataModel"
;
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
toolkit/util/tk.component
Dosyayı görüntüle @
08d10512
...
@@ -34,10 +34,12 @@
...
@@ -34,10 +34,12 @@
constructor=
"stardiv_Toolkit_UnoControlTabPageModel_get_implementation"
>
constructor=
"stardiv_Toolkit_UnoControlTabPageModel_get_implementation"
>
<service
name=
"com.sun.star.awt.tab.UnoControlTabPageModel"
/>
<service
name=
"com.sun.star.awt.tab.UnoControlTabPageModel"
/>
</implementation>
</implementation>
<implementation
name=
"stardiv.Toolkit.UnoControlTabPageContainerModel"
>
<implementation
name=
"stardiv.Toolkit.UnoControlTabPageContainerModel"
constructor=
"stardiv_Toolkit_UnoControlTabPageContainerModel_get_implementation"
>
<service
name=
"com.sun.star.awt.tab.UnoControlTabPageContainerModel"
/>
<service
name=
"com.sun.star.awt.tab.UnoControlTabPageContainerModel"
/>
</implementation>
</implementation>
<implementation
name=
"stardiv.Toolkit.UnoControlTabPageContainer"
>
<implementation
name=
"stardiv.Toolkit.UnoControlTabPageContainer"
constructor=
"stardiv_Toolkit_UnoControlTabPageContainer_get_implementation"
>
<service
name=
"com.sun.star.awt.tab.UnoControlTabPageContainer"
/>
<service
name=
"com.sun.star.awt.tab.UnoControlTabPageContainer"
/>
</implementation>
</implementation>
<implementation
name=
"stardiv.Toolkit.DefaultGridColumnModel"
>
<implementation
name=
"stardiv.Toolkit.DefaultGridColumnModel"
>
...
...
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