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
cbd8e4d1
Kaydet (Commit)
cbd8e4d1
authored
Şub 21, 2001
tarafından
Christian Lippka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
added VisibleArea and MapUnit properties
üst
584ced31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
4 deletions
+45
-4
unomodel.cxx
sd/source/ui/unoidl/unomodel.cxx
+45
-4
No files found.
sd/source/ui/unoidl/unomodel.cxx
Dosyayı görüntüle @
cbd8e4d1
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: unomodel.cxx,v $
* $RCSfile: unomodel.cxx,v $
*
*
* $Revision: 1.1
4
$
* $Revision: 1.1
5
$
*
*
* last change: $Author: cl $ $Date: 2001-02-
19 13:15:20
$
* last change: $Author: cl $ $Date: 2001-02-
21 17:59:43
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -146,6 +146,8 @@ using namespace ::com::sun::star;
...
@@ -146,6 +146,8 @@ using namespace ::com::sun::star;
#define WID_MODEL_LANGUAGE 1
#define WID_MODEL_LANGUAGE 1
#define WID_MODEL_TABSTOP 2
#define WID_MODEL_TABSTOP 2
#define WID_MODEL_VISAREA 3
#define WID_MODEL_MAPUNIT 4
const
SfxItemPropertyMap
*
ImplGetDrawModelPropertyMap
()
const
SfxItemPropertyMap
*
ImplGetDrawModelPropertyMap
()
{
{
...
@@ -154,6 +156,8 @@ const SfxItemPropertyMap* ImplGetDrawModelPropertyMap()
...
@@ -154,6 +156,8 @@ const SfxItemPropertyMap* ImplGetDrawModelPropertyMap()
{
{
{
MAP_CHAR_LEN
(
UNO_NAME_MODEL_LANGUAGE
),
WID_MODEL_LANGUAGE
,
&::
getCppuType
((
const
lang
::
Locale
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
UNO_NAME_MODEL_LANGUAGE
),
WID_MODEL_LANGUAGE
,
&::
getCppuType
((
const
lang
::
Locale
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
UNO_NAME_MODEL_TABSTOP
),
WID_MODEL_TABSTOP
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
UNO_NAME_MODEL_TABSTOP
),
WID_MODEL_TABSTOP
,
&::
getCppuType
((
const
sal_Int32
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"VisibleArea"
),
WID_MODEL_VISAREA
,
&::
getCppuType
((
const
awt
::
Rectangle
*
)
0
),
0
,
0
},
{
MAP_CHAR_LEN
(
"MapUnit"
),
WID_MODEL_MAPUNIT
,
&::
getCppuType
((
const
sal_Int16
*
)
0
),
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
0
,
0
,
0
,
0
,
0
}
{
0
,
0
,
0
,
0
,
0
}
};
};
...
@@ -773,7 +777,7 @@ void SAL_CALL SdXImpressDocument::setPropertyValue( const OUString& aPropertyNam
...
@@ -773,7 +777,7 @@ void SAL_CALL SdXImpressDocument::setPropertyValue( const OUString& aPropertyNam
OGuard
aGuard
(
Application
::
GetSolarMutex
()
);
OGuard
aGuard
(
Application
::
GetSolarMutex
()
);
if
(
pDoc
==
NULL
)
if
(
pDoc
==
NULL
)
throw
uno
::
Runtime
Exception
();
throw
beans
::
UnknownProperty
Exception
();
const
SfxItemPropertyMap
*
pMap
=
aPropSet
.
getPropertyMapEntry
(
aPropertyName
);
const
SfxItemPropertyMap
*
pMap
=
aPropSet
.
getPropertyMapEntry
(
aPropertyName
);
...
@@ -797,6 +801,20 @@ void SAL_CALL SdXImpressDocument::setPropertyValue( const OUString& aPropertyNam
...
@@ -797,6 +801,20 @@ void SAL_CALL SdXImpressDocument::setPropertyValue( const OUString& aPropertyNam
pDoc
->
SetDefaultTabulator
((
sal_uInt16
)
nValue
);
pDoc
->
SetDefaultTabulator
((
sal_uInt16
)
nValue
);
break
;
break
;
}
}
case
WID_MODEL_VISAREA
:
{
SvEmbeddedObject
*
pEmbeddedObj
=
pDoc
->
GetDocSh
();
if
(
!
pEmbeddedObj
)
break
;
awt
::
Rectangle
aVisArea
;
if
(
!
(
aValue
>>=
aVisArea
)
)
throw
lang
::
IllegalArgumentException
();
pEmbeddedObj
->
SetVisArea
(
Rectangle
(
aVisArea
.
X
,
aVisArea
.
Y
,
aVisArea
.
X
+
aVisArea
.
Width
-
1
,
aVisArea
.
Y
+
aVisArea
.
Height
-
1
)
);
}
break
;
case
WID_MODEL_MAPUNIT
:
default
:
default
:
throw
beans
::
UnknownPropertyException
();
throw
beans
::
UnknownPropertyException
();
break
;
break
;
...
@@ -812,7 +830,7 @@ uno::Any SAL_CALL SdXImpressDocument::getPropertyValue( const OUString& Property
...
@@ -812,7 +830,7 @@ uno::Any SAL_CALL SdXImpressDocument::getPropertyValue( const OUString& Property
uno
::
Any
aAny
;
uno
::
Any
aAny
;
if
(
pDoc
==
NULL
)
if
(
pDoc
==
NULL
)
throw
uno
::
Runtime
Exception
();
throw
beans
::
UnknownProperty
Exception
();
const
SfxItemPropertyMap
*
pMap
=
aPropSet
.
getPropertyMapEntry
(
PropertyName
);
const
SfxItemPropertyMap
*
pMap
=
aPropSet
.
getPropertyMapEntry
(
PropertyName
);
...
@@ -829,6 +847,29 @@ uno::Any SAL_CALL SdXImpressDocument::getPropertyValue( const OUString& Property
...
@@ -829,6 +847,29 @@ uno::Any SAL_CALL SdXImpressDocument::getPropertyValue( const OUString& Property
case
WID_MODEL_TABSTOP
:
case
WID_MODEL_TABSTOP
:
aAny
<<=
(
sal_Int32
)
pDoc
->
GetDefaultTabulator
();
aAny
<<=
(
sal_Int32
)
pDoc
->
GetDefaultTabulator
();
break
;
break
;
case
WID_MODEL_VISAREA
:
{
SvEmbeddedObject
*
pEmbeddedObj
=
pDoc
->
GetDocSh
();
if
(
!
pEmbeddedObj
)
break
;
const
Rectangle
&
aRect
=
pEmbeddedObj
->
GetVisArea
();
awt
::
Rectangle
aVisArea
(
aRect
.
nLeft
,
aRect
.
nTop
,
aRect
.
getWidth
(),
aRect
.
getHeight
()
);
aAny
<<=
aVisArea
;
}
break
;
case
WID_MODEL_MAPUNIT
:
{
SvEmbeddedObject
*
pEmbeddedObj
=
pDoc
->
GetDocSh
();
if
(
!
pEmbeddedObj
)
break
;
sal_Int16
nMeasureUnit
=
0
;
SvxMapUnitToMeasureUnit
(
pEmbeddedObj
->
GetMapUnit
(),
nMeasureUnit
);
aAny
<<=
(
sal_Int16
)
nMeasureUnit
;
}
break
;
default
:
default
:
throw
beans
::
UnknownPropertyException
();
throw
beans
::
UnknownPropertyException
();
break
;
break
;
...
...
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