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
dbd0e001
Kaydet (Commit)
dbd0e001
authored
Eki 26, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
XubString->OUString
Change-Id: Ie54528ccf641b380eda1d1bb12b39d0536c4d17b
üst
266bc4d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
23 deletions
+24
-23
xmlfiltercommon.hxx
filter/source/xsltdialog/xmlfiltercommon.hxx
+2
-1
xmlfiltersettingsdialog.cxx
filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
+22
-22
No files found.
filter/source/xsltdialog/xmlfiltercommon.hxx
Dosyayı görüntüle @
dbd0e001
...
@@ -97,7 +97,8 @@ extern const application_info_impl* getApplicationInfo( const rtl::OUString& rSe
...
@@ -97,7 +97,8 @@ extern const application_info_impl* getApplicationInfo( const rtl::OUString& rSe
extern
ResMgr
*
getXSLTDialogResMgr
();
extern
ResMgr
*
getXSLTDialogResMgr
();
#define RESID(x) ResId(x, *getXSLTDialogResMgr() )
#define RESID(x) ResId(x, *getXSLTDialogResMgr())
#define RESIDSTR(x) RESID(x).toString()
#endif
#endif
...
...
filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
Dosyayı görüntüle @
dbd0e001
...
@@ -81,8 +81,8 @@ XMLFilterSettingsDialog::XMLFilterSettingsDialog( Window* pParent, ResMgr& rResM
...
@@ -81,8 +81,8 @@ XMLFilterSettingsDialog::XMLFilterSettingsDialog( Window* pParent, ResMgr& rResM
mpFilterListBox
->
SetSelectHdl
(
LINK
(
this
,
XMLFilterSettingsDialog
,
SelectionChangedHdl_Impl
)
);
mpFilterListBox
->
SetSelectHdl
(
LINK
(
this
,
XMLFilterSettingsDialog
,
SelectionChangedHdl_Impl
)
);
mpFilterListBox
->
SetDeselectHdl
(
LINK
(
this
,
XMLFilterSettingsDialog
,
SelectionChangedHdl_Impl
)
);
mpFilterListBox
->
SetDeselectHdl
(
LINK
(
this
,
XMLFilterSettingsDialog
,
SelectionChangedHdl_Impl
)
);
mpFilterListBox
->
SetDoubleClickHdl
(
LINK
(
this
,
XMLFilterSettingsDialog
,
DoubleClickHdl_Impl
)
);
mpFilterListBox
->
SetDoubleClickHdl
(
LINK
(
this
,
XMLFilterSettingsDialog
,
DoubleClickHdl_Impl
)
);
mpFilterListBox
->
SetAccessibleName
(
String
(
RESID
(
STR_XML_FILTER_LISTBOX
)
));
mpFilterListBox
->
SetAccessibleName
(
RESIDSTR
(
STR_XML_FILTER_LISTBOX
));
maCtrlFilterList
.
SetAccessibleName
(
String
(
RESID
(
STR_XML_FILTER_LISTBOX
)
));
maCtrlFilterList
.
SetAccessibleName
(
RESIDSTR
(
STR_XML_FILTER_LISTBOX
));
mpFilterListBox
->
SetHelpId
(
HID_XML_FILTER_LIST
);
mpFilterListBox
->
SetHelpId
(
HID_XML_FILTER_LIST
);
maPBNew
.
SetClickHdl
(
LINK
(
this
,
XMLFilterSettingsDialog
,
ClickHdl_Impl
)
);
maPBNew
.
SetClickHdl
(
LINK
(
this
,
XMLFilterSettingsDialog
,
ClickHdl_Impl
)
);
...
@@ -234,14 +234,14 @@ void XMLFilterSettingsDialog::onNew()
...
@@ -234,14 +234,14 @@ void XMLFilterSettingsDialog::onNew()
filter_info_impl
aTempInfo
;
filter_info_impl
aTempInfo
;
// create a unique filter name
// create a unique filter name
aTempInfo
.
maFilterName
=
createUniqueFilterName
(
String
(
RESID
(
STR_DEFAULT_FILTER_NAME
)
)
);
aTempInfo
.
maFilterName
=
createUniqueFilterName
(
RESIDSTR
(
STR_DEFAULT_FILTER_NAME
)
);
// init default extension
// init default extension
String
aDefaultExtension
(
RESID
(
STR_DEFAULT_EXTENSION
)
);
String
aDefaultExtension
(
RESIDSTR
(
STR_DEFAULT_EXTENSION
)
);
aTempInfo
.
maExtension
=
aDefaultExtension
;
aTempInfo
.
maExtension
=
aDefaultExtension
;
// set default ui name
// set default ui name
aTempInfo
.
maInterfaceName
=
createUniqueInterfaceName
(
String
(
RESID
(
STR_DEFAULT_UI_NAME
)
)
);
aTempInfo
.
maInterfaceName
=
createUniqueInterfaceName
(
RESIDSTR
(
STR_DEFAULT_UI_NAME
)
);
// set default application
// set default application
aTempInfo
.
maDocumentService
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.text.TextDocument"
));
aTempInfo
.
maDocumentService
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.text.TextDocument"
));
...
@@ -811,7 +811,7 @@ void XMLFilterSettingsDialog::onDelete()
...
@@ -811,7 +811,7 @@ void XMLFilterSettingsDialog::onDelete()
filter_info_impl
*
pInfo
=
(
filter_info_impl
*
)
pEntry
->
GetUserData
();
filter_info_impl
*
pInfo
=
(
filter_info_impl
*
)
pEntry
->
GetUserData
();
String
aPlaceHolder
(
RTL_CONSTASCII_USTRINGPARAM
(
"%s"
)
);
String
aPlaceHolder
(
RTL_CONSTASCII_USTRINGPARAM
(
"%s"
)
);
String
aMessage
(
RESID
(
STR_WARN_DELETE
));
String
aMessage
(
RESID
STR
(
STR_WARN_DELETE
));
aMessage
.
SearchAndReplace
(
aPlaceHolder
,
pInfo
->
maFilterName
);
aMessage
.
SearchAndReplace
(
aPlaceHolder
,
pInfo
->
maFilterName
);
WarningBox
aWarnBox
(
this
,
(
WinBits
)(
WB_YES_NO
|
WB_DEF_YES
),
aMessage
);
WarningBox
aWarnBox
(
this
,
(
WinBits
)(
WB_YES_NO
|
WB_DEF_YES
),
aMessage
);
...
@@ -916,7 +916,7 @@ void XMLFilterSettingsDialog::onSave()
...
@@ -916,7 +916,7 @@ void XMLFilterSettingsDialog::onSave()
0
);
0
);
String
aExtensions
(
RTL_CONSTASCII_USTRINGPARAM
(
"*.jar"
)
);
String
aExtensions
(
RTL_CONSTASCII_USTRINGPARAM
(
"*.jar"
)
);
String
aFilterName
(
RESID
(
STR_FILTER_PACKAGE
)
);
String
aFilterName
(
RESIDSTR
(
STR_FILTER_PACKAGE
)
);
aFilterName
+=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
" ("
)
);
aFilterName
+=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
" ("
)
);
aFilterName
+=
aExtensions
;
aFilterName
+=
aExtensions
;
aFilterName
+=
sal_Unicode
(
')'
);
aFilterName
+=
sal_Unicode
(
')'
);
...
@@ -935,13 +935,13 @@ void XMLFilterSettingsDialog::onSave()
...
@@ -935,13 +935,13 @@ void XMLFilterSettingsDialog::onSave()
String
aMsg
;
String
aMsg
;
if
(
nFilters
>
0
)
if
(
nFilters
>
0
)
{
{
aMsg
=
String
(
RESID
(
STR_FILTERS_HAVE_BEEN_SAVED
)
);
aMsg
=
RESIDSTR
(
STR_FILTERS_HAVE_BEEN_SAVED
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
String
::
CreateFromInt32
(
nFilters
)
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
String
::
CreateFromInt32
(
nFilters
)
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
aURL
.
GetName
()
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
aURL
.
GetName
()
);
}
}
else
else
{
{
aMsg
=
String
(
RESID
(
STR_FILTER_HAS_BEEN_SAVED
)
);
aMsg
=
RESIDSTR
(
STR_FILTER_HAS_BEEN_SAVED
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
(
*
aFilters
.
begin
())
->
maFilterName
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
(
*
aFilters
.
begin
())
->
maFilterName
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
aURL
.
GetName
()
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
aURL
.
GetName
()
);
}
}
...
@@ -962,7 +962,7 @@ void XMLFilterSettingsDialog::onOpen()
...
@@ -962,7 +962,7 @@ void XMLFilterSettingsDialog::onOpen()
com
::
sun
::
star
::
ui
::
dialogs
::
TemplateDescription
::
FILEOPEN_SIMPLE
,
0
);
com
::
sun
::
star
::
ui
::
dialogs
::
TemplateDescription
::
FILEOPEN_SIMPLE
,
0
);
String
aExtensions
(
RTL_CONSTASCII_USTRINGPARAM
(
"*.jar"
)
);
String
aExtensions
(
RTL_CONSTASCII_USTRINGPARAM
(
"*.jar"
)
);
String
aFilterName
(
RESID
(
STR_FILTER_PACKAGE
)
);
String
aFilterName
(
RESIDSTR
(
STR_FILTER_PACKAGE
)
);
aFilterName
+=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
" ("
)
);
aFilterName
+=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
" ("
)
);
aFilterName
+=
aExtensions
;
aFilterName
+=
aExtensions
;
aFilterName
+=
sal_Unicode
(
')'
);
aFilterName
+=
sal_Unicode
(
')'
);
...
@@ -999,18 +999,18 @@ void XMLFilterSettingsDialog::onOpen()
...
@@ -999,18 +999,18 @@ void XMLFilterSettingsDialog::onOpen()
if
(
nFilters
==
0
)
if
(
nFilters
==
0
)
{
{
INetURLObject
aURLObj
(
aURL
);
INetURLObject
aURLObj
(
aURL
);
aMsg
=
String
(
RESID
(
STR_NO_FILTERS_FOUND
)
);
aMsg
=
RESIDSTR
(
STR_NO_FILTERS_FOUND
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
aURLObj
.
GetName
()
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
aURLObj
.
GetName
()
);
}
}
else
if
(
nFilters
==
1
)
else
if
(
nFilters
==
1
)
{
{
aMsg
=
String
(
RESID
(
STR_FILTER_INSTALLED
)
);
aMsg
=
RESIDSTR
(
STR_FILTER_INSTALLED
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
aFilterName
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
aFilterName
);
}
}
else
else
{
{
aMsg
=
String
(
RESID
(
STR_FILTERS_INSTALLED
)
);
aMsg
=
RESIDSTR
(
STR_FILTERS_INSTALLED
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
String
::
CreateFromInt32
(
nFilters
)
);
aMsg
.
SearchAndReplace
(
sPlaceholder
,
String
::
CreateFromInt32
(
nFilters
)
);
}
}
...
@@ -1359,7 +1359,7 @@ OUString getApplicationUIName( const OUString& rServiceName )
...
@@ -1359,7 +1359,7 @@ OUString getApplicationUIName( const OUString& rServiceName )
}
}
else
else
{
{
OUString
aRet
=
String
(
RESID
(
STR_UNKNOWN_APPLICATION
)
);
OUString
aRet
=
RESIDSTR
(
STR_UNKNOWN_APPLICATION
);
if
(
!
rServiceName
.
isEmpty
()
)
if
(
!
rServiceName
.
isEmpty
()
)
{
{
aRet
+=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
" ("
));
aRet
+=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
" ("
));
...
@@ -1403,8 +1403,8 @@ XMLFilterListBox::XMLFilterListBox( SvxPathControl_Impl * pParent )
...
@@ -1403,8 +1403,8 @@ XMLFilterListBox::XMLFilterListBox( SvxPathControl_Impl * pParent )
mpHeaderBar
->
SetPosSizePixel
(
Point
(
0
,
0
),
Size
(
aBoxSize
.
Width
(),
16
)
);
mpHeaderBar
->
SetPosSizePixel
(
Point
(
0
,
0
),
Size
(
aBoxSize
.
Width
(),
16
)
);
mpHeaderBar
->
SetEndDragHdl
(
LINK
(
this
,
XMLFilterListBox
,
HeaderEndDrag_Impl
)
);
mpHeaderBar
->
SetEndDragHdl
(
LINK
(
this
,
XMLFilterListBox
,
HeaderEndDrag_Impl
)
);
String
aStr1
(
RESID
(
STR_COLUMN_HEADER_NAME
)
);
OUString
aStr1
(
RESIDSTR
(
STR_COLUMN_HEADER_NAME
)
);
String
aStr2
(
RESID
(
STR_COLUMN_HEADER_TYPE
)
);
OUString
aStr2
(
RESIDSTR
(
STR_COLUMN_HEADER_TYPE
)
);
long
nTabSize
=
aBoxSize
.
Width
()
/
2
;
long
nTabSize
=
aBoxSize
.
Width
()
/
2
;
...
@@ -1504,7 +1504,7 @@ IMPL_LINK( XMLFilterListBox, HeaderEndDrag_Impl, HeaderBar*, pBar )
...
@@ -1504,7 +1504,7 @@ IMPL_LINK( XMLFilterListBox, HeaderEndDrag_Impl, HeaderBar*, pBar )
/** adds a new filter info entry to the ui filter list */
/** adds a new filter info entry to the ui filter list */
void
XMLFilterListBox
::
addFilterEntry
(
const
filter_info_impl
*
pInfo
)
void
XMLFilterListBox
::
addFilterEntry
(
const
filter_info_impl
*
pInfo
)
{
{
const
Xub
String
aEntryStr
(
getEntryString
(
pInfo
)
);
const
OU
String
aEntryStr
(
getEntryString
(
pInfo
)
);
InsertEntryToColumn
(
aEntryStr
,
LIST_APPEND
,
0xffff
,
(
void
*
)
pInfo
);
InsertEntryToColumn
(
aEntryStr
,
LIST_APPEND
,
0xffff
,
(
void
*
)
pInfo
);
}
}
...
@@ -1519,7 +1519,7 @@ void XMLFilterListBox::changeEntry( const filter_info_impl* pInfo )
...
@@ -1519,7 +1519,7 @@ void XMLFilterListBox::changeEntry( const filter_info_impl* pInfo )
SvTreeListEntry
*
pEntry
=
GetEntry
(
nPos
);
SvTreeListEntry
*
pEntry
=
GetEntry
(
nPos
);
if
(
(
filter_info_impl
*
)
pEntry
->
GetUserData
()
==
pInfo
)
if
(
(
filter_info_impl
*
)
pEntry
->
GetUserData
()
==
pInfo
)
{
{
Xub
String
aEntryText
(
getEntryString
(
pInfo
)
);
OU
String
aEntryText
(
getEntryString
(
pInfo
)
);
SetEntryText
(
aEntryText
,
pEntry
);
SetEntryText
(
aEntryText
,
pEntry
);
break
;
break
;
}
}
...
@@ -1545,20 +1545,20 @@ String XMLFilterListBox::getEntryString( const filter_info_impl* pInfo ) const
...
@@ -1545,20 +1545,20 @@ String XMLFilterListBox::getEntryString( const filter_info_impl* pInfo ) const
{
{
if
(
pInfo
->
maFlags
&
2
)
if
(
pInfo
->
maFlags
&
2
)
{
{
aEntryStr
+=
String
(
RESID
(
STR_IMPORT_EXPORT
)
);
aEntryStr
+=
RESIDSTR
(
STR_IMPORT_EXPORT
);
}
}
else
else
{
{
aEntryStr
+=
String
(
RESID
(
STR_IMPORT_ONLY
)
);
aEntryStr
+=
RESIDSTR
(
STR_IMPORT_ONLY
);
}
}
}
}
else
if
(
pInfo
->
maFlags
&
2
)
else
if
(
pInfo
->
maFlags
&
2
)
{
{
aEntryStr
+=
String
(
RESID
(
STR_EXPORT_ONLY
)
);
aEntryStr
+=
RESIDSTR
(
STR_EXPORT_ONLY
);
}
}
else
else
{
{
aEntryStr
+=
String
(
RESID
(
STR_UNDEFINED_FILTER
)
);
aEntryStr
+=
RESIDSTR
(
STR_UNDEFINED_FILTER
);
}
}
return
aEntryStr
;
return
aEntryStr
;
...
...
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