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
a5aab0cc
Kaydet (Commit)
a5aab0cc
authored
Eyl 10, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
GetSelectedFlyFrm+GetCurrFlyFrm -> GetSelectedOrCurrFlyFrm
Change-Id: I4348c4cf54dcd5504c52cf8ab550572257eef50b
üst
7473aacc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
30 deletions
+25
-30
fesh.hxx
sw/inc/fesh.hxx
+5
-2
fefly1.cxx
sw/source/core/frmedt/fefly1.cxx
+20
-28
No files found.
sw/inc/fesh.hxx
Dosyayı görüntüle @
a5aab0cc
...
@@ -395,10 +395,13 @@ public:
...
@@ -395,10 +395,13 @@ public:
void
SetFrameFormat
(
SwFrameFormat
*
pFormat
,
bool
bKeepOrient
=
false
,
Point
*
pDocPos
=
0
);
///< If frame then set frame style.
void
SetFrameFormat
(
SwFrameFormat
*
pFormat
,
bool
bKeepOrient
=
false
,
Point
*
pDocPos
=
0
);
///< If frame then set frame style.
// Get selected fly
// Get selected fly
SwFlyFrm
*
GetSelectedFlyFrm
()
const
;
SwFlyFrm
*
GetSelectedFlyFrm
()
const
;
// Get current fly in which the cursor is positioned
// Get current fly in which the cursor is positioned
SwFlyFrm
*
GetCurrFlyFrm
(
const
bool
bCalcFrm
=
true
)
const
;
SwFlyFrm
*
GetCurrFlyFrm
(
const
bool
bCalcFrm
=
true
)
const
;
// Get selected fly, but if none Get current fly in which the cursor is positioned
SwFlyFrm
*
GetSelectedOrCurrFlyFrm
(
const
bool
bCalcFrm
=
true
)
const
;
/// Find/delete fly containing the cursor.
/// Find/delete fly containing the cursor.
SwFrameFormat
*
WizardGetFly
();
SwFrameFormat
*
WizardGetFly
();
...
...
sw/source/core/frmedt/fefly1.cxx
Dosyayı görüntüle @
a5aab0cc
...
@@ -255,7 +255,7 @@ void SwFEShell::SelectFlyFrm( SwFlyFrm& rFrm, bool bNew )
...
@@ -255,7 +255,7 @@ void SwFEShell::SelectFlyFrm( SwFlyFrm& rFrm, bool bNew )
}
}
// Get selected fly
// Get selected fly
SwFlyFrm
*
SwFEShell
::
GetSelectedFlyFrm
()
const
SwFlyFrm
*
SwFEShell
::
GetSelectedFlyFrm
()
const
{
{
if
(
Imp
()
->
HasDrawView
()
)
if
(
Imp
()
->
HasDrawView
()
)
{
{
...
@@ -271,12 +271,21 @@ SwFlyFrm *SwFEShell::GetSelectedFlyFrm() const
...
@@ -271,12 +271,21 @@ SwFlyFrm *SwFEShell::GetSelectedFlyFrm() const
}
}
// Get current fly in which the cursor is positioned
// Get current fly in which the cursor is positioned
SwFlyFrm
*
SwFEShell
::
GetCurrFlyFrm
(
const
bool
bCalcFrm
)
const
SwFlyFrm
*
SwFEShell
::
GetCurrFlyFrm
(
const
bool
bCalcFrm
)
const
{
{
SwContentFrm
*
pContent
=
GetCurrFrm
(
bCalcFrm
);
SwContentFrm
*
pContent
=
GetCurrFrm
(
bCalcFrm
);
return
pContent
?
pContent
->
FindFlyFrm
()
:
0
;
return
pContent
?
pContent
->
FindFlyFrm
()
:
0
;
}
}
// Get selected fly, but if none Get current fly in which the cursor is positioned
SwFlyFrm
*
SwFEShell
::
GetSelectedOrCurrFlyFrm
(
const
bool
bCalcFrm
)
const
{
SwFlyFrm
*
pFly
=
GetSelectedFlyFrm
();
if
(
pFly
)
return
pFly
;
return
GetCurrFlyFrm
(
bCalcFrm
);
}
// Returns non-null pointer, if the current Fly could be anchored to another one (so it is inside)
// Returns non-null pointer, if the current Fly could be anchored to another one (so it is inside)
const
SwFrameFormat
*
SwFEShell
::
IsFlyInFly
()
const
SwFrameFormat
*
SwFEShell
::
IsFlyInFly
()
{
{
...
@@ -969,15 +978,11 @@ void SwFEShell::SetPageObjsNewPage( std::vector<SwFrameFormat*>& rFillArr, int n
...
@@ -969,15 +978,11 @@ void SwFEShell::SetPageObjsNewPage( std::vector<SwFrameFormat*>& rFillArr, int n
// wrong place or which are ambiguous (multiple selections) will be removed.
// wrong place or which are ambiguous (multiple selections) will be removed.
bool
SwFEShell
::
GetFlyFrmAttr
(
SfxItemSet
&
rSet
)
const
bool
SwFEShell
::
GetFlyFrmAttr
(
SfxItemSet
&
rSet
)
const
{
{
SwFlyFrm
*
pFly
=
GetSelectedFlyFrm
();
SwFlyFrm
*
pFly
=
GetSelected
OrCurr
FlyFrm
();
if
(
!
pFly
)
if
(
!
pFly
)
{
{
pFly
=
GetCurrFlyFrm
();
OSL_ENSURE
(
false
,
"GetFlyFrmAttr, no Fly selected."
);
if
(
!
pFly
)
return
false
;
{
OSL_ENSURE
(
false
,
"GetFlyFrmAttr, no Fly selected."
);
return
false
;
}
}
}
SET_CURR_SHELL
(
const_cast
<
SwViewShell
*>
(
static_cast
<
SwViewShell
const
*>
(
this
))
);
SET_CURR_SHELL
(
const_cast
<
SwViewShell
*>
(
static_cast
<
SwViewShell
const
*>
(
this
))
);
...
@@ -1021,12 +1026,8 @@ bool SwFEShell::SetFlyFrmAttr( SfxItemSet& rSet )
...
@@ -1021,12 +1026,8 @@ bool SwFEShell::SetFlyFrmAttr( SfxItemSet& rSet )
if
(
rSet
.
Count
()
)
if
(
rSet
.
Count
()
)
{
{
SwFlyFrm
*
pFly
=
GetSelectedFlyFrm
();
SwFlyFrm
*
pFly
=
GetSelectedOrCurrFlyFrm
();
if
(
!
pFly
)
OSL_ENSURE
(
pFly
,
"SetFlyFrmAttr, no Fly selected."
);
{
pFly
=
GetCurrFlyFrm
();
OSL_ENSURE
(
pFly
,
"SetFlyFrmAttr, no Fly selected."
);
}
if
(
pFly
)
if
(
pFly
)
{
{
StartAllAction
();
StartAllAction
();
...
@@ -1100,13 +1101,8 @@ bool SwFEShell::ResetFlyFrmAttr( sal_uInt16 nWhich, const SfxItemSet* pSet )
...
@@ -1100,13 +1101,8 @@ bool SwFEShell::ResetFlyFrmAttr( sal_uInt16 nWhich, const SfxItemSet* pSet )
{
{
SET_CURR_SHELL
(
this
);
SET_CURR_SHELL
(
this
);
SwFlyFrm
*
pFly
=
GetSelectedFlyFrm
();
SwFlyFrm
*
pFly
=
GetSelectedOrCurrFlyFrm
();
if
(
!
pFly
)
OSL_ENSURE
(
pFly
,
"SetFlyFrmAttr, no Fly selected."
);
{
pFly
=
GetCurrFlyFrm
();
OSL_ENSURE
(
pFly
,
"SetFlyFrmAttr, no Fly selected."
);
}
if
(
pFly
)
if
(
pFly
)
{
{
StartAllAction
();
StartAllAction
();
...
@@ -1193,9 +1189,7 @@ void SwFEShell::SetFrameFormat( SwFrameFormat *pNewFormat, bool bKeepOrient, Poi
...
@@ -1193,9 +1189,7 @@ void SwFEShell::SetFrameFormat( SwFrameFormat *pNewFormat, bool bKeepOrient, Poi
const
SwFrameFormat
*
SwFEShell
::
GetFlyFrameFormat
()
const
const
SwFrameFormat
*
SwFEShell
::
GetFlyFrameFormat
()
const
{
{
const
SwFlyFrm
*
pFly
=
GetSelectedFlyFrm
();
const
SwFlyFrm
*
pFly
=
GetSelectedOrCurrFlyFrm
();
if
(
!
pFly
)
pFly
=
GetCurrFlyFrm
();
if
(
pFly
)
if
(
pFly
)
return
pFly
->
GetFormat
();
return
pFly
->
GetFormat
();
return
0
;
return
0
;
...
@@ -1203,9 +1197,7 @@ const SwFrameFormat* SwFEShell::GetFlyFrameFormat() const
...
@@ -1203,9 +1197,7 @@ const SwFrameFormat* SwFEShell::GetFlyFrameFormat() const
SwFrameFormat
*
SwFEShell
::
GetFlyFrameFormat
()
SwFrameFormat
*
SwFEShell
::
GetFlyFrameFormat
()
{
{
SwFlyFrm
*
pFly
=
GetSelectedFlyFrm
();
SwFlyFrm
*
pFly
=
GetSelectedOrCurrFlyFrm
();
if
(
!
pFly
)
pFly
=
GetCurrFlyFrm
();
if
(
pFly
)
if
(
pFly
)
return
pFly
->
GetFormat
();
return
pFly
->
GetFormat
();
return
0
;
return
0
;
...
...
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