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
f4f99f5c
Kaydet (Commit)
f4f99f5c
authored
Tem 16, 2013
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sidebar: PosSizePropertyPanel follow-up fixes.
Change-Id: I80309119e7d0e217b3fd29535543987ac7140994
üst
6867a80c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
31 deletions
+16
-31
PosSizePropertyPanel.cxx
svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+14
-29
sidebarpossize.ui
svx/uiconfig/ui/sidebarpossize.ui
+2
-2
No files found.
svx/source/sidebar/possize/PosSizePropertyPanel.cxx
Dosyayı görüntüle @
f4f99f5c
...
...
@@ -36,7 +36,6 @@
#include <vcl/toolbox.hxx>
#include <svl/aeitem.hxx>
#include <svx/svdview.hxx>
//#include <svx/uiconfig/ui/sidebarpossize.ui>
using
namespace
css
;
using
namespace
cssu
;
...
...
@@ -45,9 +44,7 @@ using ::sfx2::sidebar::Theme;
const
char
UNO_FLIPHORIZONTAL
[]
=
".uno:FlipHorizontal"
;
const
char
UNO_FLIPVERTICAL
[]
=
".uno:FlipVertical"
;
#define A2S(pString) (::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(pString)))
#define USERITEM_NAME rtl::OUString::createFromAscii("FitItem")
const
char
USERITEM_NAME
[]
=
"FitItem"
;
namespace
svx
{
namespace
sidebar
{
...
...
@@ -192,16 +189,6 @@ void PosSizePropertyPanel::Initialize()
//flip:
mpFlipTbx
->
SetSelectHdl
(
LINK
(
this
,
PosSizePropertyPanel
,
FlipHdl
)
);
const
sal_uInt16
nIdFlipHorizontal
=
mpFlipTbx
->
GetItemId
(
UNO_FLIPHORIZONTAL
);
const
sal_uInt16
nIdFlipVertical
=
mpFlipTbx
->
GetItemId
(
UNO_FLIPVERTICAL
);
mpFlipTbx
->
SetItemImage
(
nIdFlipHorizontal
,
GetImage
(
mxFrame
,
A2S
(
".uno:FlipHorizontal"
),
sal_False
));
mpFlipTbx
->
SetItemImage
(
nIdFlipVertical
,
GetImage
(
mxFrame
,
A2S
(
".uno:FlipVertical"
),
sal_False
));
mpMtrPosX
->
SetAccessibleRelationLabeledBy
(
mpFtPosX
);
mpMtrPosY
->
SetAccessibleRelationLabeledBy
(
mpFtPosY
);
mpMtrWidth
->
SetAccessibleRelationLabeledBy
(
mpFtWidth
);
...
...
@@ -265,11 +252,11 @@ PosSizePropertyPanel* PosSizePropertyPanel::Create (
const
cssu
::
Reference
<
css
::
ui
::
XSidebar
>&
rxSidebar
)
{
if
(
pParent
==
NULL
)
throw
lang
::
IllegalArgumentException
(
A2S
(
"no parent Window given to PosSizePropertyPanel::Create"
)
,
NULL
,
0
);
throw
lang
::
IllegalArgumentException
(
"no parent Window given to PosSizePropertyPanel::Create"
,
NULL
,
0
);
if
(
!
rxFrame
.
is
())
throw
lang
::
IllegalArgumentException
(
A2S
(
"no XFrame given to PosSizePropertyPanel::Create"
)
,
NULL
,
1
);
throw
lang
::
IllegalArgumentException
(
"no XFrame given to PosSizePropertyPanel::Create"
,
NULL
,
1
);
if
(
pBindings
==
NULL
)
throw
lang
::
IllegalArgumentException
(
A2S
(
"no SfxBindings given to PosSizePropertyPanel::Create"
)
,
NULL
,
2
);
throw
lang
::
IllegalArgumentException
(
"no SfxBindings given to PosSizePropertyPanel::Create"
,
NULL
,
2
);
return
new
PosSizePropertyPanel
(
pParent
,
...
...
@@ -572,20 +559,20 @@ IMPL_LINK( PosSizePropertyPanel, RotationHdl, void *, EMPTYARG )
IMPL_LINK
(
PosSizePropertyPanel
,
FlipHdl
,
ToolBox
*
,
pBox
)
{
const
OUString
aCommand
(
pBox
->
GetItemCommand
(
pBox
->
GetCurItemId
()));
if
(
aCommand
==
UNO_FLIPHORIZONTAL
)
{
if
(
aCommand
==
UNO_FLIPHORIZONTAL
)
{
SfxVoidItem
aHoriItem
(
SID_FLIP_HORIZONTAL
);
GetBindings
()
->
GetDispatcher
()
->
Execute
(
SfxVoidItem
aHoriItem
(
SID_FLIP_HORIZONTAL
);
GetBindings
()
->
GetDispatcher
()
->
Execute
(
SID_FLIP_HORIZONTAL
,
SFX_CALLMODE_RECORD
,
&
aHoriItem
,
0L
);
}
else
if
(
aCommand
==
UNO_FLIPVERTICAL
)
{
SfxVoidItem
aVertItem
(
SID_FLIP_VERTICAL
);
GetBindings
()
->
GetDispatcher
()
->
Execute
(
}
else
if
(
aCommand
==
UNO_FLIPVERTICAL
)
{
SfxVoidItem
aVertItem
(
SID_FLIP_VERTICAL
);
GetBindings
()
->
GetDispatcher
()
->
Execute
(
SID_FLIP_VERTICAL
,
SFX_CALLMODE_RECORD
,
&
aVertItem
,
0L
);
}
}
return
0
;
}
...
...
@@ -1186,5 +1173,3 @@ void PosSizePropertyPanel::DisableControls()
}
}
// end of namespace svx::sidebar
// eof
svx/uiconfig/ui/sidebarpossize.ui
Dosyayı görüntüle @
f4f99f5c
...
...
@@ -176,7 +176,7 @@
<property
name=
"can_focus"
>
False
</property>
<property
name=
"orientation"
>
vertical
</property>
<child>
<object
class=
"GtkComboBox"
id=
"rotation:
degrees"
>
<object
class=
"GtkComboBox"
id=
"rotation:
0
degrees"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"tooltip_markup"
translatable=
"yes"
>
Select the angle for rotation.
</property>
...
...
@@ -218,7 +218,7 @@
<property
name=
"can_focus"
>
False
</property>
<property
name=
"tooltip_markup"
translatable=
"yes"
>
Flip the selected object vertically.
</property>
<property
name=
"tooltip_text"
translatable=
"yes"
>
Flip the selected object vertically.
</property>
<property
name=
"action_name"
>
.uno:FlipVertical
</property>
<property
name=
"action_name"
>
.uno:FlipVertical
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
<packing>
...
...
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