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
4805c2f4
Kaydet (Commit)
4805c2f4
authored
Eyl 25, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert padmin module from String to OUString
Change-Id: I1533ceef08ac3e330604115e0831fb01477aa958
üst
ab63cac8
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
135 additions
and
135 deletions
+135
-135
adddlg.cxx
padmin/source/adddlg.cxx
+10
-10
adddlg.hxx
padmin/source/adddlg.hxx
+9
-9
cmddlg.cxx
padmin/source/cmddlg.cxx
+37
-37
cmddlg.hxx
padmin/source/cmddlg.hxx
+16
-16
helper.cxx
padmin/source/helper.cxx
+7
-7
helper.hxx
padmin/source/helper.hxx
+2
-2
newppdlg.cxx
padmin/source/newppdlg.cxx
+8
-8
newppdlg.hxx
padmin/source/newppdlg.hxx
+1
-1
padialog.cxx
padmin/source/padialog.cxx
+20
-20
padialog.hxx
padmin/source/padialog.hxx
+3
-3
progress.cxx
padmin/source/progress.cxx
+2
-2
progress.hxx
padmin/source/progress.hxx
+2
-2
prtsetup.cxx
padmin/source/prtsetup.cxx
+13
-13
prtsetup.hxx
padmin/source/prtsetup.hxx
+4
-4
titlectrl.hxx
padmin/source/titlectrl.hxx
+1
-1
No files found.
padmin/source/adddlg.cxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -58,7 +58,7 @@ APChooseDevicePage::APChooseDevicePage( AddPrinterDialog* pParent ) :
m_aFaxBtn
.
Check
(
sal_False
);
m_aPDFBtn
.
Check
(
sal_False
);
m_aOldBtn
.
Check
(
sal_False
);
if
(
!
AddPrinterDialog
::
getOldPrinterLocation
().
Len
()
)
if
(
AddPrinterDialog
::
getOldPrinterLocation
().
isEmpty
()
)
m_aOldBtn
.
Enable
(
sal_False
);
if
(
!
PrinterInfoManager
::
get
().
addOrRemovePossible
()
)
{
...
...
@@ -112,7 +112,7 @@ APChooseDriverPage::APChooseDriverPage( AddPrinterDialog* pParent )
APChooseDriverPage
::~
APChooseDriverPage
()
{
for
(
int
i
=
0
;
i
<
m_aDriverBox
.
GetEntryCount
();
i
++
)
delete
(
String
*
)
m_aDriverBox
.
GetEntryData
(
i
);
delete
(
OU
String
*
)
m_aDriverBox
.
GetEntryData
(
i
);
}
bool
APChooseDriverPage
::
check
()
...
...
@@ -140,7 +140,7 @@ void APChooseDriverPage::fill( PrinterInfo& rInfo )
void
APChooseDriverPage
::
updateDrivers
(
bool
bRefresh
,
const
OUString
&
rSelectDriver
)
{
for
(
int
k
=
0
;
k
<
m_aDriverBox
.
GetEntryCount
();
k
++
)
delete
(
String
*
)
m_aDriverBox
.
GetEntryData
(
k
);
delete
(
OU
String
*
)
m_aDriverBox
.
GetEntryData
(
k
);
m_aDriverBox
.
Clear
();
std
::
list
<
OUString
>
aDrivers
;
...
...
@@ -305,7 +305,7 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton )
//--------------------------------------------------------------------
APNamePage
::
APNamePage
(
AddPrinterDialog
*
pParent
,
const
String
&
rInitName
,
DeviceKind
::
type
eKind
)
APNamePage
::
APNamePage
(
AddPrinterDialog
*
pParent
,
const
OU
String
&
rInitName
,
DeviceKind
::
type
eKind
)
:
APTabPage
(
pParent
,
PaResId
(
RID_ADDP_PAGE_NAME
)
),
m_aNameTxt
(
this
,
...
...
@@ -365,7 +365,7 @@ APCommandPage::APCommandPage( AddPrinterDialog* pParent, DeviceKind::type eKind
m_eKind
(
eKind
)
{
FreeResource
();
::
std
::
list
<
String
>
aCommands
;
::
std
::
list
<
OU
String
>
aCommands
;
if
(
m_eKind
==
DeviceKind
::
Printer
)
{
m_aHelpBtn
.
Show
(
sal_False
);
...
...
@@ -400,7 +400,7 @@ APCommandPage::APCommandPage( AddPrinterDialog* pParent, DeviceKind::type eKind
}
// fill in commands
::
std
::
list
<
String
>::
iterator
it
;
::
std
::
list
<
OU
String
>::
iterator
it
;
for
(
it
=
aCommands
.
begin
();
it
!=
aCommands
.
end
();
++
it
)
m_aCommandBox
.
InsertEntry
(
*
it
);
...
...
@@ -415,7 +415,7 @@ APCommandPage::APCommandPage( AddPrinterDialog* pParent, DeviceKind::type eKind
APCommandPage
::~
APCommandPage
()
{
::
std
::
list
<
String
>
aCommands
;
::
std
::
list
<
OU
String
>
aCommands
;
OUString
aLastCommand
(
m_aCommandBox
.
GetText
()
);
for
(
int
i
=
0
;
i
<
m_aCommandBox
.
GetEntryCount
();
i
++
)
{
...
...
@@ -534,7 +534,7 @@ APOldPrinterPage::APOldPrinterPage( AddPrinterDialog* pParent )
}
String
aUPrinter
(
AddPrinterDialog
::
uniquePrinterName
(
OStringToOUString
(
aPrinter
,
aEncoding
))
);
OU
String
aUPrinter
(
AddPrinterDialog
::
uniquePrinterName
(
OStringToOUString
(
aPrinter
,
aEncoding
))
);
PrinterInfo
aInfo
;
aInfo
.
m_aDriverName
=
OStringToOUString
(
aNewDriver
,
aEncoding
);
...
...
@@ -555,7 +555,7 @@ APOldPrinterPage::APOldPrinterPage( AddPrinterDialog* pParent )
aInfo
.
m_pParser
->
getMargins
(
OStringToOUString
(
aValue
,
aEncoding
),
nLeft
,
nRight
,
nTop
,
nBottom
)
)
{
const
PPDKey
*
pKey
=
aInfo
.
m_pParser
->
getKey
(
String
(
"PageSize"
)
);
const
PPDKey
*
pKey
=
aInfo
.
m_pParser
->
getKey
(
OU
String
(
"PageSize"
)
);
const
PPDValue
*
pValue
=
pKey
?
pKey
->
getValue
(
OStringToOUString
(
aValue
,
aEncoding
)
)
:
NULL
;
if
(
pKey
&&
pValue
)
aInfo
.
m_aContext
.
setValue
(
pKey
,
pValue
);
...
...
@@ -1075,7 +1075,7 @@ OUString AddPrinterDialog::uniquePrinterName( const OUString& rBase )
return
aResult
;
}
String
AddPrinterDialog
::
getOldPrinterLocation
()
OU
String
AddPrinterDialog
::
getOldPrinterLocation
()
{
static
const
char
*
pHome
=
getenv
(
"HOME"
);
OString
aFileName
;
...
...
padmin/source/adddlg.hxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -39,7 +39,7 @@ namespace DeviceKind { enum type { Printer, Fax, Pdf }; }
class
APTabPage
:
public
TabPage
{
String
m_aTitle
;
OUString
m_aTitle
;
protected
:
AddPrinterDialog
*
m_pParent
;
public
:
...
...
@@ -48,7 +48,7 @@ public:
// returns false if information is incomplete or invalid
virtual
bool
check
()
=
0
;
virtual
void
fill
(
::
psp
::
PrinterInfo
&
rInfo
)
=
0
;
const
String
&
getTitle
()
const
{
return
m_aTitle
;
}
const
OU
String
&
getTitle
()
const
{
return
m_aTitle
;
}
};
class
APChooseDevicePage
:
public
APTabPage
...
...
@@ -79,8 +79,8 @@ class APChooseDriverPage : public APTabPage
PushButton
m_aAddBtn
;
PushButton
m_aRemBtn
;
String
m_aRemStr
;
String
m_aLastPrinterName
;
OUString
m_aRemStr
;
OUString
m_aLastPrinterName
;
DECL_LINK
(
ClickBtnHdl
,
PushButton
*
);
DECL_LINK
(
DelPressedHdl
,
ListBox
*
);
...
...
@@ -101,13 +101,13 @@ class APNamePage : public APTabPage
CheckBox
m_aDefaultBox
;
CheckBox
m_aFaxSwallowBox
;
public
:
APNamePage
(
AddPrinterDialog
*
pParent
,
const
String
&
rInitName
,
DeviceKind
::
type
eKind
);
APNamePage
(
AddPrinterDialog
*
pParent
,
const
OU
String
&
rInitName
,
DeviceKind
::
type
eKind
);
~
APNamePage
();
bool
isDefault
()
{
return
m_aDefaultBox
.
IsChecked
();
}
bool
isFaxSwallow
()
{
return
m_aFaxSwallowBox
.
IsChecked
();
}
void
setText
(
const
String
&
rText
)
{
m_aNameEdt
.
SetText
(
rText
);
}
void
setText
(
const
OU
String
&
rText
)
{
m_aNameEdt
.
SetText
(
rText
);
}
virtual
bool
check
();
virtual
void
fill
(
::
psp
::
PrinterInfo
&
rInfo
);
...
...
@@ -118,7 +118,7 @@ class APCommandPage : public APTabPage
FixedText
m_aCommandTxt
;
ComboBox
m_aCommandBox
;
PushButton
m_aHelpBtn
;
String
m_aHelpTxt
;
OUString
m_aHelpTxt
;
FixedText
m_aPdfDirTxt
;
Edit
m_aPdfDirEdt
;
PushButton
m_aPdfDirBtn
;
...
...
@@ -135,7 +135,7 @@ public:
virtual
bool
check
();
virtual
void
fill
(
::
psp
::
PrinterInfo
&
rInfo
);
String
getPdfDir
()
{
return
m_aPdfDirEdt
.
GetText
();
}
OU
String
getPdfDir
()
{
return
m_aPdfDirEdt
.
GetText
();
}
};
class
APOldPrinterPage
:
public
APTabPage
...
...
@@ -230,7 +230,7 @@ public:
~
AddPrinterDialog
();
static
OUString
uniquePrinterName
(
const
OUString
&
rString
);
static
String
getOldPrinterLocation
();
static
OU
String
getOldPrinterLocation
();
void
enableNext
(
bool
bEnable
)
{
m_aNextPB
.
Enable
(
bEnable
);
}
};
...
...
padmin/source/cmddlg.cxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -35,7 +35,7 @@ using namespace padmin;
#define PDF_PERSISTENCE_GROUP "KnowPdfCommands"
#define MAX_COMMANDS 50
void
CommandStore
::
getSystemPrintCommands
(
::
std
::
list
<
String
>&
rCommands
)
void
CommandStore
::
getSystemPrintCommands
(
::
std
::
list
<
OU
String
>&
rCommands
)
{
static
::
std
::
list
<
OUString
>
aSysCommands
;
static
bool
bOnce
=
false
;
...
...
@@ -50,10 +50,10 @@ void CommandStore::getSystemPrintCommands( ::std::list< String >& rCommands )
rCommands
.
push_back
(
*
it
);
}
void
CommandStore
::
getSystemPdfCommands
(
::
std
::
list
<
String
>&
rCommands
)
void
CommandStore
::
getSystemPdfCommands
(
::
std
::
list
<
OU
String
>&
rCommands
)
{
static
bool
bOnce
=
false
;
static
::
std
::
list
<
String
>
aSysCommands
;
static
::
std
::
list
<
OU
String
>
aSysCommands
;
if
(
!
bOnce
)
{
...
...
@@ -108,19 +108,19 @@ void CommandStore::getSystemPdfCommands( ::std::list< String >& rCommands )
pclose
(
pPipe
);
}
}
::
std
::
list
<
String
>::
const_iterator
it
;
::
std
::
list
<
OU
String
>::
const_iterator
it
;
for
(
it
=
aSysCommands
.
begin
();
it
!=
aSysCommands
.
end
();
++
it
)
rCommands
.
push_back
(
*
it
);
}
void
CommandStore
::
getStoredCommands
(
const
char
*
pGroup
,
::
std
::
list
<
String
>&
rCommands
)
void
CommandStore
::
getStoredCommands
(
const
char
*
pGroup
,
::
std
::
list
<
OU
String
>&
rCommands
)
{
Config
&
rConfig
(
getPadminRC
()
);
rConfig
.
SetGroup
(
pGroup
);
sal_Int32
nKeys
=
rConfig
.
GetKeyCount
();
::
std
::
list
<
String
>::
const_iterator
it
;
::
std
::
list
<
OU
String
>::
const_iterator
it
;
while
(
nKeys
--
)
{
OUString
aCommand
(
rConfig
.
ReadKey
(
OString
::
number
(
nKeys
),
RTL_TEXTENCODING_UTF8
)
);
...
...
@@ -136,20 +136,20 @@ void CommandStore::getStoredCommands( const char* pGroup, ::std::list< String >&
void
CommandStore
::
setCommands
(
const
char
*
pGroup
,
const
::
std
::
list
<
String
>&
rCommands
,
const
::
std
::
list
<
String
>&
rSysCommands
const
::
std
::
list
<
OU
String
>&
rCommands
,
const
::
std
::
list
<
OU
String
>&
rSysCommands
)
{
Config
&
rConfig
(
getPadminRC
()
);
rConfig
.
DeleteGroup
(
pGroup
);
rConfig
.
SetGroup
(
pGroup
);
::
std
::
list
<
String
>::
const_iterator
it
,
loop
;
::
std
::
list
<
String
>
aWriteList
;
::
std
::
list
<
OU
String
>::
const_iterator
it
,
loop
;
::
std
::
list
<
OU
String
>
aWriteList
;
sal_Int32
nWritten
=
0
;
for
(
it
=
rCommands
.
begin
();
it
!=
rCommands
.
end
();
++
it
)
{
if
(
it
->
Len
()
)
if
(
!
it
->
isEmpty
()
)
{
for
(
loop
=
rSysCommands
.
begin
();
loop
!=
rSysCommands
.
end
()
&&
*
loop
!=
*
it
;
++
loop
)
;
...
...
@@ -170,43 +170,43 @@ void CommandStore::setCommands(
}
void
CommandStore
::
getPrintCommands
(
::
std
::
list
<
String
>&
rCommands
)
void
CommandStore
::
getPrintCommands
(
::
std
::
list
<
OU
String
>&
rCommands
)
{
rCommands
.
clear
();
getSystemPrintCommands
(
rCommands
);
getStoredCommands
(
PRINTER_PERSISTENCE_GROUP
,
rCommands
);
}
void
CommandStore
::
getPdfCommands
(
::
std
::
list
<
String
>&
rCommands
)
void
CommandStore
::
getPdfCommands
(
::
std
::
list
<
OU
String
>&
rCommands
)
{
rCommands
.
clear
();
getSystemPdfCommands
(
rCommands
);
getStoredCommands
(
PDF_PERSISTENCE_GROUP
,
rCommands
);
}
void
CommandStore
::
getFaxCommands
(
::
std
::
list
<
String
>&
rCommands
)
void
CommandStore
::
getFaxCommands
(
::
std
::
list
<
OU
String
>&
rCommands
)
{
rCommands
.
clear
();
getStoredCommands
(
FAX_PERSISTENCE_GROUP
,
rCommands
);
}
void
CommandStore
::
setPrintCommands
(
const
::
std
::
list
<
String
>&
rCommands
)
void
CommandStore
::
setPrintCommands
(
const
::
std
::
list
<
OU
String
>&
rCommands
)
{
::
std
::
list
<
String
>
aSysCmds
;
::
std
::
list
<
OU
String
>
aSysCmds
;
getSystemPrintCommands
(
aSysCmds
);
setCommands
(
PRINTER_PERSISTENCE_GROUP
,
rCommands
,
aSysCmds
);
}
void
CommandStore
::
setPdfCommands
(
const
::
std
::
list
<
String
>&
rCommands
)
void
CommandStore
::
setPdfCommands
(
const
::
std
::
list
<
OU
String
>&
rCommands
)
{
::
std
::
list
<
String
>
aSysCmds
;
::
std
::
list
<
OU
String
>
aSysCmds
;
getSystemPdfCommands
(
aSysCmds
);
setCommands
(
PDF_PERSISTENCE_GROUP
,
rCommands
,
aSysCmds
);
}
void
CommandStore
::
setFaxCommands
(
const
::
std
::
list
<
String
>&
rCommands
)
void
CommandStore
::
setFaxCommands
(
const
::
std
::
list
<
OU
String
>&
rCommands
)
{
::
std
::
list
<
String
>
aSysCmds
;
::
std
::
list
<
OU
String
>
aSysCmds
;
setCommands
(
FAX_PERSISTENCE_GROUP
,
rCommands
,
aSysCmds
);
}
...
...
@@ -237,11 +237,11 @@ RTSCommandPage::RTSCommandPage( RTSDialog* pParent ) :
// configuring as printer is only sensible in default print system
PrinterInfoManager
&
rMgr
(
PrinterInfoManager
::
get
()
);
if
(
rMgr
.
getType
()
==
PrinterInfoManager
::
Default
||
rMgr
.
isCUPSDisabled
()
)
m_nPrinterEntry
=
m_aConfigureBox
.
InsertEntry
(
String
(
PaResId
(
RID_RTS_CMD_STR_CONFIGURE_PRINTER
)
)
);
m_nPrinterEntry
=
m_aConfigureBox
.
InsertEntry
(
OU
String
(
PaResId
(
RID_RTS_CMD_STR_CONFIGURE_PRINTER
)
)
);
else
m_nPrinterEntry
=
~
0
;
m_nFaxEntry
=
m_aConfigureBox
.
InsertEntry
(
String
(
PaResId
(
RID_RTS_CMD_STR_CONFIGURE_FAX
)
)
);
m_nPdfEntry
=
m_aConfigureBox
.
InsertEntry
(
String
(
PaResId
(
RID_RTS_CMD_STR_CONFIGURE_PDF
)
)
);
m_nFaxEntry
=
m_aConfigureBox
.
InsertEntry
(
OU
String
(
PaResId
(
RID_RTS_CMD_STR_CONFIGURE_FAX
)
)
);
m_nPdfEntry
=
m_aConfigureBox
.
InsertEntry
(
OU
String
(
PaResId
(
RID_RTS_CMD_STR_CONFIGURE_PDF
)
)
);
FreeResource
();
...
...
@@ -301,8 +301,8 @@ RTSCommandPage::RTSCommandPage( RTSDialog* pParent ) :
m_aQuickCB
.
Enable
(
m_aExternalCB
.
IsChecked
()
);
String
aString
(
m_aConnectedTo
.
GetText
()
);
aString
+=
String
(
m_pParent
->
m_aJobData
.
m_aCommand
)
;
OU
String
aString
(
m_aConnectedTo
.
GetText
()
);
aString
+=
m_pParent
->
m_aJobData
.
m_aCommand
;
m_aConnectedTo
.
SetText
(
aString
);
UpdateCommands
();
...
...
@@ -314,10 +314,10 @@ RTSCommandPage::~RTSCommandPage()
void
RTSCommandPage
::
save
()
{
String
aCommand
,
aQuickCommand
;
OU
String
aCommand
,
aQuickCommand
;
bool
bHaveFax
=
m_aConfigureBox
.
GetSelectEntryPos
()
==
m_nFaxEntry
?
true
:
false
;
bool
bHavePdf
=
m_aConfigureBox
.
GetSelectEntryPos
()
==
m_nPdfEntry
?
true
:
false
;
::
std
::
list
<
String
>::
iterator
it
;
::
std
::
list
<
OU
String
>::
iterator
it
;
OUString
aFeatures
;
sal_Int32
nIndex
=
0
;
...
...
@@ -352,7 +352,7 @@ void RTSCommandPage::save()
bOldFaxSwallow
=
aToken
.
getToken
(
1
,
'='
,
nPos
).
startsWith
(
"swallow"
);
}
}
::
std
::
list
<
String
>*
pList
=
&
m_aPrinterCommands
;
::
std
::
list
<
OU
String
>*
pList
=
&
m_aPrinterCommands
;
if
(
bExternalDialog
)
{
if
(
!
aFeatures
.
isEmpty
()
)
...
...
@@ -383,8 +383,8 @@ void RTSCommandPage::save()
if
(
it
==
pList
->
end
()
)
pList
->
push_back
(
aCommand
);
if
(
aCommand
!=
String
(
m_pParent
->
m_aJobData
.
m_aCommand
)
||
aQuickCommand
!=
String
(
m_pParent
->
m_aJobData
.
m_aQuickCommand
)
||
if
(
aCommand
!=
m_pParent
->
m_aJobData
.
m_aCommand
||
aQuickCommand
!=
m_pParent
->
m_aJobData
.
m_aQuickCommand
||
(
m_bWasFax
&&
!
bHaveFax
)
||
(
!
m_bWasFax
&&
bHaveFax
)
||
(
m_bWasPdf
&&
!
bHavePdf
)
||
...
...
@@ -437,8 +437,8 @@ IMPL_LINK( RTSCommandPage, ClickBtnHdl, Button*, pButton )
}
else
if
(
pButton
==
&
m_aRemovePB
)
{
String
aEntry
(
m_aCommandsCB
.
GetText
()
);
::
std
::
list
<
String
>*
pList
;
OU
String
aEntry
(
m_aCommandsCB
.
GetText
()
);
::
std
::
list
<
OU
String
>*
pList
;
if
(
m_aConfigureBox
.
GetSelectEntryPos
()
==
m_nPrinterEntry
)
pList
=
&
m_aPrinterCommands
;
else
if
(
m_aConfigureBox
.
GetSelectEntryPos
()
==
m_nFaxEntry
)
...
...
@@ -452,7 +452,7 @@ IMPL_LINK( RTSCommandPage, ClickBtnHdl, Button*, pButton )
}
else
if
(
pButton
==
&
m_aHelpButton
)
{
String
aHelpText
;
OU
String
aHelpText
;
if
(
m_aConfigureBox
.
GetSelectEntryPos
()
==
m_nPrinterEntry
)
aHelpText
=
m_aPrinterHelp
;
else
if
(
m_aConfigureBox
.
GetSelectEntryPos
()
==
m_nFaxEntry
)
...
...
@@ -488,7 +488,7 @@ IMPL_LINK( RTSCommandPage, ModifyHdl, Edit*, pEdit )
void
RTSCommandPage
::
UpdateCommands
()
{
m_aCommandsCB
.
Clear
();
::
std
::
list
<
String
>::
iterator
it
;
::
std
::
list
<
OU
String
>::
iterator
it
;
if
(
m_aConfigureBox
.
GetSelectEntryPos
()
==
m_nPrinterEntry
)
{
for
(
it
=
m_aPrinterCommands
.
begin
();
it
!=
m_aPrinterCommands
.
end
();
++
it
)
...
...
@@ -499,7 +499,7 @@ void RTSCommandPage::UpdateCommands()
if
(
!
m_bWasFax
)
m_aCommandsCB
.
SetText
(
m_pParent
->
m_aJobData
.
m_aCommand
);
else
m_aCommandsCB
.
SetText
(
String
()
);
m_aCommandsCB
.
SetText
(
OU
String
()
);
}
else
if
(
m_aConfigureBox
.
GetSelectEntryPos
()
==
m_nFaxEntry
)
{
...
...
@@ -511,7 +511,7 @@ void RTSCommandPage::UpdateCommands()
if
(
m_bWasFax
)
m_aCommandsCB
.
SetText
(
m_pParent
->
m_aJobData
.
m_aCommand
);
else
m_aCommandsCB
.
SetText
(
String
()
);
m_aCommandsCB
.
SetText
(
OU
String
()
);
}
else
if
(
m_aConfigureBox
.
GetSelectEntryPos
()
==
m_nPdfEntry
)
{
...
...
@@ -523,7 +523,7 @@ void RTSCommandPage::UpdateCommands()
if
(
m_bWasPdf
)
m_aCommandsCB
.
SetText
(
m_pParent
->
m_aJobData
.
m_aCommand
);
else
m_aCommandsCB
.
SetText
(
String
()
);
m_aCommandsCB
.
SetText
(
OU
String
()
);
}
}
...
...
padmin/source/cmddlg.hxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -37,19 +37,19 @@ class RTSDialog;
class
CommandStore
{
static
void
getStoredCommands
(
const
char
*
pGroup
,
::
std
::
list
<
String
>&
rCommands
);
static
void
getSystemPrintCommands
(
::
std
::
list
<
String
>&
rCommands
);
static
void
getSystemPdfCommands
(
::
std
::
list
<
String
>&
rCommands
);
static
void
setCommands
(
const
char
*
pGroup
,
const
::
std
::
list
<
String
>&
rCommands
,
const
::
std
::
list
<
String
>&
rSysCommands
);
static
void
getStoredCommands
(
const
char
*
pGroup
,
::
std
::
list
<
OU
String
>&
rCommands
);
static
void
getSystemPrintCommands
(
::
std
::
list
<
OU
String
>&
rCommands
);
static
void
getSystemPdfCommands
(
::
std
::
list
<
OU
String
>&
rCommands
);
static
void
setCommands
(
const
char
*
pGroup
,
const
::
std
::
list
<
OUString
>&
rCommands
,
const
::
std
::
list
<
OU
String
>&
rSysCommands
);
public
:
static
void
getPrintCommands
(
::
std
::
list
<
String
>&
rCommands
);
static
void
getFaxCommands
(
::
std
::
list
<
String
>&
rCommands
);
static
void
getPdfCommands
(
::
std
::
list
<
String
>&
rCommands
);
static
void
getPrintCommands
(
::
std
::
list
<
OU
String
>&
rCommands
);
static
void
getFaxCommands
(
::
std
::
list
<
OU
String
>&
rCommands
);
static
void
getPdfCommands
(
::
std
::
list
<
OU
String
>&
rCommands
);
static
void
setPrintCommands
(
const
::
std
::
list
<
String
>&
rCommands
);
static
void
setFaxCommands
(
const
::
std
::
list
<
String
>&
rCommands
);
static
void
setPdfCommands
(
const
::
std
::
list
<
String
>&
rCommands
);
static
void
setPrintCommands
(
const
::
std
::
list
<
OU
String
>&
rCommands
);
static
void
setFaxCommands
(
const
::
std
::
list
<
OU
String
>&
rCommands
);
static
void
setPdfCommands
(
const
::
std
::
list
<
OU
String
>&
rCommands
);
};
class
RTSCommandPage
:
public
TabPage
...
...
@@ -79,13 +79,13 @@ private:
PushButton
m_aHelpButton
;
PushButton
m_aRemovePB
;
::
std
::
list
<
String
>
m_aPrinterCommands
;
::
std
::
list
<
String
>
m_aFaxCommands
;
::
std
::
list
<
String
>
m_aPdfCommands
;
::
std
::
list
<
OUString
>
m_aPrinterCommands
;
::
std
::
list
<
OUString
>
m_aFaxCommands
;
::
std
::
list
<
OUString
>
m_aPdfCommands
;
String
m_aFaxHelp
;
String
m_aPrinterHelp
;
String
m_aPdfHelp
;
OUString
m_aFaxHelp
;
OUString
m_aPrinterHelp
;
OUString
m_aPdfHelp
;
bool
m_bWasFax
;
bool
m_bWasPdf
;
...
...
padmin/source/helper.cxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -99,15 +99,15 @@ void padmin::FindFiles( const OUString& rDirectory, ::std::list< OUString >& rRe
if
(
aStatus
.
getFileType
()
==
FileStatus
::
Regular
||
aStatus
.
getFileType
()
==
FileStatus
::
Link
)
{
String
aFileName
=
aStatus
.
getFileName
();
OU
String
aFileName
=
aStatus
.
getFileName
();
int
nToken
=
comphelper
::
string
::
getTokenCount
(
rSuffixes
,
';'
);
while
(
nToken
--
)
{
OUString
aSuffix
=
rSuffixes
.
getToken
(
nToken
,
';'
);
if
(
aFileName
.
Len
()
>
aSuffix
.
getLength
()
+
1
)
if
(
aFileName
.
getLength
()
>
aSuffix
.
getLength
()
+
1
)
{
OUString
aExtension
=
aFileName
.
Copy
(
aFileName
.
Len
()
-
aSuffix
.
getLength
()
);
if
(
aFileName
.
GetChar
(
aFileName
.
Len
()
-
aSuffix
.
getLength
()
-
1
)
==
'.'
&&
OUString
aExtension
=
aFileName
.
copy
(
aFileName
.
getLength
()
-
aSuffix
.
getLength
()
);
if
(
aFileName
[
aFileName
.
getLength
()
-
aSuffix
.
getLength
()
-
1
]
==
'.'
&&
aExtension
.
equalsIgnoreAsciiCase
(
aSuffix
)
)
{
rResult
.
push_back
(
aFileName
);
...
...
@@ -180,7 +180,7 @@ long DelListBox::Notify( NotifyEvent& rEvent )
* QueryString
*/
QueryString
::
QueryString
(
Window
*
pParent
,
String
&
rQuery
,
String
&
rRet
,
const
::
std
::
list
<
String
>&
rChoices
)
:
QueryString
::
QueryString
(
Window
*
pParent
,
OUString
&
rQuery
,
OUString
&
rRet
,
const
::
std
::
list
<
OU
String
>&
rChoices
)
:
ModalDialog
(
pParent
,
PaResId
(
RID_STRINGQUERYDLG
)
),
m_aOKButton
(
this
,
PaResId
(
RID_STRQRY_BTN_OK
)
),
m_aCancelButton
(
this
,
PaResId
(
RID_STRQRY_BTN_CANCEL
)
),
...
...
@@ -196,7 +196,7 @@ QueryString::QueryString( Window* pParent, String& rQuery, String& rRet, const :
{
m_aComboBox
.
SetText
(
m_rReturnValue
);
m_aComboBox
.
InsertEntry
(
m_rReturnValue
);
for
(
::
std
::
list
<
String
>::
const_iterator
it
=
rChoices
.
begin
();
it
!=
rChoices
.
end
();
++
it
)
for
(
::
std
::
list
<
OU
String
>::
const_iterator
it
=
rChoices
.
begin
();
it
!=
rChoices
.
end
();
++
it
)
m_aComboBox
.
InsertEntry
(
*
it
);
m_aEdit
.
Show
(
sal_False
);
m_bUseEdit
=
false
;
...
...
@@ -235,7 +235,7 @@ sal_Bool padmin::AreYouSure( Window* pParent, int nRid )
if
(
nRid
==
-
1
)
nRid
=
RID_YOU_SURE
;
QueryBox
aQueryBox
(
pParent
,
WB_YES_NO
|
WB_DEF_NO
,
String
(
PaResId
(
nRid
)
)
);
OU
String
(
PaResId
(
nRid
)
)
);
return
aQueryBox
.
Execute
()
==
RET_NO
?
sal_False
:
sal_True
;
}
...
...
padmin/source/helper.hxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -88,13 +88,13 @@ private:
Edit
m_aEdit
;
ComboBox
m_aComboBox
;
String
&
m_rReturnValue
;
OUString
&
m_rReturnValue
;
bool
m_bUseEdit
;
DECL_LINK
(
ClickBtnHdl
,
Button
*
);
public
:
QueryString
(
Window
*
,
String
&
,
String
&
,
const
::
std
::
list
<
String
>&
rChoices
=
::
std
::
list
<
String
>
()
);
QueryString
(
Window
*
,
OUString
&
,
OUString
&
,
const
::
std
::
list
<
OUString
>&
rChoices
=
::
std
::
list
<
OU
String
>
()
);
// parent window, Query text, initial value
~
QueryString
();
};
...
...
padmin/source/newppdlg.cxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -60,8 +60,8 @@ PPDImportDialog::PPDImportDialog( Window* pParent ) :
{
FreeResource
();
String
aText
(
m_aDriverTxt
.
GetText
()
);
aText
.
SearchAndReplaceAscii
(
"%s"
,
Button
::
GetStandardText
(
BUTTON_OK
)
);
OU
String
aText
(
m_aDriverTxt
.
GetText
()
);
aText
=
aText
.
replaceFirst
(
"%s"
,
Button
::
GetStandardText
(
BUTTON_OK
)
);
m_aDriverTxt
.
SetText
(
MnemonicGenerator
::
EraseAllMnemonicChars
(
aText
)
);
Config
&
rConfig
=
getPadminRC
();
...
...
@@ -88,7 +88,7 @@ PPDImportDialog::~PPDImportDialog()
{
while
(
m_aDriverLB
.
GetEntryCount
()
)
{
delete
(
String
*
)
m_aDriverLB
.
GetEntryData
(
0
);
delete
(
OU
String
*
)
m_aDriverLB
.
GetEntryData
(
0
);
m_aDriverLB
.
RemoveEntry
(
0
);
}
}
...
...
@@ -115,7 +115,7 @@ void PPDImportDialog::Import()
}
while
(
m_aDriverLB
.
GetEntryCount
()
)
{
delete
(
String
*
)
m_aDriverLB
.
GetEntryData
(
0
);
delete
(
OU
String
*
)
m_aDriverLB
.
GetEntryData
(
0
);
m_aDriverLB
.
RemoveEntry
(
0
);
}
...
...
@@ -133,10 +133,10 @@ void PPDImportDialog::Import()
aProgress
.
setFilename
(
aFiles
.
front
()
);
INetURLObject
aPath
(
aImportPath
,
INET_PROT_FILE
,
INetURLObject
::
ENCODE_ALL
);
aPath
.
Append
(
aFiles
.
front
()
);
String
aPrinterName
=
PPDParser
::
getPPDPrinterName
(
aPath
.
PathToFileName
()
);
OU
String
aPrinterName
=
PPDParser
::
getPPDPrinterName
(
aPath
.
PathToFileName
()
);
aFiles
.
pop_front
();
if
(
!
aPrinterName
.
Len
()
)
if
(
aPrinterName
.
isEmpty
()
)
{
#if OSL_DEBUG_LEVEL > 1
fprintf
(
stderr
,
"Warning: File %s has empty printer name.
\n
"
,
...
...
@@ -146,7 +146,7 @@ void PPDImportDialog::Import()
}
sal_uInt16
nPos
=
m_aDriverLB
.
InsertEntry
(
aPrinterName
);
m_aDriverLB
.
SetEntryData
(
nPos
,
new
String
(
aPath
.
PathToFileName
()
)
);
m_aDriverLB
.
SetEntryData
(
nPos
,
new
OU
String
(
aPath
.
PathToFileName
()
)
);
}
}
...
...
@@ -166,7 +166,7 @@ IMPL_LINK( PPDImportDialog, ClickBtnHdl, PushButton*, pButton )
for
(
int
i
=
0
;
i
<
m_aDriverLB
.
GetSelectEntryCount
();
i
++
)
{
INetURLObject
aFile
(
*
(
String
*
)
m_aDriverLB
.
GetEntryData
(
INetURLObject
aFile
(
*
(
OU
String
*
)
m_aDriverLB
.
GetEntryData
(
m_aDriverLB
.
GetSelectEntryPos
(
i
)
),
INET_PROT_FILE
,
INetURLObject
::
ENCODE_ALL
);
OUString
aFromUni
(
aFile
.
GetMainURL
(
INetURLObject
::
DECODE_TO_IURI
)
);
...
...
padmin/source/newppdlg.hxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -44,7 +44,7 @@ namespace padmin {
FixedLine
m_aPathGroup
;
FixedLine
m_aDriverGroup
;
String
m_aLoadingPPD
;
OUString
m_aLoadingPPD
;
DECL_LINK
(
ClickBtnHdl
,
PushButton
*
);
DECL_LINK
(
SelectHdl
,
ComboBox
*
);
...
...
padmin/source/padialog.cxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -136,7 +136,7 @@ void PADialog::Init()
m_aRenamePB
.
Enable
(
sal_False
);
m_aStdPB
.
Enable
(
sal_False
);
m_aCUPSCB
.
Enable
(
sal_False
);
ErrorBox
aBox
(
GetParent
(),
WB_OK
|
WB_DEF_OK
,
String
(
PaResId
(
RID_ERR_NOWRITE
)
)
);
ErrorBox
aBox
(
GetParent
(),
WB_OK
|
WB_DEF_OK
,
OU
String
(
PaResId
(
RID_ERR_NOWRITE
)
)
);
aBox
.
Execute
();
}
}
...
...
@@ -155,7 +155,7 @@ long PADialog::Notify( NotifyEvent& rEv )
{
if
(
m_rPIManager
.
checkPrintersChanged
(
true
)
)
{
String
aSelectEntry
=
m_aDevicesLB
.
GetSelectEntry
();
OU
String
aSelectEntry
=
m_aDevicesLB
.
GetSelectEntry
();
UpdateDevice
();
UpdateText
();
m_aDevicesLB
.
SelectEntry
(
aSelectEntry
);
...
...
@@ -176,7 +176,7 @@ void PADialog::DataChanged( const DataChangedEvent& rEv )
}
}
String
PADialog
::
getSelectedDevice
()
OU
String
PADialog
::
getSelectedDevice
()
{
int
nPos
=
m_aDevicesLB
.
GetSelectEntryPos
();
int
nLen
=
(
int
)(
sal_IntPtr
)
m_aDevicesLB
.
GetEntryData
(
nPos
);
...
...
@@ -225,8 +225,8 @@ IMPL_LINK( PADialog, SelectHdl, ListBox*, pListBox )
{
if
(
pListBox
==
&
m_aDevicesLB
)
{
String
sSelect
=
getSelectedDevice
();
String
sDefPrt
=
m_rPIManager
.
getDefaultPrinter
();
OU
String
sSelect
=
getSelectedDevice
();
OU
String
sDefPrt
=
m_rPIManager
.
getDefaultPrinter
();
if
(
sDefPrt
==
sSelect
||
!
m_rPIManager
.
removePrinter
(
sSelect
,
true
)
)
m_aRemPB
.
Enable
(
sal_False
);
else
...
...
@@ -264,7 +264,7 @@ void PADialog::UpdateText()
}
else
// nothing selected
{
String
aEmpty
;
OU
String
aEmpty
;
m_aDriver
.
SetText
(
aEmpty
);
m_aCommand
.
SetText
(
aEmpty
);
m_aComment
.
SetText
(
aEmpty
);
...
...
@@ -405,14 +405,14 @@ void SpaPrinterController::printPage( int ) const
Size
(
aPaperSize
.
Width
()
-
600
,
aPaperSize
.
Height
()
-
600
)
)
);
Font
aFont
(
String
(
"Courier"
)
,
Size
(
0
,
400
)
);
Font
aFont
(
"Courier"
,
Size
(
0
,
400
)
);
aFont
.
SetWeight
(
WEIGHT_NORMAL
);
aFont
.
SetItalic
(
ITALIC_NONE
);
pPrinter
->
SetFont
(
aFont
);
OUStringBuffer
aPrintText
(
1024
);
long
nWidth
=
0
,
nMaxWidth
=
0
;
String
aToken
;
OU
String
aToken
;
static
const
struct
{
...
...
@@ -434,7 +434,7 @@ void SpaPrinterController::printPage( int ) const
if
(
aResIds
[
i
].
pDirect
)
aToken
=
OUString
::
createFromAscii
(
aResIds
[
i
].
pDirect
);
else
aToken
=
String
(
PaResId
(
aResIds
[
i
].
nResId
)
);
aToken
=
PaResId
(
aResIds
[
i
].
nResId
);
nMaxWidth
=
(
nWidth
=
pPrinter
->
GetTextWidth
(
aToken
)
)
>
nMaxWidth
?
nWidth
:
nMaxWidth
;
aPrintText
.
append
(
aToken
);
aPrintText
.
append
(
(
sal_Unicode
)
'\n'
);
...
...
@@ -553,9 +553,9 @@ void SpaPrinterController::printPage( int ) const
void
SpaPrinterController
::
jobFinished
(
com
::
sun
::
star
::
view
::
PrintableState
)
{
String
aInfoString
(
PaResId
(
RID_PA_TXT_TESTPAGE_PRINTED
)
);
OU
String
aInfoString
(
PaResId
(
RID_PA_TXT_TESTPAGE_PRINTED
)
);
InfoBox
aInfoBox
(
NULL
,
aInfoString
);
aInfoBox
.
SetText
(
String
(
PaResId
(
RID_BXT_TESTPAGE
)
)
);
aInfoBox
.
SetText
(
OU
String
(
PaResId
(
RID_BXT_TESTPAGE
)
)
);
aInfoBox
.
Execute
();
}
...
...
@@ -567,11 +567,11 @@ void PADialog::PrintTestPage()
if
(
pPrinter
->
GetName
()
!=
sPrinter
)
{
String
aString
(
PaResId
(
RID_ERR_NOPRINTER
)
);
aString
.
SearchAndReplaceAscii
(
"%s"
,
sPrinter
);
OU
String
aString
(
PaResId
(
RID_ERR_NOPRINTER
)
);
aString
=
aString
.
replaceFirst
(
"%s"
,
sPrinter
);
ErrorBox
aErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
aString
);
aErrorBox
.
SetText
(
String
(
PaResId
(
RID_BXT_ENVIRONMENT
)
)
);
aErrorBox
.
SetText
(
PaResId
(
RID_BXT_ENVIRONMENT
)
);
aErrorBox
.
Execute
();
return
;
}
...
...
@@ -600,8 +600,8 @@ void PADialog::RemDevice()
if
(
!
m_rPIManager
.
removePrinter
(
aPrinter
)
)
{
String
aText
(
PaResId
(
RID_ERR_PRINTERNOTREMOVABLE
)
);
aText
.
SearchAndReplace
(
String
(
"%s"
)
,
aPrinter
);
OU
String
aText
(
PaResId
(
RID_ERR_PRINTERNOTREMOVABLE
)
);
aText
=
aText
.
replaceFirst
(
"%s"
,
aPrinter
);
ErrorBox
aBox
(
this
,
WB_OK
|
WB_DEF_OK
,
aText
);
aBox
.
Execute
();
return
;
...
...
@@ -643,20 +643,20 @@ void PADialog::ConfigureDevice()
void
PADialog
::
RenameDevice
()
{
String
aPrinter
(
getSelectedDevice
()
);
OU
String
aPrinter
(
getSelectedDevice
()
);
OUString
aOldPrinter
(
aPrinter
);
if
(
!
aPrinter
.
Len
()
)
if
(
aPrinter
.
isEmpty
()
)
return
;
String
aTmpString
(
PaResId
(
RID_QRY_PRTNAME
)
);
OU
String
aTmpString
(
PaResId
(
RID_QRY_PRTNAME
)
);
QueryString
aQuery
(
this
,
aTmpString
,
aPrinter
);
aQuery
.
SetText
(
m_aRenameStr
);
aQuery
.
Execute
();
if
(
aPrinter
.
Len
()
)
if
(
!
aPrinter
.
isEmpty
()
)
{
PrinterInfo
aInfo
(
m_rPIManager
.
getPrinterInfo
(
aOldPrinter
)
);
aInfo
.
m_aPrinterName
=
aPrinter
;
...
...
padmin/source/padialog.hxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -60,8 +60,8 @@ namespace padmin {
PushButton
m_aAddPB
;
CancelButton
m_aCancelButton
;
String
m_aDefPrt
;
String
m_aRenameStr
;
OUString
m_aDefPrt
;
OUString
m_aRenameStr
;
::
psp
::
PrinterInfoManager
&
m_rPIManager
;
::
std
::
list
<
OUString
>
m_aPrinters
;
...
...
@@ -91,7 +91,7 @@ namespace padmin {
virtual
long
Notify
(
NotifyEvent
&
rEv
);
virtual
void
DataChanged
(
const
DataChangedEvent
&
rEv
);
String
getSelectedDevice
();
OU
String
getSelectedDevice
();
public
:
~
PADialog
();
...
...
padmin/source/progress.cxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -60,7 +60,7 @@ ProgressDialog::~ProgressDialog()
{
}
void
ProgressDialog
::
startOperation
(
const
String
&
rOperation
)
void
ProgressDialog
::
startOperation
(
const
OU
String
&
rOperation
)
{
maOperation
.
SetText
(
rOperation
);
maProgressBar
.
SetValue
(
0
);
...
...
@@ -75,7 +75,7 @@ void ProgressDialog::setValue( int nValue )
Application
::
Reschedule
();
}
void
ProgressDialog
::
setFilename
(
const
String
&
rFilename
)
void
ProgressDialog
::
setFilename
(
const
OU
String
&
rFilename
)
{
maFilename
.
SetText
(
rFilename
);
maFilename
.
Update
();
...
...
padmin/source/progress.hxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -46,8 +46,8 @@ namespace padmin {
void
setValue
(
int
nValue
);
void
setRange
(
int
nMin
,
int
nMax
)
{
mnMin
=
nMin
;
mnMax
=
nMax
;
}
void
startOperation
(
const
String
&
);
void
setFilename
(
const
String
&
);
void
startOperation
(
const
OU
String
&
);
void
setFilename
(
const
OU
String
&
);
bool
isCanceled
()
{
return
mbCanceled
;
}
};
...
...
padmin/source/prtsetup.cxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -39,7 +39,7 @@ void RTSDialog::insertAllPPDValues( ListBox& rBox, const PPDParser* pParser, con
const
PPDValue
*
pValue
=
NULL
;
sal_uInt16
nPos
=
0
;
String
aOptionText
;
OU
String
aOptionText
;
for
(
int
i
=
0
;
i
<
pKey
->
countValues
();
i
++
)
{
...
...
@@ -76,7 +76,7 @@ void RTSDialog::insertAllPPDValues( ListBox& rBox, const PPDParser* pParser, con
* RTSDialog
*/
RTSDialog
::
RTSDialog
(
const
PrinterInfo
&
rJobData
,
const
String
&
rPrinter
,
bool
bAllPages
,
Window
*
pParent
)
RTSDialog
::
RTSDialog
(
const
PrinterInfo
&
rJobData
,
const
OU
String
&
rPrinter
,
bool
bAllPages
,
Window
*
pParent
)
:
TabDialog
(
pParent
,
"PrinterPropertiesDialog"
,
"spa/ui/printerpropertiesdialog.ui"
)
,
m_aJobData
(
rJobData
)
,
m_aPrinter
(
rPrinter
)
...
...
@@ -250,7 +250,7 @@ void RTSPaperPage::update()
// duplex
if
(
m_pParent
->
m_aJobData
.
m_pParser
&&
(
pKey
=
m_pParent
->
m_aJobData
.
m_pParser
->
getKey
(
String
(
"Duplex"
)
))
)
(
pKey
=
m_pParent
->
m_aJobData
.
m_pParser
->
getKey
(
OU
String
(
"Duplex"
)
))
)
{
m_pParent
->
insertAllPPDValues
(
*
m_pDuplexBox
,
m_pParent
->
m_aJobData
.
m_pParser
,
pKey
);
}
...
...
@@ -262,7 +262,7 @@ void RTSPaperPage::update()
// paper
if
(
m_pParent
->
m_aJobData
.
m_pParser
&&
(
pKey
=
m_pParent
->
m_aJobData
.
m_pParser
->
getKey
(
String
(
"PageSize"
)
))
)
(
pKey
=
m_pParent
->
m_aJobData
.
m_pParser
->
getKey
(
OU
String
(
"PageSize"
)
))
)
{
m_pParent
->
insertAllPPDValues
(
*
m_pPaperBox
,
m_pParent
->
m_aJobData
.
m_pParser
,
pKey
);
}
...
...
@@ -293,17 +293,17 @@ IMPL_LINK( RTSPaperPage, SelectHdl, ListBox*, pBox )
if
(
pBox
==
m_pPaperBox
)
{
if
(
m_pParent
->
m_aJobData
.
m_pParser
)
pKey
=
m_pParent
->
m_aJobData
.
m_pParser
->
getKey
(
String
(
"PageSize"
)
);
pKey
=
m_pParent
->
m_aJobData
.
m_pParser
->
getKey
(
OU
String
(
"PageSize"
)
);
}
else
if
(
pBox
==
m_pDuplexBox
)
{
if
(
m_pParent
->
m_aJobData
.
m_pParser
)
pKey
=
m_pParent
->
m_aJobData
.
m_pParser
->
getKey
(
String
(
"Duplex"
)
);
pKey
=
m_pParent
->
m_aJobData
.
m_pParser
->
getKey
(
OU
String
(
"Duplex"
)
);
}
else
if
(
pBox
==
m_pSlotBox
)
{
if
(
m_pParent
->
m_aJobData
.
m_pParser
)
pKey
=
m_pParent
->
m_aJobData
.
m_pParser
->
getKey
(
String
(
"InputSlot"
)
);
pKey
=
m_pParent
->
m_aJobData
.
m_pParser
->
getKey
(
OU
String
(
"InputSlot"
)
);
}
else
if
(
pBox
==
m_pOrientBox
)
{
...
...
@@ -395,7 +395,7 @@ RTSDevicePage::RTSDevicePage( RTSDialog* pParent )
!
pKey
->
getKey
().
equalsAscii
(
"Duplex"
)
)
{
String
aEntry
(
m_pParent
->
m_aJobData
.
m_pParser
->
translateKey
(
pKey
->
getKey
()
)
);
OU
String
aEntry
(
m_pParent
->
m_aJobData
.
m_pParser
->
translateKey
(
pKey
->
getKey
()
)
);
sal_uInt16
nPos
=
m_pPPDKeyBox
->
InsertEntry
(
aEntry
);
m_pPPDKeyBox
->
SetEntryData
(
nPos
,
(
void
*
)
pKey
);
}
...
...
@@ -499,7 +499,7 @@ void RTSDevicePage::FillValueBox( const PPDKey* pKey )
if
(
m_pParent
->
m_aJobData
.
m_aContext
.
checkConstraints
(
pKey
,
pValue
)
&&
m_pParent
->
m_aJobData
.
m_pParser
)
{
String
aEntry
(
m_pParent
->
m_aJobData
.
m_pParser
->
translateOption
(
pKey
->
getKey
(),
pValue
->
m_aOption
)
);
OU
String
aEntry
(
m_pParent
->
m_aJobData
.
m_pParser
->
translateOption
(
pKey
->
getKey
(),
pValue
->
m_aOption
)
);
sal_uInt16
nPos
=
m_pPPDValueBox
->
InsertEntry
(
aEntry
);
m_pPPDValueBox
->
SetEntryData
(
nPos
,
(
void
*
)
pValue
);
}
...
...
@@ -789,8 +789,8 @@ RTSPWDialog::RTSPWDialog( const OString& rServer, const OString& rUserName, Wind
m_aCancelButton
(
this
,
PaResId
(
RID_RTS_PWDIALOG_CANCEL_BTN
)
)
{
FreeResource
();
String
aText
(
m_aText
.
GetText
()
);
aText
.
SearchAndReplace
(
String
(
"%s"
)
,
OStringToOUString
(
rServer
,
osl_getThreadTextEncoding
()
)
);
OU
String
aText
(
m_aText
.
GetText
()
);
aText
=
aText
.
replaceFirst
(
"%s"
,
OStringToOUString
(
rServer
,
osl_getThreadTextEncoding
()
)
);
m_aText
.
SetText
(
aText
);
m_aUserEdit
.
SetText
(
OStringToOUString
(
rUserName
,
osl_getThreadTextEncoding
()
)
);
}
...
...
@@ -825,9 +825,9 @@ extern "C" {
return
nRet
;
}
int
SPA_DLLPUBLIC
Sal_queryFaxNumber
(
String
&
rNumber
)
int
SPA_DLLPUBLIC
Sal_queryFaxNumber
(
OU
String
&
rNumber
)
{
String
aTmpString
(
PaResId
(
RID_TXT_QUERYFAXNUMBER
)
);
OU
String
aTmpString
(
PaResId
(
RID_TXT_QUERYFAXNUMBER
)
);
QueryString
aQuery
(
NULL
,
aTmpString
,
rNumber
);
return
aQuery
.
Execute
();
}
...
...
padmin/source/prtsetup.hxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -52,7 +52,7 @@ class RTSDialog : public TabDialog
friend
class
RTSCommandPage
;
::
psp
::
PrinterInfo
m_aJobData
;
String
m_aPrinter
;
OUString
m_aPrinter
;
// controls
TabControl
*
m_pTabControl
;
...
...
@@ -75,7 +75,7 @@ class RTSDialog : public TabDialog
// helper functions
void
insertAllPPDValues
(
ListBox
&
,
const
psp
::
PPDParser
*
,
const
psp
::
PPDKey
*
);
public
:
RTSDialog
(
const
::
psp
::
PrinterInfo
&
rJobData
,
const
String
&
rPrinter
,
bool
bAllPages
,
Window
*
pParent
=
NULL
);
RTSDialog
(
const
::
psp
::
PrinterInfo
&
rJobData
,
const
OU
String
&
rPrinter
,
bool
bAllPages
,
Window
*
pParent
=
NULL
);
~
RTSDialog
();
const
::
psp
::
PrinterInfo
&
getSetup
()
const
{
return
m_aJobData
;
}
...
...
@@ -110,8 +110,8 @@ class RTSDevicePage : public TabPage
{
RTSDialog
*
m_pParent
;
String
m_aSpaceColor
;
String
m_aSpaceGray
;
OUString
m_aSpaceColor
;
OUString
m_aSpaceGray
;
ListBox
*
m_pPPDKeyBox
;
ListBox
*
m_pPPDValueBox
;
...
...
padmin/source/titlectrl.hxx
Dosyayı görüntüle @
4805c2f4
...
...
@@ -29,7 +29,7 @@ namespace padmin
class
TitleImage
:
public
Control
{
Image
m_aImage
;
String
m_aText
;
OUString
m_aText
;
Color
m_aBGColor
;
Point
m_aImagePos
;
Point
m_aTextPos
;
...
...
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