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
e401b9c8
Kaydet (Commit)
e401b9c8
authored
Şub 05, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert scenario dialog to .ui
Change-Id: I66f7fe04155ad4c6e42e6aa96bb2db71ba4f682f
üst
258e6f93
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
73 additions
and
351 deletions
+73
-351
AllLangResTarget_sc.mk
sc/AllLangResTarget_sc.mk
+0
-1
UIConfig_scalc.mk
sc/UIConfig_scalc.mk
+1
-0
sc.hrc
sc/inc/sc.hrc
+0
-1
scabstdlg.hxx
sc/inc/scabstdlg.hxx
+0
-1
scdlgfact.cxx
sc/source/ui/attrdlg/scdlgfact.cxx
+4
-16
scdlgfact.hxx
sc/source/ui/attrdlg/scdlgfact.hxx
+0
-1
scendlg.cxx
sc/source/ui/dbgui/scendlg.cxx
+57
-94
scendlg.hrc
sc/source/ui/dbgui/scendlg.hrc
+0
-52
scendlg.src
sc/source/ui/dbgui/scendlg.src
+0
-165
docsh4.cxx
sc/source/ui/docshell/docsh4.cxx
+1
-1
scendlg.hxx
sc/source/ui/inc/scendlg.hxx
+9
-18
cellsh3.cxx
sc/source/ui/view/cellsh3.cxx
+1
-1
scenariodialog.ui
sc/uiconfig/scalc/ui/scenariodialog.ui
+0
-0
No files found.
sc/AllLangResTarget_sc.mk
Dosyayı görüntüle @
e401b9c8
...
...
@@ -53,7 +53,6 @@ $(eval $(call gb_SrsTarget_add_files,sc/res,\
sc/source/ui/dbgui/dpgroupdlg.src \
sc/source/ui/dbgui/pvfundlg.src \
sc/source/ui/dbgui/dapitype.src \
sc/source/ui/dbgui/scendlg.src \
sc/source/ui/dbgui/validate.src \
sc/source/ui/drawfunc/drformsh.src \
sc/source/ui/drawfunc/objdraw.src \
...
...
sc/UIConfig_scalc.mk
Dosyayı görüntüle @
e401b9c8
...
...
@@ -133,6 +133,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/scalc,\
sc/uiconfig/scalc/ui/rowheightdialog \
sc/uiconfig/scalc/ui/samplingdialog \
sc/uiconfig/scalc/ui/standardfilterdialog \
sc/uiconfig/scalc/ui/scenariodialog \
sc/uiconfig/scalc/ui/scgeneralpage \
sc/uiconfig/scalc/ui/searchresults \
sc/uiconfig/scalc/ui/selectdatasource \
...
...
sc/inc/sc.hrc
Dosyayı görüntüle @
e401b9c8
...
...
@@ -1014,7 +1014,6 @@
#define RID_SCDLG_PIVOTFILTER (SC_DIALOGS_START + 33)
#define RID_SCDLG_PIVOT_LAYOUT (SC_DIALOGS_START + 34)
#define RID_SCDLG_CONSOLIDATE (SC_DIALOGS_START + 35)
#define RID_SCDLG_NEWSCENARIO (SC_DIALOGS_START + 39)
#define RID_SCDLG_INSERT_TABLE (SC_DIALOGS_START + 42)
#define RID_SCPAGE_AREAS (SC_DIALOGS_START + 44)
...
...
sc/inc/scabstdlg.hxx
Dosyayı görüntüle @
e401b9c8
...
...
@@ -442,7 +442,6 @@ public:
sal_uInt16
nOrient
)
=
0
;
virtual
AbstractScNewScenarioDlg
*
CreateScNewScenarioDlg
(
Window
*
pParent
,
const
OUString
&
rName
,
int
nId
,
sal_Bool
bEdit
=
false
,
sal_Bool
bSheetProtected
=
false
)
=
0
;
virtual
AbstractScShowTabDlg
*
CreateScShowTabDlg
(
Window
*
pParent
)
=
0
;
...
...
sc/source/ui/attrdlg/scdlgfact.cxx
Dosyayı görüntüle @
e401b9c8
...
...
@@ -901,23 +901,11 @@ AbstractScDPShowDetailDlg * ScAbstractDialogFactory_Impl::CreateScDPShowDetailDl
return
0
;
}
AbstractScNewScenarioDlg
*
ScAbstractDialogFactory_Impl
::
CreateScNewScenarioDlg
(
Window
*
pParent
,
const
OUString
&
rName
,
int
nId
,
sal_Bool
bEdit
,
sal_Bool
bSheetProtected
)
AbstractScNewScenarioDlg
*
ScAbstractDialogFactory_Impl
::
CreateScNewScenarioDlg
(
Window
*
pParent
,
const
OUString
&
rName
,
sal_Bool
bEdit
,
sal_Bool
bSheetProtected
)
{
ScNewScenarioDlg
*
pDlg
=
NULL
;
switch
(
nId
)
{
case
RID_SCDLG_NEWSCENARIO
:
pDlg
=
new
ScNewScenarioDlg
(
pParent
,
rName
,
bEdit
,
bSheetProtected
);
break
;
default
:
break
;
}
if
(
pDlg
)
return
new
AbstractScNewScenarioDlg_Impl
(
pDlg
);
return
0
;
ScNewScenarioDlg
*
pDlg
=
new
ScNewScenarioDlg
(
pParent
,
rName
,
bEdit
,
bSheetProtected
);
return
new
AbstractScNewScenarioDlg_Impl
(
pDlg
);
}
AbstractScShowTabDlg
*
ScAbstractDialogFactory_Impl
::
CreateScShowTabDlg
(
Window
*
pParent
)
...
...
sc/source/ui/attrdlg/scdlgfact.hxx
Dosyayı görüntüle @
e401b9c8
...
...
@@ -511,7 +511,6 @@ public:
sal_uInt16
nOrient
);
virtual
AbstractScNewScenarioDlg
*
CreateScNewScenarioDlg
(
Window
*
pParent
,
const
OUString
&
rName
,
int
nId
,
sal_Bool
bEdit
=
false
,
sal_Bool
bSheetProtected
=
false
);
virtual
AbstractScShowTabDlg
*
CreateScShowTabDlg
(
Window
*
pParent
);
...
...
sc/source/ui/dbgui/scendlg.cxx
Dosyayı görüntüle @
e401b9c8
...
...
@@ -37,35 +37,31 @@
#include "viewdata.hxx"
#include "document.hxx"
#include "scresid.hxx"
#include "scendlg.hrc"
#include "scendlg.hxx"
//========================================================================
ScNewScenarioDlg
::
ScNewScenarioDlg
(
Window
*
pParent
,
const
OUString
&
rName
,
sal_Bool
bEdit
,
sal_Bool
bSheetProtected
)
:
ModalDialog
(
pParent
,
ScResId
(
RID_SCDLG_NEWSCENARIO
)
),
aFlName
(
this
,
ScResId
(
FL_NAME
)),
aEdName
(
this
,
ScResId
(
ED_NAME
)
),
aFlComment
(
this
,
ScResId
(
FL_COMMENT
)
),
aEdComment
(
this
,
ScResId
(
ED_COMMENT
)
),
aFlOptions
(
this
,
ScResId
(
FL_OPTIONS
)
),
aCbShowFrame
(
this
,
ScResId
(
CB_SHOWFRAME
)
),
aLbColor
(
this
,
ScResId
(
LB_COLOR
)
),
//aCbPrintFrame ( this, ScResId( CB_PRINTFRAME ) ),
aCbTwoWay
(
this
,
ScResId
(
CB_TWOWAY
)
),
//aCbAttrib ( this, ScResId( CB_ATTRIB ) ),
//aCbValue ( this, ScResId( CB_VALUE ) ),
aCbCopyAll
(
this
,
ScResId
(
CB_COPYALL
)
),
aCbProtect
(
this
,
ScResId
(
CB_PROTECT
)
),
aBtnOk
(
this
,
ScResId
(
BTN_OK
)
),
aBtnCancel
(
this
,
ScResId
(
BTN_CANCEL
)
),
aBtnHelp
(
this
,
ScResId
(
BTN_HELP
)
),
aDefScenarioName
(
rName
),
bIsEdit
(
bEdit
)
:
ModalDialog
(
pParent
,
"ScenarioDialog"
,
"modules/scalc/ui/scenariodialog.ui"
)
,
aDefScenarioName
(
rName
)
,
bIsEdit
(
bEdit
)
{
get
(
m_pEdName
,
"name"
);
get
(
m_pEdComment
,
"comment"
);
Size
aSize
(
m_pEdComment
->
LogicToPixel
(
Size
(
183
,
46
),
MAP_APPFONT
));
m_pEdComment
->
set_width_request
(
aSize
.
Width
());
m_pEdComment
->
set_height_request
(
aSize
.
Height
());
get
(
m_pCbShowFrame
,
"showframe"
);
get
(
m_pLbColor
,
"bordercolor"
);
get
(
m_pCbTwoWay
,
"copyback"
);
get
(
m_pCbCopyAll
,
"copysheet"
);
get
(
m_pCbProtect
,
"preventchanges"
);
get
(
m_pBtnOk
,
"ok"
);
if
(
bIsEdit
)
SetText
(
OUString
(
ScResId
(
STR_EDIT
)
));
SetText
(
get
<
FixedText
>
(
"alttitle"
)
->
GetText
(
));
SfxObjectShell
*
pDocSh
=
SfxObjectShell
::
Current
();
if
(
pDocSh
)
...
...
@@ -76,65 +72,45 @@ ScNewScenarioDlg::ScNewScenarioDlg( Window* pParent, const OUString& rName, sal_
XColorListRef
pColorList
=
((
SvxColorListItem
*
)
pItem
)
->
GetColorList
();
if
(
pColorList
.
is
())
{
aLbColor
.
SetUpdateMode
(
false
);
m_pLbColor
->
SetUpdateMode
(
false
);
long
nCount
=
pColorList
->
Count
();
for
(
long
n
=
0
;
n
<
nCount
;
n
++
)
{
XColorEntry
*
pEntry
=
pColorList
->
GetColor
(
n
);
aLbColor
.
InsertEntry
(
pEntry
->
GetColor
(),
pEntry
->
GetName
()
);
m_pLbColor
->
InsertEntry
(
pEntry
->
GetColor
(),
pEntry
->
GetName
()
);
}
aLbColor
.
SetUpdateMode
(
sal_True
);
m_pLbColor
->
SetUpdateMode
(
sal_True
);
}
}
}
SvtUserOptions
aUserOpt
;
OUString
aComment
(
OUString
(
ScResId
(
STR_CREATEDBY
))
+
" "
+
aUserOpt
.
GetFirstName
()
+
" "
+
aUserOpt
.
GetLastName
()
+
", "
+
OUString
(
ScResId
(
STR_ON
))
+
" "
+
ScGlobal
::
GetpLocaleData
()
->
getDate
(
Date
(
Date
::
SYSTEM
))
+
", "
+
ScGlobal
::
GetpLocaleData
()
->
getTime
(
Time
(
Time
::
SYSTEM
)));
aEdComment
.
SetText
(
aComment
);
aEdName
.
SetText
(
rName
);
aBtnOk
.
SetClickHdl
(
LINK
(
this
,
ScNewScenarioDlg
,
OkHdl
)
);
aCbShowFrame
.
SetClickHdl
(
LINK
(
this
,
ScNewScenarioDlg
,
EnableHdl
)
);
OUString
sCreatedBy
(
get
<
FixedText
>
(
"createdft"
)
->
GetText
());
OUString
sOn
(
get
<
FixedText
>
(
"onft"
)
->
GetText
());
aLbColor
.
SetAccessibleName
(
OUString
(
ScResId
(
STR_COLOR
)
));
OUString
aComment
(
sCreatedBy
+
" "
+
aUserOpt
.
GetFirstName
()
+
" "
+
aUserOpt
.
GetLastName
()
+
", "
+
sOn
+
" "
+
ScGlobal
::
GetpLocaleData
()
->
getDate
(
Date
(
Date
::
SYSTEM
))
+
", "
+
ScGlobal
::
GetpLocaleData
()
->
getTime
(
Time
(
Time
::
SYSTEM
)));
FreeResource
();
m_pEdComment
->
SetText
(
aComment
);
m_pEdName
->
SetText
(
rName
);
m_pBtnOk
->
SetClickHdl
(
LINK
(
this
,
ScNewScenarioDlg
,
OkHdl
)
);
m_pCbShowFrame
->
SetClickHdl
(
LINK
(
this
,
ScNewScenarioDlg
,
EnableHdl
)
);
aLbColor
.
SelectEntry
(
Color
(
COL_LIGHTGRAY
)
);
aCbShowFrame
.
Check
(
sal_True
);
//aCbPrintFrame.Check(sal_True);
aCbTwoWay
.
Check
(
sal_True
);
//aCbAttrib.Check(sal_False);
//aCbValue.Check(sal_False);
aCbCopyAll
.
Check
(
false
);
aCbProtect
.
Check
(
sal_True
);
m_pLbColor
->
SelectEntry
(
Color
(
COL_LIGHTGRAY
)
);
m_pCbShowFrame
->
Check
(
sal_True
);
m_pCbTwoWay
->
Check
(
sal_True
);
m_pCbCopyAll
->
Check
(
false
);
m_pCbProtect
->
Check
(
sal_True
);
if
(
bIsEdit
)
aCbCopyAll
.
Enable
(
false
);
m_pCbCopyAll
->
Enable
(
false
);
// If the Sheet is protected then we disable the Scenario Protect input
// and default it to true above. Note we are in 'Add' mode here as: if
// Sheet && scenario protection are true, then we cannot edit this dialog.
if
(
bSheetProtected
)
aCbProtect
.
Enable
(
false
);
//! die drei funktionieren noch nicht...
/*
aCbPrintFrame.Enable(sal_False);
aCbAttrib.Enable(sal_False);
aCbValue.Enable(sal_False);
*/
aEdComment
.
SetAccessibleRelationMemberOf
(
&
aFlComment
);
aLbColor
.
SetAccessibleRelationLabeledBy
(
&
aCbShowFrame
);
}
//------------------------------------------------------------------------
ScNewScenarioDlg
::~
ScNewScenarioDlg
()
{
m_pCbProtect
->
Enable
(
false
);
}
//------------------------------------------------------------------------
...
...
@@ -142,31 +118,21 @@ ScNewScenarioDlg::~ScNewScenarioDlg()
void
ScNewScenarioDlg
::
GetScenarioData
(
OUString
&
rName
,
OUString
&
rComment
,
Color
&
rColor
,
sal_uInt16
&
rFlags
)
const
{
rComment
=
aEdComment
.
GetText
();
rName
=
aEdName
.
GetText
();
rComment
=
m_pEdComment
->
GetText
();
rName
=
m_pEdName
->
GetText
();
if
(
rName
.
isEmpty
())
rName
=
aDefScenarioName
;
rColor
=
aLbColor
.
GetSelectEntryColor
();
rColor
=
m_pLbColor
->
GetSelectEntryColor
();
sal_uInt16
nBits
=
0
;
if
(
aCbShowFrame
.
IsChecked
())
if
(
m_pCbShowFrame
->
IsChecked
())
nBits
|=
SC_SCENARIO_SHOWFRAME
;
/*
if (aCbPrintFrame.IsChecked())
nBits |= SC_SCENARIO_PRINTFRAME;
*/
if
(
aCbTwoWay
.
IsChecked
())
if
(
m_pCbTwoWay
->
IsChecked
())
nBits
|=
SC_SCENARIO_TWOWAY
;
/*
if (aCbAttrib.IsChecked())
nBits |= SC_SCENARIO_ATTRIB;
if (aCbValue.IsChecked())
nBits |= SC_SCENARIO_VALUE;
*/
if
(
aCbCopyAll
.
IsChecked
())
if
(
m_pCbCopyAll
->
IsChecked
())
nBits
|=
SC_SCENARIO_COPYALL
;
if
(
aCbProtect
.
IsChecked
())
if
(
m_pCbProtect
->
IsChecked
())
nBits
|=
SC_SCENARIO_PROTECT
;
rFlags
=
nBits
;
}
...
...
@@ -174,38 +140,35 @@ void ScNewScenarioDlg::GetScenarioData( OUString& rName, OUString& rComment,
void
ScNewScenarioDlg
::
SetScenarioData
(
const
OUString
&
rName
,
const
OUString
&
rComment
,
const
Color
&
rColor
,
sal_uInt16
nFlags
)
{
aEdComment
.
SetText
(
rComment
);
aEdName
.
SetText
(
rName
);
aLbColor
.
SelectEntry
(
rColor
);
aCbShowFrame
.
Check
(
(
nFlags
&
SC_SCENARIO_SHOWFRAME
)
!=
0
);
EnableHdl
(
&
aCbShowFrame
);
//aCbPrintFrame.Check( (nFlags & SC_SCENARIO_PRINTFRAME) != 0 );
aCbTwoWay
.
Check
(
(
nFlags
&
SC_SCENARIO_TWOWAY
)
!=
0
);
//aCbAttrib.Check ( (nFlags & SC_SCENARIO_ATTRIB) != 0 );
//aCbValue.Check ( (nFlags & SC_SCENARIO_VALUE) != 0 );
m_pEdComment
->
SetText
(
rComment
);
m_pEdName
->
SetText
(
rName
);
m_pLbColor
->
SelectEntry
(
rColor
);
m_pCbShowFrame
->
Check
(
(
nFlags
&
SC_SCENARIO_SHOWFRAME
)
!=
0
);
EnableHdl
(
m_pCbShowFrame
);
m_pCbTwoWay
->
Check
(
(
nFlags
&
SC_SCENARIO_TWOWAY
)
!=
0
);
// CopyAll nicht
aCbProtect
.
Check
(
(
nFlags
&
SC_SCENARIO_PROTECT
)
!=
0
);
m_pCbProtect
->
Check
(
(
nFlags
&
SC_SCENARIO_PROTECT
)
!=
0
);
}
//------------------------------------------------------------------------
IMPL_LINK_NOARG
(
ScNewScenarioDlg
,
OkHdl
)
{
OUString
aName
=
comphelper
::
string
::
strip
(
aEdName
.
GetText
(),
' '
);
OUString
aName
=
comphelper
::
string
::
strip
(
m_pEdName
->
GetText
(),
' '
);
ScDocument
*
pDoc
=
((
ScTabViewShell
*
)
SfxViewShell
::
Current
())
->
GetViewData
()
->
GetDocument
();
aEdName
.
SetText
(
aName
);
m_pEdName
->
SetText
(
aName
);
if
(
!
pDoc
->
ValidTabName
(
aName
)
)
{
InfoBox
(
this
,
ScGlobal
::
GetRscString
(
STR_INVALIDTABNAME
)
).
Execute
();
aEdName
.
GrabFocus
();
m_pEdName
->
GrabFocus
();
}
else
if
(
!
bIsEdit
&&
!
pDoc
->
ValidNewTabName
(
aName
)
)
{
InfoBox
(
this
,
ScGlobal
::
GetRscString
(
STR_NEWTABNAMENOTUNIQUE
)
).
Execute
();
aEdName
.
GrabFocus
();
m_pEdName
->
GrabFocus
();
}
else
EndDialog
(
RET_OK
);
...
...
@@ -218,8 +181,8 @@ IMPL_LINK_NOARG(ScNewScenarioDlg, OkHdl)
IMPL_LINK
(
ScNewScenarioDlg
,
EnableHdl
,
CheckBox
*
,
pBox
)
{
if
(
pBox
==
&
aCbShowFrame
)
aLbColor
.
Enable
(
aCbShowFrame
.
IsChecked
()
);
if
(
pBox
==
m_pCbShowFrame
)
m_pLbColor
->
Enable
(
m_pCbShowFrame
->
IsChecked
()
);
return
0
;
}
...
...
sc/source/ui/dbgui/scendlg.hrc
deleted
100644 → 0
Dosyayı görüntüle @
258e6f93
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "sc.hrc"
#define BTN_OK 1
#define BTN_CANCEL 2
#define BTN_HELP 3
#define FL_NAME 10
#define ED_NAME 11
#define FL_COMMENT 12
#define ED_COMMENT 13
#define FL_OPTIONS 20
#define CB_SHOWFRAME 21
#define LB_COLOR 22
#define CB_PRINTFRAME 23
#define CB_TWOWAY 24
#define CB_ATTRIB 25
#define CB_VALUE 26
#define CB_COPYALL 27
#define CB_PROTECT 28
#ifdef STR_ON
#undef STR_ON
#endif
#ifdef STR_EDIT
#undef STR_EDIT
#endif
#define STR_CREATEDBY 31
#define STR_ON 32
#define STR_EDIT 33
#define STR_COLOR 34
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/dbgui/scendlg.src
deleted
100644 → 0
Dosyayı görüntüle @
258e6f93
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "scendlg.hrc"
ModalDialog RID_SCDLG_NEWSCENARIO
{
HelpID = "sc:ModalDialog:RID_SCDLG_NEWSCENARIO";
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 260 , 165 ) ;
Text [ en-US ] = "Create Scenario" ;
Moveable = TRUE ;
OKButton BTN_OK
{
Pos = MAP_APPFONT ( 204 , 6 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
DefButton = TRUE ;
};
CancelButton BTN_CANCEL
{
Pos = MAP_APPFONT ( 204 , 23 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
};
HelpButton BTN_HELP
{
Pos = MAP_APPFONT ( 204 , 43 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
};
MultiLineEdit ED_COMMENT
{
HelpID = "sc:MultiLineEdit:RID_SCDLG_NEWSCENARIO:ED_COMMENT";
Border = TRUE ;
Pos = MAP_APPFONT ( 12 , 43 ) ;
Size = MAP_APPFONT ( 183 , 46 ) ;
TabStop = TRUE ;
MaxTextLength = 512 ;
VScroll = TRUE ;
IgnoreTab = TRUE ;
};
Edit ED_NAME
{
HelpID = "sc:Edit:RID_SCDLG_NEWSCENARIO:ED_NAME";
Border = TRUE ;
Pos = MAP_APPFONT ( 12 , 14 ) ;
Size = MAP_APPFONT ( 183 , 12 ) ;
TabStop = TRUE ;
};
CheckBox CB_SHOWFRAME
{
HelpID = "sc:CheckBox:RID_SCDLG_NEWSCENARIO:CB_SHOWFRAME";
Pos = MAP_APPFONT ( 12 , 107 ) ;
Size = MAP_APPFONT ( 109 , 10 ) ;
Text [ en-US ] = "~Display border";
};
ListBox LB_COLOR
{
HelpID = "sc:ListBox:RID_SCDLG_NEWSCENARIO:LB_COLOR";
Border = TRUE ;
Pos = MAP_APPFONT ( 125 , 105 ) ;
Size = MAP_APPFONT ( 70 , 86 ) ;
DropDown = TRUE ;
DDExtraWidth = TRUE ;
};
CheckBox CB_PRINTFRAME
{
HelpID = "sc:CheckBox:RID_SCDLG_NEWSCENARIO:CB_PRINTFRAME";
Hide = TRUE ;
Pos = MAP_APPFONT ( 121 , 243 ) ;
Size = MAP_APPFONT ( 83 , 10 ) ;
Text [ en-US ] = "Print border" ;
};
CheckBox CB_TWOWAY
{
HelpID = "sc:CheckBox:RID_SCDLG_NEWSCENARIO:CB_TWOWAY";
Pos = MAP_APPFONT ( 12 , 121 ) ;
Size = MAP_APPFONT ( 183 , 10 ) ;
Text [ en-US ] = "Copy ~back" ;
};
CheckBox CB_ATTRIB
{
HelpID = "sc:CheckBox:RID_SCDLG_NEWSCENARIO:CB_ATTRIB";
Hide = TRUE ;
Pos = MAP_APPFONT ( 20 , 243 ) ;
Size = MAP_APPFONT ( 83 , 10 ) ;
Text [ en-US ] = "Attributes" ;
};
CheckBox CB_VALUE
{
HelpID = "sc:CheckBox:RID_SCDLG_NEWSCENARIO:CB_VALUE";
Hide = TRUE ;
Pos = MAP_APPFONT ( 230 , 243 ) ;
Size = MAP_APPFONT ( 83 , 10 ) ;
Text [ en-US ] = "Copy values only" ;
};
CheckBox CB_COPYALL
{
HelpID = "sc:CheckBox:RID_SCDLG_NEWSCENARIO:CB_COPYALL";
Pos = MAP_APPFONT ( 12 , 135 ) ;
Size = MAP_APPFONT ( 183 , 10 ) ;
Text [ en-US ] = "Copy ~entire sheet" ;
};
CheckBox CB_PROTECT
{
HelpID = "sc:CheckBox:RID_SCDLG_NEWSCENARIO:CB_PROTECT";
Pos = MAP_APPFONT ( 12 , 149 ) ;
Size = MAP_APPFONT ( 183 , 10 ) ;
Text [ en-US ] = "~Prevent changes" ;
};
String STR_EDIT
{
Text [ en-US ] = "Edit Scenario" ;
};
String STR_CREATEDBY
{
Text [ en-US ] = "Created by" ;
};
String STR_ON
{
Text [ en-US ] = "on" ;
};
String STR_COLOR
{
Text [ en-US ] = "Display border in" ;
};
FixedLine FL_NAME
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 192 , 8 ) ;
Text [ en-US ] = "~Name of scenario";
};
FixedLine FL_COMMENT
{
Pos = MAP_APPFONT ( 6 , 32 ) ;
Size = MAP_APPFONT ( 192 , 8 ) ;
Text [ en-US ] = "~Comment";
};
FixedLine FL_OPTIONS
{
Pos = MAP_APPFONT ( 6 , 95 ) ;
Size = MAP_APPFONT ( 192 , 8 ) ;
Text [ en-US ] = "Settings";
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/docshell/docsh4.cxx
Dosyayı görüntüle @
e401b9c8
...
...
@@ -869,7 +869,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
ScAbstractDialogFactory
*
pFact
=
ScAbstractDialogFactory
::
Create
();
OSL_ENSURE
(
pFact
,
"ScAbstractFactory create fail!"
);
AbstractScNewScenarioDlg
*
pNewDlg
=
pFact
->
CreateScNewScenarioDlg
(
GetActiveDialogParent
(),
aName
,
RID_SCDLG_NEWSCENARIO
,
true
,
bSheetProtected
);
AbstractScNewScenarioDlg
*
pNewDlg
=
pFact
->
CreateScNewScenarioDlg
(
GetActiveDialogParent
(),
aName
,
true
,
bSheetProtected
);
OSL_ENSURE
(
pNewDlg
,
"Dialog create fail!"
);
pNewDlg
->
SetScenarioData
(
aName
,
aComment
,
aColor
,
nFlags
);
if
(
pNewDlg
->
Execute
()
==
RET_OK
)
...
...
sc/source/ui/inc/scendlg.hxx
Dosyayı görüntüle @
e401b9c8
...
...
@@ -33,8 +33,7 @@
class
ScNewScenarioDlg
:
public
ModalDialog
{
public
:
ScNewScenarioDlg
(
Window
*
pParent
,
const
OUString
&
rName
,
sal_Bool
bEdit
=
false
,
sal_Bool
bSheetProtected
=
false
);
~
ScNewScenarioDlg
();
ScNewScenarioDlg
(
Window
*
pParent
,
const
OUString
&
rName
,
sal_Bool
bEdit
=
false
,
sal_Bool
bSheetProtected
=
false
);
void
SetScenarioData
(
const
OUString
&
rName
,
const
OUString
&
rComment
,
const
Color
&
rColor
,
sal_uInt16
nFlags
);
...
...
@@ -43,22 +42,14 @@ public:
Color
&
rColor
,
sal_uInt16
&
rFlags
)
const
;
private
:
FixedLine
aFlName
;
Edit
aEdName
;
FixedLine
aFlComment
;
MultiLineEdit
aEdComment
;
FixedLine
aFlOptions
;
CheckBox
aCbShowFrame
;
ColorListBox
aLbColor
;
//CheckBox aCbPrintFrame;
CheckBox
aCbTwoWay
;
//CheckBox aCbAttrib;
//CheckBox aCbValue;
CheckBox
aCbCopyAll
;
CheckBox
aCbProtect
;
OKButton
aBtnOk
;
CancelButton
aBtnCancel
;
HelpButton
aBtnHelp
;
Edit
*
m_pEdName
;
VclMultiLineEdit
*
m_pEdComment
;
CheckBox
*
m_pCbShowFrame
;
ColorListBox
*
m_pLbColor
;
CheckBox
*
m_pCbTwoWay
;
CheckBox
*
m_pCbCopyAll
;
CheckBox
*
m_pCbProtect
;
OKButton
*
m_pBtnOk
;
const
OUString
aDefScenarioName
;
sal_Bool
bIsEdit
;
...
...
sc/source/ui/view/cellsh3.cxx
Dosyayı görüntüle @
e401b9c8
...
...
@@ -493,7 +493,7 @@ void ScCellShell::Execute( SfxRequest& rReq )
ScAbstractDialogFactory
*
pFact
=
ScAbstractDialogFactory
::
Create
();
OSL_ENSURE
(
pFact
,
"ScAbstractFactory create fail!"
);
AbstractScNewScenarioDlg
*
pNewDlg
=
pFact
->
CreateScNewScenarioDlg
(
pTabViewShell
->
GetDialogParent
(),
aName
,
RID_SCDLG_NEWSCENARIO
,
false
,
bSheetProtected
);
AbstractScNewScenarioDlg
*
pNewDlg
=
pFact
->
CreateScNewScenarioDlg
(
pTabViewShell
->
GetDialogParent
(),
aName
,
false
,
bSheetProtected
);
OSL_ENSURE
(
pNewDlg
,
"Dialog create fail!"
);
if
(
pNewDlg
->
Execute
()
==
RET_OK
)
{
...
...
sc/uiconfig/scalc/ui/scenariodialog.ui
0 → 100644
Dosyayı görüntüle @
e401b9c8
This diff is collapsed.
Click to expand it.
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