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
d5a4bd90
Kaydet (Commit)
d5a4bd90
authored
Ara 08, 2000
tarafından
Michael Brauer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#81317#: (Left|Right|Top|Bottom)BorderDistance
üst
09b6f440
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
5 deletions
+30
-5
unoframe.cxx
sw/source/core/unocore/unoframe.cxx
+30
-5
No files found.
sw/source/core/unocore/unoframe.cxx
Dosyayı görüntüle @
d5a4bd90
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: unoframe.cxx,v $
*
* $Revision: 1.1
7
$
* $Revision: 1.1
8
$
*
* last change: $Author:
jp $ $Date: 2000-12-07 15:11:35
$
* last change: $Author:
mib $ $Date: 2000-12-08 08:32:02
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -299,9 +299,13 @@ const SfxItemPropertyMap* GetFrameDescMap()
{
SW_PROP_NAME
(
UNO_NAME_BOTTOM_BORDER
),
RES_BOX
,
&::
getCppuType
((
const
table
::
BorderLine
*
)
0
),
0
,
BOTTOM_BORDER
|
CONVERT_TWIPS
},
{
SW_PROP_NAME
(
UNO_NAME_BORDER_DISTANCE
),
RES_BOX
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
0
,
BORDER_DISTANCE
|
CONVERT_TWIPS
},
{
SW_PROP_NAME
(
UNO_NAME_Z_ORDER
),
FN_UNO_Z_ORDER
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
PROPERTY_NONE
,
0
},
{
SW_PROP_NAME
(
UNO_NAME_LEFT_BORDER_DISTANCE
),
RES_BOX
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
0
,
LEFT_BORDER_DISTANCE
|
CONVERT_TWIPS
},
{
SW_PROP_NAME
(
UNO_NAME_RIGHT_BORDER_DISTANCE
),
RES_BOX
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
0
,
RIGHT_BORDER_DISTANCE
|
CONVERT_TWIPS
},
{
SW_PROP_NAME
(
UNO_NAME_TOP_BORDER_DISTANCE
),
RES_BOX
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
0
,
TOP_BORDER_DISTANCE
|
CONVERT_TWIPS
},
{
SW_PROP_NAME
(
UNO_NAME_BOTTOM_BORDER_DISTANCE
),
RES_BOX
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
0
,
BOTTOM_BORDER_DISTANCE
|
CONVERT_TWIPS
},
{
0
,
0
,
0
,
0
}
};
#define FRM_PROP_COUNT 5
0
#define FRM_PROP_COUNT 5
4
return
aFrameDescPropertyMap_Impl
;
}
// unterscheidet sich von der Rahmenbeschreibung durch eine XTextPosition
...
...
@@ -360,13 +364,17 @@ const SfxItemPropertyMap* GetGraphicDescMap()
{
SW_PROP_NAME
(
UNO_NAME_TOP_BORDER
),
RES_BOX
,
&::
getCppuType
((
const
table
::
BorderLine
*
)
0
),
0
,
TOP_BORDER
|
CONVERT_TWIPS
},
{
SW_PROP_NAME
(
UNO_NAME_BOTTOM_BORDER
),
RES_BOX
,
&::
getCppuType
((
const
table
::
BorderLine
*
)
0
),
0
,
BOTTOM_BORDER
|
CONVERT_TWIPS
},
{
SW_PROP_NAME
(
UNO_NAME_BORDER_DISTANCE
),
RES_BOX
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
0
,
BORDER_DISTANCE
|
CONVERT_TWIPS
},
{
SW_PROP_NAME
(
UNO_NAME_LEFT_BORDER_DISTANCE
),
RES_BOX
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
0
,
LEFT_BORDER_DISTANCE
|
CONVERT_TWIPS
},
{
SW_PROP_NAME
(
UNO_NAME_RIGHT_BORDER_DISTANCE
),
RES_BOX
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
0
,
RIGHT_BORDER_DISTANCE
|
CONVERT_TWIPS
},
{
SW_PROP_NAME
(
UNO_NAME_TOP_BORDER_DISTANCE
),
RES_BOX
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
0
,
TOP_BORDER_DISTANCE
|
CONVERT_TWIPS
},
{
SW_PROP_NAME
(
UNO_NAME_BOTTOM_BORDER_DISTANCE
),
RES_BOX
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
0
,
BOTTOM_BORDER_DISTANCE
|
CONVERT_TWIPS
},
{
SW_PROP_NAME
(
UNO_NAME_GRAPHIC_URL
),
0
,
&::
getCppuType
((
const
OUString
*
)
0
),
0
,
0
},
{
SW_PROP_NAME
(
UNO_NAME_GRAPHIC_FILTER
),
0
,
&::
getCppuType
((
const
OUString
*
)
0
),
0
,
0
},
{
SW_PROP_NAME
(
UNO_NAME_CONTOUR_POLY_POLYGON
),
FN_PARAM_COUNTOUR_PP
,
&::
getCppuType
((
PointSequenceSequence
*
)
0
),
PropertyAttribute
::
MAYBEVOID
,
0
},
{
SW_PROP_NAME
(
UNO_NAME_Z_ORDER
),
FN_UNO_Z_ORDER
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
PROPERTY_NONE
,
0
},
{
0
,
0
,
0
,
0
}
};
#define GRPH_PROP_COUNT 5
5
#define GRPH_PROP_COUNT 5
9
return
aGraphicDescPropertyMap_Impl
;
}
...
...
@@ -594,7 +602,16 @@ sal_Bool BaseFrameProperties_Impl::FillBaseProperties(SfxItemSet& rSet)
GetProperty
(
C2S
(
UNO_NAME_BOTTOM_BORDER
),
pBottom
);
uno
::
Any
*
pDistance
=
0
;
GetProperty
(
C2S
(
UNO_NAME_BORDER_DISTANCE
),
pDistance
);
if
(
pLeft
||
pRight
||
pTop
||
pBottom
||
pDistance
)
uno
::
Any
*
pLeftDistance
=
0
;
GetProperty
(
C2S
(
UNO_NAME_LEFT_BORDER_DISTANCE
),
pLeftDistance
);
uno
::
Any
*
pRightDistance
=
0
;
GetProperty
(
C2S
(
UNO_NAME_RIGHT_BORDER_DISTANCE
),
pRightDistance
);
uno
::
Any
*
pTopDistance
=
0
;
GetProperty
(
C2S
(
UNO_NAME_TOP_BORDER_DISTANCE
),
pTopDistance
);
uno
::
Any
*
pBottomDistance
=
0
;
GetProperty
(
C2S
(
UNO_NAME_BOTTOM_BORDER_DISTANCE
),
pBottomDistance
);
if
(
pLeft
||
pRight
||
pTop
||
pBottom
||
pDistance
||
pLeftDistance
||
pRightDistance
||
pTopDistance
||
pBottomDistance
)
{
SvxBoxItem
aBox
;
if
(
pLeft
)
...
...
@@ -607,6 +624,14 @@ sal_Bool BaseFrameProperties_Impl::FillBaseProperties(SfxItemSet& rSet)
bRet
&=
((
SfxPoolItem
&
)
aBox
).
PutValue
(
*
pBottom
,
CONVERT_TWIPS
|
BOTTOM_BORDER
);
if
(
pDistance
)
bRet
&=
((
SfxPoolItem
&
)
aBox
).
PutValue
(
*
pDistance
,
CONVERT_TWIPS
|
BORDER_DISTANCE
);
if
(
pLeftDistance
)
bRet
&=
((
SfxPoolItem
&
)
aBox
).
PutValue
(
*
pLeftDistance
,
CONVERT_TWIPS
|
LEFT_BORDER_DISTANCE
);
if
(
pRightDistance
)
bRet
&=
((
SfxPoolItem
&
)
aBox
).
PutValue
(
*
pRightDistance
,
CONVERT_TWIPS
|
RIGHT_BORDER_DISTANCE
);
if
(
pTopDistance
)
bRet
&=
((
SfxPoolItem
&
)
aBox
).
PutValue
(
*
pTopDistance
,
CONVERT_TWIPS
|
TOP_BORDER_DISTANCE
);
if
(
pBottomDistance
)
bRet
&=
((
SfxPoolItem
&
)
aBox
).
PutValue
(
*
pBottomDistance
,
CONVERT_TWIPS
|
BOTTOM_BORDER_DISTANCE
);
rSet
.
Put
(
aBox
);
}
{
...
...
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