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
2bf1965f
Kaydet (Commit)
2bf1965f
authored
Agu 22, 2011
tarafından
Joseph Powers
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
unusedcode.easy: Outline cleanup
üst
117281ba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
184 deletions
+0
-184
outliner.hxx
editeng/inc/editeng/outliner.hxx
+0
-25
outlin2.cxx
editeng/source/outliner/outlin2.cxx
+0
-104
outliner.cxx
editeng/source/outliner/outliner.cxx
+0
-34
unusedcode.easy
unusedcode.easy
+0
-21
No files found.
editeng/inc/editeng/outliner.hxx
Dosyayı görüntüle @
2bf1965f
...
...
@@ -710,7 +710,6 @@ public:
sal_Bool
IsVertical
()
const
;
void
SetFixedCellHeight
(
sal_Bool
bUseFixedCellHeight
);
sal_Bool
IsFixedCellHeight
()
const
;
void
SetDefaultHorizontalTextDirection
(
EEHorizontalTextDirection
eHTextDir
);
EEHorizontalTextDirection
GetDefaultHorizontalTextDirection
()
const
;
...
...
@@ -719,13 +718,10 @@ public:
LanguageType
GetLanguage
(
sal_uInt16
nPara
,
sal_uInt16
nPos
)
const
;
void
SetAsianCompressionMode
(
sal_uInt16
nCompressionMode
);
sal_uInt16
GetAsianCompressionMode
()
const
;
void
SetKernAsianPunctuation
(
sal_Bool
bEnabled
);
sal_Bool
IsKernAsianPunctuation
()
const
;
void
SetAddExtLeading
(
sal_Bool
b
);
sal_Bool
IsAddExtLeading
()
const
;
size_t
InsertView
(
OutlinerView
*
pView
,
size_t
nIndex
=
size_t
(
-
1
)
);
OutlinerView
*
RemoveView
(
OutlinerView
*
pView
);
...
...
@@ -774,7 +770,6 @@ public:
sal_Int16
GetDepth
(
sal_uLong
nPara
)
const
;
void
SetDepth
(
Paragraph
*
pParagraph
,
sal_Int16
nNewDepth
);
void
SetVisible
(
Paragraph
*
pPara
,
sal_Bool
bVisible
);
sal_Bool
IsVisible
(
Paragraph
*
pPara
)
const
{
return
pPara
->
IsVisible
();
}
void
EnableUndo
(
sal_Bool
bEnable
);
...
...
@@ -839,13 +834,11 @@ public:
Link
GetModifyHdl
()
const
;
void
SetNotifyHdl
(
const
Link
&
rLink
);
Link
GetNotifyHdl
()
const
;
void
SetStatusEventHdl
(
const
Link
&
rLink
);
Link
GetStatusEventHdl
()
const
;
void
Draw
(
OutputDevice
*
pOutDev
,
const
Rectangle
&
rOutRect
);
void
Draw
(
OutputDevice
*
pOutDev
,
const
Rectangle
&
rOutRect
,
const
Point
&
rStartDocPos
);
void
Draw
(
OutputDevice
*
pOutDev
,
const
Point
&
rStartPos
,
short
nOrientation
=
0
);
const
Size
&
GetPaperSize
()
const
;
...
...
@@ -857,7 +850,6 @@ public:
void
SetPolygon
(
const
basegfx
::
B2DPolyPolygon
&
rPolyPolygon
);
void
SetPolygon
(
const
basegfx
::
B2DPolyPolygon
&
rPolyPolygon
,
const
basegfx
::
B2DPolyPolygon
*
pLinePolyPolygon
);
void
ClearPolygon
();
const
PolyPolygon
*
GetPolygon
();
const
Size
&
GetMinAutoPaperSize
()
const
;
void
SetMinAutoPaperSize
(
const
Size
&
rSz
);
...
...
@@ -866,13 +858,11 @@ public:
void
SetMaxAutoPaperSize
(
const
Size
&
rSz
);
void
SetDefTab
(
sal_uInt16
nTab
);
sal_uInt16
GetDefTab
()
const
;
sal_Bool
IsFlatMode
()
const
;
void
SetFlatMode
(
sal_Bool
bFlat
);
void
EnableAutoColor
(
sal_Bool
b
);
sal_Bool
IsAutoColorEnabled
()
const
;
void
ForceAutoColor
(
sal_Bool
b
);
sal_Bool
IsForceAutoColor
()
const
;
...
...
@@ -908,8 +898,6 @@ public:
Size
CalcTextSize
();
Size
CalcTextSizeNTP
();
Point
GetDocPos
(
Paragraph
*
pPara
);
void
SetStyleSheetPool
(
SfxStyleSheetPool
*
pSPool
);
SfxStyleSheetPool
*
GetStyleSheetPool
();
...
...
@@ -926,7 +914,6 @@ public:
sal_Bool
Collapse
(
Paragraph
*
);
void
SetParaFlag
(
Paragraph
*
pPara
,
sal_uInt16
nFlag
);
void
RemoveParaFlag
(
Paragraph
*
pPara
,
sal_uInt16
nFlag
);
bool
HasParaFlag
(
const
Paragraph
*
pPara
,
sal_uInt16
nFlag
)
const
;
// Returns an array containing the widths of the Bullet Indentations
...
...
@@ -974,20 +961,15 @@ public:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XSpellChecker1
>
GetSpeller
();
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XHyphenator
>
GetHyphenator
()
const
;
void
SetHyphenator
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XHyphenator
>&
xHyph
);
void
SetForbiddenCharsTable
(
rtl
::
Reference
<
SvxForbiddenCharactersTable
>
xForbiddenChars
);
rtl
::
Reference
<
SvxForbiddenCharactersTable
>
GetForbiddenCharsTable
()
const
;
// Depricated
void
SetDefaultLanguage
(
LanguageType
eLang
);
LanguageType
GetDefaultLanguage
()
const
;
sal_Bool
HasOnlineSpellErrors
()
const
;
void
CompleteOnlineSpelling
();
EESpellState
HasSpellErrors
();
...
...
@@ -1004,8 +986,6 @@ public:
void
SetRefDevice
(
OutputDevice
*
pRefDev
);
OutputDevice
*
GetRefDevice
()
const
;
sal_uInt16
GetFirstLineOffset
(
sal_uLong
nParagraph
);
sal_uLong
GetTextHeight
()
const
;
sal_uLong
GetTextHeight
(
sal_uLong
nParagraph
)
const
;
Point
GetDocPosTopLeft
(
sal_uLong
nParagraph
);
...
...
@@ -1018,8 +998,6 @@ public:
void
DoStretchChars
(
sal_uInt16
nX
,
sal_uInt16
nY
);
void
EraseVirtualDevice
();
void
SetBigTextObjectStart
(
sal_uInt16
nStartAtPortionCount
);
sal_uInt16
GetBigTextObjectStart
()
const
;
sal_Bool
ShouldCreateBigTextObject
()
const
;
const
EditEngine
&
GetEditEngine
()
const
{
return
*
((
EditEngine
*
)
pEditEngine
);
}
...
...
@@ -1036,15 +1014,12 @@ public:
void
PutSpellingToSentenceStart
(
EditView
&
rEditView
);
// applies a changed sentence
void
ApplyChangedSentence
(
EditView
&
rEditView
,
const
::
svx
::
SpellPortions
&
rNewPortions
,
bool
bRecheck
);
void
EndSpelling
();
/** sets a link that is called at the beginning of a drag operation at an edit view */
void
SetBeginDropHdl
(
const
Link
&
rLink
);
Link
GetBeginDropHdl
()
const
;
/** sets a link that is called at the end of a drag operation at an edit view */
void
SetEndDropHdl
(
const
Link
&
rLink
);
Link
GetEndDropHdl
()
const
;
/** sets a link that is called before a drop or paste operation. */
void
SetBeginPasteOrDropHdl
(
const
Link
&
rLink
);
...
...
editeng/source/outliner/outlin2.cxx
Dosyayı görüntüle @
2bf1965f
...
...
@@ -158,12 +158,6 @@ void Outliner::SetNotifyHdl( const Link& rLink )
}
Link
Outliner
::
GetNotifyHdl
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
aOutlinerNotifyHdl
;
}
void
Outliner
::
SetStatusEventHdl
(
const
Link
&
rLink
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
...
...
@@ -182,12 +176,6 @@ void Outliner::SetDefTab( sal_uInt16 nTab )
pEditEngine
->
SetDefTab
(
nTab
);
}
sal_uInt16
Outliner
::
GetDefTab
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
GetDefTab
();
}
sal_Bool
Outliner
::
IsFlatMode
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
...
...
@@ -230,13 +218,6 @@ void Outliner::Draw( OutputDevice* pOutDev, const Rectangle& rOutRect )
pEditEngine
->
Draw
(
pOutDev
,
rOutRect
);
}
void
Outliner
::
Draw
(
OutputDevice
*
pOutDev
,
const
Rectangle
&
rOutRect
,
const
Point
&
rStartDocPos
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
pEditEngine
->
Draw
(
pOutDev
,
rOutRect
,
rStartDocPos
);
}
void
Outliner
::
Draw
(
OutputDevice
*
pOutDev
,
const
Point
&
rStartPos
,
short
nOrientation
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
...
...
@@ -273,12 +254,6 @@ void Outliner::ClearPolygon()
pEditEngine
->
ClearPolygon
();
}
const
PolyPolygon
*
Outliner
::
GetPolygon
()
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
GetPolygon
();
}
const
Size
&
Outliner
::
GetMinAutoPaperSize
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
...
...
@@ -333,12 +308,6 @@ Size Outliner::CalcTextSizeNTP()
return
Size
(
pEditEngine
->
CalcTextWidth
(),
pEditEngine
->
GetTextHeightNTP
());
}
Point
Outliner
::
GetDocPos
(
Paragraph
*
pPara
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
GetDocPosTopLeft
(
(
sal_uInt16
)
pParaList
->
GetAbsPos
(
pPara
)
);
}
void
Outliner
::
SetStyleSheetPool
(
SfxStyleSheetPool
*
pSPool
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
...
...
@@ -381,36 +350,18 @@ void Outliner::SetAsianCompressionMode( sal_uInt16 n )
pEditEngine
->
SetAsianCompressionMode
(
n
);
}
sal_uInt16
Outliner
::
GetAsianCompressionMode
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
GetAsianCompressionMode
();
}
void
Outliner
::
SetKernAsianPunctuation
(
sal_Bool
b
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
pEditEngine
->
SetKernAsianPunctuation
(
b
);
}
sal_Bool
Outliner
::
IsKernAsianPunctuation
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
IsKernAsianPunctuation
();
}
void
Outliner
::
SetAddExtLeading
(
sal_Bool
bExtLeading
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
pEditEngine
->
SetAddExtLeading
(
bExtLeading
);
}
sal_Bool
Outliner
::
IsAddExtLeading
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
IsAddExtLeading
();
}
void
Outliner
::
UndoActionStart
(
sal_uInt16
nId
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
...
...
@@ -489,12 +440,6 @@ LanguageType Outliner::GetDefaultLanguage() const
return
pEditEngine
->
GetDefaultLanguage
();
}
sal_Bool
Outliner
::
HasOnlineSpellErrors
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
HasOnlineSpellErrors
();
}
void
Outliner
::
CompleteOnlineSpelling
()
{
DBG_CHKTHIS
(
Outliner
,
0
);
...
...
@@ -543,19 +488,6 @@ void Outliner::SetForbiddenCharsTable( rtl::Reference<SvxForbiddenCharactersTabl
pEditEngine
->
SetForbiddenCharsTable
(
xForbiddenChars
);
}
rtl
::
Reference
<
SvxForbiddenCharactersTable
>
Outliner
::
GetForbiddenCharsTable
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
GetForbiddenCharsTable
();
}
Reference
<
XHyphenator
>
Outliner
::
GetHyphenator
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
GetHyphenator
();
}
void
Outliner
::
SetHyphenator
(
Reference
<
XHyphenator
>&
xHyph
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
...
...
@@ -568,12 +500,6 @@ OutputDevice* Outliner::GetRefDevice() const
return
pEditEngine
->
GetRefDevice
();
}
sal_uInt16
Outliner
::
GetFirstLineOffset
(
sal_uLong
nParagraph
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
GetFirstLineOffset
(
(
sal_uInt16
)
nParagraph
);
}
sal_uLong
Outliner
::
GetTextHeight
(
sal_uLong
nParagraph
)
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
...
...
@@ -695,18 +621,6 @@ void Outliner::EraseVirtualDevice()
pEditEngine
->
EraseVirtualDevice
();
}
void
Outliner
::
SetBigTextObjectStart
(
sal_uInt16
nStartAtPortionCount
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
pEditEngine
->
SetBigTextObjectStart
(
nStartAtPortionCount
);
}
sal_uInt16
Outliner
::
GetBigTextObjectStart
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
GetBigTextObjectStart
();
}
sal_Bool
Outliner
::
ShouldCreateBigTextObject
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
...
...
@@ -731,13 +645,6 @@ void Outliner::SetFixedCellHeight( sal_Bool bUseFixedCellHeight )
pEditEngine
->
SetFixedCellHeight
(
bUseFixedCellHeight
);
}
sal_Bool
Outliner
::
IsFixedCellHeight
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
IsFixedCellHeight
();
}
void
Outliner
::
SetDefaultHorizontalTextDirection
(
EEHorizontalTextDirection
eHTextDir
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
...
...
@@ -773,12 +680,6 @@ void Outliner::EnableAutoColor( sal_Bool b )
pEditEngine
->
EnableAutoColor
(
b
);
}
sal_Bool
Outliner
::
IsAutoColorEnabled
()
const
{
DBG_CHKTHIS
(
Outliner
,
0
);
return
pEditEngine
->
IsAutoColorEnabled
();
}
void
Outliner
::
ForceAutoColor
(
sal_Bool
b
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
...
...
@@ -796,11 +697,6 @@ void Outliner::StartSpelling(EditView& rEditView, sal_Bool bMultipleDoc)
pEditEngine
->
StartSpelling
(
rEditView
,
bMultipleDoc
);
}
void
Outliner
::
EndSpelling
()
{
pEditEngine
->
EndSpelling
();
}
bool
Outliner
::
SpellSentence
(
EditView
&
rEditView
,
::
svx
::
SpellPortions
&
rToFill
,
bool
bIsGrammarChecking
)
{
return
pEditEngine
->
SpellSentence
(
rEditView
,
rToFill
,
bIsGrammarChecking
);
...
...
editeng/source/outliner/outliner.cxx
Dosyayı görüntüle @
2bf1965f
...
...
@@ -704,19 +704,6 @@ void Outliner::SetStyleSheet( sal_uLong nPara, SfxStyleSheet* pStyle )
}
}
void
Outliner
::
SetVisible
(
Paragraph
*
pPara
,
sal_Bool
bVisible
)
{
DBG_CHKTHIS
(
Outliner
,
0
);
DBG_ASSERT
(
pPara
,
"SetVisible: pPara = NULL"
);
if
(
pPara
)
{
pPara
->
bVisible
=
bVisible
;
sal_uLong
nPara
=
pParaList
->
GetAbsPos
(
pPara
);
pEditEngine
->
ShowParagraph
(
(
sal_uInt16
)
nPara
,
bVisible
);
}
}
void
Outliner
::
ImplCheckNumBulletItem
(
sal_uInt16
nPara
)
{
Paragraph
*
pPara
=
pParaList
->
GetParagraph
(
nPara
);
...
...
@@ -2101,22 +2088,12 @@ void Outliner::SetBeginDropHdl( const Link& rLink )
pEditEngine
->
SetBeginDropHdl
(
rLink
);
}
Link
Outliner
::
GetBeginDropHdl
()
const
{
return
pEditEngine
->
GetBeginDropHdl
();
}
/** sets a link that is called at the end of a drag operation at an edit view */
void
Outliner
::
SetEndDropHdl
(
const
Link
&
rLink
)
{
pEditEngine
->
SetEndDropHdl
(
rLink
);
}
Link
Outliner
::
GetEndDropHdl
()
const
{
return
pEditEngine
->
GetEndDropHdl
();
}
/** sets a link that is called before a drop or paste operation. */
void
Outliner
::
SetBeginPasteOrDropHdl
(
const
Link
&
rLink
)
{
...
...
@@ -2140,17 +2117,6 @@ void Outliner::SetParaFlag( Paragraph* pPara, sal_uInt16 nFlag )
}
}
void
Outliner
::
RemoveParaFlag
(
Paragraph
*
pPara
,
sal_uInt16
nFlag
)
{
if
(
pPara
&&
pPara
->
HasFlag
(
nFlag
)
)
{
if
(
IsUndoEnabled
()
&&
!
IsInUndo
()
)
InsertUndo
(
new
OutlinerUndoChangeParaFlags
(
this
,
(
sal_uInt16
)
GetAbsPos
(
pPara
),
pPara
->
nFlags
,
pPara
->
nFlags
&
~
nFlag
)
);
pPara
->
RemoveFlag
(
nFlag
);
}
}
bool
Outliner
::
HasParaFlag
(
const
Paragraph
*
pPara
,
sal_uInt16
nFlag
)
const
{
return
pPara
&&
pPara
->
HasFlag
(
nFlag
);
...
...
unusedcode.easy
Dosyayı görüntüle @
2bf1965f
...
...
@@ -431,27 +431,6 @@ OpenStormBento::CUtList::GetCount()
OpenStormBento::CUtList::GetIndex(OpenStormBento::CUtListElmt*)
OpenStormBento::CUtList::GetIndex(int)
OpenStormBento::CUtList::GetPrevOrNULL(OpenStormBento::CUtListElmt*)
Outliner::Draw(OutputDevice*, Rectangle const&, Point const&)
Outliner::EndSpelling()
Outliner::GetAsianCompressionMode() const
Outliner::GetBeginDropHdl() const
Outliner::GetBigTextObjectStart() const
Outliner::GetDefTab() const
Outliner::GetDocPos(Paragraph*)
Outliner::GetEndDropHdl() const
Outliner::GetFirstLineOffset(unsigned long)
Outliner::GetForbiddenCharsTable() const
Outliner::GetHyphenator() const
Outliner::GetNotifyHdl() const
Outliner::GetPolygon()
Outliner::HasOnlineSpellErrors() const
Outliner::IsAddExtLeading() const
Outliner::IsAutoColorEnabled() const
Outliner::IsFixedCellHeight() const
Outliner::IsKernAsianPunctuation() const
Outliner::RemoveParaFlag(Paragraph*, unsigned short)
Outliner::SetBigTextObjectStart(unsigned short)
Outliner::SetVisible(Paragraph*, unsigned char)
OutlinerView::AdjustDepth(Paragraph*, short, unsigned char)
OutlinerView::AdjustHeight(Paragraph*, long, unsigned char)
OutlinerView::Collapse(Paragraph*)
...
...
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