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
de661fd7
Kaydet (Commit)
de661fd7
authored
Eki 16, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add a makeSwRulerValueSet for custom SwRulerValueSet widget
Change-Id: Id13086906e2f66de45356baa7593b6d0e7657714
üst
c648d428
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
13 deletions
+52
-13
numvset.hxx
svx/inc/svx/numvset.hxx
+8
-1
svxbmpnumvalueset.cxx
svx/source/dialog/svxbmpnumvalueset.cxx
+29
-9
swvset.hxx
sw/source/ui/inc/swvset.hxx
+1
-0
insrule.cxx
sw/source/ui/misc/insrule.cxx
+14
-3
No files found.
svx/inc/svx/numvset.hxx
Dosyayı görüntüle @
de661fd7
...
...
@@ -64,8 +64,12 @@ class SVX_DLLPUBLIC SvxNumValueSet : public ValueSet
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
container
::
XIndexAccess
>
>
aOutlineSettings
;
void
init
(
sal_uInt16
nType
);
public
:
SvxNumValueSet
(
Window
*
pParent
,
const
ResId
&
rResId
,
sal_uInt16
nType
);
SvxNumValueSet
(
Window
*
pParent
,
sal_uInt16
nType
);
~
SvxNumValueSet
();
virtual
void
UserDraw
(
const
UserDrawEvent
&
rUDEvt
);
...
...
@@ -92,6 +96,8 @@ class SVX_DLLPUBLIC SvxBmpNumValueSet : public SvxNumValueSet
Timer
aFormatTimer
;
sal_Bool
bGrfNotFound
;
void
init
();
protected
:
DECL_LINK
(
FormatHdl_Impl
,
void
*
);
...
...
@@ -101,7 +107,8 @@ class SVX_DLLPUBLIC SvxBmpNumValueSet : public SvxNumValueSet
Timer
&
GetFormatTimer
()
{
return
aFormatTimer
;}
public
:
SvxBmpNumValueSet
(
Window
*
pParent
,
const
ResId
&
rResId
);
SvxBmpNumValueSet
(
Window
*
pParent
,
const
ResId
&
rResId
);
SvxBmpNumValueSet
(
Window
*
pParent
);
~
SvxBmpNumValueSet
();
virtual
void
UserDraw
(
const
UserDrawEvent
&
rUDEvt
);
...
...
svx/source/dialog/svxbmpnumvalueset.cxx
Dosyayı görüntüle @
de661fd7
...
...
@@ -402,15 +402,25 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt )
pDev
->
SetLineColor
(
aOldColor
);
}
SvxNumValueSet
::
SvxNumValueSet
(
Window
*
pParent
,
const
ResId
&
rResId
,
sal_uInt16
nType
)
:
SvxNumValueSet
::
SvxNumValueSet
(
Window
*
pParent
,
const
ResId
&
rResId
,
sal_uInt16
nType
)
:
ValueSet
(
pParent
,
rResId
)
{
init
(
nType
);
}
ValueSet
(
pParent
,
rResId
),
SvxNumValueSet
::
SvxNumValueSet
(
Window
*
pParent
,
sal_uInt16
nType
)
:
ValueSet
(
pParent
)
{
init
(
nType
);
}
aLineColor
(
COL_LIGHTGRAY
),
nPageType
(
nType
),
bHTMLMode
(
sal_False
),
pVDev
(
NULL
)
void
SvxNumValueSet
::
init
(
sal_uInt16
nType
)
{
aLineColor
=
COL_LIGHTGRAY
;
nPageType
=
nType
;
bHTMLMode
=
sal_False
;
pVDev
=
NULL
;
SetColCount
(
4
);
SetLineCount
(
2
);
SetStyle
(
GetStyle
()
|
WB_ITEMBORDER
|
WB_DOUBLEBORDER
);
...
...
@@ -465,12 +475,21 @@ void SvxNumValueSet::SetOutlineNumberingSettings(
}
}
SvxBmpNumValueSet
::
SvxBmpNumValueSet
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
SvxBmpNumValueSet
::
SvxBmpNumValueSet
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
SvxNumValueSet
(
pParent
,
rResId
,
NUM_PAGETYPE_BMP
)
{
init
();
}
SvxNumValueSet
(
pParent
,
rResId
,
NUM_PAGETYPE_BMP
),
bGrfNotFound
(
sal_False
)
SvxBmpNumValueSet
::
SvxBmpNumValueSet
(
Window
*
pParent
)
:
SvxNumValueSet
(
pParent
,
NUM_PAGETYPE_BMP
)
{
init
();
}
void
SvxBmpNumValueSet
::
init
()
{
bGrfNotFound
=
sal_False
;
GalleryExplorer
::
BeginLocking
(
GALLERY_THEME_BULLETS
);
SetStyle
(
GetStyle
()
|
WB_VSCROLL
);
SetLineCount
(
3
);
...
...
@@ -478,6 +497,7 @@ SvxBmpNumValueSet::SvxBmpNumValueSet( Window* pParent, const ResId& rResId ) :
aFormatTimer
.
SetTimeoutHdl
(
LINK
(
this
,
SvxBmpNumValueSet
,
FormatHdl_Impl
));
}
SvxBmpNumValueSet
::~
SvxBmpNumValueSet
()
{
GalleryExplorer
::
EndLocking
(
GALLERY_THEME_BULLETS
);
...
...
sw/source/ui/inc/swvset.hxx
Dosyayı görüntüle @
de661fd7
...
...
@@ -25,6 +25,7 @@ class SwRulerValueSet : public SvxBmpNumValueSet
public
:
SwRulerValueSet
(
Window
*
pParent
,
const
ResId
&
rResId
);
SwRulerValueSet
(
Window
*
pParent
);
~
SwRulerValueSet
();
virtual
void
UserDraw
(
const
UserDrawEvent
&
rUDEvt
);
};
...
...
sw/source/ui/misc/insrule.cxx
Dosyayı görüntüle @
de661fd7
...
...
@@ -100,10 +100,21 @@ IMPL_LINK(SwInsertGrfRulerDlg, SelectHdl, ValueSet*, pVS)
return
0
;
}
SwRulerValueSet
::
SwRulerValueSet
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
SvxBmpNumValueSet
(
pParent
,
rResId
)
SwRulerValueSet
::
SwRulerValueSet
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
SvxBmpNumValueSet
(
pParent
,
rResId
)
{
SetStyle
(
GetStyle
()
&
~
WB_ITEMBORDER
);
SetStyle
(
GetStyle
()
&
~
WB_ITEMBORDER
);
}
SwRulerValueSet
::
SwRulerValueSet
(
Window
*
pParent
)
:
SvxBmpNumValueSet
(
pParent
)
{
SetStyle
(
GetStyle
()
&
~
WB_ITEMBORDER
);
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
Window
*
SAL_CALL
makeSwRulerValueSet
(
Window
*
pParent
,
VclBuilder
::
stringmap
&
)
{
return
new
SwRulerValueSet
(
pParent
);
}
SwRulerValueSet
::~
SwRulerValueSet
()
...
...
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