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
77d6f58d
Kaydet (Commit)
77d6f58d
authored
Kas 14, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert text import options to .ui
Change-Id: Ice6228f0548507b0400c25f40d8aa7cb557c8088
üst
3b238706
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
39 additions
and
197 deletions
+39
-197
AllLangResTarget_sc.mk
sc/AllLangResTarget_sc.mk
+0
-1
UI_scalc.mk
sc/UI_scalc.mk
+1
-0
sc.hrc
sc/inc/sc.hrc
+1
-1
scabstdlg.hxx
sc/inc/scabstdlg.hxx
+1
-1
scdlgfact.cxx
sc/source/ui/attrdlg/scdlgfact.cxx
+3
-14
scdlgfact.hxx
sc/source/ui/attrdlg/scdlgfact.hxx
+1
-1
textimportoptions.cxx
sc/source/ui/dbgui/textimportoptions.cxx
+23
-32
textimportoptions.src
sc/source/ui/dbgui/textimportoptions.src
+0
-102
textimportoptions.hrc
sc/source/ui/inc/textimportoptions.hrc
+0
-30
textimportoptions.hxx
sc/source/ui/inc/textimportoptions.hxx
+5
-11
filtuno.cxx
sc/source/ui/unoobj/filtuno.cxx
+2
-2
viewfun5.cxx
sc/source/ui/view/viewfun5.cxx
+2
-2
textimportoptions.ui
sc/uiconfig/scalc/ui/textimportoptions.ui
+0
-0
No files found.
sc/AllLangResTarget_sc.mk
Dosyayı görüntüle @
77d6f58d
...
...
@@ -99,7 +99,6 @@ $(eval $(call gb_SrsTarget_add_files,sc/res,\
sc/source/ui/dbgui/pvfundlg.src \
sc/source/ui/dbgui/dapitype.src \
sc/source/ui/dbgui/imoptdlg.src \
sc/source/ui/dbgui/textimportoptions.src \
sc/source/ui/dbgui/scendlg.src \
sc/source/ui/dbgui/outline.src \
sc/source/ui/dbgui/validate.src \
...
...
sc/UI_scalc.mk
Dosyayı görüntüle @
77d6f58d
...
...
@@ -11,6 +11,7 @@ $(eval $(call gb_UI_UI,modules/scalc))
$(eval $(call gb_UI_add_uifiles,modules/scalc,\
sc/uiconfig/scalc/ui/printeroptions \
sc/uiconfig/scalc/ui/textimportoptions \
))
# vim: set noet sw=4 ts=4:
sc/inc/sc.hrc
Dosyayı görüntüle @
77d6f58d
...
...
@@ -1084,7 +1084,7 @@
#define RID_SCDLG_TABPROTECTION (SC_DIALOGS_START + 148)
#define RID_SCDLG_RETYPEPASS (SC_DIALOGS_START + 150)
#define RID_SCDLG_RETYPEPASS_INPUT (SC_DIALOGS_START + 151)
#define RID_SCDLG_TEXT_IMPORT_OPTIONS (SC_DIALOGS_START + 152)
#define RID_POPUP_FILTER (SC_DIALOGS_START + 153)
#define RID_SCDLG_TAB_BG_COLOR (SC_DIALOGS_START + 154)
#define RID_SCDLG_DATABAR (SC_DIALOGS_START + 155)
...
...
sc/inc/scabstdlg.hxx
Dosyayı görüntüle @
77d6f58d
...
...
@@ -336,7 +336,7 @@ public:
SvStream
*
pInStream
,
int
nId
,
ScImportAsciiCall
eCall
)
=
0
;
virtual
AbstractScTextImportOptionsDlg
*
CreateScTextImportOptionsDlg
(
Window
*
pParent
,
int
nId
)
=
0
;
virtual
AbstractScTextImportOptionsDlg
*
CreateScTextImportOptionsDlg
(
Window
*
pParent
)
=
0
;
virtual
AbstractScAutoFormatDlg
*
CreateScAutoFormatDlg
(
Window
*
pParent
,
//add for ScAutoFormatDlg
ScAutoFormat
*
pAutoFormat
,
...
...
sc/source/ui/attrdlg/scdlgfact.cxx
Dosyayı görüntüle @
77d6f58d
...
...
@@ -668,23 +668,12 @@ AbstractScImportAsciiDlg * ScAbstractDialogFactory_Impl::CreateScImportAsciiDlg
}
// ScImportAsciiDlg end
AbstractScTextImportOptionsDlg
*
ScAbstractDialogFactory_Impl
::
CreateScTextImportOptionsDlg
(
Window
*
pParent
,
int
nId
)
AbstractScTextImportOptionsDlg
*
ScAbstractDialogFactory_Impl
::
CreateScTextImportOptionsDlg
(
Window
*
pParent
)
{
ScTextImportOptionsDlg
*
pDlg
=
NULL
;
switch
(
nId
)
{
case
RID_SCDLG_TEXT_IMPORT_OPTIONS
:
pDlg
=
new
ScTextImportOptionsDlg
(
pParent
);
break
;
default
:
;
}
return
pDlg
?
new
AbstractScTextImportOptionsDlg_Impl
(
pDlg
)
:
NULL
;
ScTextImportOptionsDlg
*
pDlg
=
new
ScTextImportOptionsDlg
(
pParent
);
return
new
AbstractScTextImportOptionsDlg_Impl
(
pDlg
);
}
AbstractScAutoFormatDlg
*
ScAbstractDialogFactory_Impl
::
CreateScAutoFormatDlg
(
Window
*
pParent
,
ScAutoFormat
*
pAutoFormat
,
const
ScAutoFormatData
*
pSelFormatData
,
...
...
sc/source/ui/attrdlg/scdlgfact.hxx
Dosyayı görüntüle @
77d6f58d
...
...
@@ -401,7 +401,7 @@ public:
SvStream
*
pInStream
,
int
nId
,
ScImportAsciiCall
eCall
);
virtual
AbstractScTextImportOptionsDlg
*
CreateScTextImportOptionsDlg
(
Window
*
pParent
,
int
nId
);
virtual
AbstractScTextImportOptionsDlg
*
CreateScTextImportOptionsDlg
(
Window
*
pParent
);
virtual
AbstractScAutoFormatDlg
*
CreateScAutoFormatDlg
(
Window
*
pParent
,
//add for ScAutoFormatDlg
ScAutoFormat
*
pAutoFormat
,
...
...
sc/source/ui/dbgui/textimportoptions.cxx
Dosyayı görüntüle @
77d6f58d
...
...
@@ -32,27 +32,18 @@
//------------------------------------------------------------------------
#include "textimportoptions.hxx"
#include "textimportoptions.hrc"
#include "scresid.hxx"
#include "vcl/window.hxx"
#include "vcl/msgbox.hxx"
#include "vcl/svapp.hxx"
#include "vcl/msgbox.hxx"
#include "vcl/window.hxx"
ScTextImportOptionsDlg
::
ScTextImportOptionsDlg
(
Window
*
pParent
)
:
ModalDialog
(
pParent
,
ScResId
(
RID_SCDLG_TEXT_IMPORT_OPTIONS
)),
maBtnOk
(
this
,
ScResId
(
BTN_OK
)),
maBtnCancel
(
this
,
ScResId
(
BTN_CANCEL
)),
maBtnHelp
(
this
,
ScResId
(
BTN_HELP
)),
maFlChooseLang
(
this
,
ScResId
(
FL_CHOOSE_LANG
)),
maRbAutomatic
(
this
,
ScResId
(
RB_AUTOMATIC
)),
maRbCustom
(
this
,
ScResId
(
RB_CUSTOM
)),
maLbCustomLang
(
this
,
ScResId
(
LB_CUSTOM_LANG
)),
maFlOption
(
this
,
ScResId
(
FL_OPTION
)),
maBtnConvertDate
(
this
,
ScResId
(
BTN_CONVERT_DATE
))
ScTextImportOptionsDlg
::
ScTextImportOptionsDlg
(
Window
*
pParent
)
:
ModalDialog
(
pParent
,
"TextImportOptionsDialog"
,
"modules/scalc/ui/textimportoptions.ui"
)
{
FreeResource
();
get
(
m_pBtnOk
,
"ok"
);
get
(
m_pRbAutomatic
,
"automatic"
);
get
(
m_pRbCustom
,
"custom"
);
get
(
m_pBtnConvertDate
,
"convertdata"
);
get
(
m_pLbCustomLang
,
"lang"
);
init
();
}
...
...
@@ -67,33 +58,33 @@ short ScTextImportOptionsDlg::Execute()
LanguageType
ScTextImportOptionsDlg
::
getLanguageType
()
const
{
if
(
m
aRbAutomatic
.
IsChecked
())
if
(
m
_pRbAutomatic
->
IsChecked
())
return
LANGUAGE_SYSTEM
;
return
m
aLbCustomLang
.
GetSelectLanguage
();
return
m
_pLbCustomLang
->
GetSelectLanguage
();
}
bool
ScTextImportOptionsDlg
::
isDateConversionSet
()
const
{
return
m
aBtnConvertDate
.
IsChecked
();
return
m
_pBtnConvertDate
->
IsChecked
();
}
void
ScTextImportOptionsDlg
::
init
()
{
Link
aLink
=
LINK
(
this
,
ScTextImportOptionsDlg
,
OKHdl
);
m
aBtnOk
.
SetClickHdl
(
aLink
);
m
_pBtnOk
->
SetClickHdl
(
aLink
);
aLink
=
LINK
(
this
,
ScTextImportOptionsDlg
,
RadioHdl
);
m
aRbAutomatic
.
SetClickHdl
(
aLink
);
m
aRbCustom
.
SetClickHdl
(
aLink
);
m
_pRbAutomatic
->
SetClickHdl
(
aLink
);
m
_pRbCustom
->
SetClickHdl
(
aLink
);
m
aRbAutomatic
.
Check
(
true
);
m
_pRbAutomatic
->
Check
(
true
);
m
aLbCustomLang
.
SetLanguageList
(
m
_pLbCustomLang
->
SetLanguageList
(
LANG_LIST_ALL
|
LANG_LIST_ONLY_KNOWN
,
false
,
false
);
LanguageType
eLang
=
Application
::
GetSettings
().
GetLanguage
();
m
aLbCustomLang
.
SelectLanguage
(
eLang
);
m
aLbCustomLang
.
Disable
();
m
_pLbCustomLang
->
SelectLanguage
(
eLang
);
m
_pLbCustomLang
->
Disable
();
}
IMPL_LINK_NOARG
(
ScTextImportOptionsDlg
,
OKHdl
)
...
...
@@ -104,13 +95,13 @@ IMPL_LINK_NOARG(ScTextImportOptionsDlg, OKHdl)
IMPL_LINK
(
ScTextImportOptionsDlg
,
RadioHdl
,
RadioButton
*
,
pBtn
)
{
if
(
pBtn
==
&
ma
RbAutomatic
)
if
(
pBtn
==
m_p
RbAutomatic
)
{
m
aLbCustomLang
.
Disable
();
m
_pLbCustomLang
->
Disable
();
}
else
if
(
pBtn
==
&
ma
RbCustom
)
else
if
(
pBtn
==
m_p
RbCustom
)
{
m
aLbCustomLang
.
Enable
();
m
_pLbCustomLang
->
Enable
();
}
return
0
;
}
...
...
sc/source/ui/dbgui/textimportoptions.src
deleted
100644 → 0
Dosyayı görüntüle @
3b238706
/*
* 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 "textimportoptions.hrc"
ModalDialog RID_SCDLG_TEXT_IMPORT_OPTIONS
{
HelpID = "sc:ModalDialog:RID_SCDLG_TEXT_IMPORT_OPTIONS";
Text [ en-US ] = "Import Options" ;
Size = MAP_APPFONT ( 230 , 101 ) ;
Moveable = TRUE ;
Closeable = TRUE ;
OutputSize = TRUE ;
OKButton BTN_OK
{
Pos = MAP_APPFONT ( 175, 6 ) ;
Size = MAP_APPFONT ( 50, 14 ) ;
DefButton = TRUE ;
};
CancelButton BTN_CANCEL
{
Pos = MAP_APPFONT ( 175, 23 ) ;
Size = MAP_APPFONT ( 50, 14 ) ;
};
HelpButton BTN_HELP
{
Pos = MAP_APPFONT ( 175, 43 ) ;
Size = MAP_APPFONT ( 50, 14 ) ;
};
FixedLine FL_CHOOSE_LANG
{
Pos = MAP_APPFONT( 6, 3 ) ;
Size = MAP_APPFONT( 165, 14 ) ;
Text [ en-US ] = "Select the language to use for import" ;
};
RadioButton RB_AUTOMATIC
{
HelpID = "sc:RadioButton:RID_SCDLG_TEXT_IMPORT_OPTIONS:RB_AUTOMATIC";
Pos = MAP_APPFONT( 12, 20 ) ;
Size = MAP_APPFONT( 159, 10 ) ;
TabStop = TRUE ;
Text [ en-US ] = "Automatic" ;
};
RadioButton RB_CUSTOM
{
HelpID = "sc:RadioButton:RID_SCDLG_TEXT_IMPORT_OPTIONS:RB_CUSTOM";
Pos = MAP_APPFONT( 12, 34 ) ;
Size = MAP_APPFONT( 159, 10 ) ;
TabStop = TRUE ;
Text [ en-US ] = "Custom" ;
};
ListBox LB_CUSTOM_LANG
{
HelpID = "sc:ListBox:RID_SCDLG_TEXT_IMPORT_OPTIONS:LB_CUSTOM_LANG";
Pos = MAP_APPFONT( 20, 50 ) ;
Size = MAP_APPFONT( 140, 120 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
Sort = TRUE ;
};
FixedLine FL_OPTION
{
Pos = MAP_APPFONT( 6, 70 );
Size = MAP_APPFONT( 165, 14 );
Text [ en-US ] = "Options" ;
};
CheckBox BTN_CONVERT_DATE
{
HelpID = "sc:CheckBox:RID_SCDLG_TEXT_IMPORT_OPTIONS:BTN_CONVERT_DATE";
Pos = MAP_APPFONT( 12, 86 );
Size = MAP_APPFONT( 159, 10 );
TabStop = TRUE ;
Text [ en-US ] = "Detect special numbers (such as dates)." ;
};
};
sc/source/ui/inc/textimportoptions.hrc
deleted
100644 → 0
Dosyayı görüntüle @
3b238706
/*
* 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_CHOOSE_LANG 4
#define RB_AUTOMATIC 5
#define RB_CUSTOM 6
#define LB_CUSTOM_LANG 7
#define FL_OPTION 8
#define BTN_CONVERT_DATE 9
sc/source/ui/inc/textimportoptions.hxx
Dosyayı görüntüle @
77d6f58d
...
...
@@ -50,20 +50,14 @@ private:
void
init
();
private
:
OKButton
maBtnOk
;
CancelButton
maBtnCancel
;
HelpButton
maBtnHelp
;
OKButton
*
m_pBtnOk
;
FixedLine
maFlChooseLang
;
RadioButton
*
m_pRbAutomatic
;
RadioButton
*
m_pRbCustom
;
RadioButton
maRbAutomatic
;
RadioButton
maRbCustom
;
SvxLanguageBox
*
m_pLbCustomLang
;
SvxLanguageBox
maLbCustomLang
;
FixedLine
maFlOption
;
CheckBox
maBtnConvertDate
;
CheckBox
*
m_pBtnConvertDate
;
DECL_LINK
(
OKHdl
,
void
*
);
...
...
sc/source/ui/unoobj/filtuno.cxx
Dosyayı görüntüle @
77d6f58d
...
...
@@ -236,8 +236,8 @@ sal_Int16 SAL_CALL ScFilterOptionsObj::execute() throw(uno::RuntimeException)
else
{
// HTML import.
::
std
::
auto
_ptr
<
AbstractScTextImportOptionsDlg
>
pDlg
(
pFact
->
CreateScTextImportOptionsDlg
(
NULL
,
RID_SCDLG_TEXT_IMPORT_OPTIONS
));
boost
::
scoped
_ptr
<
AbstractScTextImportOptionsDlg
>
pDlg
(
pFact
->
CreateScTextImportOptionsDlg
(
NULL
));
if
(
pDlg
->
Execute
()
==
RET_OK
)
{
...
...
sc/source/ui/view/viewfun5.cxx
Dosyayı görüntüle @
77d6f58d
...
...
@@ -309,8 +309,8 @@ sal_Bool ScViewFunc::PasteDataFormat( sal_uLong nFormatId,
// this for html pasting only, but in the future it may
// make sense to do it for other data types too.
ScAbstractDialogFactory
*
pFact
=
ScAbstractDialogFactory
::
Create
();
::
std
::
auto
_ptr
<
AbstractScTextImportOptionsDlg
>
pDlg
(
pFact
->
CreateScTextImportOptionsDlg
(
NULL
,
RID_SCDLG_TEXT_IMPORT_OPTIONS
));
boost
::
scoped
_ptr
<
AbstractScTextImportOptionsDlg
>
pDlg
(
pFact
->
CreateScTextImportOptionsDlg
(
NULL
));
if
(
pDlg
->
Execute
()
==
RET_OK
)
{
...
...
sc/uiconfig/scalc/ui/textimportoptions.ui
0 → 100644
Dosyayı görüntüle @
77d6f58d
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