19#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_MMCONFIGITEM_HXX
20#define INCLUDED_SW_SOURCE_UIBASE_INC_MMCONFIGITEM_HXX
22#include <com/sun/star/uno/Sequence.hxx>
23#include <com/sun/star/uno/Reference.hxx>
24#include <com/sun/star/view/XSelectionChangeListener.hpp>
38 class XColumnsSupplier;
54 std::unique_ptr<SwMailMergeConfigItem_Impl>
m_pImpl;
81 const std::vector<std::pair<OUString, int>>& GetDefaultAddressHeaders()
const;
83 void SetCurrentConnection(
84 css::uno::Reference< css::sdbc::XDataSource>
const & xSource,
86 css::uno::Reference< css::sdbcx::XColumnsSupplier>
const & xColumnsSupplier,
89 css::uno::Reference< css::sdbc::XDataSource>
const & GetSource()
const;
93 css::uno::Reference< css::sdbcx::XColumnsSupplier>
const & GetColumnsSupplier();
95 css::uno::Reference< css::sdbc::XResultSet>
const & GetResultSet()
const;
97 void DisposeResultSet();
99 OUString& GetFilter()
const;
100 void SetFilter(OUString
const &);
102 void SetCurrentDBData(
const SwDBData& rDBData);
103 const SwDBData& GetCurrentDBData()
const;
106 sal_Int32 MoveResultSet(sal_Int32 nTarget);
107 sal_Int32 GetResultSetPosition()
const;
108 bool IsResultSetFirstLast(
bool& bIsFirst,
bool& bIsLast);
110 bool IsRecordIncluded(sal_uInt32 nRecord)
const;
111 bool IsRecordExcluded(sal_uInt32 nRecord)
const;
112 void ExcludeRecord(sal_Int32 nRecord,
bool bExclude);
113 css::uno::Sequence< css::uno::Any>
GetSelection()
const;
115 const css::uno::Sequence<OUString>& GetSavedDocuments()
const;
117 bool IsOutputToLetter()
const;
118 void SetOutputToLetter(
bool bSet);
120 bool IsAddressBlock()
const;
121 void SetAddressBlock(
bool bSet);
123 bool IsHideEmptyParagraphs()
const;
124 void SetHideEmptyParagraphs(
bool bSet);
126 css::uno::Sequence<OUString> GetAddressBlocks()
const;
127 void SetAddressBlocks(
const css::uno::Sequence< OUString>& rBlocks);
129 void SetCurrentAddressBlockIndex( sal_Int32 nSet );
130 sal_Int32 GetCurrentAddressBlockIndex()
const;
132 bool IsIncludeCountry()
const;
133 OUString& GetExcludeCountry()
const;
134 void SetCountrySettings(
bool bSet,
const OUString& sCountry);
136 bool IsIndividualGreeting(
bool bInEMail)
const;
137 void SetIndividualGreeting(
bool bSet,
bool bInEMail);
139 bool IsGreetingLine(
bool bInEMail)
const;
140 void SetGreetingLine(
bool bSet,
bool bInEMail);
142 css::uno::Sequence<OUString> GetGreetings(Gender eType)
const;
143 void SetGreetings(Gender eType,
const css::uno::Sequence< OUString>& rBlocks);
145 sal_Int32 GetCurrentGreeting(Gender eType)
const;
146 void SetCurrentGreeting(Gender eType, sal_Int32 nIndex);
149 const OUString& GetFemaleGenderValue()
const;
150 void SetFemaleGenderValue(
const OUString& rValue);
153 css::uno::Sequence<OUString> GetColumnAssignment(
const SwDBData& rDBData )
const;
154 void SetColumnAssignment(
156 const css::uno::Sequence< OUString>& );
158 bool IsAddressFieldsAssigned()
const;
159 bool IsGreetingFieldsAssigned()
const;
162 OUString
const & GetMailDisplayName()
const;
163 void SetMailDisplayName(
const OUString& rName);
165 OUString
const & GetMailAddress()
const;
166 void SetMailAddress(
const OUString& rAddress);
168 bool IsMailReplyTo()
const;
169 void SetMailReplyTo(
bool bSet);
171 OUString
const & GetMailReplyTo()
const;
172 void SetMailReplyTo(
const OUString& rReplyTo);
174 OUString
const & GetMailServer()
const;
175 void SetMailServer(
const OUString& rAddress);
177 sal_Int16 GetMailPort()
const;
178 void SetMailPort(sal_Int16 nSet);
180 bool IsSecureConnection()
const;
181 void SetSecureConnection(
bool bSet);
183 bool IsAuthentication()
const;
184 void SetAuthentication(
bool bSet);
186 OUString
const & GetMailUserName()
const;
187 void SetMailUserName(
const OUString& rName);
189 OUString
const & GetMailPassword()
const;
190 void SetMailPassword(
const OUString& rPassword);
192 bool IsSMTPAfterPOP()
const;
193 void SetSMTPAfterPOP(
bool bSet);
195 OUString
const & GetInServerName()
const;
196 void SetInServerName(
const OUString& rServer);
198 sal_Int16 GetInServerPort()
const;
199 void SetInServerPort(sal_Int16 nSet);
201 bool IsInServerPOP()
const;
202 void SetInServerPOP(
bool bSet);
204 OUString
const & GetInServerUserName()
const;
205 void SetInServerUserName(
const OUString& rName);
207 OUString
const & GetInServerPassword()
const;
208 void SetInServerPassword(
const OUString& rPassword);
214 m_bAddressInserted =
true;
218 {
return m_bGreetingInserted; }
220 { m_bGreetingInserted =
true; }
223 { m_nBegin = nBegin; m_nEnd = nEnd; }
230 void DocumentReloaded();
232 bool IsMailAvailable()
const;
238 sal_uInt32 GetMergedDocumentCount();
241 {
return m_sSelectedPrinter; }
243 { m_sSelectedPrinter =
rSet; }
246 void SetTargetView(
SwView* pView);
249 void SetSourceView(
SwView* pView);
252 OUString GetAssignedColumn(sal_uInt32 nColumn)
const;
253 void stopDBChangeListening();
254 void updateCurrentDBDataFromDocument();
void SetSelectedPrinter(const OUString &rSet)
std::unique_ptr< SwMailMergeConfigItem_Impl > m_pImpl
std::set< sal_Int32 > m_aExcludedRecords
bool IsAddressInserted() const
void MoveGreeting(sal_Int32 nMove)
bool IsGreetingInserted() const
css::uno::Reference< css::view::XSelectionChangeListener > m_xDBChangedListener
void SetGreetingInserted()
sal_Int32 GetGreetingMoves() const
sal_Int32 m_nGreetingMoves
OUString m_sSelectedPrinter
void SetBeginEnd(sal_uInt32 nBegin, sal_uInt32 nEnd)
const OUString & GetSelectedPrinter() const
void SetAddressInserted()
sw::mark::IMark * startPageInTarget
void GetSelection(struct ESelection &rSel, SvxTextForwarder const *pForwarder) noexcept