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
8fd3c3ac
Kaydet (Commit)
8fd3c3ac
authored
Kas 16, 2011
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ManageNames: add menu and dialog for Add Name
üst
668a7106
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
171 additions
and
2 deletions
+171
-2
CalcCommands.xcu
...g/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
+8
-0
Library_scui.mk
sc/Library_scui.mk
+1
-0
sc.hrc
sc/inc/sc.hrc
+2
-0
scabstdlg.hxx
sc/inc/scabstdlg.hxx
+8
-1
sccommands.h
sc/inc/sccommands.h
+1
-0
cellsh.sdi
sc/sdi/cellsh.sdi
+1
-0
editsh.sdi
sc/sdi/editsh.sdi
+1
-0
scalc.sdi
sc/sdi/scalc.sdi
+25
-0
scdlgfact.cxx
sc/source/ui/attrdlg/scdlgfact.cxx
+19
-1
scdlgfact.hxx
sc/source/ui/attrdlg/scdlgfact.hxx
+8
-0
namedefdlg.hrc
sc/source/ui/inc/namedefdlg.hrc
+3
-0
namedefdlg.hxx
sc/source/ui/inc/namedefdlg.hxx
+43
-0
namedefdlg.cxx
sc/source/ui/namedlg/namedefdlg.cxx
+9
-0
namedefdlg.src
sc/source/ui/src/namedefdlg.src
+21
-0
cellsh1.cxx
sc/source/ui/view/cellsh1.cxx
+10
-0
editsh.cxx
sc/source/ui/view/editsh.cxx
+10
-0
menubar.xml
sc/uiconfig/scalc/menubar/menubar.xml
+1
-0
No files found.
officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
Dosyayı görüntüle @
8fd3c3ac
...
@@ -898,6 +898,14 @@
...
@@ -898,6 +898,14 @@
<value
xml:lang=
"en-US"
>
Shee~t From File...
</value>
<value
xml:lang=
"en-US"
>
Shee~t From File...
</value>
</prop>
</prop>
</node>
</node>
<node
oor:name=
".uno:AddName"
oor:op=
"replace"
>
<prop
oor:name=
"Label"
oor:type=
"xs:string"
>
<value
xml:lang=
"en-US"
>
~Define Name...
</value>
</prop>
<prop
oor:name=
"ContextLabel"
oor:type=
"xs:string"
>
<value
xml:lang=
"en-US"
>
~Define...
</value>
</prop>
</node>
<node
oor:name=
".uno:DefineName"
oor:op=
"replace"
>
<node
oor:name=
".uno:DefineName"
oor:op=
"replace"
>
<prop
oor:name=
"Label"
oor:type=
"xs:string"
>
<prop
oor:name=
"Label"
oor:type=
"xs:string"
>
<value
xml:lang=
"en-US"
>
~Manage Names...
</value>
<value
xml:lang=
"en-US"
>
~Manage Names...
</value>
...
...
sc/Library_scui.mk
Dosyayı görüntüle @
8fd3c3ac
...
@@ -100,6 +100,7 @@ $(eval $(call gb_Library_add_exception_objects,scui,\
...
@@ -100,6 +100,7 @@ $(eval $(call gb_Library_add_exception_objects,scui,\
sc/source/ui/miscdlgs/strindlg \
sc/source/ui/miscdlgs/strindlg \
sc/source/ui/miscdlgs/tabbgcolordlg \
sc/source/ui/miscdlgs/tabbgcolordlg \
sc/source/ui/miscdlgs/textdlgs \
sc/source/ui/miscdlgs/textdlgs \
sc/source/ui/namedlg/namedefdlg \
sc/source/ui/optdlg/opredlin \
sc/source/ui/optdlg/opredlin \
sc/source/ui/optdlg/tpcalc \
sc/source/ui/optdlg/tpcalc \
sc/source/ui/optdlg/tpcompatibility \
sc/source/ui/optdlg/tpcompatibility \
...
...
sc/inc/sc.hrc
Dosyayı görüntüle @
8fd3c3ac
...
@@ -349,6 +349,7 @@
...
@@ -349,6 +349,7 @@
#define FID_USE_NAME (INSERT_MENU_START + 13)
#define FID_USE_NAME (INSERT_MENU_START + 13)
#define FID_APPLY_NAME (INSERT_MENU_START + 14)
#define FID_APPLY_NAME (INSERT_MENU_START + 14)
#define FID_INS_TABLE_EXT (INSERT_MENU_START + 15)
#define FID_INS_TABLE_EXT (INSERT_MENU_START + 15)
#define FID_ADD_NAME (INSERT_MENU_START + 16)
#define SID_INSERT_CLIPART (INSERT_MENU_START + 17) //!!! should come from Svx
#define SID_INSERT_CLIPART (INSERT_MENU_START + 17) //!!! should come from Svx
#define FID_INS_CELLSDOWN (INSERT_MENU_START + 18)
#define FID_INS_CELLSDOWN (INSERT_MENU_START + 18)
#define FID_INS_CELLSRIGHT (INSERT_MENU_START + 19)
#define FID_INS_CELLSRIGHT (INSERT_MENU_START + 19)
...
@@ -1106,6 +1107,7 @@
...
@@ -1106,6 +1107,7 @@
#define RID_SCDLG_NAMES_PASTE (SC_DIALOGS_START + 72)
#define RID_SCDLG_NAMES_PASTE (SC_DIALOGS_START + 72)
#define RID_SCDLG_NAMES_CREATE (SC_DIALOGS_START + 73)
#define RID_SCDLG_NAMES_CREATE (SC_DIALOGS_START + 73)
#define RID_SCDLG_NAMES_APPLY (SC_DIALOGS_START + 74) //NYI
#define RID_SCDLG_NAMES_APPLY (SC_DIALOGS_START + 74) //NYI
#define RID_SCDLG_NAMES_DEFINE (SC_DIALOGS_START + 75)
#define RID_SCDLG_CHAR (SC_DIALOGS_START + 76)
#define RID_SCDLG_CHAR (SC_DIALOGS_START + 76)
#define RID_SCDLG_PARAGRAPH (SC_DIALOGS_START + 77)
#define RID_SCDLG_PARAGRAPH (SC_DIALOGS_START + 77)
...
...
sc/inc/scabstdlg.hxx
Dosyayı görüntüle @
8fd3c3ac
...
@@ -221,7 +221,7 @@ public:
...
@@ -221,7 +221,7 @@ public:
virtual
void
EnableRenameTable
(
sal_Bool
bFlag
=
true
)
=
0
;
virtual
void
EnableRenameTable
(
sal_Bool
bFlag
=
true
)
=
0
;
};
};
class
AbstractScNameCreateDlg
:
public
VclAbstractDialog
//
add for ScNameCreateDl
g
class
AbstractScNameCreateDlg
:
public
VclAbstractDialog
//
Manage Name Dialo
g
{
{
public
:
public
:
virtual
sal_uInt16
GetFlags
()
const
=
0
;
virtual
sal_uInt16
GetFlags
()
const
=
0
;
...
@@ -233,6 +233,11 @@ public:
...
@@ -233,6 +233,11 @@ public:
virtual
String
GetSelectedName
()
const
=
0
;
virtual
String
GetSelectedName
()
const
=
0
;
};
};
class
AbstractScNameAddDlg
:
public
VclAbstractDialog
// Define Name Dialog
{
public
:
};
class
AbstractScPivotFilterDlg
:
public
VclAbstractDialog
//add for ScPivotFilterDlg
class
AbstractScPivotFilterDlg
:
public
VclAbstractDialog
//add for ScPivotFilterDlg
{
{
public
:
public
:
...
@@ -419,6 +424,8 @@ public:
...
@@ -419,6 +424,8 @@ public:
virtual
AbstractScNamePasteDlg
*
CreateScNamePasteDlg
(
Window
*
pParent
,
const
ScRangeName
*
pList
,
//add for ScNamePasteDlg
virtual
AbstractScNamePasteDlg
*
CreateScNamePasteDlg
(
Window
*
pParent
,
const
ScRangeName
*
pList
,
//add for ScNamePasteDlg
const
ScRangeName
*
pLocalList
,
int
nId
,
bool
bInsList
=
true
)
=
0
;
const
ScRangeName
*
pLocalList
,
int
nId
,
bool
bInsList
=
true
)
=
0
;
virtual
AbstractScNameAddDlg
*
CreateScNameAddDlg
(
Window
*
pParent
,
int
nId
)
=
0
;
virtual
AbstractScPivotFilterDlg
*
CreateScPivotFilterDlg
(
Window
*
pParent
,
//add for ScPivotFilterDlg
virtual
AbstractScPivotFilterDlg
*
CreateScPivotFilterDlg
(
Window
*
pParent
,
//add for ScPivotFilterDlg
const
SfxItemSet
&
rArgSet
,
sal_uInt16
nSourceTab
,
int
nId
)
=
0
;
const
SfxItemSet
&
rArgSet
,
sal_uInt16
nSourceTab
,
int
nId
)
=
0
;
...
...
sc/inc/sccommands.h
Dosyayı görüntüle @
8fd3c3ac
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#define CMD_FID_TAB_APPEND ".uno:Add"
#define CMD_FID_TAB_APPEND ".uno:Add"
#define CMD_SID_CHART_ADDSOURCE ".uno:AddChartData"
#define CMD_SID_CHART_ADDSOURCE ".uno:AddChartData"
#define CMD_SID_ADD_IN_MANAGER ".uno:AddInManager"
#define CMD_SID_ADD_IN_MANAGER ".uno:AddInManager"
#define CMD_FID_ADD_NAME ".uno:AddName"
#define CMD_SID_ADD_PRINTAREA ".uno:AddPrintArea"
#define CMD_SID_ADD_PRINTAREA ".uno:AddPrintArea"
#define CMD_SID_RANGE_ADDRESS ".uno:Address"
#define CMD_SID_RANGE_ADDRESS ".uno:Address"
#define CMD_FID_ADJUST_PRINTZOOM ".uno:AdjustPrintZoom"
#define CMD_FID_ADJUST_PRINTZOOM ".uno:AdjustPrintZoom"
...
...
sc/sdi/cellsh.sdi
Dosyayı görüntüle @
8fd3c3ac
...
@@ -178,6 +178,7 @@ interface CellSelection
...
@@ -178,6 +178,7 @@ interface CellSelection
SID_TABOP [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
SID_TABOP [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
SID_CONSOLIDATE [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
SID_CONSOLIDATE [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
FID_ADD_NAME [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
FID_INSERT_NAME [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
FID_INSERT_NAME [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
FID_USE_NAME [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
FID_USE_NAME [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
SID_CANCEL [ ExecMethod = Execute; ]
SID_CANCEL [ ExecMethod = Execute; ]
...
...
sc/sdi/editsh.sdi
Dosyayı görüntüle @
8fd3c3ac
...
@@ -45,6 +45,7 @@ interface TableText
...
@@ -45,6 +45,7 @@ interface TableText
SID_CLIPBOARD_FORMAT_ITEMS [ ExecMethod = Execute; StateMethod = GetClipState; Export = FALSE; ]
SID_CLIPBOARD_FORMAT_ITEMS [ ExecMethod = Execute; StateMethod = GetClipState; Export = FALSE; ]
SID_SELECTALL [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
SID_SELECTALL [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
SID_CHARMAP [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
SID_CHARMAP [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
FID_ADD_NAME [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
FID_INSERT_NAME [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
FID_INSERT_NAME [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
SID_THES [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
SID_THES [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
...
...
sc/sdi/scalc.sdi
Dosyayı görüntüle @
8fd3c3ac
...
@@ -3757,6 +3757,31 @@ SfxVoidItem InsertMatrix SID_INSERT_MATRIX
...
@@ -3757,6 +3757,31 @@ SfxVoidItem InsertMatrix SID_INSERT_MATRIX
GroupId = GID_INTERN;
GroupId = GID_INTERN;
]
]
//--------------------------------------------------------------------------
SfxVoidItem AddName FID_ADD_NAME
()
[
/* flags: */
AutoUpdate = FALSE,
Cachable = Cachable,
FastCall = FALSE,
HasCoreId = FALSE,
HasDialog = TRUE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
Synchron;
/* config: */
AccelConfig = FALSE,
MenuConfig = TRUE,
StatusBarConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = GID_INSERT;
]
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
SfxVoidItem InsertName FID_INSERT_NAME
SfxVoidItem InsertName FID_INSERT_NAME
()
()
...
...
sc/source/ui/attrdlg/scdlgfact.cxx
Dosyayı görüntüle @
8fd3c3ac
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
#include "mvtabdlg.hxx"
#include "mvtabdlg.hxx"
#include "namecrea.hxx"
#include "namecrea.hxx"
#include "namepast.hxx"
#include "namepast.hxx"
#include "namedefdlg.hxx"
#include "pfiltdlg.hxx"
#include "pfiltdlg.hxx"
#include "pvfundlg.hxx"
#include "pvfundlg.hxx"
#include "dpgroupdlg.hxx"
#include "dpgroupdlg.hxx"
...
@@ -106,6 +107,7 @@ IMPL_ABSTDLG_BASE(AbstractScMetricInputDlg_Impl);
...
@@ -106,6 +107,7 @@ IMPL_ABSTDLG_BASE(AbstractScMetricInputDlg_Impl);
IMPL_ABSTDLG_BASE
(
AbstractScMoveTableDlg_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractScMoveTableDlg_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractScNameCreateDlg_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractScNameCreateDlg_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractScNamePasteDlg_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractScNamePasteDlg_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractScNameAddDlg_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractScPivotFilterDlg_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractScPivotFilterDlg_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractScDPFunctionDlg_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractScDPFunctionDlg_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractScDPSubtotalDlg_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractScDPSubtotalDlg_Impl
);
...
@@ -1131,7 +1133,7 @@ AbstractScNameCreateDlg * ScAbstractDialogFactory_Impl::CreateScNameCreateDlg (
...
@@ -1131,7 +1133,7 @@ AbstractScNameCreateDlg * ScAbstractDialogFactory_Impl::CreateScNameCreateDlg (
AbstractScNamePasteDlg
*
ScAbstractDialogFactory_Impl
::
CreateScNamePasteDlg
(
Window
*
pParent
,
const
ScRangeName
*
pList
,
AbstractScNamePasteDlg
*
ScAbstractDialogFactory_Impl
::
CreateScNamePasteDlg
(
Window
*
pParent
,
const
ScRangeName
*
pList
,
const
ScRangeName
*
pLocalList
,
int
nId
,
bool
bInsList
)
const
ScRangeName
*
pLocalList
,
int
nId
,
bool
bInsList
)
{
{
ScNamePasteDlg
*
pDlg
=
NULL
;
ScNamePasteDlg
*
pDlg
=
NULL
;
...
@@ -1150,6 +1152,22 @@ AbstractScNameCreateDlg * ScAbstractDialogFactory_Impl::CreateScNameCreateDlg (
...
@@ -1150,6 +1152,22 @@ AbstractScNameCreateDlg * ScAbstractDialogFactory_Impl::CreateScNameCreateDlg (
}
}
AbstractScNameAddDlg
*
ScAbstractDialogFactory_Impl
::
CreateScNameAddDlg
(
Window
*
pParent
,
int
nId
)
{
ScNameDefDlg
*
pDlg
=
NULL
;
switch
(
nId
)
{
case
RID_SCDLG_NAMES_DEFINE
:
pDlg
=
new
ScNameDefDlg
(
pParent
);
break
;
default
:
break
;
}
if
(
pDlg
)
return
new
AbstractScNameAddDlg_Impl
(
pDlg
);
return
0
;
}
AbstractScPivotFilterDlg
*
ScAbstractDialogFactory_Impl
::
CreateScPivotFilterDlg
(
Window
*
pParent
,
AbstractScPivotFilterDlg
*
ScAbstractDialogFactory_Impl
::
CreateScPivotFilterDlg
(
Window
*
pParent
,
const
SfxItemSet
&
rArgSet
,
sal_uInt16
nSourceTab
,
int
nId
)
const
SfxItemSet
&
rArgSet
,
sal_uInt16
nSourceTab
,
int
nId
)
...
...
sc/source/ui/attrdlg/scdlgfact.hxx
Dosyayı görüntüle @
8fd3c3ac
...
@@ -51,6 +51,7 @@ class ScMetricInputDlg;
...
@@ -51,6 +51,7 @@ class ScMetricInputDlg;
class
ScMoveTableDlg
;
class
ScMoveTableDlg
;
class
ScNameCreateDlg
;
class
ScNameCreateDlg
;
class
ScNamePasteDlg
;
class
ScNamePasteDlg
;
class
ScNameDefDlg
;
class
ScPivotFilterDlg
;
class
ScPivotFilterDlg
;
class
ScDPFunctionDlg
;
class
ScDPFunctionDlg
;
class
ScDPSubtotalDlg
;
class
ScDPSubtotalDlg
;
...
@@ -285,6 +286,11 @@ class AbstractScNamePasteDlg_Impl : public AbstractScNamePasteDlg //add for ScN
...
@@ -285,6 +286,11 @@ class AbstractScNamePasteDlg_Impl : public AbstractScNamePasteDlg //add for ScN
virtual
String
GetSelectedName
()
const
;
virtual
String
GetSelectedName
()
const
;
};
};
class
AbstractScNameAddDlg_Impl
:
public
AbstractScNameAddDlg
// Define Name
{
DECL_ABSTDLG_BASE
(
AbstractScNameAddDlg_Impl
,
ScNameDefDlg
)
};
class
AbstractScPivotFilterDlg_Impl
:
public
AbstractScPivotFilterDlg
//add for ScPivotFilterDlg
class
AbstractScPivotFilterDlg_Impl
:
public
AbstractScPivotFilterDlg
//add for ScPivotFilterDlg
{
{
DECL_ABSTDLG_BASE
(
AbstractScPivotFilterDlg_Impl
,
ScPivotFilterDlg
)
DECL_ABSTDLG_BASE
(
AbstractScPivotFilterDlg_Impl
,
ScPivotFilterDlg
)
...
@@ -486,6 +492,8 @@ public:
...
@@ -486,6 +492,8 @@ public:
virtual
AbstractScNamePasteDlg
*
CreateScNamePasteDlg
(
Window
*
pParent
,
const
ScRangeName
*
pList
,
//add for ScNamePasteDlg
virtual
AbstractScNamePasteDlg
*
CreateScNamePasteDlg
(
Window
*
pParent
,
const
ScRangeName
*
pList
,
//add for ScNamePasteDlg
const
ScRangeName
*
pLocalList
,
int
nId
,
bool
bInsList
=
true
);
const
ScRangeName
*
pLocalList
,
int
nId
,
bool
bInsList
=
true
);
virtual
AbstractScNameAddDlg
*
CreateScNameAddDlg
(
Window
*
pParent
,
int
nId
);
virtual
AbstractScPivotFilterDlg
*
CreateScPivotFilterDlg
(
Window
*
pParent
,
//add for ScPivotFilterDlg
virtual
AbstractScPivotFilterDlg
*
CreateScPivotFilterDlg
(
Window
*
pParent
,
//add for ScPivotFilterDlg
const
SfxItemSet
&
rArgSet
,
sal_uInt16
nSourceTab
,
int
nId
);
const
SfxItemSet
&
rArgSet
,
sal_uInt16
nSourceTab
,
int
nId
);
...
...
sc/source/ui/inc/namedefdlg.hrc
0 → 100644
Dosyayı görüntüle @
8fd3c3ac
#include "sc.hrc"
#define BTN_OK 1
sc/source/ui/inc/namedefdlg.hxx
0 → 100644
Dosyayı görüntüle @
8fd3c3ac
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Version: MPL 1.1 / GPLv3+ / LGPLv3+
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License or as specified alternatively below. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Major Contributor(s):
* [ Copyright (C) 2011 Markus Mohrhard <markus.mohrhard@googlemail.com> (initial developer) ]
*
* All Rights Reserved.
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 3 or later (the "GPLv3+"), or
* the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
* in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
* instead of those above.
*/
#include "anyrefdg.hxx"
#include "namedefdlg.hrc"
#include <vcl/button.hxx>
class
ScNameDefDlg
:
public
ModalDialog
{
private
:
OKButton
maBtnOk
;
public
:
ScNameDefDlg
(
Window
*
pParent
);
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/namedlg/namedefdlg.cxx
0 → 100644
Dosyayı görüntüle @
8fd3c3ac
#include "namedefdlg.hxx"
ScNameDefDlg
::
ScNameDefDlg
(
Window
*
pParent
)
:
ModalDialog
(
pParent
,
ScResId
(
RID_SCDLG_NAMES_DEFINE
)
),
maBtnOk
(
this
,
ScResId
(
BTN_OK
)
)
{
}
sc/source/ui/src/namedefdlg.src
0 → 100644
Dosyayı görüntüle @
8fd3c3ac
#include "namedefdlg.hrc"
ModalDialog RID_SCDLG_NAMES_DEFINE
{
OutputSize = TRUE ;
HelpId = CMD_FID_ADD_NAME ;
Hide = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 100 , 200 ) ;
Text [ en-US ] = "Define Names" ;
Moveable = TRUE ;
Closeable = TRUE;
OkButton BTN_OK
{
Pos = MAP_APPFONT( 50, 50 );
Size = MAP_APPFONT( 40, 14 );
TabStop = TRUE;
};
};
sc/source/ui/view/cellsh1.cxx
Dosyayı görüntüle @
8fd3c3ac
...
@@ -1837,6 +1837,16 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
...
@@ -1837,6 +1837,16 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
}
}
break
;
break
;
case
FID_ADD_NAME
:
{
ScAbstractDialogFactory
*
pFact
=
ScAbstractDialogFactory
::
Create
();
AbstractScNameAddDlg
*
pDlg
=
pFact
->
CreateScNameAddDlg
(
pTabViewShell
->
GetDialogParent
(),
RID_SCDLG_NAMES_DEFINE
);
pDlg
->
Execute
();
delete
pDlg
;
}
break
;
case
SID_RANGE_NOTETEXT
:
case
SID_RANGE_NOTETEXT
:
if
(
pReqArgs
)
if
(
pReqArgs
)
{
{
...
...
sc/source/ui/view/editsh.cxx
Dosyayı görüntüle @
8fd3c3ac
...
@@ -451,6 +451,16 @@ void ScEditShell::Execute( SfxRequest& rReq )
...
@@ -451,6 +451,16 @@ void ScEditShell::Execute( SfxRequest& rReq )
}
}
break
;
break
;
case
FID_ADD_NAME
:
{
ScAbstractDialogFactory
*
pFact
=
ScAbstractDialogFactory
::
Create
();
AbstractScNameAddDlg
*
pDlg
=
pFact
->
CreateScNameAddDlg
(
pViewData
->
GetDialogParent
(),
RID_SCDLG_NAMES_DEFINE
);
pDlg
->
Execute
();
delete
pDlg
;
}
break
;
case
SID_CHAR_DLG
:
case
SID_CHAR_DLG
:
{
{
SfxItemSet
aAttrs
(
pTableView
->
GetAttribs
()
);
SfxItemSet
aAttrs
(
pTableView
->
GetAttribs
()
);
...
...
sc/uiconfig/scalc/menubar/menubar.xml
Dosyayı görüntüle @
8fd3c3ac
...
@@ -163,6 +163,7 @@
...
@@ -163,6 +163,7 @@
<menu:menuseparator/>
<menu:menuseparator/>
<menu:menu
menu:id=
".uno:NamesMenu"
>
<menu:menu
menu:id=
".uno:NamesMenu"
>
<menu:menupopup>
<menu:menupopup>
<menu:menuitem
menu:id=
".uno:AddName"
/>
<menu:menuitem
menu:id=
".uno:DefineName"
/>
<menu:menuitem
menu:id=
".uno:DefineName"
/>
<menu:menuitem
menu:id=
".uno:InsertName"
/>
<menu:menuitem
menu:id=
".uno:InsertName"
/>
<menu:menuseparator/>
<menu:menuseparator/>
...
...
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