LibreOffice Module connectivity (master) 1
sharedresources.hxx
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#pragma once
21
22#include <rtl/ustring.hxx>
23#include <vector>
25#include <unotools/resmgr.hxx>
26
27namespace connectivity
28{
29
30
31 typedef sal_uInt16 ResourceId;
32
37 {
38 public:
41
48 OUString
49 getResourceString(
50 TranslateId pResId
51 ) const;
52
66 OUString
67 getResourceStringWithSubstitution(
68 TranslateId pResId,
69 const char* _pAsciiPatternToReplace,
70 const OUString& _rStringToSubstitute
71 ) const;
72
90 OUString
91 getResourceStringWithSubstitution(
92 TranslateId pResId,
93 const char* _pAsciiPatternToReplace1,
94 const OUString& _rStringToSubstitute1,
95 const char* _pAsciiPatternToReplace2,
96 const OUString& _rStringToSubstitute2
97 ) const;
98
120 OUString
121 getResourceStringWithSubstitution(
122 TranslateId pResId,
123 const char* _pAsciiPatternToReplace1,
124 const OUString& _rStringToSubstitute1,
125 const char* _pAsciiPatternToReplace2,
126 const OUString& _rStringToSubstitute2,
127 const char* _pAsciiPatternToReplace3,
128 const OUString& _rStringToSubstitute3
129 ) const;
130
141 OUString getResourceStringWithSubstitution( TranslateId pResId,
142 const std::vector< std::pair<const char* , OUString > >& _rStringToSubstitutes) const;
143 };
144
145
146} // namespace connectivity
147
148
149/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
helper class for accessing resources shared by different libraries in the connectivity module
#define OOO_DLLPUBLIC_DBTOOLS
sal_uInt16 ResourceId