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
d931b994
Kaydet (Commit)
d931b994
authored
Ock 23, 2013
tarafından
Lionel Elie Mamane
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
show errors as errors, not warning
Change-Id: I32e514fbfbd323b688b25b9e2165d0c76e3c4db5
üst
f1bde8cb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
4 deletions
+26
-4
sqlmessage.cxx
dbaccess/source/ui/dlg/sqlmessage.cxx
+10
-1
sqlmessage.hxx
dbaccess/source/ui/inc/sqlmessage.hxx
+12
-0
SelectionBrowseBox.cxx
dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+4
-3
No files found.
dbaccess/source/ui/dlg/sqlmessage.cxx
Dosyayı görüntüle @
d931b994
...
@@ -751,7 +751,16 @@ IMPL_LINK( OSQLMessageBox, ButtonClickHdl, Button *, /*pButton*/ )
...
@@ -751,7 +751,16 @@ IMPL_LINK( OSQLMessageBox, ButtonClickHdl, Button *, /*pButton*/ )
//==================================================================
//==================================================================
OSQLWarningBox
::
OSQLWarningBox
(
Window
*
_pParent
,
const
OUString
&
_rMessage
,
WinBits
_nStyle
,
OSQLWarningBox
::
OSQLWarningBox
(
Window
*
_pParent
,
const
OUString
&
_rMessage
,
WinBits
_nStyle
,
const
::
dbtools
::
SQLExceptionInfo
*
_pAdditionalErrorInfo
)
const
::
dbtools
::
SQLExceptionInfo
*
_pAdditionalErrorInfo
)
:
OSQLMessageBox
(
_pParent
,
String
(
ModuleRes
(
STR_STAT_WARNING
)
),
_rMessage
,
_nStyle
,
OSQLMessageBox
::
Warning
,
_pAdditionalErrorInfo
)
:
OSQLMessageBox
(
_pParent
,
String
(
ModuleRes
(
STR_EXCEPTION_WARNING
)
),
_rMessage
,
_nStyle
,
OSQLMessageBox
::
Warning
,
_pAdditionalErrorInfo
)
{
}
//==================================================================
// OSQLErrorBox
//==================================================================
OSQLErrorBox
::
OSQLErrorBox
(
Window
*
_pParent
,
const
OUString
&
_rMessage
,
WinBits
_nStyle
,
const
::
dbtools
::
SQLExceptionInfo
*
_pAdditionalErrorInfo
)
:
OSQLMessageBox
(
_pParent
,
String
(
ModuleRes
(
STR_EXCEPTION_ERROR
)
),
_rMessage
,
_nStyle
,
OSQLMessageBox
::
Error
,
_pAdditionalErrorInfo
)
{
{
}
}
...
...
dbaccess/source/ui/inc/sqlmessage.hxx
Dosyayı görüntüle @
d931b994
...
@@ -119,6 +119,18 @@ public:
...
@@ -119,6 +119,18 @@ public:
const
::
dbtools
::
SQLExceptionInfo
*
_pAdditionalErrorInfo
=
NULL
);
const
::
dbtools
::
SQLExceptionInfo
*
_pAdditionalErrorInfo
=
NULL
);
};
};
//==================================================================
// OSQLErrorBox
//==================================================================
class
OSQLErrorBox
:
public
OSQLMessageBox
{
public
:
OSQLErrorBox
(
Window
*
_pParent
,
const
OUString
&
_rMessage
,
WinBits
_nStyle
=
WB_OK
|
WB_DEF_OK
,
const
::
dbtools
::
SQLExceptionInfo
*
_pAdditionalErrorInfo
=
NULL
);
};
//.........................................................................
//.........................................................................
}
// namespace dbaui
}
// namespace dbaui
//.........................................................................
//.........................................................................
...
...
dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
Dosyayı görüntüle @
d931b994
...
@@ -633,7 +633,7 @@ sal_Bool OSelectionBrowseBox::fillColumnRef(const ::rtl::OUString& _sColumnName,
...
@@ -633,7 +633,7 @@ sal_Bool OSelectionBrowseBox::fillColumnRef(const ::rtl::OUString& _sColumnName,
{
{
String
sErrorMsg
(
ModuleRes
(
RID_STR_FIELD_DOESNT_EXIST
));
String
sErrorMsg
(
ModuleRes
(
RID_STR_FIELD_DOESNT_EXIST
));
sErrorMsg
.
SearchAndReplaceAscii
(
"$name$"
,
_sColumnName
);
sErrorMsg
.
SearchAndReplaceAscii
(
"$name$"
,
_sColumnName
);
OSQL
Warning
Box
(
this
,
sErrorMsg
).
Execute
();
OSQL
Error
Box
(
this
,
sErrorMsg
).
Execute
();
bError
=
sal_True
;
bError
=
sal_True
;
}
}
else
else
...
@@ -739,7 +739,8 @@ sal_Bool OSelectionBrowseBox::saveField(String& _sFieldName ,OTableFieldDescRef&
...
@@ -739,7 +739,8 @@ sal_Bool OSelectionBrowseBox::saveField(String& _sFieldName ,OTableFieldDescRef&
// something different which we have to check
// something different which we have to check
String
sErrorMessage
(
ModuleRes
(
STR_QRY_COLUMN_NOT_FOUND
)
);
String
sErrorMessage
(
ModuleRes
(
STR_QRY_COLUMN_NOT_FOUND
)
);
sErrorMessage
.
SearchAndReplaceAscii
(
"$name$"
,
_sFieldName
);
sErrorMessage
.
SearchAndReplaceAscii
(
"$name$"
,
_sFieldName
);
OSQLWarningBox
(
this
,
sErrorMessage
).
Execute
();
OSQLErrorBox
(
this
,
sErrorMessage
).
Execute
();
return
sal_True
;
return
sal_True
;
}
}
...
@@ -895,7 +896,7 @@ sal_Bool OSelectionBrowseBox::saveField(String& _sFieldName ,OTableFieldDescRef&
...
@@ -895,7 +896,7 @@ sal_Bool OSelectionBrowseBox::saveField(String& _sFieldName ,OTableFieldDescRef&
{
// the field could not be inserted
{
// the field could not be inserted
String
sErrorMessage
(
ModuleRes
(
RID_STR_FIELD_DOESNT_EXIST
)
);
String
sErrorMessage
(
ModuleRes
(
RID_STR_FIELD_DOESNT_EXIST
)
);
sErrorMessage
.
SearchAndReplaceAscii
(
"$name$"
,
aSelEntry
->
GetField
());
sErrorMessage
.
SearchAndReplaceAscii
(
"$name$"
,
aSelEntry
->
GetField
());
OSQL
Warning
Box
(
this
,
sErrorMessage
).
Execute
();
OSQL
Error
Box
(
this
,
sErrorMessage
).
Execute
();
bError
=
sal_True
;
bError
=
sal_True
;
}
}
}
}
...
...
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