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
8d5bcf3e
Kaydet (Commit)
8d5bcf3e
authored
Haz 19, 2006
tarafından
Jens-Heiner Rechtien
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS warnings01 (1.25.220); FILE MERGED
2006/02/17 16:21:34 cl 1.25.220.1: warning free code changes
üst
2f06d4a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
30 deletions
+23
-30
unofield.cxx
svx/source/unoedit/unofield.cxx
+23
-30
No files found.
svx/source/unoedit/unofield.cxx
Dosyayı görüntüle @
8d5bcf3e
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
*
*
* $RCSfile: unofield.cxx,v $
* $RCSfile: unofield.cxx,v $
*
*
* $Revision: 1.2
5
$
* $Revision: 1.2
6
$
*
*
* last change: $Author:
rt $ $Date: 2005-09-09 01:11:17
$
* last change: $Author:
hr $ $Date: 2006-06-19 17:01:56
$
*
*
* The Contents of this file are made available subject to
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
* the terms of GNU Lesser General Public License Version 2.1.
...
@@ -107,13 +107,13 @@ SfxItemPropertyMap* ImplGetFieldItemPropertyMap( sal_Int32 mnId )
...
@@ -107,13 +107,13 @@ SfxItemPropertyMap* ImplGetFieldItemPropertyMap( sal_Int32 mnId )
{
MAP_CHAR_LEN
(
"IsFixed"
),
WID_BOOL1
,
&::
getBooleanCppuType
(),
0
,
0
},
{
MAP_CHAR_LEN
(
"IsFixed"
),
WID_BOOL1
,
&::
getBooleanCppuType
(),
0
,
0
},
{
MAP_CHAR_LEN
(
"IsDate"
),
WID_BOOL2
,
&::
getBooleanCppuType
(),
0
,
0
},
{
MAP_CHAR_LEN
(
"IsDate"
),
WID_BOOL2
,
&::
getBooleanCppuType
(),
0
,
0
},
{
MAP_CHAR_LEN
(
"NumberFormat"
),
WID_INT32
,
&::
getCppuType
((
const
sal_Int16
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"NumberFormat"
),
WID_INT32
,
&::
getCppuType
((
const
sal_Int16
*
)
0
),
0
,
0
},
{
0
,
0
}
{
0
,
0
,
0
,
0
,
0
,
0
}
};
};
static
SfxItemPropertyMap
aDateTimeFieldPropertyMap_Impl
[]
=
static
SfxItemPropertyMap
aDateTimeFieldPropertyMap_Impl
[]
=
{
{
{
MAP_CHAR_LEN
(
"IsDate"
),
WID_BOOL2
,
&::
getBooleanCppuType
(),
0
,
0
},
{
MAP_CHAR_LEN
(
"IsDate"
),
WID_BOOL2
,
&::
getBooleanCppuType
(),
0
,
0
},
{
0
,
0
}
{
0
,
0
,
0
,
0
,
0
,
0
}
};
};
static
SfxItemPropertyMap
aUrlFieldPropertyMap_Impl
[]
=
static
SfxItemPropertyMap
aUrlFieldPropertyMap_Impl
[]
=
...
@@ -123,12 +123,12 @@ SfxItemPropertyMap* ImplGetFieldItemPropertyMap( sal_Int32 mnId )
...
@@ -123,12 +123,12 @@ SfxItemPropertyMap* ImplGetFieldItemPropertyMap( sal_Int32 mnId )
{
MAP_CHAR_LEN
(
"Representation"
),
WID_STRING1
,
&::
getCppuType
((
const
OUString
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"Representation"
),
WID_STRING1
,
&::
getCppuType
((
const
OUString
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"TargetFrame"
),
WID_STRING2
,
&::
getCppuType
((
const
OUString
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"TargetFrame"
),
WID_STRING2
,
&::
getCppuType
((
const
OUString
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"URL"
),
WID_STRING3
,
&::
getCppuType
((
const
OUString
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"URL"
),
WID_STRING3
,
&::
getCppuType
((
const
OUString
*
)
0
),
0
,
0
},
{
0
,
0
}
{
0
,
0
,
0
,
0
,
0
,
0
}
};
};
static
SfxItemPropertyMap
aEmptyPropertyMap_Impl
[]
=
static
SfxItemPropertyMap
aEmptyPropertyMap_Impl
[]
=
{
{
{
0
,
0
}
{
0
,
0
,
0
,
0
,
0
,
0
}
};
};
static
SfxItemPropertyMap
aExtFileFieldPropertyMap_Impl
[]
=
static
SfxItemPropertyMap
aExtFileFieldPropertyMap_Impl
[]
=
...
@@ -136,7 +136,7 @@ SfxItemPropertyMap* ImplGetFieldItemPropertyMap( sal_Int32 mnId )
...
@@ -136,7 +136,7 @@ SfxItemPropertyMap* ImplGetFieldItemPropertyMap( sal_Int32 mnId )
{
MAP_CHAR_LEN
(
"IsFixed"
),
WID_BOOL1
,
&::
getBooleanCppuType
(),
0
,
0
},
{
MAP_CHAR_LEN
(
"IsFixed"
),
WID_BOOL1
,
&::
getBooleanCppuType
(),
0
,
0
},
{
MAP_CHAR_LEN
(
"FileFormat"
),
WID_INT16
,
&::
getCppuType
((
const
sal_Int16
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"FileFormat"
),
WID_INT16
,
&::
getCppuType
((
const
sal_Int16
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"CurrentPresentation"
),
WID_STRING1
,
&::
getCppuType
((
const
OUString
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"CurrentPresentation"
),
WID_STRING1
,
&::
getCppuType
((
const
OUString
*
)
0
),
0
,
0
},
{
0
,
0
}
{
0
,
0
,
0
,
0
,
0
,
0
}
};
};
static
SfxItemPropertyMap
aAuthorFieldPropertyMap_Impl
[]
=
static
SfxItemPropertyMap
aAuthorFieldPropertyMap_Impl
[]
=
...
@@ -146,13 +146,13 @@ SfxItemPropertyMap* ImplGetFieldItemPropertyMap( sal_Int32 mnId )
...
@@ -146,13 +146,13 @@ SfxItemPropertyMap* ImplGetFieldItemPropertyMap( sal_Int32 mnId )
{
MAP_CHAR_LEN
(
"Content"
),
WID_STRING2
,
&::
getCppuType
((
const
OUString
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"Content"
),
WID_STRING2
,
&::
getCppuType
((
const
OUString
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"AuthorFormat"
),
WID_INT16
,
&::
getCppuType
((
const
sal_Int16
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"AuthorFormat"
),
WID_INT16
,
&::
getCppuType
((
const
sal_Int16
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"FullName"
),
WID_BOOL2
,
&::
getBooleanCppuType
(),
0
,
0
},
{
MAP_CHAR_LEN
(
"FullName"
),
WID_BOOL2
,
&::
getBooleanCppuType
(),
0
,
0
},
{
0
,
0
}
{
0
,
0
,
0
,
0
,
0
,
0
}
};
};
static
SfxItemPropertyMap
aMeasureFieldPropertyMap_Impl
[]
=
static
SfxItemPropertyMap
aMeasureFieldPropertyMap_Impl
[]
=
{
{
{
MAP_CHAR_LEN
(
"Kind"
),
WID_INT16
,
&::
getCppuType
((
const
sal_Int16
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"Kind"
),
WID_INT16
,
&::
getCppuType
((
const
sal_Int16
*
)
0
),
0
,
0
},
{
0
,
0
}
{
0
,
0
,
0
,
0
,
0
,
0
}
};
};
switch
(
mnId
)
switch
(
mnId
)
...
@@ -183,11 +183,6 @@ SfxItemPropertyMap* ImplGetFieldItemPropertyMap( sal_Int32 mnId )
...
@@ -183,11 +183,6 @@ SfxItemPropertyMap* ImplGetFieldItemPropertyMap( sal_Int32 mnId )
}
}
}
}
static
SfxItemPropertyMap
aEmptyPropertyMap_Impl
[]
=
{
{
0
,
0
}
};
static
sal_Char
*
aFieldItemNameMap_Impl
[]
=
static
sal_Char
*
aFieldItemNameMap_Impl
[]
=
{
{
"Date"
,
"Date"
,
...
@@ -280,10 +275,10 @@ inline Time setTime( util::DateTime& rDate )
...
@@ -280,10 +275,10 @@ inline Time setTime( util::DateTime& rDate )
UNO3_GETIMPLEMENTATION_IMPL
(
SvxUnoTextField
);
UNO3_GETIMPLEMENTATION_IMPL
(
SvxUnoTextField
);
SvxUnoTextField
::
SvxUnoTextField
(
sal_Int32
nServiceId
)
throw
()
SvxUnoTextField
::
SvxUnoTextField
(
sal_Int32
nServiceId
)
throw
()
:
OComponentHelper
(
getMutex
()
)
,
:
OComponentHelper
(
getMutex
()
)
mpPropSet
(
NULL
),
,
mpPropSet
(
NULL
)
mpImpl
(
new
SvxUnoFieldData_Impl
),
,
mnServiceId
(
nServiceId
)
mnServiceId
(
nServiceId
)
,
mpImpl
(
new
SvxUnoFieldData_Impl
)
{
{
mpPropSet
=
new
SfxItemPropertySet
(
ImplGetFieldItemPropertyMap
(
mnServiceId
)
);
mpPropSet
=
new
SfxItemPropertySet
(
ImplGetFieldItemPropertyMap
(
mnServiceId
)
);
...
@@ -334,11 +329,11 @@ SvxUnoTextField::SvxUnoTextField( sal_Int32 nServiceId ) throw()
...
@@ -334,11 +329,11 @@ SvxUnoTextField::SvxUnoTextField( sal_Int32 nServiceId ) throw()
}
}
SvxUnoTextField
::
SvxUnoTextField
(
uno
::
Reference
<
text
::
XTextRange
>
xAnchor
,
const
OUString
&
rPresentation
,
const
SvxFieldData
*
pData
)
throw
()
SvxUnoTextField
::
SvxUnoTextField
(
uno
::
Reference
<
text
::
XTextRange
>
xAnchor
,
const
OUString
&
rPresentation
,
const
SvxFieldData
*
pData
)
throw
()
:
OComponentHelper
(
getMutex
()
)
,
:
OComponentHelper
(
getMutex
()
)
mxAnchor
(
xAnchor
),
,
mxAnchor
(
xAnchor
)
mpPropSet
(
NULL
),
,
mpPropSet
(
NULL
)
mpImpl
(
new
SvxUnoFieldData_Impl
),
,
mnServiceId
(
ID_UNKNOWN
)
mnServiceId
(
ID_UNKNOWN
)
,
mpImpl
(
new
SvxUnoFieldData_Impl
)
{
{
DBG_ASSERT
(
pData
,
"pFieldData == NULL! [CL]"
);
DBG_ASSERT
(
pData
,
"pFieldData == NULL! [CL]"
);
...
@@ -399,7 +394,7 @@ SvxUnoTextField::SvxUnoTextField( uno::Reference< text::XTextRange > xAnchor, co
...
@@ -399,7 +394,7 @@ SvxUnoTextField::SvxUnoTextField( uno::Reference< text::XTextRange > xAnchor, co
mpImpl
->
msString2
=
((
SvxAuthorField
*
)
pData
)
->
GetFormatted
();
mpImpl
->
msString2
=
((
SvxAuthorField
*
)
pData
)
->
GetFormatted
();
mpImpl
->
mnInt16
=
((
SvxAuthorField
*
)
pData
)
->
GetFormat
();
mpImpl
->
mnInt16
=
((
SvxAuthorField
*
)
pData
)
->
GetFormat
();
mpImpl
->
mbBoolean1
=
((
SvxAuthorField
*
)
pData
)
->
GetType
()
==
SVXAUTHORTYPE_FIX
;
mpImpl
->
mbBoolean1
=
((
SvxAuthorField
*
)
pData
)
->
GetType
()
==
SVXAUTHORTYPE_FIX
;
mpImpl
->
mbBoolean2
=
((
SvxAuthorField
*
)
pData
)
->
Get
Type
()
!=
SVXAUTHORFORMAT_SHORTNAME
;
mpImpl
->
mbBoolean2
=
((
SvxAuthorField
*
)
pData
)
->
Get
Format
()
!=
SVXAUTHORFORMAT_SHORTNAME
;
break
;
break
;
case
ID_MEASUREFIELD
:
case
ID_MEASUREFIELD
:
...
@@ -438,8 +433,6 @@ SvxFieldData* SvxUnoTextField::CreateFieldData() const throw()
...
@@ -438,8 +433,6 @@ SvxFieldData* SvxUnoTextField::CreateFieldData() const throw()
}
}
else
else
{
{
Time
aTime
;
if
(
mnServiceId
!=
ID_TIMEFIELD
&&
mnServiceId
!=
ID_DATEFIELD
)
if
(
mnServiceId
!=
ID_TIMEFIELD
&&
mnServiceId
!=
ID_DATEFIELD
)
{
{
Time
aTime
(
setTime
(
mpImpl
->
maDateTime
)
);
Time
aTime
(
setTime
(
mpImpl
->
maDateTime
)
);
...
@@ -1028,10 +1021,10 @@ uno::Any SAL_CALL SvxUnoTextField::getPropertyValue( const OUString& PropertyNam
...
@@ -1028,10 +1021,10 @@ uno::Any SAL_CALL SvxUnoTextField::getPropertyValue( const OUString& PropertyNam
*/
*/
}
}
void
SAL_CALL
SvxUnoTextField
::
addPropertyChangeListener
(
const
OUString
&
aPropertyName
,
const
uno
::
Reference
<
beans
::
XPropertyChangeListener
>&
xListener
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
)
{}
void
SAL_CALL
SvxUnoTextField
::
addPropertyChangeListener
(
const
OUString
&
,
const
uno
::
Reference
<
beans
::
XPropertyChangeListener
>&
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
)
{}
void
SAL_CALL
SvxUnoTextField
::
removePropertyChangeListener
(
const
OUString
&
aPropertyName
,
const
uno
::
Reference
<
beans
::
XPropertyChangeListener
>&
aListener
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
)
{}
void
SAL_CALL
SvxUnoTextField
::
removePropertyChangeListener
(
const
OUString
&
,
const
uno
::
Reference
<
beans
::
XPropertyChangeListener
>&
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
)
{}
void
SAL_CALL
SvxUnoTextField
::
addVetoableChangeListener
(
const
OUString
&
PropertyName
,
const
uno
::
Reference
<
beans
::
XVetoableChangeListener
>&
aListener
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
)
{}
void
SAL_CALL
SvxUnoTextField
::
addVetoableChangeListener
(
const
OUString
&
,
const
uno
::
Reference
<
beans
::
XVetoableChangeListener
>&
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
)
{}
void
SAL_CALL
SvxUnoTextField
::
removeVetoableChangeListener
(
const
OUString
&
PropertyName
,
const
uno
::
Reference
<
beans
::
XVetoableChangeListener
>&
aListener
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
)
{}
void
SAL_CALL
SvxUnoTextField
::
removeVetoableChangeListener
(
const
OUString
&
,
const
uno
::
Reference
<
beans
::
XVetoableChangeListener
>&
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
)
{}
// OComponentHelper
// OComponentHelper
void
SvxUnoTextField
::
disposing
()
void
SvxUnoTextField
::
disposing
()
...
...
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