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
c4484a82
Kaydet (Commit)
c4484a82
authored
Eki 19, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: I1d8fe58c589b56590453b2136296ca50bfe78252
üst
2e5427ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
27 deletions
+25
-27
cuigrfflt.cxx
cui/source/dialogs/cuigrfflt.cxx
+17
-19
cuigrfflt.hxx
cui/source/inc/cuigrfflt.hxx
+8
-8
No files found.
cui/source/dialogs/cuigrfflt.cxx
Dosyayı görüntüle @
c4484a82
...
...
@@ -123,7 +123,7 @@ void GraphicPreviewWindow::ScaleImageToFit()
}
}
maModifyHdl
.
Call
(
this
);
maModifyHdl
.
Call
(
nullptr
);
}
void
GraphicPreviewWindow
::
Resize
()
...
...
@@ -170,15 +170,13 @@ IMPL_LINK_NOARG_TYPED(GraphicFilterDialog, ImplPreviewTimeoutHdl, Timer *, void)
IMPL_LINK_NOARG
(
GraphicFilterDialog
,
ImplModifyHdl
)
IMPL_LINK_NOARG
_TYPED
(
GraphicFilterDialog
,
ImplModifyHdl
,
LinkParamNone
*
,
void
)
{
if
(
bIsBitmap
)
{
maTimer
.
Stop
();
maTimer
.
Start
();
}
return
0
;
}
...
...
@@ -208,14 +206,14 @@ GraphicFilterMosaic::GraphicFilterMosaic( vcl::Window* pParent, const Graphic& r
mpMtrWidth
->
GrabFocus
();
}
IMPL_LINK_
TYPED
(
GraphicFilterMosaic
,
CheckBoxModifyHdl
,
CheckBox
&
,
rCheckBox
,
void
)
IMPL_LINK_
NOARG_TYPED
(
GraphicFilterMosaic
,
CheckBoxModifyHdl
,
CheckBox
&
,
void
)
{
GetModifyHdl
().
Call
(
&
rCheckBox
);
GetModifyHdl
().
Call
(
nullptr
);
}
IMPL_LINK_
TYPED
(
GraphicFilterMosaic
,
EditModifyHdl
,
Edit
&
,
rEdit
,
void
)
IMPL_LINK_
NOARG_TYPED
(
GraphicFilterMosaic
,
EditModifyHdl
,
Edit
&
,
void
)
{
GetModifyHdl
().
Call
(
&
rEdit
);
GetModifyHdl
().
Call
(
nullptr
);
}
GraphicFilterMosaic
::~
GraphicFilterMosaic
()
...
...
@@ -282,9 +280,9 @@ GraphicFilterSmooth::GraphicFilterSmooth( vcl::Window* pParent, const Graphic& r
mpMtrRadius
->
GrabFocus
();
}
IMPL_LINK_
TYPED
(
GraphicFilterSmooth
,
EditModifyHdl
,
Edit
&
,
rEdit
,
void
)
IMPL_LINK_
NOARG_TYPED
(
GraphicFilterSmooth
,
EditModifyHdl
,
Edit
&
,
void
)
{
GetModifyHdl
().
Call
(
&
rEdit
);
GetModifyHdl
().
Call
(
nullptr
);
}
GraphicFilterSmooth
::~
GraphicFilterSmooth
()
...
...
@@ -345,13 +343,13 @@ GraphicFilterSolarize::GraphicFilterSolarize( vcl::Window* pParent, const Graphi
mpCbxInvert
->
SetToggleHdl
(
LINK
(
this
,
GraphicFilterSolarize
,
CheckBoxModifyHdl
)
);
}
IMPL_LINK_
TYPED
(
GraphicFilterSolarize
,
CheckBoxModifyHdl
,
CheckBox
&
,
rCheckBox
,
void
)
IMPL_LINK_
NOARG_TYPED
(
GraphicFilterSolarize
,
CheckBoxModifyHdl
,
CheckBox
&
,
void
)
{
GetModifyHdl
().
Call
(
&
rCheckBox
);
GetModifyHdl
().
Call
(
nullptr
);
}
IMPL_LINK_
TYPED
(
GraphicFilterSolarize
,
EditModifyHdl
,
Edit
&
,
rEdit
,
void
)
IMPL_LINK_
NOARG_TYPED
(
GraphicFilterSolarize
,
EditModifyHdl
,
Edit
&
,
void
)
{
GetModifyHdl
().
Call
(
&
rEdit
);
GetModifyHdl
().
Call
(
nullptr
);
}
GraphicFilterSolarize
::~
GraphicFilterSolarize
()
...
...
@@ -416,9 +414,9 @@ GraphicFilterSepia::GraphicFilterSepia( vcl::Window* pParent, const Graphic& rGr
mpMtrSepia
->
SetModifyHdl
(
LINK
(
this
,
GraphicFilterSepia
,
EditModifyHdl
)
);
}
IMPL_LINK_
TYPED
(
GraphicFilterSepia
,
EditModifyHdl
,
Edit
&
,
rEdit
,
void
)
IMPL_LINK_
NOARG_TYPED
(
GraphicFilterSepia
,
EditModifyHdl
,
Edit
&
,
void
)
{
GetModifyHdl
().
Call
(
&
rEdit
);
GetModifyHdl
().
Call
(
nullptr
);
}
GraphicFilterSepia
::~
GraphicFilterSepia
()
...
...
@@ -474,9 +472,9 @@ GraphicFilterPoster::GraphicFilterPoster(vcl::Window* pParent, const Graphic& rG
mpNumPoster
->
SetModifyHdl
(
LINK
(
this
,
GraphicFilterPoster
,
EditModifyHdl
)
);
}
IMPL_LINK_
TYPED
(
GraphicFilterPoster
,
EditModifyHdl
,
Edit
&
,
rEdit
,
void
)
IMPL_LINK_
NOARG_TYPED
(
GraphicFilterPoster
,
EditModifyHdl
,
Edit
&
,
void
)
{
GetModifyHdl
().
Call
(
&
rEdit
);
GetModifyHdl
().
Call
(
nullptr
);
}
GraphicFilterPoster
::~
GraphicFilterPoster
()
...
...
@@ -526,7 +524,7 @@ void EmbossControl::MouseButtonDown( const MouseEvent& rEvt )
SvxRectCtl
::
MouseButtonDown
(
rEvt
);
if
(
GetActualRP
()
!=
eOldRP
)
maModifyHdl
.
Call
(
this
);
maModifyHdl
.
Call
(
nullptr
);
}
Size
EmbossControl
::
GetOptimalSize
()
const
...
...
cui/source/inc/cuigrfflt.hxx
Dosyayı görüntüle @
c4484a82
...
...
@@ -36,7 +36,7 @@ class GraphicPreviewWindow : public Control
{
private
:
const
Graphic
*
mpOrigGraphic
;
Link
<>
maModifyHdl
;
Link
<
LinkParamNone
*
,
void
>
maModifyHdl
;
Graphic
maScaledOrig
;
Graphic
maPreview
;
double
mfScaleX
;
...
...
@@ -51,7 +51,7 @@ private:
public
:
GraphicPreviewWindow
(
vcl
::
Window
*
pParent
,
WinBits
nStyle
);
void
init
(
const
Graphic
*
pOrigGraphic
,
const
Link
<>&
rLink
)
void
init
(
const
Graphic
*
pOrigGraphic
,
const
Link
<
LinkParamNone
*
,
void
>&
rLink
)
{
mpOrigGraphic
=
pOrigGraphic
;
maModifyHdl
=
rLink
;
...
...
@@ -69,17 +69,17 @@ class GraphicFilterDialog : public ModalDialog
private
:
Timer
maTimer
;
Link
<
>
maModifyHdl
;
Link
<
LinkParamNone
*
,
void
>
maModifyHdl
;
Size
maSizePixel
;
bool
bIsBitmap
;
DECL_LINK_TYPED
(
ImplPreviewTimeoutHdl
,
Timer
*
,
void
);
DECL_LINK
(
ImplModifyHdl
,
void
*
);
DECL_LINK_TYPED
(
ImplPreviewTimeoutHdl
,
Timer
*
,
void
);
DECL_LINK
_TYPED
(
ImplModifyHdl
,
LinkParamNone
*
,
void
);
protected
:
VclPtr
<
GraphicPreviewWindow
>
mpPreview
;
const
Link
<>&
GetModifyHdl
()
const
{
return
maModifyHdl
;
}
const
Link
<
LinkParamNone
*
,
void
>&
GetModifyHdl
()
const
{
return
maModifyHdl
;
}
const
Size
&
GetGraphicSizePixel
()
const
{
return
maSizePixel
;
}
public
:
...
...
@@ -183,14 +183,14 @@ public:
class
EmbossControl
:
public
SvxRectCtl
{
private
:
Link
<
>
maModifyHdl
;
Link
<
LinkParamNone
*
,
void
>
maModifyHdl
;
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rEvt
)
override
;
virtual
Size
GetOptimalSize
()
const
override
;
public
:
EmbossControl
(
vcl
::
Window
*
pParent
)
:
SvxRectCtl
(
pParent
)
{}
void
SetModifyHdl
(
const
Link
<>&
rHdl
)
{
maModifyHdl
=
rHdl
;
}
void
SetModifyHdl
(
const
Link
<
LinkParamNone
*
,
void
>&
rHdl
)
{
maModifyHdl
=
rHdl
;
}
};
class
GraphicFilterEmboss
:
public
GraphicFilterDialog
...
...
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