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
6f92d874
Kaydet (Commit)
6f92d874
authored
Kas 23, 2011
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Manage Names: fix an initialization problem
üst
648a9a48
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
19 deletions
+30
-19
namedefdlg.hxx
sc/source/ui/inc/namedefdlg.hxx
+2
-1
namemgrtable.hxx
sc/source/ui/inc/namemgrtable.hxx
+1
-1
namedefdlg.cxx
sc/source/ui/namedlg/namedefdlg.cxx
+15
-3
namedlg.cxx
sc/source/ui/namedlg/namedlg.cxx
+4
-13
namemgrtable.cxx
sc/source/ui/namedlg/namemgrtable.cxx
+7
-0
tabvwshc.cxx
sc/source/ui/view/tabvwshc.cxx
+1
-1
No files found.
sc/source/ui/inc/namedefdlg.hxx
Dosyayı görüntüle @
6f92d874
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
class
ScRangeName
;
class
ScRangeName
;
class
ScDocument
;
class
ScDocument
;
class
ScDocShell
;
class
ScDocShell
;
class
ScViewData
;
class
ScNameDefDlg
:
public
ScAnyRefDlg
class
ScNameDefDlg
:
public
ScAnyRefDlg
{
{
...
@@ -95,7 +96,7 @@ protected:
...
@@ -95,7 +96,7 @@ protected:
public
:
public
:
ScNameDefDlg
(
SfxBindings
*
pB
,
SfxChildWindow
*
pCW
,
Window
*
pParent
,
ScNameDefDlg
(
SfxBindings
*
pB
,
SfxChildWindow
*
pCW
,
Window
*
pParent
,
Sc
DocShell
*
pDocShell
,
std
::
map
<
rtl
::
OUString
,
ScRangeName
*>
aRangeMap
,
Sc
ViewData
*
pViewData
,
std
::
map
<
rtl
::
OUString
,
ScRangeName
*>
aRangeMap
,
const
ScAddress
&
aCursorPos
,
const
bool
bUndo
);
const
ScAddress
&
aCursorPos
,
const
bool
bUndo
);
virtual
void
SetReference
(
const
ScRange
&
rRef
,
ScDocument
*
pDoc
);
virtual
void
SetReference
(
const
ScRange
&
rRef
,
ScDocument
*
pDoc
);
...
...
sc/source/ui/inc/namemgrtable.hxx
Dosyayı görüntüle @
6f92d874
...
@@ -68,7 +68,7 @@ private:
...
@@ -68,7 +68,7 @@ private:
public
:
public
:
ScRangeManagerTable
(
Window
*
pParent
,
boost
::
ptr_map
<
rtl
::
OUString
,
ScRangeName
>&
aTabRangeNames
);
ScRangeManagerTable
(
Window
*
pParent
,
boost
::
ptr_map
<
rtl
::
OUString
,
ScRangeName
>&
aTabRangeNames
);
~
ScRangeManagerTable
()
{}
;
virtual
~
ScRangeManagerTable
()
;
void
addEntry
(
const
ScRangeNameLine
&
rLine
);
void
addEntry
(
const
ScRangeNameLine
&
rLine
);
void
DeleteSelectedEntries
();
void
DeleteSelectedEntries
();
...
...
sc/source/ui/namedlg/namedefdlg.cxx
Dosyayı görüntüle @
6f92d874
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#define ABS_DREF3D ABS_DREF | SCA_TAB_3D
#define ABS_DREF3D ABS_DREF | SCA_TAB_3D
ScNameDefDlg
::
ScNameDefDlg
(
SfxBindings
*
pB
,
SfxChildWindow
*
pCW
,
Window
*
pParent
,
ScNameDefDlg
::
ScNameDefDlg
(
SfxBindings
*
pB
,
SfxChildWindow
*
pCW
,
Window
*
pParent
,
Sc
DocShell
*
pDocShell
,
std
::
map
<
rtl
::
OUString
,
ScRangeName
*>
aRangeMap
,
Sc
ViewData
*
pViewData
,
std
::
map
<
rtl
::
OUString
,
ScRangeName
*>
aRangeMap
,
const
ScAddress
&
aCursorPos
,
const
bool
bUndo
)
:
const
ScAddress
&
aCursorPos
,
const
bool
bUndo
)
:
ScAnyRefDlg
(
pB
,
pCW
,
pParent
,
RID_SCDLG_NAMES_DEFINE
),
ScAnyRefDlg
(
pB
,
pCW
,
pParent
,
RID_SCDLG_NAMES_DEFINE
),
maBtnAdd
(
this
,
ScResId
(
BTN_ADD
)
),
maBtnAdd
(
this
,
ScResId
(
BTN_ADD
)
),
...
@@ -39,8 +39,8 @@ ScNameDefDlg::ScNameDefDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParen
...
@@ -39,8 +39,8 @@ ScNameDefDlg::ScNameDefDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParen
maBtnPrintArea
(
this
,
ScResId
(
BTN_PRINTAREA
)
),
maBtnPrintArea
(
this
,
ScResId
(
BTN_PRINTAREA
)
),
maBtnCriteria
(
this
,
ScResId
(
BTN_CRITERIA
)
),
maBtnCriteria
(
this
,
ScResId
(
BTN_CRITERIA
)
),
mbUndo
(
bUndo
),
mbUndo
(
bUndo
),
mpDoc
(
p
DocShell
->
GetDocument
()
),
mpDoc
(
p
ViewData
->
GetDocument
()
),
mpDocShell
(
p
DocShell
),
mpDocShell
(
p
ViewData
->
GetDocShell
()
),
maCursorPos
(
aCursorPos
),
maCursorPos
(
aCursorPos
),
mErrMsgInvalidSym
(
ScResId
(
STR_INVALIDSYMBOL
)
),
mErrMsgInvalidSym
(
ScResId
(
STR_INVALIDSYMBOL
)
),
...
@@ -77,6 +77,18 @@ ScNameDefDlg::ScNameDefDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParen
...
@@ -77,6 +77,18 @@ ScNameDefDlg::ScNameDefDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParen
maBtnPrintArea
.
Hide
();
maBtnPrintArea
.
Hide
();
FreeResource
();
FreeResource
();
String
aAreaStr
;
ScRange
aRange
;
pViewData
->
GetSimpleArea
(
aRange
);
aRange
.
Format
(
aAreaStr
,
ABS_DREF3D
,
mpDoc
,
ScAddress
::
Details
(
mpDoc
->
GetAddressConvention
(),
0
,
0
)
);
Selection
aCurSel
=
Selection
(
0
,
SELECTION_MAX
);
maEdRange
.
GrabFocus
();
maEdRange
.
SetText
(
aAreaStr
);
maEdRange
.
SetSelection
(
aCurSel
);
}
}
void
ScNameDefDlg
::
CancelPushed
()
void
ScNameDefDlg
::
CancelPushed
()
...
...
sc/source/ui/namedlg/namedlg.cxx
Dosyayı görüntüle @
6f92d874
...
@@ -123,7 +123,6 @@ ScNameDlg::~ScNameDlg()
...
@@ -123,7 +123,6 @@ ScNameDlg::~ScNameDlg()
void
ScNameDlg
::
Init
()
void
ScNameDlg
::
Init
()
{
{
String
aAreaStr
;
ScRange
aRange
;
ScRange
aRange
;
OSL_ENSURE
(
mpViewData
&&
mpDoc
,
"ViewData oder Document nicht gefunden!"
);
OSL_ENSURE
(
mpViewData
&&
mpDoc
,
"ViewData oder Document nicht gefunden!"
);
...
@@ -173,20 +172,12 @@ void ScNameDlg::Init()
...
@@ -173,20 +172,12 @@ void ScNameDlg::Init()
maLbScope
.
InsertEntry
(
aTabName
);
maLbScope
.
InsertEntry
(
aTabName
);
}
}
UpdateNames
();
IsNameValid
();
mpViewData
->
GetSimpleArea
(
aRange
);
aRange
.
Format
(
aAreaStr
,
ABS_DREF3D
,
mpDoc
,
ScAddress
::
Details
(
mpDoc
->
GetAddressConvention
(),
0
,
0
)
);
maCurSel
=
Selection
(
0
,
SELECTION_MAX
);
maEdAssign
.
GrabFocus
();
maEdAssign
.
SetText
(
aAreaStr
);
maEdAssign
.
SetSelection
(
maCurSel
);
EdModifyHdl
(
0
);
if
(
mpRangeManagerTable
->
GetSelectionCount
())
{
SelectionChanged
();
}
}
}
sal_Bool
ScNameDlg
::
IsRefInputMode
()
const
sal_Bool
ScNameDlg
::
IsRefInputMode
()
const
...
...
sc/source/ui/namedlg/namemgrtable.cxx
Dosyayı görüntüle @
6f92d874
...
@@ -84,6 +84,13 @@ ScRangeManagerTable::ScRangeManagerTable( Window* pWindow, boost::ptr_map<rtl::O
...
@@ -84,6 +84,13 @@ ScRangeManagerTable::ScRangeManagerTable( Window* pWindow, boost::ptr_map<rtl::O
maHeaderBar
.
Show
();
maHeaderBar
.
Show
();
SetSelectionMode
(
MULTIPLE_SELECTION
);
SetSelectionMode
(
MULTIPLE_SELECTION
);
Init
(
rRangeMap
);
Init
(
rRangeMap
);
if
(
GetEntryCount
())
SetCurEntry
(
GetEntryOnPos
(
0
));
}
ScRangeManagerTable
::~
ScRangeManagerTable
()
{
Clear
();
}
}
void
ScRangeManagerTable
::
addEntry
(
const
ScRangeNameLine
&
rLine
)
void
ScRangeManagerTable
::
addEntry
(
const
ScRangeNameLine
&
rLine
)
...
...
sc/source/ui/view/tabvwshc.cxx
Dosyayı görüntüle @
6f92d874
...
@@ -122,7 +122,7 @@ SfxModelessDialog* ScTabViewShell::CreateRefDialog(
...
@@ -122,7 +122,7 @@ SfxModelessDialog* ScTabViewShell::CreateRefDialog(
std
::
cout
<<
"tabvwsh"
<<
std
::
endl
;
std
::
cout
<<
"tabvwsh"
<<
std
::
endl
;
std
::
map
<
rtl
::
OUString
,
ScRangeName
*>
aRangeMap
;
std
::
map
<
rtl
::
OUString
,
ScRangeName
*>
aRangeMap
;
pDoc
->
GetRangeNameMap
(
aRangeMap
);
pDoc
->
GetRangeNameMap
(
aRangeMap
);
pResult
=
new
ScNameDefDlg
(
pB
,
pCW
,
pParent
,
GetViewData
()
->
GetDocShell
()
,
aRangeMap
,
pResult
=
new
ScNameDefDlg
(
pB
,
pCW
,
pParent
,
GetViewData
(),
aRangeMap
,
ScAddress
(
GetViewData
()
->
GetCurX
(),
ScAddress
(
GetViewData
()
->
GetCurX
(),
GetViewData
()
->
GetCurY
(),
GetViewData
()
->
GetCurY
(),
GetViewData
()
->
GetTabNo
()
),
true
);
GetViewData
()
->
GetTabNo
()
),
true
);
...
...
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