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
0f9190b1
Kaydet (Commit)
0f9190b1
authored
Nis 08, 2013
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: Idc97443436502eea5dec27d553374475a22bd7ce
üst
1155f024
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
60 additions
and
60 deletions
+60
-60
svdotext.cxx
svx/source/svdraw/svdotext.cxx
+3
-3
svdotxln.cxx
svx/source/svdraw/svdotxln.cxx
+7
-7
svdpage.cxx
svx/source/svdraw/svdpage.cxx
+2
-2
svdpagv.cxx
svx/source/svdraw/svdpagv.cxx
+2
-2
svdpntv.cxx
svx/source/svdraw/svdpntv.cxx
+7
-7
svdpoev.cxx
svx/source/svdraw/svdpoev.cxx
+3
-3
svdtext.cxx
svx/source/svdraw/svdtext.cxx
+2
-2
svdundo.cxx
svx/source/svdraw/svdundo.cxx
+4
-4
svdview.cxx
svx/source/svdraw/svdview.cxx
+24
-24
svdxcgv.cxx
svx/source/svdraw/svdxcgv.cxx
+6
-6
No files found.
svx/source/svdraw/svdotext.cxx
Dosyayı görüntüle @
0f9190b1
...
...
@@ -748,7 +748,7 @@ void SdrTextObj::TakeTextRect( SdrOutliner& rOutliner, Rectangle& rTextRect, boo
if
(
pPara
)
{
sal_Bool
bHitTest
=
sal_F
alse
;
bool
bHitTest
=
f
alse
;
if
(
pModel
)
bHitTest
=
&
pModel
->
GetHitTestOutliner
()
==
&
rOutliner
;
...
...
@@ -851,7 +851,7 @@ OutlinerParaObject* SdrTextObj::GetEditOutlinerParaObject() const
void
SdrTextObj
::
ImpSetCharStretching
(
SdrOutliner
&
rOutliner
,
const
Size
&
rTextSize
,
const
Size
&
rShapeSize
,
Fraction
&
rFitXKorreg
)
const
{
OutputDevice
*
pOut
=
rOutliner
.
GetRefDevice
();
sal_Bool
bNoStretching
(
sal_F
alse
);
bool
bNoStretching
(
f
alse
);
if
(
pOut
&&
pOut
->
GetOutDevType
()
==
OUTDEV_PRINTER
)
{
...
...
@@ -886,7 +886,7 @@ void SdrTextObj::ImpSetCharStretching(SdrOutliner& rOutliner, const Size& rTextS
// we don't like that.
if
(
aSize2
.
Height
()
>=
aSize1
.
Height
()
*
2
)
{
bNoStretching
=
sal_T
rue
;
bNoStretching
=
t
rue
;
}
#endif
}
...
...
svx/source/svdraw/svdotxln.cxx
Dosyayı görüntüle @
0f9190b1
...
...
@@ -50,7 +50,7 @@ public:
virtual
::
sfx2
::
SvBaseLink
::
UpdateResult
DataChanged
(
const
String
&
rMimeType
,
const
::
com
::
sun
::
star
::
uno
::
Any
&
rValue
);
sal_B
ool
Connect
()
{
return
0
!=
SvBaseLink
::
GetRealObject
();
}
b
ool
Connect
()
{
return
0
!=
SvBaseLink
::
GetRealObject
();
}
};
ImpSdrObjTextLink
::~
ImpSdrObjTextLink
()
...
...
@@ -168,7 +168,7 @@ bool SdrTextObj::ReloadLinkedText( bool bForceLoad)
if
(
pData
)
{
DateTime
aFileDT
(
DateTime
::
EMPTY
);
sal_Bool
bExists
=
sal_True
,
bLoad
=
sal_F
alse
;
bool
bExists
=
true
,
bLoad
=
f
alse
;
try
{
...
...
@@ -184,13 +184,13 @@ bool SdrTextObj::ReloadLinkedText( bool bForceLoad)
}
catch
(
...
)
{
bExists
=
sal_F
alse
;
bExists
=
f
alse
;
}
if
(
bExists
)
{
if
(
bForceLoad
)
bLoad
=
sal_T
rue
;
bLoad
=
t
rue
;
else
bLoad
=
(
aFileDT
>
pData
->
aFileDate0
);
...
...
@@ -209,7 +209,7 @@ bool SdrTextObj::ReloadLinkedText( bool bForceLoad)
bool
SdrTextObj
::
LoadText
(
const
String
&
rFileName
,
const
String
&
/*rFilterName*/
,
rtl_TextEncoding
eCharSet
)
{
INetURLObject
aFileURL
(
rFileName
);
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
if
(
aFileURL
.
GetProtocol
()
==
INET_PROT_NOT_VALID
)
{
...
...
@@ -233,14 +233,14 @@ bool SdrTextObj::LoadText(const String& rFileName, const String& /*rFilterName*/
cRTF
[
4
]
=
0
;
pIStm
->
Read
(
cRTF
,
5
);
sal_B
ool
bRTF
=
cRTF
[
0
]
==
'{'
&&
cRTF
[
1
]
==
'\\'
&&
cRTF
[
2
]
==
'r'
&&
cRTF
[
3
]
==
't'
&&
cRTF
[
4
]
==
'f'
;
b
ool
bRTF
=
cRTF
[
0
]
==
'{'
&&
cRTF
[
1
]
==
'\\'
&&
cRTF
[
2
]
==
'r'
&&
cRTF
[
3
]
==
't'
&&
cRTF
[
4
]
==
'f'
;
pIStm
->
Seek
(
0
);
if
(
!
pIStm
->
GetError
()
)
{
SetText
(
*
pIStm
,
aFileURL
.
GetMainURL
(
INetURLObject
::
NO_DECODE
),
sal
::
static_int_cast
<
sal_uInt16
>
(
bRTF
?
EE_FORMAT_RTF
:
EE_FORMAT_TEXT
)
);
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
}
delete
pIStm
;
...
...
svx/source/svdraw/svdpage.cxx
Dosyayı görüntüle @
0f9190b1
...
...
@@ -218,7 +218,7 @@ void SdrObjList::CopyObjects(const SdrObjList& rSrcList)
void
SdrObjList
::
Clear
()
{
sal_Bool
bObjectsRemoved
(
sal_F
alse
);
bool
bObjectsRemoved
(
f
alse
);
while
(
!
maList
.
empty
())
{
...
...
@@ -230,7 +230,7 @@ void SdrObjList::Clear()
// to delete the object and thus refresh visualisations
pObj
->
GetViewContact
().
flushViewObjectContacts
(
true
);
bObjectsRemoved
=
sal_T
rue
;
bObjectsRemoved
=
t
rue
;
// sent remove hint (after removal, see RemoveObject())
if
(
pModel
)
...
...
svx/source/svdraw/svdpagv.cxx
Dosyayı görüntüle @
0f9190b1
...
...
@@ -291,13 +291,13 @@ void SdrPageView::CompleteRedraw(SdrPaintWindow& rPaintWindow, const Region& rRe
if
(
GetPage
())
{
SdrPageWindow
*
pPageWindow
=
FindPageWindow
(
rPaintWindow
);
sal_Bool
bIsTempTarget
(
sal_F
alse
);
bool
bIsTempTarget
(
f
alse
);
if
(
!
pPageWindow
)
{
// create temp PageWindow
pPageWindow
=
new
SdrPageWindow
(
*
((
SdrPageView
*
)
this
),
rPaintWindow
);
bIsTempTarget
=
sal_T
rue
;
bIsTempTarget
=
t
rue
;
}
// do the redraw
...
...
svx/source/svdraw/svdpntv.cxx
Dosyayı görüntüle @
0f9190b1
...
...
@@ -271,7 +271,7 @@ void SdrPaintView::Notify(SfxBroadcaster& rBC, const SfxHint& rHint)
return
;
}
sal_Bool
bObjChg
=!
bSomeObjChgdFlag
;
// if sal_T
rue, evaluate for ComeBack timer
bool
bObjChg
=!
bSomeObjChgdFlag
;
// if t
rue, evaluate for ComeBack timer
if
(
bObjChg
)
{
SdrHint
*
pSdrHint
=
PTR_CAST
(
SdrHint
,
&
rHint
);
if
(
pSdrHint
!=
NULL
)
{
...
...
@@ -1046,13 +1046,13 @@ void SdrPaintView::SetDefaultAttr(const SfxItemSet& rAttr, sal_Bool bReplaceAll)
{
#ifdef DBG_UTIL
{
sal_Bool
bHasEEFeatureItems
=
sal_F
alse
;
bool
bHasEEFeatureItems
=
f
alse
;
SfxItemIter
aIter
(
rAttr
);
const
SfxPoolItem
*
pItem
=
aIter
.
FirstItem
();
while
(
!
bHasEEFeatureItems
&&
pItem
!=
NULL
)
{
if
(
!
IsInvalidItem
(
pItem
))
{
sal_uInt16
nW
=
pItem
->
Which
();
if
(
nW
>=
EE_FEATURE_START
&&
nW
<=
EE_FEATURE_END
)
bHasEEFeatureItems
=
sal_T
rue
;
if
(
nW
>=
EE_FEATURE_START
&&
nW
<=
EE_FEATURE_END
)
bHasEEFeatureItems
=
t
rue
;
}
pItem
=
aIter
.
NextItem
();
}
...
...
@@ -1159,12 +1159,12 @@ void SdrPaintView::MakeVisible(const Rectangle& rRect, Window& rWin)
if
(
aActualSize
.
Height
()
>
0
&&
aActualSize
.
Width
()
>
0
)
{
Size
aNewSize
(
rRect
.
GetSize
());
sal_Bool
bNewScale
=
sal_F
alse
;
sal_B
ool
bNeedMoreX
=
aNewSize
.
Width
()
>
aActualSize
.
Width
();
sal_B
ool
bNeedMoreY
=
aNewSize
.
Height
()
>
aActualSize
.
Height
();
bool
bNewScale
=
f
alse
;
b
ool
bNeedMoreX
=
aNewSize
.
Width
()
>
aActualSize
.
Width
();
b
ool
bNeedMoreY
=
aNewSize
.
Height
()
>
aActualSize
.
Height
();
if
(
bNeedMoreX
||
bNeedMoreY
)
{
bNewScale
=
sal_T
rue
;
bNewScale
=
t
rue
;
// set new MapMode (Size+Org) and invalidate everything
Fraction
aXFact
(
aNewSize
.
Width
(),
aActualSize
.
Width
());
Fraction
aYFact
(
aNewSize
.
Height
(),
aActualSize
.
Height
());
...
...
svx/source/svdraw/svdpoev.cxx
Dosyayı görüntüle @
0f9190b1
...
...
@@ -371,7 +371,7 @@ void SdrPolyEditView::RipUpAtMarkedPoints()
{
if
(
bUndo
)
AddUndo
(
GetModel
()
->
GetSdrUndoFactory
().
CreateUndoGeoObject
(
*
pObj
));
sal_Bool
bKorregFlag
(
sal_F
alse
);
bool
bKorregFlag
(
f
alse
);
sal_uInt32
nMax
(
pObj
->
GetHdlCount
());
for
(
SdrUShortCont
::
const_reverse_iterator
it
=
pPts
->
rbegin
();
it
!=
pPts
->
rend
();
++
it
)
...
...
@@ -391,10 +391,10 @@ void SdrPolyEditView::RipUpAtMarkedPoints()
if
(
nNewPt0Idx
)
{
// correction necessary?
DBG_ASSERT
(
bKorregFlag
==
sal_F
alse
,
"Multiple index corrections at SdrPolyEditView::RipUp()."
);
DBG_ASSERT
(
bKorregFlag
==
f
alse
,
"Multiple index corrections at SdrPolyEditView::RipUp()."
);
if
(
!
bKorregFlag
)
{
bKorregFlag
=
sal_T
rue
;
bKorregFlag
=
t
rue
;
SdrUShortCont
aReplaceSet
;
for
(
SdrUShortCont
::
const_iterator
it2
=
pPts
->
begin
();
it2
!=
pPts
->
end
();
++
it2
)
...
...
svx/source/svdraw/svdtext.cxx
Dosyayı görüntüle @
0f9190b1
...
...
@@ -137,8 +137,8 @@ void SdrText::SetModel( SdrModel* pNewModel )
// see whether we need to use AutoGrow!
sal_uIntPtr
nOldFontHgt
=
pOldModel
->
GetDefaultFontHeight
();
sal_uIntPtr
nNewFontHgt
=
pNewModel
->
GetDefaultFontHeight
();
sal_B
ool
bDefHgtChanged
=
nNewFontHgt
!=
nOldFontHgt
;
sal_B
ool
bSetHgtItem
=
bDefHgtChanged
&&
!
bHgtSet
;
b
ool
bDefHgtChanged
=
nNewFontHgt
!=
nOldFontHgt
;
b
ool
bSetHgtItem
=
bDefHgtChanged
&&
!
bHgtSet
;
if
(
bSetHgtItem
)
{
// fix the value of HeightItem, so
...
...
svx/source/svdraw/svdundo.cxx
Dosyayı görüntüle @
0f9190b1
...
...
@@ -267,8 +267,8 @@ SdrUndoAttrObj::SdrUndoAttrObj(SdrObject& rNewObj, bool bStyleSheet1, bool bSave
bStyleSheet
=
bStyleSheet1
;
SdrObjList
*
pOL
=
rNewObj
.
GetSubList
();
sal_B
ool
bIsGroup
(
pOL
!=
NULL
&&
pOL
->
GetObjCount
());
sal_B
ool
bIs3DScene
(
bIsGroup
&&
pObj
->
ISA
(
E3dScene
));
b
ool
bIsGroup
(
pOL
!=
NULL
&&
pOL
->
GetObjCount
());
b
ool
bIs3DScene
(
bIsGroup
&&
pObj
->
ISA
(
E3dScene
));
if
(
bIsGroup
)
{
...
...
@@ -320,7 +320,7 @@ SdrUndoAttrObj::~SdrUndoAttrObj()
void
SdrUndoAttrObj
::
Undo
()
{
E3DModifySceneSnapRectUpdater
aUpdater
(
pObj
);
sal_B
ool
bIs3DScene
(
pObj
&&
pObj
->
ISA
(
E3dScene
));
b
ool
bIs3DScene
(
pObj
&&
pObj
->
ISA
(
E3dScene
));
// Trigger PageChangeCall
ImpShowPageOfThisObject
();
...
...
@@ -420,7 +420,7 @@ void SdrUndoAttrObj::Undo()
void
SdrUndoAttrObj
::
Redo
()
{
E3DModifySceneSnapRectUpdater
aUpdater
(
pObj
);
sal_B
ool
bIs3DScene
(
pObj
&&
pObj
->
ISA
(
E3dScene
));
b
ool
bIs3DScene
(
pObj
&&
pObj
->
ISA
(
E3dScene
));
if
(
!
pUndoGroup
||
bIs3DScene
)
{
...
...
svx/source/svdraw/svdview.cxx
Dosyayı görüntüle @
0f9190b1
...
...
@@ -814,7 +814,7 @@ sal_Bool SdrView::DoMouseEvent(const SdrViewEvent& rVEvt)
MarkObj
(
rVEvt
.
pRootObj
,
rVEvt
.
pPV
);
if
(
eHit
==
SDRHIT_TEXTEDIT
)
{
sal_B
ool
bRet2
(
pActualOutDev
&&
OUTDEV_WINDOW
==
pActualOutDev
->
GetOutDevType
()
&&
b
ool
bRet2
(
pActualOutDev
&&
OUTDEV_WINDOW
==
pActualOutDev
->
GetOutDevType
()
&&
SdrBeginTextEdit
(
rVEvt
.
pObj
,
rVEvt
.
pPV
,
(
Window
*
)
pActualOutDev
,
sal_False
,
(
SdrOutliner
*
)
0L
));
if
(
bRet2
)
...
...
@@ -921,9 +921,9 @@ sal_Bool SdrView::DoMouseEvent(const SdrViewEvent& rVEvt)
if
(
bRet
&&
pActualOutDev
!=
NULL
&&
pActualOutDev
->
GetOutDevType
()
==
OUTDEV_WINDOW
)
{
Window
*
pWin
=
(
Window
*
)
pActualOutDev
;
// left mouse button pressed?
sal_B
ool
bLeftDown
=
(
rVEvt
.
nMouseCode
&
MOUSE_LEFT
)
!=
0
&&
rVEvt
.
bMouseDown
;
b
ool
bLeftDown
=
(
rVEvt
.
nMouseCode
&
MOUSE_LEFT
)
!=
0
&&
rVEvt
.
bMouseDown
;
// left mouse button released?
sal_B
ool
bLeftUp
=
(
rVEvt
.
nMouseCode
&
MOUSE_LEFT
)
!=
0
&&
rVEvt
.
bMouseUp
;
b
ool
bLeftUp
=
(
rVEvt
.
nMouseCode
&
MOUSE_LEFT
)
!=
0
&&
rVEvt
.
bMouseUp
;
// left mouse button pressed or held?
sal_Bool
bLeftDown1
=
(
rVEvt
.
nMouseCode
&
MOUSE_LEFT
)
!=
0
&&
!
rVEvt
.
bMouseUp
;
pWin
->
SetPointer
(
GetPreferedPointer
(
rVEvt
.
aLogicPos
,
pWin
,
...
...
@@ -1047,14 +1047,14 @@ Pointer SdrView::GetPreferedPointer(const Point& rMousePos, const OutputDevice*
default
:
break
;
}
sal_B
ool
bMarkHit
=
eHit
==
SDRHIT_MARKEDOBJECT
;
b
ool
bMarkHit
=
eHit
==
SDRHIT_MARKEDOBJECT
;
SdrHdl
*
pHdl
=
aVEvt
.
pHdl
;
// now check the pointers for dragging
if
(
pHdl
!=
NULL
||
bMarkHit
)
{
SdrHdlKind
eHdl
=
pHdl
!=
NULL
?
pHdl
->
GetKind
()
:
HDL_MOVE
;
sal_B
ool
bCorner
=
pHdl
!=
NULL
&&
pHdl
->
IsCornerHdl
();
sal_B
ool
bVertex
=
pHdl
!=
NULL
&&
pHdl
->
IsVertexHdl
();
sal_B
ool
bMov
=
eHdl
==
HDL_MOVE
;
b
ool
bCorner
=
pHdl
!=
NULL
&&
pHdl
->
IsCornerHdl
();
b
ool
bVertex
=
pHdl
!=
NULL
&&
pHdl
->
IsVertexHdl
();
b
ool
bMov
=
eHdl
==
HDL_MOVE
;
if
(
bMov
&&
(
eDragMode
==
SDRDRAG_MOVE
||
eDragMode
==
SDRDRAG_RESIZE
||
bMarkedHitMovesAlways
))
{
if
(
!
IsMoveAllowed
())
return
Pointer
(
POINTER_ARROW
);
// because double click or drag & drop is possible
return
Pointer
(
POINTER_MOVE
);
...
...
@@ -1065,11 +1065,11 @@ Pointer SdrView::GetPreferedPointer(const Point& rMousePos, const OutputDevice*
return
Pointer
(
POINTER_NOTALLOWED
);
// are 3D objects selected?
sal_Bool
b3DObjSelected
=
sal_F
alse
;
bool
b3DObjSelected
=
f
alse
;
for
(
sal_uInt32
a
=
0
;
!
b3DObjSelected
&&
a
<
GetMarkedObjectCount
();
a
++
)
{
SdrObject
*
pObj
=
GetMarkedObjectByIndex
(
a
);
if
(
pObj
&&
pObj
->
ISA
(
E3dObject
))
b3DObjSelected
=
sal_T
rue
;
b3DObjSelected
=
t
rue
;
}
// If we have a 3D object, go on despite !IsShearAllowed,
// because then we have a rotation instead of a shear.
...
...
@@ -1093,18 +1093,18 @@ Pointer SdrView::GetPreferedPointer(const Point& rMousePos, const OutputDevice*
if
(
bCorner
||
bVertex
||
bMov
)
{
SdrHdl
*
pH1
=
aHdl
.
GetHdl
(
HDL_REF1
);
SdrHdl
*
pH2
=
aHdl
.
GetHdl
(
HDL_REF2
);
sal_Bool
b90
=
sal_F
alse
;
sal_Bool
b45
=
sal_F
alse
;
bool
b90
=
f
alse
;
bool
b45
=
f
alse
;
Point
aDif
;
if
(
pH1
!=
NULL
&&
pH2
!=
NULL
)
{
aDif
=
pH2
->
GetPos
()
-
pH1
->
GetPos
();
b90
=
(
aDif
.
X
()
==
0
)
||
aDif
.
Y
()
==
0
;
b45
=
b90
||
(
Abs
(
aDif
.
X
())
==
Abs
(
aDif
.
Y
()));
}
sal_Bool
bNo
=
sal_F
alse
;
if
(
!
IsMirrorAllowed
(
sal_True
,
sal_True
))
bNo
=
sal_T
rue
;
// any mirroring is forbidden
if
(
!
IsMirrorAllowed
(
sal_False
,
sal_False
)
&&
!
b45
)
bNo
=
sal_T
rue
;
// mirroring freely is forbidden
if
(
!
IsMirrorAllowed
(
sal_True
,
sal_False
)
&&
!
b90
)
bNo
=
sal_T
rue
;
// mirroring horizontally/vertically is allowed
bool
bNo
=
f
alse
;
if
(
!
IsMirrorAllowed
(
sal_True
,
sal_True
))
bNo
=
t
rue
;
// any mirroring is forbidden
if
(
!
IsMirrorAllowed
(
sal_False
,
sal_False
)
&&
!
b45
)
bNo
=
t
rue
;
// mirroring freely is forbidden
if
(
!
IsMirrorAllowed
(
sal_True
,
sal_False
)
&&
!
b90
)
bNo
=
t
rue
;
// mirroring horizontally/vertically is allowed
if
(
bNo
)
return
Pointer
(
POINTER_NOTALLOWED
);
if
(
b90
)
{
return
Pointer
(
POINTER_MIRROR
);
...
...
@@ -1234,7 +1234,7 @@ XubString SdrView::GetStatusText()
// position of the next line of the same paragraph, if there is one.
sal_uInt16
nParaLine
=
0
;
sal_uIntPtr
nParaLineAnz
=
pTextEditOutliner
->
GetLineCount
(
aSel
.
nEndPara
);
sal_Bool
bBrk
=
sal_F
alse
;
bool
bBrk
=
f
alse
;
while
(
!
bBrk
)
{
sal_uInt16
nLen
=
pTextEditOutliner
->
GetLineLen
(
aSel
.
nEndPara
,
nParaLine
);
sal_Bool
bLastLine
=
(
nParaLine
==
nParaLineAnz
-
1
);
...
...
@@ -1242,8 +1242,8 @@ XubString SdrView::GetStatusText()
nCol
-=
nLen
;
nLin
++
;
nParaLine
++
;
}
else
bBrk
=
sal_T
rue
;
if
(
nLen
==
0
)
bBrk
=
sal_T
rue
;
// to be sure
}
else
bBrk
=
t
rue
;
if
(
nLen
==
0
)
bBrk
=
t
rue
;
// to be sure
}
aStr
.
SearchAndReplaceAscii
(
"%1"
,
OUString
::
valueOf
(
nPar
+
1
));
...
...
@@ -1296,10 +1296,10 @@ SdrViewContext SdrView::GetContext() const
if
(
HasMarkablePoints
()
&&
!
IsFrameHandles
()
)
{
sal_Bool
bPath
=
sal_T
rue
;
bool
bPath
=
t
rue
;
for
(
sal_uIntPtr
nMarkNum
=
0
;
nMarkNum
<
nMarkAnz
&&
bPath
;
nMarkNum
++
)
if
(
!
GetMarkedObjectByIndex
(
nMarkNum
)
->
ISA
(
SdrPathObj
))
bPath
=
sal_F
alse
;
bPath
=
f
alse
;
if
(
bPath
)
return
SDRCONTEXT_POINTEDIT
;
...
...
@@ -1307,7 +1307,7 @@ SdrViewContext SdrView::GetContext() const
if
(
GetMarkedObjectCount
()
)
{
sal_Bool
bGraf
=
sal_True
,
bMedia
=
sal_True
,
bTable
=
sal_T
rue
;
bool
bGraf
=
true
,
bMedia
=
true
,
bTable
=
t
rue
;
for
(
sal_uIntPtr
nMarkNum
=
0
;
nMarkNum
<
nMarkAnz
&&
(
bGraf
||
bMedia
);
nMarkNum
++
)
{
...
...
@@ -1318,13 +1318,13 @@ SdrViewContext SdrView::GetContext() const
continue
;
if
(
!
pMarkObj
->
ISA
(
SdrGrafObj
)
)
bGraf
=
sal_F
alse
;
bGraf
=
f
alse
;
if
(
!
pMarkObj
->
ISA
(
SdrMediaObj
)
)
bMedia
=
sal_F
alse
;
bMedia
=
f
alse
;
if
(
!
pMarkObj
->
ISA
(
::
sdr
::
table
::
SdrTableObj
)
)
bTable
=
sal_F
alse
;
bTable
=
f
alse
;
}
if
(
bGraf
)
...
...
svx/source/svdraw/svdxcgv.cxx
Dosyayı görüntüle @
0f9190b1
...
...
@@ -130,7 +130,7 @@ sal_Bool SdrExchangeView::Paste(const XubString& rStr, const Point& rPos, SdrObj
if
(
pLst
==
NULL
)
return
sal_False
;
SdrLayerID
nLayer
;
if
(
!
ImpGetPasteLayer
(
pLst
,
nLayer
))
return
sal_False
;
sal_B
ool
bUnmark
=
(
nOptions
&
(
SDRINSERT_DONTMARK
|
SDRINSERT_ADDMARK
))
==
0
&&
!
IsTextEdit
();
b
ool
bUnmark
=
(
nOptions
&
(
SDRINSERT_DONTMARK
|
SDRINSERT_ADDMARK
))
==
0
&&
!
IsTextEdit
();
if
(
bUnmark
)
UnmarkAllObj
();
Rectangle
aTextRect
(
0
,
0
,
500
,
500
);
SdrPage
*
pPage
=
pLst
->
GetPage
();
...
...
@@ -167,7 +167,7 @@ sal_Bool SdrExchangeView::Paste(SvStream& rInput, const String& rBaseURL, sal_uI
if
(
pLst
==
NULL
)
return
sal_False
;
SdrLayerID
nLayer
;
if
(
!
ImpGetPasteLayer
(
pLst
,
nLayer
))
return
sal_False
;
sal_B
ool
bUnmark
=
(
nOptions
&
(
SDRINSERT_DONTMARK
|
SDRINSERT_ADDMARK
))
==
0
&&
!
IsTextEdit
();
b
ool
bUnmark
=
(
nOptions
&
(
SDRINSERT_DONTMARK
|
SDRINSERT_ADDMARK
))
==
0
&&
!
IsTextEdit
();
if
(
bUnmark
)
UnmarkAllObj
();
Rectangle
aTextRect
(
0
,
0
,
500
,
500
);
SdrPage
*
pPage
=
pLst
->
GetPage
();
...
...
@@ -250,7 +250,7 @@ sal_Bool SdrExchangeView::Paste(const SdrModel& rMod, const Point& rPos, SdrObjL
if
(
pLst
==
NULL
)
return
sal_False
;
sal_B
ool
bUnmark
=
(
nOptions
&
(
SDRINSERT_DONTMARK
|
SDRINSERT_ADDMARK
))
==
0
&&
!
IsTextEdit
();
b
ool
bUnmark
=
(
nOptions
&
(
SDRINSERT_DONTMARK
|
SDRINSERT_ADDMARK
))
==
0
&&
!
IsTextEdit
();
if
(
bUnmark
)
UnmarkAllObj
();
...
...
@@ -258,7 +258,7 @@ sal_Bool SdrExchangeView::Paste(const SdrModel& rMod, const Point& rPos, SdrObjL
// Calculate the necessary factors first.
MapUnit
eSrcUnit
=
pSrcMod
->
GetScaleUnit
();
MapUnit
eDstUnit
=
pMod
->
GetScaleUnit
();
sal_B
ool
bResize
=
eSrcUnit
!=
eDstUnit
;
b
ool
bResize
=
eSrcUnit
!=
eDstUnit
;
Fraction
xResize
,
yResize
;
Point
aPt0
;
if
(
bResize
)
...
...
@@ -282,7 +282,7 @@ sal_Bool SdrExchangeView::Paste(const SdrModel& rMod, const Point& rPos, SdrObjL
Size
aSiz
(
aDist
.
X
(),
aDist
.
Y
());
sal_uIntPtr
nCloneErrCnt
=
0
;
sal_uIntPtr
nOb
,
nObAnz
=
pSrcPg
->
GetObjCount
();
sal_B
ool
bMark
=
pMarkPV
!=
NULL
&&
!
IsTextEdit
()
&&
(
nOptions
&
SDRINSERT_DONTMARK
)
==
0
;
b
ool
bMark
=
pMarkPV
!=
NULL
&&
!
IsTextEdit
()
&&
(
nOptions
&
SDRINSERT_DONTMARK
)
==
0
;
// #i13033#
// New mechanism to re-create the connections of cloned connectors
...
...
@@ -431,7 +431,7 @@ void SdrExchangeView::ImpPasteObject(SdrObject* pObj, SdrObjList& rLst, const Po
pMarkPV
=
pPV
;
}
sal_B
ool
bMark
=
pMarkPV
!=
NULL
&&
!
IsTextEdit
()
&&
(
nOptions
&
SDRINSERT_DONTMARK
)
==
0
;
b
ool
bMark
=
pMarkPV
!=
NULL
&&
!
IsTextEdit
()
&&
(
nOptions
&
SDRINSERT_DONTMARK
)
==
0
;
if
(
bMark
)
{
// select object the first PageView we found
MarkObj
(
pObj
,
pMarkPV
);
...
...
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