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
ae0493cc
Kaydet (Commit)
ae0493cc
authored
Agu 02, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
got the ctors the wrong way around, fix resid loaded previews
Change-Id: I0a00a5bbd4616fd72e947cacd72ef23d38147638
üst
d7c82096
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
36 deletions
+36
-36
dlgctrl.cxx
svx/source/dialog/dlgctrl.cxx
+36
-36
No files found.
svx/source/dialog/dlgctrl.cxx
Dosyayı görüntüle @
ae0493cc
...
@@ -1838,32 +1838,19 @@ SvxXLinePreview::SvxXLinePreview( Window* pParent, const ResId& rResId )
...
@@ -1838,32 +1838,19 @@ SvxXLinePreview::SvxXLinePreview( Window* pParent, const ResId& rResId )
{
{
InitSettings
(
sal_True
,
sal_True
);
InitSettings
(
sal_True
,
sal_True
);
mpLineObjA
=
new
SdrPathObj
(
OBJ_LINE
);
mpLineObjA
->
SetModel
(
&
getModel
());
mpLineObjB
=
new
SdrPathObj
(
OBJ_PLIN
);
mpLineObjB
->
SetModel
(
&
getModel
());
mpLineObjC
=
new
SdrPathObj
(
OBJ_PLIN
);
mpLineObjC
->
SetModel
(
&
getModel
());
}
void
SvxXLinePreview
::
Resize
()
{
SvxPreviewBase
::
Resize
();
const
Size
aOutputSize
(
GetOutputSize
());
const
Size
aOutputSize
(
GetOutputSize
());
const
sal_Int32
nDistance
(
500L
);
const
sal_Int32
nDistance
(
500L
);
const
sal_Int32
nAvailableLength
(
aOutputSize
.
Width
()
-
(
4
*
nDistance
));
const
sal_Int32
nAvailableLength
(
aOutputSize
.
Width
()
-
(
4
*
nDistance
));
// create DrawObectA
// create DrawOb
j
ectA
const
sal_Int32
aYPosA
(
aOutputSize
.
Height
()
/
2
);
const
sal_Int32
aYPosA
(
aOutputSize
.
Height
()
/
2
);
const
basegfx
::
B2DPoint
aPointA1
(
nDistance
,
aYPosA
);
const
basegfx
::
B2DPoint
aPointA1
(
nDistance
,
aYPosA
);
const
basegfx
::
B2DPoint
aPointA2
(
aPointA1
.
getX
()
+
((
nAvailableLength
*
14
)
/
20
),
aYPosA
);
const
basegfx
::
B2DPoint
aPointA2
(
aPointA1
.
getX
()
+
((
nAvailableLength
*
14
)
/
20
),
aYPosA
);
basegfx
::
B2DPolygon
aPolygonA
;
basegfx
::
B2DPolygon
aPolygonA
;
aPolygonA
.
append
(
aPointA1
);
aPolygonA
.
append
(
aPointA1
);
aPolygonA
.
append
(
aPointA2
);
aPolygonA
.
append
(
aPointA2
);
mpLineObjA
->
SetPathPoly
(
basegfx
::
B2DPolyPolygon
(
aPolygonA
));
mpLineObjA
=
new
SdrPathObj
(
OBJ_LINE
,
basegfx
::
B2DPolyPolygon
(
aPolygonA
));
mpLineObjA
->
SetModel
(
&
getModel
());
// create DrawObectB
// create DrawObectB
const
sal_Int32
aYPosB1
((
aOutputSize
.
Height
()
*
3
)
/
4
);
const
sal_Int32
aYPosB1
((
aOutputSize
.
Height
()
*
3
)
/
4
);
...
@@ -1875,42 +1862,37 @@ void SvxXLinePreview::Resize()
...
@@ -1875,42 +1862,37 @@ void SvxXLinePreview::Resize()
aPolygonB
.
append
(
aPointB1
);
aPolygonB
.
append
(
aPointB1
);
aPolygonB
.
append
(
aPointB2
);
aPolygonB
.
append
(
aPointB2
);
aPolygonB
.
append
(
aPointB3
);
aPolygonB
.
append
(
aPointB3
);
mpLineObjB
->
SetPathPoly
(
basegfx
::
B2DPolyPolygon
(
aPolygonB
));
mpLineObjB
=
new
SdrPathObj
(
OBJ_PLIN
,
basegfx
::
B2DPolyPolygon
(
aPolygonB
));
mpLineObjB
->
SetModel
(
&
getModel
());
// create DrawObectC
// create DrawObectC
basegfx
::
B2DPolygon
aPolygonC
;
const
basegfx
::
B2DPoint
aPointC1
(
aPointB3
.
getX
()
+
nDistance
,
aYPosB1
);
const
basegfx
::
B2DPoint
aPointC1
(
aPointB3
.
getX
()
+
nDistance
,
aYPosB1
);
const
basegfx
::
B2DPoint
aPointC2
(
aPointC1
.
getX
()
+
((
nAvailableLength
*
1
)
/
20
),
aYPosB2
);
const
basegfx
::
B2DPoint
aPointC2
(
aPointC1
.
getX
()
+
((
nAvailableLength
*
1
)
/
20
),
aYPosB2
);
const
basegfx
::
B2DPoint
aPointC3
(
aPointC2
.
getX
()
+
((
nAvailableLength
*
1
)
/
20
),
aYPosB1
);
const
basegfx
::
B2DPoint
aPointC3
(
aPointC2
.
getX
()
+
((
nAvailableLength
*
1
)
/
20
),
aYPosB1
);
basegfx
::
B2DPolygon
aPolygonC
;
aPolygonC
.
append
(
aPointC1
);
aPolygonC
.
append
(
aPointC1
);
aPolygonC
.
append
(
aPointC2
);
aPolygonC
.
append
(
aPointC2
);
aPolygonC
.
append
(
aPointC3
);
aPolygonC
.
append
(
aPointC3
);
mpLineObjC
->
SetPathPoly
(
basegfx
::
B2DPolyPolygon
(
aPolygonC
));
mpLineObjC
=
new
SdrPathObj
(
OBJ_PLIN
,
basegfx
::
B2DPolyPolygon
(
aPolygonC
));
mpLineObjC
->
SetModel
(
&
getModel
());
}
}
SvxXLinePreview
::
SvxXLinePreview
(
Window
*
pParent
)
void
SvxXLinePreview
::
Resize
()
:
SvxPreviewBase
(
pParent
),
mpLineObjA
(
0L
),
mpLineObjB
(
0L
),
mpLineObjC
(
0L
),
mpGraphic
(
0L
),
mbWithSymbol
(
sal_False
)
{
{
const
Size
aOutputSize
(
GetOutputSize
());
SvxPreviewBase
::
Resize
();
InitSettings
(
true
,
true
);
const
Size
aOutputSize
(
GetOutputSize
());
const
sal_Int32
nDistance
(
500L
);
const
sal_Int32
nDistance
(
500L
);
const
sal_Int32
nAvailableLength
(
aOutputSize
.
Width
()
-
(
4
*
nDistance
));
const
sal_Int32
nAvailableLength
(
aOutputSize
.
Width
()
-
(
4
*
nDistance
));
// create DrawOb
j
ectA
// create DrawObectA
const
sal_Int32
aYPosA
(
aOutputSize
.
Height
()
/
2
);
const
sal_Int32
aYPosA
(
aOutputSize
.
Height
()
/
2
);
const
basegfx
::
B2DPoint
aPointA1
(
nDistance
,
aYPosA
);
const
basegfx
::
B2DPoint
aPointA1
(
nDistance
,
aYPosA
);
const
basegfx
::
B2DPoint
aPointA2
(
aPointA1
.
getX
()
+
((
nAvailableLength
*
14
)
/
20
),
aYPosA
);
const
basegfx
::
B2DPoint
aPointA2
(
aPointA1
.
getX
()
+
((
nAvailableLength
*
14
)
/
20
),
aYPosA
);
basegfx
::
B2DPolygon
aPolygonA
;
basegfx
::
B2DPolygon
aPolygonA
;
aPolygonA
.
append
(
aPointA1
);
aPolygonA
.
append
(
aPointA1
);
aPolygonA
.
append
(
aPointA2
);
aPolygonA
.
append
(
aPointA2
);
mpLineObjA
=
new
SdrPathObj
(
OBJ_LINE
,
basegfx
::
B2DPolyPolygon
(
aPolygonA
));
mpLineObjA
->
SetPathPoly
(
basegfx
::
B2DPolyPolygon
(
aPolygonA
));
mpLineObjA
->
SetModel
(
&
getModel
());
// create DrawObectB
// create DrawObectB
const
sal_Int32
aYPosB1
((
aOutputSize
.
Height
()
*
3
)
/
4
);
const
sal_Int32
aYPosB1
((
aOutputSize
.
Height
()
*
3
)
/
4
);
...
@@ -1922,26 +1904,44 @@ mbWithSymbol( sal_False )
...
@@ -1922,26 +1904,44 @@ mbWithSymbol( sal_False )
aPolygonB
.
append
(
aPointB1
);
aPolygonB
.
append
(
aPointB1
);
aPolygonB
.
append
(
aPointB2
);
aPolygonB
.
append
(
aPointB2
);
aPolygonB
.
append
(
aPointB3
);
aPolygonB
.
append
(
aPointB3
);
mpLineObjB
=
new
SdrPathObj
(
OBJ_PLIN
,
basegfx
::
B2DPolyPolygon
(
aPolygonB
));
mpLineObjB
->
SetPathPoly
(
basegfx
::
B2DPolyPolygon
(
aPolygonB
));
mpLineObjB
->
SetModel
(
&
getModel
());
// create DrawObectC
// create DrawObectC
basegfx
::
B2DPolygon
aPolygonC
;
const
basegfx
::
B2DPoint
aPointC1
(
aPointB3
.
getX
()
+
nDistance
,
aYPosB1
);
const
basegfx
::
B2DPoint
aPointC1
(
aPointB3
.
getX
()
+
nDistance
,
aYPosB1
);
const
basegfx
::
B2DPoint
aPointC2
(
aPointC1
.
getX
()
+
((
nAvailableLength
*
1
)
/
20
),
aYPosB2
);
const
basegfx
::
B2DPoint
aPointC2
(
aPointC1
.
getX
()
+
((
nAvailableLength
*
1
)
/
20
),
aYPosB2
);
const
basegfx
::
B2DPoint
aPointC3
(
aPointC2
.
getX
()
+
((
nAvailableLength
*
1
)
/
20
),
aYPosB1
);
const
basegfx
::
B2DPoint
aPointC3
(
aPointC2
.
getX
()
+
((
nAvailableLength
*
1
)
/
20
),
aYPosB1
);
basegfx
::
B2DPolygon
aPolygonC
;
aPolygonC
.
append
(
aPointC1
);
aPolygonC
.
append
(
aPointC1
);
aPolygonC
.
append
(
aPointC2
);
aPolygonC
.
append
(
aPointC2
);
aPolygonC
.
append
(
aPointC3
);
aPolygonC
.
append
(
aPointC3
);
mpLineObjC
=
new
SdrPathObj
(
OBJ_PLIN
,
basegfx
::
B2DPolyPolygon
(
aPolygonC
));
mpLineObjC
->
SetPathPoly
(
basegfx
::
B2DPolyPolygon
(
aPolygonC
));
}
SvxXLinePreview
::
SvxXLinePreview
(
Window
*
pParent
)
:
SvxPreviewBase
(
pParent
)
,
mpLineObjA
(
NULL
)
,
mpLineObjB
(
NULL
)
,
mpLineObjC
(
NULL
)
,
mpGraphic
(
NULL
)
,
mbWithSymbol
(
false
)
{
InitSettings
(
true
,
true
);
mpLineObjA
=
new
SdrPathObj
(
OBJ_LINE
);
mpLineObjA
->
SetModel
(
&
getModel
());
mpLineObjB
=
new
SdrPathObj
(
OBJ_PLIN
);
mpLineObjB
->
SetModel
(
&
getModel
());
mpLineObjC
=
new
SdrPathObj
(
OBJ_PLIN
);
mpLineObjC
->
SetModel
(
&
getModel
());
mpLineObjC
->
SetModel
(
&
getModel
());
}
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
Window
*
SAL_CALL
makeSvxXLinePreview
(
Window
*
pParent
,
VclBuilder
::
stringmap
&
)
extern
"C"
SAL_DLLPUBLIC_EXPORT
Window
*
SAL_CALL
makeSvxXLinePreview
(
Window
*
pParent
,
VclBuilder
::
stringmap
&
)
{
{
return
new
SvxXLinePreview
(
pParent
);
return
new
SvxXLinePreview
(
pParent
);
}
}
SvxXLinePreview
::~
SvxXLinePreview
()
SvxXLinePreview
::~
SvxXLinePreview
()
{
{
SdrObject
*
pFoo
=
mpLineObjA
;
SdrObject
*
pFoo
=
mpLineObjA
;
...
...
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