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
9c76f393
Kaydet (Commit)
9c76f393
authored
Ara 12, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
manage OutlineBitmap imagelist directly in its owner user
Change-Id: I4437484192016db7ce72614ae07c5a7d1bd9ec5b
üst
96d0506f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
23 deletions
+5
-23
global.hxx
sc/inc/global.hxx
+0
-5
global.cxx
sc/source/core/data/global.cxx
+0
-11
olinewin.hxx
sc/source/ui/inc/olinewin.hxx
+1
-1
olinewin.cxx
sc/source/ui/view/olinewin.cxx
+4
-6
No files found.
sc/inc/global.hxx
Dosyayı görüntüle @
9c76f393
...
...
@@ -505,8 +505,6 @@ class ScGlobal
static
SvxBrushItem
*
pEmbeddedBrushItem
;
static
SvxBrushItem
*
pProtectedBrushItem
;
static
ImageList
*
pOutlineBitmaps
;
static
ScFunctionList
*
pStarCalcFunctionList
;
static
ScFunctionMgr
*
pStarCalcFunctionMgr
;
...
...
@@ -589,9 +587,6 @@ public:
static
SvxBrushItem
*
GetProtectedBrushItem
()
{
return
pProtectedBrushItem
;
}
SC_DLLPUBLIC
static
const
OUString
&
GetEmptyOUString
();
/** Returns the specified image list with outline symbols. */
static
ImageList
*
GetOutlineSymbols
();
static
bool
HasStarCalcFunctionList
();
static
ScFunctionList
*
GetStarCalcFunctionList
();
static
ScFunctionMgr
*
GetStarCalcFunctionMgr
();
...
...
sc/source/core/data/global.cxx
Dosyayı görüntüle @
9c76f393
...
...
@@ -111,8 +111,6 @@ SvxBrushItem* ScGlobal::pButtonBrushItem = nullptr;
SvxBrushItem
*
ScGlobal
::
pEmbeddedBrushItem
=
nullptr
;
SvxBrushItem
*
ScGlobal
::
pProtectedBrushItem
=
nullptr
;
ImageList
*
ScGlobal
::
pOutlineBitmaps
=
nullptr
;
ScFunctionList
*
ScGlobal
::
pStarCalcFunctionList
=
nullptr
;
ScFunctionMgr
*
ScGlobal
::
pStarCalcFunctionMgr
=
nullptr
;
...
...
@@ -480,14 +478,6 @@ const OUString& ScGlobal::GetEmptyOUString()
return
*
pEmptyOUString
;
}
ImageList
*
ScGlobal
::
GetOutlineSymbols
()
{
ImageList
*&
rpImageList
=
pOutlineBitmaps
;
if
(
!
rpImageList
)
rpImageList
=
new
ImageList
(
ScResId
(
RID_OUTLINEBITMAPS
)
);
return
rpImageList
;
}
void
ScGlobal
::
Init
()
{
pEmptyOUString
=
new
OUString
;
...
...
@@ -610,7 +600,6 @@ void ScGlobal::Clear()
DELETEZ
(
pButtonBrushItem
);
DELETEZ
(
pEmbeddedBrushItem
);
DELETEZ
(
pProtectedBrushItem
);
DELETEZ
(
pOutlineBitmaps
);
DELETEZ
(
pEnglishFormatter
);
DELETEZ
(
pCaseTransliteration
);
DELETEZ
(
pTransliteration
);
...
...
sc/source/ui/inc/olinewin.hxx
Dosyayı görüntüle @
9c76f393
...
...
@@ -38,7 +38,7 @@ private:
bool
mbMirrorEntries
;
/// true = mirror the order of entries (including header)
bool
mbMirrorLevels
;
/// true = mirror the order of levels, including the border
ImageList
*
mp
Symbols
;
/// Symbols for buttons.
ImageList
ma
Symbols
;
/// Symbols for buttons.
Color
maLineColor
;
/// Line color for expanded groups.
long
mnHeaderSize
;
/// Size of the header area in entry direction.
long
mnHeaderPos
;
/// Position of the header area in entry direction.
...
...
sc/source/ui/view/olinewin.cxx
Dosyayı görüntüle @
9c76f393
...
...
@@ -26,6 +26,7 @@
#include "document.hxx"
#include "dbfunc.hxx"
#include "sc.hrc"
#include "scresid.hxx"
const
long
SC_OL_BITMAPSIZE
=
12
;
const
long
SC_OL_POSOFFSET
=
2
;
...
...
@@ -45,7 +46,7 @@ ScOutlineWindow::ScOutlineWindow( vcl::Window* pParent, ScOutlineMode eMode, ScV
mbHoriz
(
eMode
==
SC_OUTLINE_HOR
),
mbMirrorEntries
(
false
),
// updated in SetHeaderSize
mbMirrorLevels
(
false
),
// updated in SetHeaderSize
m
pSymbols
(
nullptr
),
m
aSymbols
(
ScResId
(
RID_OUTLINEBITMAPS
)
),
maLineColor
(
COL_BLACK
),
mnHeaderSize
(
0
),
mnHeaderPos
(
0
),
...
...
@@ -155,7 +156,6 @@ void ScOutlineWindow::InitSettings()
const
StyleSettings
&
rStyleSettings
=
GetSettings
().
GetStyleSettings
();
SetBackground
(
rStyleSettings
.
GetFaceColor
()
);
maLineColor
=
rStyleSettings
.
GetButtonTextColor
();
mpSymbols
=
ScGlobal
::
GetOutlineSymbols
();
Invalidate
();
}
...
...
@@ -535,8 +535,7 @@ void ScOutlineWindow::DrawRectRel(
void
ScOutlineWindow
::
DrawImageRel
(
long
nLevelPos
,
long
nEntryPos
,
sal_uInt16
nId
)
{
OSL_ENSURE
(
mpSymbols
,
"ScOutlineWindow::DrawImageRel - no images"
);
const
Image
&
rImage
=
mpSymbols
->
GetImage
(
nId
);
const
Image
&
rImage
=
maSymbols
.
GetImage
(
nId
);
SetLineColor
();
SetFillColor
(
GetBackground
().
GetColor
()
);
Point
aPos
(
GetPoint
(
nLevelPos
,
nEntryPos
)
);
...
...
@@ -549,12 +548,11 @@ void ScOutlineWindow::DrawBorderRel( size_t nLevel, size_t nEntry, bool bPressed
Point
aPos
;
if
(
GetImagePos
(
nLevel
,
nEntry
,
aPos
)
)
{
OSL_ENSURE
(
mpSymbols
,
"ScOutlineWindow::DrawBorderRel - no images"
);
sal_uInt16
nId
=
bPressed
?
SC_OL_IMAGE_PRESSED
:
SC_OL_IMAGE_NOTPRESSED
;
bool
bClip
=
(
nEntry
!=
SC_OL_HEADERENTRY
);
if
(
bClip
)
SetEntryAreaClipRegion
();
DrawImage
(
aPos
,
m
pSymbols
->
GetImage
(
nId
)
);
DrawImage
(
aPos
,
m
aSymbols
.
GetImage
(
nId
)
);
if
(
bClip
)
SetClipRegion
();
}
...
...
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