LibreOffice Module vcl (master)  1
msgbox.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #include <strings.hrc>
21 #include <bitmaps.hlst>
22 #include <svdata.hxx>
23 
24 #include <vcl/msgbox.hxx>
25 
27 {
28  ImplSVData* pSVData = ImplGetSVData();
29  std::vector<Image> &rImages = pSVData->maWinData.maMsgBoxImgList;
30  if (rImages.empty())
31  {
32  rImages.emplace_back(Image(StockImage::Yes, SV_RESID_BITMAP_ERRORBOX));
33  rImages.emplace_back(Image(StockImage::Yes, SV_RESID_BITMAP_QUERYBOX));
34  rImages.emplace_back(Image(StockImage::Yes, SV_RESID_BITMAP_WARNINGBOX));
35  rImages.emplace_back(Image(StockImage::Yes, SV_RESID_BITMAP_INFOBOX));
36  }
37 }
38 
40 {
43 }
44 
46 {
47  return VclResId(SV_MSGBOX_INFO);
48 }
49 
51 {
54 }
55 
57 {
58  return VclResId(SV_MSGBOX_WARNING);
59 }
60 
62 {
65 }
66 
68 {
69  return VclResId(SV_MSGBOX_ERROR);
70 }
71 
73 {
76 }
77 
79 {
80  return VclResId(SV_MSGBOX_QUERY);
81 }
82 
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Image const & GetStandardQueryBoxImage()
Definition: msgbox.cxx:72
Image const & GetStandardInfoBoxImage()
Definition: msgbox.cxx:39
OUString GetStandardErrorBoxText()
Definition: msgbox.cxx:67
Image const & GetStandardWarningBoxImage()
Definition: msgbox.cxx:50
ImplSVData * ImplGetSVData()
Definition: svdata.cxx:67
std::vector< Image > maMsgBoxImgList
Definition: svdata.hxx:209
Image const & GetStandardErrorBoxImage()
Definition: msgbox.cxx:61
OUString GetStandardQueryBoxText()
Definition: msgbox.cxx:78
OUString GetStandardWarningBoxText()
Definition: msgbox.cxx:56
OUString GetStandardInfoBoxText()
Definition: msgbox.cxx:45
ImplSVWinData maWinData
Definition: svdata.hxx:354
Definition: image.hxx:51
OUString VclResId(const char *pId)
Definition: svdata.cxx:258
static void ImplInitMsgBoxImageList()
Definition: msgbox.cxx:26