summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx')
-rw-r--r--ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx109
1 files changed, 43 insertions, 66 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx b/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
index 564bafe3af70..f646a18dd3b3 100644
--- a/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx
@@ -111,14 +111,14 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
beans::Property(
OUString( "IsDocument" ),
-1,
- getCppuBooleanType(),
+ cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
beans::Property(
OUString( "IsFolder" ),
-1,
- getCppuBooleanType(),
+ cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
@@ -143,8 +143,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
OUString(
"CreatableContentsInfo" ),
-1,
- getCppuType( static_cast<
- const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
+ cppu::UnoType<uno::Sequence< ucb::ContentInfo >>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY )
@@ -170,14 +169,14 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
beans::Property(
OUString( "IsDocument" ),
-1,
- getCppuBooleanType(),
+ cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
beans::Property(
OUString( "IsFolder" ),
-1,
- getCppuBooleanType(),
+ cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
@@ -200,8 +199,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
OUString(
"CreatableContentsInfo" ),
-1,
- getCppuType( static_cast<
- const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
+ cppu::UnoType<uno::Sequence< ucb::ContentInfo >>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY )
@@ -236,14 +234,14 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
beans::Property(
OUString( "IsDocument" ),
-1,
- getCppuBooleanType(),
+ cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
beans::Property(
OUString( "IsFolder" ),
-1,
- getCppuBooleanType(),
+ cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
@@ -261,8 +259,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
OUString(
"CreatableContentsInfo" ),
-1,
- getCppuType( static_cast<
- const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
+ cppu::UnoType<uno::Sequence< ucb::ContentInfo >>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY )
@@ -288,14 +285,14 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
beans::Property(
OUString( "IsDocument" ),
-1,
- getCppuBooleanType(),
+ cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
beans::Property(
OUString( "IsFolder" ),
-1,
- getCppuBooleanType(),
+ cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
@@ -312,8 +309,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
OUString(
"CreatableContentsInfo" ),
-1,
- getCppuType( static_cast<
- const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
+ cppu::UnoType<uno::Sequence< ucb::ContentInfo >>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY )
@@ -349,14 +345,14 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
beans::Property(
OUString( "IsDocument" ),
-1,
- getCppuBooleanType(),
+ cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
beans::Property(
OUString( "IsFolder" ),
-1,
- getCppuBooleanType(),
+ cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
@@ -374,8 +370,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
OUString(
"CreatableContentsInfo" ),
-1,
- getCppuType( static_cast<
- const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
+ cppu::UnoType<uno::Sequence< ucb::ContentInfo >>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY )
@@ -411,25 +406,22 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
),
ucb::CommandInfo(
OUString( "getPropertySetInfo" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
),
ucb::CommandInfo(
OUString( "getPropertyValues" ),
-1,
- getCppuType(
- static_cast< uno::Sequence< beans::Property > * >( 0 ) )
+ cppu::UnoType<uno::Sequence< beans::Property >>::get()
),
ucb::CommandInfo(
OUString( "setPropertyValues" ),
-1,
- getCppuType(
- static_cast<
- uno::Sequence< beans::PropertyValue > * >( 0 ) )
+ cppu::UnoType<uno::Sequence< beans::PropertyValue >>::get()
)
// Optional standard commands
@@ -451,25 +443,22 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
),
ucb::CommandInfo(
OUString( "getPropertySetInfo" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
),
ucb::CommandInfo(
OUString( "getPropertyValues" ),
-1,
- getCppuType(
- static_cast< uno::Sequence< beans::Property > * >( 0 ) )
+ cppu::UnoType<uno::Sequence< beans::Property >>::get()
),
ucb::CommandInfo(
OUString( "setPropertyValues" ),
-1,
- getCppuType(
- static_cast<
- uno::Sequence< beans::PropertyValue > * >( 0 ) )
+ cppu::UnoType<uno::Sequence< beans::PropertyValue >>::get()
),
// Optional standard commands
@@ -477,12 +466,12 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
ucb::CommandInfo(
OUString( "delete" ),
-1,
- getCppuBooleanType()
+ cppu::UnoType<bool>::get()
),
ucb::CommandInfo(
OUString( "insert" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
)
// New commands
@@ -509,25 +498,22 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
),
ucb::CommandInfo(
OUString( "getPropertySetInfo" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
),
ucb::CommandInfo(
OUString( "getPropertyValues" ),
-1,
- getCppuType(
- static_cast< uno::Sequence< beans::Property > * >( 0 ) )
+ cppu::UnoType<uno::Sequence< beans::Property >>::get()
),
ucb::CommandInfo(
OUString( "setPropertyValues" ),
-1,
- getCppuType(
- static_cast<
- uno::Sequence< beans::PropertyValue > * >( 0 ) )
+ cppu::UnoType<uno::Sequence< beans::PropertyValue >>::get()
),
// Optional standard commands
@@ -553,25 +539,22 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
),
ucb::CommandInfo(
OUString( "getPropertySetInfo" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
),
ucb::CommandInfo(
OUString( "getPropertyValues" ),
-1,
- getCppuType(
- static_cast< uno::Sequence< beans::Property > * >( 0 ) )
+ cppu::UnoType<uno::Sequence< beans::Property >>::get()
),
ucb::CommandInfo(
OUString( "setPropertyValues" ),
-1,
- getCppuType(
- static_cast<
- uno::Sequence< beans::PropertyValue > * >( 0 ) )
+ cppu::UnoType<uno::Sequence< beans::PropertyValue >>::get()
),
// Optional standard commands
@@ -579,12 +562,12 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
ucb::CommandInfo(
OUString( "delete" ),
-1,
- getCppuBooleanType()
+ cppu::UnoType<bool>::get()
),
ucb::CommandInfo(
OUString( "insert" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
),
ucb::CommandInfo(
OUString( "open" ),
@@ -626,25 +609,22 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
),
ucb::CommandInfo(
OUString( "getPropertySetInfo" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
),
ucb::CommandInfo(
OUString( "getPropertyValues" ),
-1,
- getCppuType(
- static_cast< uno::Sequence< beans::Property > * >( 0 ) )
+ cppu::UnoType<uno::Sequence< beans::Property >>::get()
),
ucb::CommandInfo(
OUString( "setPropertyValues" ),
-1,
- getCppuType(
- static_cast<
- uno::Sequence< beans::PropertyValue > * >( 0 ) )
+ cppu::UnoType<uno::Sequence< beans::PropertyValue >>::get()
),
// Optional standard commands
@@ -670,25 +650,22 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands(
ucb::CommandInfo(
OUString( "getCommandInfo" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
),
ucb::CommandInfo(
OUString( "getPropertySetInfo" ),
-1,
- getCppuVoidType()
+ cppu::UnoType<cppu::UnoVoidType>::get()
),
ucb::CommandInfo(
OUString( "getPropertyValues" ),
-1,
- getCppuType(
- static_cast< uno::Sequence< beans::Property > * >( 0 ) )
+ cppu::UnoType<uno::Sequence< beans::Property >>::get()
),
ucb::CommandInfo(
OUString( "setPropertyValues" ),
-1,
- getCppuType(
- static_cast<
- uno::Sequence< beans::PropertyValue > * >( 0 ) )
+ cppu::UnoType<uno::Sequence< beans::PropertyValue >>::get()
),
// Optional standard commands