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
db4154cc
Kaydet (Commit)
db4154cc
authored
Agu 24, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add gtk_message_dialog_new-alike ctor for MessageDialog
Change-Id: Ie422cd2c903cbd18353b1929c074574d452559ce
üst
1c068a7a
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
108 additions
and
30 deletions
+108
-30
layout.hxx
include/vcl/layout.hxx
+5
-0
mmaddressblockpage.cxx
sw/source/ui/dbui/mmaddressblockpage.cxx
+3
-3
olmenu.cxx
sw/source/ui/lingu/olmenu.cxx
+2
-2
tautofmt.cxx
sw/source/ui/table/tautofmt.cxx
+4
-8
UIConfig_vcl.mk
vcl/UIConfig_vcl.mk
+2
-0
svids.hrc
vcl/inc/svids.hrc
+0
-2
print3.cxx
vcl/source/gdi/print3.cxx
+5
-3
print.src
vcl/source/src/print.src
+0
-12
layout.cxx
vcl/source/window/layout.cxx
+17
-0
errornocontentdialog.ui
vcl/uiconfig/ui/errornocontentdialog.ui
+35
-0
errornoprinterdialog.ui
vcl/uiconfig/ui/errornoprinterdialog.ui
+35
-0
No files found.
include/vcl/layout.hxx
Dosyayı görüntüle @
db4154cc
...
...
@@ -705,6 +705,11 @@ private:
short
get_response
(
const
Window
*
pWindow
)
const
;
public
:
MessageDialog
(
Window
*
pParent
,
const
OUString
&
rMessage
,
VclMessageType
eMessageType
=
VCL_MESSAGE_ERROR
,
VclButtonsType
eButtonsType
=
VCL_BUTTONS_OK
,
WinBits
nStyle
=
WB_MOVEABLE
|
WB_3DLOOK
|
WB_CLOSEABLE
);
MessageDialog
(
Window
*
pParent
,
WinBits
nStyle
);
MessageDialog
(
Window
*
pParent
,
const
OString
&
rID
,
const
OUString
&
rUIXMLDescription
);
virtual
bool
set_property
(
const
OString
&
rKey
,
const
OString
&
rValue
);
...
...
sw/source/ui/dbui/mmaddressblockpage.cxx
Dosyayı görüntüle @
db4154cc
...
...
@@ -21,9 +21,9 @@
#include <mailmergewizard.hxx>
#include <swtypes.hxx>
#include <addresslistdialog.hxx>
#include <vcl/
xtexted
t.hxx>
#include <vcl/
layou
t.hxx>
#include <vcl/txtattr.hxx>
#include <vcl/
msgbox
.hxx>
#include <vcl/
xtextedt
.hxx>
#include <mmconfigitem.hxx>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
...
...
@@ -185,7 +185,7 @@ IMPL_LINK_NOARG(SwMailMergeAddressBlockPage, AddressListHdl_Impl)
catch
(
const
uno
::
Exception
&
e
)
{
OSL_FAIL
(
OUStringToOString
(
e
.
Message
,
osl_getThreadTextEncoding
()).
getStr
());
ErrorBox
(
this
,
WB_OK
,
e
.
Message
).
Execute
();
MessageDialog
(
this
,
e
.
Message
).
Execute
();
}
return
0
;
}
...
...
sw/source/ui/lingu/olmenu.cxx
Dosyayı görüntüle @
db4154cc
...
...
@@ -70,7 +70,7 @@
#include <svx/dlgutil.hxx>
#include <unotools/lingucfg.hxx>
#include <unotools/linguprops.hxx>
#include <vcl/
msgbox
.hxx>
#include <vcl/
layout
.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
#include <sal/macros.h>
...
...
@@ -794,7 +794,7 @@ void SwSpellPopup::Execute( sal_uInt16 nId )
uno
::
Any
exc
(
::
cppu
::
getCaughtException
()
);
OUString
msg
(
::
comphelper
::
anyToString
(
exc
)
);
const
SolarMutexGuard
guard
;
ErrorBox
aErrorBox
(
NULL
,
WB_OK
,
msg
);
MessageDialog
aErrorBox
(
NULL
,
msg
);
aErrorBox
.
SetText
(
"Explanations"
);
aErrorBox
.
Execute
();
}
...
...
sw/source/ui/table/tautofmt.cxx
Dosyayı görüntüle @
db4154cc
...
...
@@ -333,10 +333,8 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, AddHdl)
if
(
!
bFmtInserted
)
{
bOk
=
RET_CANCEL
==
ErrorBox
(
this
,
WinBits
(
WB_OK_CANCEL
|
WB_DEF_OK
),
aStrInvalidFmt
).
Execute
();
bOk
=
RET_CANCEL
==
MessageDialog
(
this
,
aStrInvalidFmt
,
VCL_MESSAGE_ERROR
,
VCL_BUTTONS_OK_CANCEL
)
.
Execute
();
}
}
else
...
...
@@ -437,10 +435,8 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, RenameHdl)
if
(
!
bFmtRenamed
)
{
bOk
=
RET_CANCEL
==
ErrorBox
(
this
,
WinBits
(
WB_OK_CANCEL
|
WB_DEF_OK
),
aStrInvalidFmt
).
Execute
();
bOk
=
RET_CANCEL
==
MessageDialog
(
this
,
aStrInvalidFmt
,
VCL_MESSAGE_ERROR
,
VCL_BUTTONS_OK_CANCEL
)
.
Execute
();
}
}
else
...
...
vcl/UIConfig_vcl.mk
Dosyayı görüntüle @
db4154cc
...
...
@@ -11,6 +11,8 @@ $(eval $(call gb_UIConfig_UIConfig,vcl))
$(eval $(call gb_UIConfig_add_uifiles,vcl,\
vcl/uiconfig/ui/printdialog \
vcl/uiconfig/ui/errornocontentdialog \
vcl/uiconfig/ui/errornoprinterdialog \
))
# vim: set noet sw=4 ts=4:
vcl/inc/svids.hrc
Dosyayı görüntüle @
db4154cc
...
...
@@ -122,8 +122,6 @@
#define SV_PRINT_PROGRESS_TEXT 2
#define SV_PRINT_NATIVE_STRINGS 2050
#define SV_PRINT_NOPRINTERWARNING 2051
#define SV_PRINT_NOCONTENT 2052
#define SV_HELPTEXT_CLOSE 10000
#define SV_HELPTEXT_MINIMIZE 10001
...
...
vcl/source/gdi/print3.cxx
Dosyayı görüntüle @
db4154cc
...
...
@@ -17,10 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "vcl/layout.hxx"
#include "vcl/print.hxx"
#include "vcl/svapp.hxx"
#include "vcl/metaact.hxx"
#include "vcl/msgbox.hxx"
#include "vcl/configsettings.hxx"
#include "vcl/unohelp.hxx"
...
...
@@ -312,7 +312,8 @@ void Printer::ImplPrintJob( const boost::shared_ptr<PrinterController>& i_pContr
// && ! pController->isDirectPrint()
)
{
ErrorBox
aBox
(
NULL
,
VclResId
(
SV_PRINT_NOPRINTERWARNING
)
);
MessageDialog
aBox
(
NULL
,
"ErrorNoPrinterDialog"
,
"vcl/ui/errornoprinterdialog.ui"
);
aBox
.
Execute
();
}
pController
->
setValue
(
OUString
(
"IsDirect"
),
...
...
@@ -460,7 +461,8 @@ void Printer::ImplPrintJob( const boost::shared_ptr<PrinterController>& i_pContr
{
if
(
pController
->
getFilteredPageCount
()
==
0
)
{
ErrorBox
aBox
(
NULL
,
VclResId
(
SV_PRINT_NOCONTENT
)
);
MessageDialog
aBox
(
NULL
,
"ErrorNoContentDialog"
,
"vcl/ui/errornocontentdialog.ui"
);
aBox
.
Execute
();
return
;
}
...
...
vcl/source/src/print.src
Dosyayı görüntüle @
db4154cc
...
...
@@ -44,18 +44,6 @@ ModelessDialog SV_DLG_PRINT_PROGRESS
};
};
ErrorBox SV_PRINT_NOPRINTERWARNING
{
Title = "%PRODUCTNAME";
Message [en-US] = "No default printer found.\nPlease choose a printer and try again.";
};
ErrorBox SV_PRINT_NOCONTENT
{
Title = "%PRODUCTNAME";
Message [en-US] = "There are no pages to be printed. Please check your document for ranges relevant to printing.";
};
StringArray SV_PRINT_NATIVE_STRINGS
{
ItemList [en-US] =
...
...
vcl/source/window/layout.cxx
Dosyayı görüntüle @
db4154cc
...
...
@@ -1768,6 +1768,23 @@ MessageDialog::MessageDialog(Window* pParent, WinBits nStyle)
SetType
(
WINDOW_MESSBOX
);
}
MessageDialog
::
MessageDialog
(
Window
*
pParent
,
const
OUString
&
rMessage
,
VclMessageType
eMessageType
,
VclButtonsType
eButtonsType
,
WinBits
nStyle
)
:
Dialog
(
pParent
,
nStyle
)
,
m_eButtonsType
(
eButtonsType
)
,
m_eMessageType
(
eMessageType
)
,
m_pGrid
(
NULL
)
,
m_pImage
(
NULL
)
,
m_pPrimaryMessage
(
NULL
)
,
m_pSecondaryMessage
(
NULL
)
,
m_sPrimaryString
(
rMessage
)
{
SetType
(
WINDOW_MESSBOX
);
}
MessageDialog
::
MessageDialog
(
Window
*
pParent
,
const
OString
&
rID
,
const
OUString
&
rUIXMLDescription
)
:
Dialog
(
pParent
,
rID
,
rUIXMLDescription
,
WINDOW_MESSBOX
)
,
m_eButtonsType
(
VCL_BUTTONS_NONE
)
...
...
vcl/uiconfig/ui/errornocontentdialog.ui
0 → 100644
Dosyayı görüntüle @
db4154cc
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkMessageDialog"
id=
"ErrorNoContentDialog"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
12
</property>
<property
name=
"title"
translatable=
"yes"
>
%PRODUCTNAME
</property>
<property
name=
"resizable"
>
False
</property>
<property
name=
"type_hint"
>
dialog
</property>
<property
name=
"skip_taskbar_hint"
>
True
</property>
<property
name=
"message_type"
>
error
</property>
<property
name=
"buttons"
>
ok
</property>
<property
name=
"text"
translatable=
"yes"
>
There are no pages to be printed.
</property>
<property
name=
"secondary_text"
translatable=
"yes"
>
Please check your document for ranges relevant to printing.
</property>
<child
internal-child=
"vbox"
>
<object
class=
"GtkBox"
id=
"messagedialog-vbox"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"orientation"
>
vertical
</property>
<property
name=
"spacing"
>
24
</property>
<child
internal-child=
"action_area"
>
<object
class=
"GtkButtonBox"
id=
"messagedialog-action_area"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"layout_style"
>
end
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"pack_type"
>
end
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
</object>
</child>
</object>
</interface>
vcl/uiconfig/ui/errornoprinterdialog.ui
0 → 100644
Dosyayı görüntüle @
db4154cc
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkMessageDialog"
id=
"ErrorNoPrinterDialog"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
12
</property>
<property
name=
"title"
translatable=
"yes"
>
%PRODUCTNAME
</property>
<property
name=
"resizable"
>
False
</property>
<property
name=
"type_hint"
>
dialog
</property>
<property
name=
"skip_taskbar_hint"
>
True
</property>
<property
name=
"message_type"
>
error
</property>
<property
name=
"buttons"
>
ok
</property>
<property
name=
"text"
translatable=
"yes"
>
No default printer found.
</property>
<property
name=
"secondary_text"
translatable=
"yes"
>
Please choose a printer and try again.
</property>
<child
internal-child=
"vbox"
>
<object
class=
"GtkBox"
id=
"messagedialog-vbox"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"orientation"
>
vertical
</property>
<property
name=
"spacing"
>
24
</property>
<child
internal-child=
"action_area"
>
<object
class=
"GtkButtonBox"
id=
"messagedialog-action_area"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"layout_style"
>
end
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"pack_type"
>
end
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
</object>
</child>
</object>
</interface>
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