summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-02-21 12:42:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-03-05 18:33:33 +0100
commit0ed1cb5457a2106316f9d7fda10685360db4bc30 (patch)
tree5056e227549198506c0a1b033f0505b4596185eb /sw/inc
parent5ee9b98a1eeb2f433e88cf3a630ab9d2e9aae5ef (diff)
make more symbols private in writer
Change-Id: I2c4745910fc3654f2021e77f9fa590d3da3464ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163749 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/anchoredobject.hxx6
-rw-r--r--sw/inc/calbck.hxx2
-rw-r--r--sw/inc/dbmgr.hxx46
-rw-r--r--sw/inc/ndarr.hxx12
-rw-r--r--sw/inc/ndgrf.hxx10
-rw-r--r--sw/inc/ndnotxt.hxx12
-rw-r--r--sw/inc/node.hxx18
-rw-r--r--sw/inc/numrule.hxx22
-rw-r--r--sw/inc/redline.hxx16
-rw-r--r--sw/inc/reffld.hxx20
-rw-r--r--sw/inc/swcrsr.hxx14
-rw-r--r--sw/inc/swmodule.hxx28
-rw-r--r--sw/inc/swrect.hxx2
-rw-r--r--sw/inc/swtable.hxx20
-rw-r--r--sw/inc/viewopt.hxx18
-rw-r--r--sw/inc/viewsh.hxx88
16 files changed, 167 insertions, 167 deletions
diff --git a/sw/inc/anchoredobject.hxx b/sw/inc/anchoredobject.hxx
index 48b192f69ba9..837d25dcb77d 100644
--- a/sw/inc/anchoredobject.hxx
+++ b/sw/inc/anchoredobject.hxx
@@ -41,7 +41,7 @@ enum class RndStdIds;
of Writer fly frames (derived classes of <SwFlyFrame>) and of drawing objects
(derived classes of <SwAnchoredDrawObject>).
*/
-class SW_DLLPUBLIC SwAnchoredObject
+class SAL_DLLPUBLIC_RTTI SwAnchoredObject
{
private:
// drawing object representing the anchored object in the drawing layer
@@ -214,7 +214,7 @@ class SW_DLLPUBLIC SwAnchoredObject
and the anchor character frame for an at-character and as-character
anchored object.
*/
- SwFrame* GetAnchorFrameContainingAnchPos();
+ SW_DLLPUBLIC SwFrame* GetAnchorFrameContainingAnchPos();
SwPageFrame* GetPageFrame() { return mpPageFrame; }
const SwPageFrame* GetPageFrame() const { return mpPageFrame; }
@@ -336,7 +336,7 @@ class SW_DLLPUBLIC SwAnchoredObject
virtual void UpdateLayoutDir();
/** method to determine object area inclusive its spacing */
- const SwRect& GetObjRectWithSpaces() const;
+ SW_DLLPUBLIC const SwRect& GetObjRectWithSpaces() const;
void InvalidateObjRectWithSpaces() const
{
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx
index 0538ea99265c..f4133a2853fa 100644
--- a/sw/inc/calbck.hxx
+++ b/sw/inc/calbck.hxx
@@ -101,7 +101,7 @@ namespace sw
SvtBroadcaster& GetNotifier() { return m_aNotifier; }
};
/// refactoring out the same of the more sane SwClient functionality
- class SW_DLLPUBLIC WriterListener
+ class SAL_DLLPUBLIC_RTTI WriterListener
{
friend class ::SwModify;
friend class ::sw::ClientIteratorBase;
diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx
index 4c6a0c1e7499..9693eee95c74 100644
--- a/sw/inc/dbmgr.hxx
+++ b/sw/inc/dbmgr.hxx
@@ -238,10 +238,10 @@ struct SwMergeDescriptor
class SwDoc;
-class SW_DLLPUBLIC SwDBManager
+class SwDBManager
{
struct SwDBManager_Impl;
- class SAL_DLLPRIVATE ConnectionDisposedListener_Impl;
+ class ConnectionDisposedListener_Impl;
class MailDispatcherListener_Impl;
enum class MergeStatus
@@ -271,22 +271,22 @@ class SW_DLLPUBLIC SwDBManager
/// The document that owns this manager.
SwDoc* m_pDoc;
- SAL_DLLPRIVATE SwDSParam* FindDSData(const SwDBData& rData, bool bCreate);
- SAL_DLLPRIVATE SwDSParam* FindDSConnection(const OUString& rSource, bool bCreate);
+ SwDSParam* FindDSData(const SwDBData& rData, bool bCreate);
+ SwDSParam* FindDSConnection(const OUString& rSource, bool bCreate);
/// Insert data record as text into document.
- SAL_DLLPRIVATE void ImportFromConnection( SwWrtShell* pSh);
+ void ImportFromConnection( SwWrtShell* pSh);
/// Insert a single data record as text into document.
- SAL_DLLPRIVATE void ImportDBEntry(SwWrtShell* pSh);
+ void ImportDBEntry(SwWrtShell* pSh);
/// Run the mail merge for defined modes, except DBMGR_MERGE
- SAL_DLLPRIVATE bool MergeMailFiles( SwWrtShell* pSh,
+ bool MergeMailFiles( SwWrtShell* pSh,
const SwMergeDescriptor& rMergeDescriptor );
- SAL_DLLPRIVATE bool ToNextMergeRecord();
- SAL_DLLPRIVATE bool IsValidMergeRecord() const;
- SAL_DLLPRIVATE void ImplDestroy();
+ bool ToNextMergeRecord();
+ bool IsValidMergeRecord() const;
+ void ImplDestroy();
SwDBManager(SwDBManager const&) = delete;
SwDBManager& operator=(SwDBManager const&) = delete;
@@ -309,19 +309,19 @@ public:
bool IsMergeOk() const { return MergeStatus::Ok == m_aMergeStatus; }
bool IsMergeError() const { return MergeStatus::Error <= m_aMergeStatus; }
- static std::shared_ptr<SwMailMergeConfigItem> PerformMailMerge(SwView const * pView);
+ SW_DLLPUBLIC static std::shared_ptr<SwMailMergeConfigItem> PerformMailMerge(SwView const * pView);
/// Initialize data fields that lack name of database.
bool IsInitDBFields() const { return m_bInitDBFields; }
void SetInitDBFields(bool b) { m_bInitDBFields = b; }
/// Fill listbox with all table names of a database.
- bool GetTableNames(weld::ComboBox& rBox, const OUString& rDBName);
+ SW_DLLPUBLIC bool GetTableNames(weld::ComboBox& rBox, const OUString& rDBName);
/// Fill listbox with all column names of a database table.
- void GetColumnNames(weld::ComboBox& rBox,
+ SW_DLLPUBLIC void GetColumnNames(weld::ComboBox& rBox,
const OUString& rDBName, const OUString& rTableName);
- static void GetColumnNames(weld::ComboBox& rBox,
+ SW_DLLPUBLIC static void GetColumnNames(weld::ComboBox& rBox,
css::uno::Reference< css::sdbc::XConnection> const & xConnection,
const OUString& rTableName);
@@ -381,7 +381,7 @@ public:
static const SwDBData& GetAddressDBName();
- static OUString GetDBField(
+ SW_DLLPUBLIC static OUString GetDBField(
css::uno::Reference< css::beans::XPropertySet > const & xColumnProp,
const SwDBFormatData& rDBFormatData,
double *pNumber = nullptr);
@@ -391,12 +391,12 @@ public:
css::uno::Reference< css::sdbc::XDataSource>& rxSource,
const SwView* pView);
- static css::uno::Reference< css::sdbcx::XColumnsSupplier>
+ SW_DLLPUBLIC static css::uno::Reference< css::sdbcx::XColumnsSupplier>
GetColumnSupplier(css::uno::Reference< css::sdbc::XConnection> const & xConnection,
const OUString& rTableOrQuery,
SwDBSelect eTableOrQuery = SwDBSelect::UNKNOWN);
- static css::uno::Sequence<OUString> GetExistingDatabaseNames();
+ SW_DLLPUBLIC static css::uno::Sequence<OUString> GetExistingDatabaseNames();
/**
Loads a data source from file and registers it.
@@ -405,7 +405,7 @@ public:
the filename returned by a file picker and additional settings dialog.
In case of success it returns the registered name, otherwise an empty string.
*/
- static OUString LoadAndRegisterDataSource(weld::Window* pParent, SwDocShell* pDocShell = nullptr);
+ SW_DLLPUBLIC static OUString LoadAndRegisterDataSource(weld::Window* pParent, SwDocShell* pDocShell = nullptr);
/**
Loads a data source from file and registers it.
@@ -413,13 +413,13 @@ public:
Convenience function, which calls GetDBunoURI and has just one mandatory parameter.
In case of success it returns the registered name, otherwise an empty string.
*/
- static OUString LoadAndRegisterDataSource(std::u16string_view rURI, const OUString *pDestDir);
+ SW_DLLPUBLIC static OUString LoadAndRegisterDataSource(std::u16string_view rURI, const OUString *pDestDir);
/// Load the embedded data source of the document and also register it.
void LoadAndRegisterEmbeddedDataSource(const SwDBData& rData, const SwDocShell& rDocShell);
/// Unregister a data source.
- static void RevokeDataSource(const OUString& rName);
+ SW_DLLPUBLIC static void RevokeDataSource(const OUString& rName);
/** try to get the data source from the given connection through the XChild interface.
If this is not possible, the data source will be created through its name.
@@ -446,7 +446,7 @@ public:
The new created RowSet.
*/
- static css::uno::Reference< css::sdbc::XResultSet>
+ SW_DLLPUBLIC static css::uno::Reference< css::sdbc::XResultSet>
createCursor(const OUString& _sDataSourceName,
const OUString& _sCommand,
sal_Int32 _nCommandType,
@@ -467,10 +467,10 @@ public:
void releaseRevokeListener();
/// Revoke not committed registrations in case of mail merge cancel
- void RevokeLastRegistrations();
+ SW_DLLPUBLIC void RevokeLastRegistrations();
/// Accept not committed registrations
- void CommitLastRegistrations();
+ SW_DLLPUBLIC void CommitLastRegistrations();
/// Remove not used connections.
void RevokeNotUsedConnections();
diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx
index a3fabe828d19..886384aca288 100644
--- a/sw/inc/ndarr.hxx
+++ b/sw/inc/ndarr.hxx
@@ -86,7 +86,7 @@ public:
struct SwTableToTextSave;
using SwTableToTextSaves = std::vector<std::unique_ptr<SwTableToTextSave>>;
-class SW_DLLPUBLIC SwNodes final
+class SwNodes final
: private BigPtrArray
{
friend class SwDoc;
@@ -166,7 +166,7 @@ public:
/** Is the NodesArray the regular one of Doc? (and not the UndoNds, ...)
Implementation in doc.hxx (because one needs to know Doc for it) ! */
- bool IsDocNodes() const;
+ SW_DLLPUBLIC bool IsDocNodes() const;
static sal_uInt16 GetSectionLevel(const SwNode &rIndex);
void Delete(const SwNodeIndex &rPos, SwNodeOffset nNodes = SwNodeOffset(1));
@@ -186,7 +186,7 @@ public:
static void GoStartOfSection(SwNodeIndex *);
static void GoEndOfSection(SwNodeIndex *);
- static SwContentNode* GoNext(SwNodeIndex*);
+ SW_DLLPUBLIC static SwContentNode* GoNext(SwNodeIndex*);
static SwContentNode* GoNext(SwPosition*);
static SwContentNode* GoPrevious(SwNodeIndex *, bool canCrossBoundary = false);
static SwContentNode* GoPrevious(SwPosition *, bool canCrossBoundary = false);
@@ -209,10 +209,10 @@ public:
SwStartNodeType = SwNormalStartNode );
/// Implementations of "Make...Node" are in the given .cxx-files.
- SwTextNode *MakeTextNode( SwNode& rWhere,
+ SW_DLLPUBLIC SwTextNode *MakeTextNode( SwNode& rWhere,
SwTextFormatColl *pColl,
bool bNewFrames = true); ///< in ndtxt.cxx
- SwStartNode* MakeTextSection( const SwNode & rWhere,
+ SW_DLLPUBLIC SwStartNode* MakeTextSection( const SwNode & rWhere,
SwStartNodeType eSttNdTyp,
SwTextFormatColl *pColl );
@@ -279,7 +279,7 @@ public:
/** Insert a new box in the line before InsPos. Its format
is taken from the following one (or from the previous one if we are
at the end). In the line there must be a box already. */
- bool InsBoxen( SwTableNode*, SwTableLine*, SwTableBoxFormat*,
+ SW_DLLPUBLIC bool InsBoxen( SwTableNode*, SwTableLine*, SwTableBoxFormat*,
/// Formats for TextNode of box.
SwTextFormatColl*, const SfxItemSet* pAutoAttr,
sal_uInt16 nInsPos, sal_uInt16 nCnt = 1 );
diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx
index 93673990fff8..872fc7feff92 100644
--- a/sw/inc/ndgrf.hxx
+++ b/sw/inc/ndgrf.hxx
@@ -32,7 +32,7 @@ class SwGrfFormatColl;
class SwDoc;
// SwGrfNode
-class SW_DLLPUBLIC SwGrfNode final: public SwNoTextNode
+class SAL_DLLPUBLIC_RTTI SwGrfNode final: public SwNoTextNode
{
friend class SwNodes;
@@ -71,8 +71,8 @@ class SW_DLLPUBLIC SwGrfNode final: public SwNoTextNode
public:
virtual ~SwGrfNode() override;
- const Graphic& GetGrf(bool bWait = false) const;
- const GraphicObject& GetGrfObj(bool bWait = false) const;
+ SW_DLLPUBLIC const Graphic& GetGrf(bool bWait = false) const;
+ SW_DLLPUBLIC const GraphicObject& GetGrfObj(bool bWait = false) const;
const GraphicObject* GetReplacementGrfObj() const;
/// isolated only way to set GraphicObject to allow more actions when doing so
@@ -84,7 +84,7 @@ public:
{ maGrfObj.StartAnimation(*pOut, rPt, rSz, nRendererId, pFirstFrameOutDev); }
void StopGraphicAnimation(const OutputDevice* pOut, tools::Long nRendererId) { maGrfObj.StopAnimation(pOut, nRendererId); }
- virtual Size GetTwipSize() const override;
+ SW_DLLPUBLIC virtual Size GetTwipSize() const override;
void SetTwipSize( const Size& rSz );
bool IsTransparent() const;
@@ -127,7 +127,7 @@ public:
bool IsLinkedFile() const;
bool IsLinkedDDE() const;
const tools::SvRef<SwBaseLink>& GetLink() const { return mxLink; }
- bool GetFileFilterNms( OUString* pFileNm, OUString* pFilterNm ) const;
+ SW_DLLPUBLIC bool GetFileFilterNms( OUString* pFileNm, OUString* pFilterNm ) const;
void ReleaseLink();
/** Scale an image-map: the image-map becomes zoomed in / out by
diff --git a/sw/inc/ndnotxt.hxx b/sw/inc/ndnotxt.hxx
index b9e53ef4c080..9829ce7d2375 100644
--- a/sw/inc/ndnotxt.hxx
+++ b/sw/inc/ndnotxt.hxx
@@ -26,7 +26,7 @@
class Size;
/// Layout frame for SwNoTextNode, i.e. graphics and OLE nodes (including charts).
-class SW_DLLPUBLIC SwNoTextNode : public SwContentNode
+class SAL_DLLPUBLIC_RTTI SwNoTextNode : public SwContentNode
{
friend class SwNodes;
friend class SwNoTextFrame;
@@ -61,14 +61,14 @@ public:
virtual bool SavePersistentData();
virtual bool RestorePersistentData();
- OUString GetTitle() const;
+ SW_DLLPUBLIC OUString GetTitle() const;
void SetTitle( const OUString& rTitle );
- OUString GetDescription() const;
+ SW_DLLPUBLIC OUString GetDescription() const;
void SetDescription( const OUString& rDescription );
- void SetContour( const tools::PolyPolygon *pPoly,
+ SW_DLLPUBLIC void SetContour( const tools::PolyPolygon *pPoly,
bool bAutomatic = false );
- const tools::PolyPolygon *HasContour() const;
+ SW_DLLPUBLIC const tools::PolyPolygon *HasContour() const;
bool HasContour_() const { return bool(m_pContour); };
void GetContour( tools::PolyPolygon &rPoly ) const;
void CreateContour();
@@ -88,7 +88,7 @@ public:
bool IsContourMapModeValid() const { return m_bContourMapModeValid; }
// Obtains the graphic with SwapIn for GrfNode via GetData for OLE.
- Graphic GetGraphic() const;
+ SW_DLLPUBLIC Graphic GetGraphic() const;
};
// Inline methods from Node.hxx - we know TextNode only here!!
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx
index b1e3309d596f..ec17dd6aa78c 100644
--- a/sw/inc/node.hxx
+++ b/sw/inc/node.hxx
@@ -391,7 +391,7 @@ class SwEndNode final : public SwNode
// SwContentNode
-class SW_DLLPUBLIC SwContentNode: public sw::BroadcastingModify, public SwNode, public SwContentIndexReg
+class SAL_DLLPUBLIC_RTTI SwContentNode: public sw::BroadcastingModify, public SwNode, public SwContentIndexReg
{
sw::WriterMultiListener m_aCondCollListener;
@@ -430,23 +430,23 @@ public:
virtual SwContentNode *JoinNext();
/** Is it possible to join two nodes?
In pIdx the second position can be returned. */
- bool CanJoinNext( SwNodeIndex* pIdx = nullptr ) const;
+ SW_DLLPUBLIC bool CanJoinNext( SwNodeIndex* pIdx = nullptr ) const;
bool CanJoinNext( SwPosition* pIdx ) const;
- bool CanJoinPrev( SwNodeIndex* pIdx =nullptr ) const;
+ SW_DLLPUBLIC bool CanJoinPrev( SwNodeIndex* pIdx =nullptr ) const;
bool GoNext(SwContentIndex *, SwCursorSkipMode nMode ) const;
bool GoNext(SwPosition*, SwCursorSkipMode nMode ) const;
bool GoPrevious(SwContentIndex *, SwCursorSkipMode nMode ) const;
/// @see GetFrameOfModify
- SwContentFrame *getLayoutFrame( const SwRootFrame*,
+ SW_DLLPUBLIC SwContentFrame *getLayoutFrame( const SwRootFrame*,
const SwPosition *pPos = nullptr,
std::pair<Point, bool> const* pViewPosAndCalcFrame = nullptr) const;
/** @return the real size of the frame or an empty rectangle if
no layout exists. Needed for export filters. */
- SwRect FindLayoutRect( const bool bPrtArea = false,
+ SW_DLLPUBLIC SwRect FindLayoutRect( const bool bPrtArea = false,
const Point* pPoint = nullptr ) const;
- SwRect FindPageFrameRect() const;
+ SW_DLLPUBLIC SwRect FindPageFrameRect() const;
/** Method creates all views of document for given node. The content
frames that are created are put in the respective layout. */
@@ -473,16 +473,16 @@ public:
template<class T>
const T& GetAttr( TypedWhichId<T> nWhich, bool bInParent=true ) const
{ return static_cast<const T&>(GetAttr(sal_uInt16(nWhich), bInParent)); }
- bool GetAttr( SfxItemSet& rSet ) const;
+ SW_DLLPUBLIC bool GetAttr( SfxItemSet& rSet ) const;
/// made virtual
- virtual bool SetAttr( const SfxPoolItem& );
+ SW_DLLPUBLIC virtual bool SetAttr( const SfxPoolItem& );
virtual bool SetAttr( const SfxItemSet& rSet );
virtual bool ResetAttr( sal_uInt16 nWhich1, sal_uInt16 nWhich2 = 0 );
virtual bool ResetAttr( const std::vector<sal_uInt16>& rWhichArr );
virtual sal_uInt16 ResetAllAttr();
/// Obtains attribute that is not delivered via conditional style!
- const SfxPoolItem* GetNoCondAttr( sal_uInt16 nWhich, bool bInParents ) const;
+ SW_DLLPUBLIC const SfxPoolItem* GetNoCondAttr( sal_uInt16 nWhich, bool bInParents ) const;
template<class T>
const T* GetNoCondAttr( TypedWhichId<T> nWhich, bool bInParents ) const
{ return static_cast<const T*>(GetNoCondAttr(sal_uInt16(nWhich), bInParents)); }
diff --git a/sw/inc/numrule.hxx b/sw/inc/numrule.hxx
index aaa09236c8e4..b9a30ec55546 100644
--- a/sw/inc/numrule.hxx
+++ b/sw/inc/numrule.hxx
@@ -90,7 +90,7 @@ public:
};
enum SwNumRuleType { OUTLINE_RULE = 0, NUM_RULE = 1, RULE_END = 2 };
-class SW_DLLPUBLIC SwNumRule
+class SwNumRule
{
public:
@@ -142,31 +142,31 @@ private:
public:
/// add parameter <eDefaultNumberFormatPositionAndSpaceMode>
- SwNumRule( OUString aNm,
+ SW_DLLPUBLIC SwNumRule( OUString aNm,
const SvxNumberFormat::SvxNumPositionAndSpaceMode eDefaultNumberFormatPositionAndSpaceMode,
SwNumRuleType = NUM_RULE );
- SwNumRule( const SwNumRule& );
- ~SwNumRule();
+ SW_DLLPUBLIC SwNumRule( const SwNumRule& );
+ SW_DLLPUBLIC ~SwNumRule();
- SwNumRule& operator=( const SwNumRule& );
- bool operator==( const SwNumRule& ) const;
+ SW_DLLPUBLIC SwNumRule& operator=( const SwNumRule& );
+ SW_DLLPUBLIC bool operator==( const SwNumRule& ) const;
bool operator!=( const SwNumRule& r ) const { return !(*this == r); }
void Reset( const OUString& rName );
- const SwNumFormat* GetNumFormat( sal_uInt16 i ) const;
- const SwNumFormat& Get( sal_uInt16 i ) const;
+ SW_DLLPUBLIC const SwNumFormat* GetNumFormat( sal_uInt16 i ) const;
+ SW_DLLPUBLIC const SwNumFormat& Get( sal_uInt16 i ) const;
bool IsHidden( ) const { return mbHidden; }
void SetHidden( bool bValue ) { mbHidden = bValue; }
void Set( sal_uInt16 i, const SwNumFormat* );
- void Set( sal_uInt16 i, const SwNumFormat& );
+ SW_DLLPUBLIC void Set( sal_uInt16 i, const SwNumFormat& );
OUString MakeNumString( const SwNodeNum&, bool bInclStrings = true ) const;
/** - add optional parameter <_nRestrictToThisLevel> in order to
restrict returned string to this level. */
- OUString MakeNumString( const SwNumberTree::tNumberVector & rNumVector,
+ SW_DLLPUBLIC OUString MakeNumString( const SwNumberTree::tNumberVector & rNumVector,
const bool bInclStrings = true,
const unsigned int _nRestrictToThisLevel = MAXLEVEL,
const bool bHideNonNumerical = false,
@@ -272,7 +272,7 @@ public:
void Validate(const SwDoc& rDoc);
void dumpAsXml(xmlTextWriterPtr w) const;
- void GetGrabBagItem(css::uno::Any& rVal) const;
+ SW_DLLPUBLIC void GetGrabBagItem(css::uno::Any& rVal) const;
void SetGrabBagItem(const css::uno::Any& rVal);
};
diff --git a/sw/inc/redline.hxx b/sw/inc/redline.hxx
index c54b7d5d8380..a8be390b1490 100644
--- a/sw/inc/redline.hxx
+++ b/sw/inc/redline.hxx
@@ -163,7 +163,7 @@ public:
void dumpAsXml(xmlTextWriterPtr pWriter) const;
};
-class SW_DLLPUBLIC SwRangeRedline final : public SwPaM
+class SAL_DLLPUBLIC_RTTI SwRangeRedline final : public SwPaM
{
SwRedlineData* m_pRedlineData;
std::optional<SwNodeIndex> m_oContentSect;
@@ -180,8 +180,8 @@ class SW_DLLPUBLIC SwRangeRedline final : public SwPaM
public:
static sal_uInt32 s_nLastId;
- SwRangeRedline( RedlineType eType, const SwPaM& rPam, sal_uInt32 nMoveID = 0 );
- SwRangeRedline( const SwRedlineData& rData, const SwPaM& rPam );
+ SW_DLLPUBLIC SwRangeRedline( RedlineType eType, const SwPaM& rPam, sal_uInt32 nMoveID = 0 );
+ SW_DLLPUBLIC SwRangeRedline( const SwRedlineData& rData, const SwPaM& rPam );
SwRangeRedline( const SwRedlineData& rData, const SwPosition& rPos );
// For sw3io: pData is taken over!
SwRangeRedline(SwRedlineData* pData, const SwPosition& rPos,
@@ -210,18 +210,18 @@ public:
/// Do we have a valid selection?
bool HasValidRange() const;
- const SwRedlineData& GetRedlineData(sal_uInt16 nPos = 0) const;
+ SW_DLLPUBLIC const SwRedlineData& GetRedlineData(sal_uInt16 nPos = 0) const;
bool operator!=( const SwRedlineData& rCmp ) const
{ return *m_pRedlineData != rCmp; }
void SetAutoFormat() { m_pRedlineData->SetAutoFormat(); }
bool IsAutoFormat() const { return m_pRedlineData->IsAutoFormat(); }
sal_uInt16 GetStackCount() const;
- std::size_t GetAuthor( sal_uInt16 nPos = 0) const;
- OUString const & GetAuthorString( sal_uInt16 nPos = 0 ) const;
+ SW_DLLPUBLIC std::size_t GetAuthor( sal_uInt16 nPos = 0) const;
+ SW_DLLPUBLIC OUString const & GetAuthorString( sal_uInt16 nPos = 0 ) const;
sal_uInt32 GetMovedID(sal_uInt16 nPos = 0) const;
const DateTime& GetTimeStamp(sal_uInt16 nPos = 0) const;
- RedlineType GetType( sal_uInt16 nPos = 0 ) const;
+ SW_DLLPUBLIC RedlineType GetType( sal_uInt16 nPos = 0 ) const;
// text content of the redline is only an annotation placeholder
// (i.e. a comment, but don't confuse it with comment of the redline)
bool IsAnnotation() const;
@@ -277,7 +277,7 @@ public:
bSimplified = simplified shortened text to show deletions on margin
*/
- OUString GetDescr(bool bSimplified = false);
+ SW_DLLPUBLIC OUString GetDescr(bool bSimplified = false);
bool operator<( const SwRangeRedline& ) const;
void dumpAsXml(xmlTextWriterPtr pWriter) const;
diff --git a/sw/inc/reffld.hxx b/sw/inc/reffld.hxx
index 2059ad309e87..8eb293184c6d 100644
--- a/sw/inc/reffld.hxx
+++ b/sw/inc/reffld.hxx
@@ -103,7 +103,7 @@ public:
void UpdateStyleReferences();
};
-class SW_DLLPUBLIC SwGetRefField final : public SwField
+class SAL_DLLPUBLIC_RTTI SwGetRefField final : public SwField
{
private:
OUString m_sSetRefName;
@@ -118,10 +118,10 @@ private:
virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
virtual std::unique_ptr<SwField> Copy() const override;
public:
- SwGetRefField( SwGetRefFieldType*, OUString aSetRef, OUString aReferenceLanguage,
+ SW_DLLPUBLIC SwGetRefField( SwGetRefFieldType*, OUString aSetRef, OUString aReferenceLanguage,
sal_uInt16 nSubType, sal_uInt16 nSeqNo, sal_uInt16 nFlags, sal_uLong nFormat );
- virtual ~SwGetRefField() override;
+ SW_DLLPUBLIC virtual ~SwGetRefField() override;
virtual OUString GetFieldName() const override;
@@ -142,14 +142,14 @@ public:
/// Get/set sub type.
virtual sal_uInt16 GetSubType() const override;
- virtual void SetSubType( sal_uInt16 n ) override;
+ SW_DLLPUBLIC virtual void SetSubType( sal_uInt16 n ) override;
// --> #i81002#
- bool IsRefToHeadingCrossRefBookmark() const;
- bool IsRefToNumItemCrossRefBookmark() const;
- const SwTextNode* GetReferencedTextNode(SwTextNode* pTextNode, SwFrame* pFrame) const;
+ SW_DLLPUBLIC bool IsRefToHeadingCrossRefBookmark() const;
+ SW_DLLPUBLIC bool IsRefToNumItemCrossRefBookmark() const;
+ SW_DLLPUBLIC const SwTextNode* GetReferencedTextNode(SwTextNode* pTextNode, SwFrame* pFrame) const;
// #i85090#
- OUString GetExpandedTextOfReferencedTextNode(SwRootFrame const& rLayout, SwTextNode* pTextNode, SwFrame* pFrame) const;
+ SW_DLLPUBLIC OUString GetExpandedTextOfReferencedTextNode(SwRootFrame const& rLayout, SwTextNode* pTextNode, SwFrame* pFrame) const;
/// Get/set SequenceNo (of interest only for REF_SEQUENCEFLD).
sal_uInt16 GetSeqNo() const { return m_nSeqNo; }
@@ -160,10 +160,10 @@ public:
void SetFlags( sal_uInt16 n ) { m_nFlags = n; }
// Name of reference.
- virtual OUString GetPar1() const override;
+ SW_DLLPUBLIC virtual OUString GetPar1() const override;
virtual void SetPar1(const OUString& rStr) override;
- virtual OUString GetPar2() const override;
+ SW_DLLPUBLIC virtual OUString GetPar2() const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhichId ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhichId ) override;
diff --git a/sw/inc/swcrsr.hxx b/sw/inc/swcrsr.hxx
index 570780080f5e..0dcd5944a90b 100644
--- a/sw/inc/swcrsr.hxx
+++ b/sw/inc/swcrsr.hxx
@@ -67,7 +67,7 @@ namespace o3tl {
template<> struct typed_flags<SwCursorSkipMode> : is_typed_flags<SwCursorSkipMode, 0x3> {};
}
-class SW_DLLPUBLIC SwCursor : public SwPaM
+class SAL_DLLPUBLIC_RTTI SwCursor : public SwPaM
{
friend class SwCursorSaveState;
@@ -93,8 +93,8 @@ protected:
public:
// single argument ctors shall be explicit.
- SwCursor( const SwPosition &rPos, SwPaM* pRing );
- virtual ~SwCursor() override;
+ SW_DLLPUBLIC SwCursor( const SwPosition &rPos, SwPaM* pRing );
+ SW_DLLPUBLIC virtual ~SwCursor() override;
inline SwCursor & operator =(SwCursor const &);
@@ -114,7 +114,7 @@ public:
SwPaM* ) const;
// note: DO NOT call it FindText because windows.h
- sal_Int32 Find_Text( const i18nutil::SearchOptions2& rSearchOpt,
+ SW_DLLPUBLIC sal_Int32 Find_Text( const i18nutil::SearchOptions2& rSearchOpt,
bool bSearchInNotes,
SwDocPositions nStart, SwDocPositions nEnd,
bool& bCancel,
@@ -166,7 +166,7 @@ public:
bool UpDown(bool bUp, sal_uInt16 nCnt, Point const * pPt, tools::Long nUpDownX, SwRootFrame & rLayout);
bool LeftRightMargin(SwRootFrame const& rLayout, bool bLeftMargin, bool bAPI);
bool IsAtLeftRightMargin(SwRootFrame const& rLayout, bool bLeftMargin, bool bAPI) const;
- bool SttEndDoc( bool bSttDoc );
+ SW_DLLPUBLIC bool SttEndDoc( bool bSttDoc );
bool GoPrevNextCell( bool bNext, sal_uInt16 nCnt );
bool Left( sal_uInt16 nCnt ) { return LeftRight(true, nCnt, SwCursorSkipMode::Chars, false/*bAllowVisual*/, false/*bSkipHidden*/, false, nullptr, false); }
@@ -176,12 +176,12 @@ public:
virtual bool GotoTable( const OUString& rName );
bool GotoTableBox( const OUString& rName );
bool GotoRegion( std::u16string_view rName );
- bool GotoFootnoteAnchor();
+ SW_DLLPUBLIC bool GotoFootnoteAnchor();
bool GotoFootnoteText();
bool GotoNextFootnoteAnchor();
bool GotoPrevFootnoteAnchor();
- bool MovePara( SwWhichPara, SwMoveFnCollection const & );
+ SW_DLLPUBLIC bool MovePara( SwWhichPara, SwMoveFnCollection const & );
bool MoveSection( SwWhichSection, SwMoveFnCollection const & );
bool MoveTable( SwWhichTable, SwMoveFnCollection const & );
bool MoveRegion( SwWhichRegion, SwMoveFnCollection const & );
diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx
index b485bdd53693..2e5687171955 100644
--- a/sw/inc/swmodule.hxx
+++ b/sw/inc/swmodule.hxx
@@ -70,7 +70,7 @@ namespace com::sun::star::linguistic2 { class XLanguageGuessing; }
namespace com::sun::star::linguistic2 { class XLinguServiceEventListener; }
namespace ooo::vba { class XSinkCaller; }
-class SW_DLLPUBLIC SwModule final : public SfxModule, public SfxListener, public utl::ConfigurationListener
+class SAL_DLLPUBLIC_RTTI SwModule final : public SfxModule, public SfxListener, public utl::ConfigurationListener
{
OUString m_sActAuthor;
@@ -146,33 +146,33 @@ public:
// Handler for slots.
void StateOther(SfxItemSet &);
- void ExecOther(SfxRequest &); // Fields, formula...
+ SW_DLLPUBLIC void ExecOther(SfxRequest &); // Fields, formula...
// Modify user settings.
- const SwMasterUsrPref *GetUsrPref(bool bWeb) const;
+ SW_DLLPUBLIC const SwMasterUsrPref *GetUsrPref(bool bWeb) const;
const SwViewOption* GetViewOption(bool bWeb);
- void ApplyUsrPref(const SwViewOption &, SwView*,
+ SW_DLLPUBLIC void ApplyUsrPref(const SwViewOption &, SwView*,
SvViewOpt nDest = SvViewOpt::DestView );
void ApplyUserMetric( FieldUnit eMetric, bool bWeb );
void ApplyRulerMetric( FieldUnit eMetric, bool bHorizontal, bool bWeb );
- void ApplyFieldUpdateFlags(SwFieldUpdateFlags eFieldFlags);
- void ApplyLinkMode(sal_Int32 nNewLinkMode);
+ SW_DLLPUBLIC void ApplyFieldUpdateFlags(SwFieldUpdateFlags eFieldFlags);
+ SW_DLLPUBLIC void ApplyLinkMode(sal_Int32 nNewLinkMode);
// Default page mode for text grid.
- void ApplyDefaultPageMode(bool bIsSquaredPageMode);
+ SW_DLLPUBLIC void ApplyDefaultPageMode(bool bIsSquaredPageMode);
void ApplyUserCharUnit(bool bApplyChar, bool bWeb); // apply_char_unit
// Create ConfigItems.
SwModuleOptions* GetModuleConfig() { return m_pModuleConfig.get();}
SwPrintOptions* GetPrtOptions(bool bWeb);
- SwChapterNumRules* GetChapterNumRules();
+ SW_DLLPUBLIC SwChapterNumRules* GetChapterNumRules();
SwStdFontConfig* GetStdFontConfig() { return m_pStdFontConfig.get(); }
SwNavigationConfig* GetNavigationConfig();
SwToolbarConfigItem*GetToolbarConfig() { return m_pToolbarConfig.get(); }
SwToolbarConfigItem*GetWebToolbarConfig() { return m_pWebToolbarConfig.get(); }
- SwDBConfig* GetDBConfig();
- svtools::ColorConfig& GetColorConfig();
+ SW_DLLPUBLIC SwDBConfig* GetDBConfig();
+ SW_DLLPUBLIC svtools::ColorConfig& GetColorConfig();
SvtUserOptions& GetUserOptions();
// Iterate over views.
@@ -193,8 +193,8 @@ public:
// Redlining.
std::size_t GetRedlineAuthor();
- OUString const & GetRedlineAuthor(std::size_t nPos);
- void ClearRedlineAuthors();
+ SW_DLLPUBLIC OUString const & GetRedlineAuthor(std::size_t nPos);
+ SW_DLLPUBLIC void ClearRedlineAuthors();
/// See SwXTextDocument::getTrackedChangeAuthors().
void GetRedlineAuthorInfo(tools::JsonWriter& rJsonWriter);
std::size_t InsertRedlineAuthor(const OUString& rAuthor);
@@ -226,7 +226,7 @@ public:
virtual std::optional<SfxItemSet> CreateItemSet( sal_uInt16 nId ) override;
virtual void ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet ) override;
virtual std::unique_ptr<SfxTabPage> CreateTabPage( sal_uInt16 nId, weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet ) override;
- virtual std::optional<SfxStyleFamilies> CreateStyleFamilies() override;
+ SW_DLLPUBLIC virtual std::optional<SfxStyleFamilies> CreateStyleFamilies() override;
// Pool is created here and set at SfxShell.
void InitAttrPool();
@@ -243,7 +243,7 @@ public:
css::uno::Reference< css::linguistic2::XLanguageGuessing > const &
GetLanguageGuesser();
- void RegisterAutomationApplicationEventsCaller(css::uno::Reference< ooo::vba::XSinkCaller > const& xCaller);
+ SW_DLLPUBLIC void RegisterAutomationApplicationEventsCaller(css::uno::Reference< ooo::vba::XSinkCaller > const& xCaller);
void CallAutomationApplicationEventSinks(const OUString& Method, css::uno::Sequence< css::uno::Any >& Arguments);
};
diff --git a/sw/inc/swrect.hxx b/sw/inc/swrect.hxx
index eeb02df23c95..3365434abb07 100644
--- a/sw/inc/swrect.hxx
+++ b/sw/inc/swrect.hxx
@@ -31,7 +31,7 @@ typedef struct _xmlTextWriter* xmlTextWriterPtr;
/// This is half-open so m_Point.X() + m_Size.getWidth() is *not* included.
/// Note the tools Rectangle is (usually? sometimes?) closed so there's a
/// SVRect() to subtract 1 for the conversion.
-class SAL_WARN_UNUSED SW_DLLPUBLIC SwRect
+class SAL_WARN_UNUSED SwRect
{
Point m_Point;
Size m_Size;
diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx
index 69138709ebac..ffa9e88a0ce0 100644
--- a/sw/inc/swtable.hxx
+++ b/sw/inc/swtable.hxx
@@ -109,7 +109,7 @@ using SwTableBoxes = std::vector<SwTableBox*>;
class SwTableSortBoxes : public o3tl::sorted_vector<SwTableBox*> {};
/// SwTable is one table in the document model, containing rows (which contain cells).
-class SW_DLLPUBLIC SwTable: public SwClient //Client of FrameFormat.
+class SAL_DLLPUBLIC_RTTI SwTable: public SwClient //Client of FrameFormat.
{
protected:
@@ -209,9 +209,9 @@ public:
SwTableFormat* GetFrameFormat() { return static_cast<SwTableFormat*>(GetRegisteredIn()); }
SwTableFormat* GetFrameFormat() const { return const_cast<SwTableFormat*>(static_cast<const SwTableFormat*>(GetRegisteredIn())); }
- void GetTabCols( SwTabCols &rToFill, const SwTableBox *pStart,
+ SW_DLLPUBLIC void GetTabCols( SwTabCols &rToFill, const SwTableBox *pStart,
bool bHidden = false, bool bCurRowOnly = false ) const;
- void SetTabCols( const SwTabCols &rNew, const SwTabCols &rOld,
+ SW_DLLPUBLIC void SetTabCols( const SwTabCols &rNew, const SwTabCols &rOld,
const SwTableBox *pStart, bool bCurRowOnly );
// The following functions are for new table model only...
@@ -280,7 +280,7 @@ public:
// #i80314#
// add 2nd parameter in order to control validation check in called method
// <GetBoxNum(..)>
- const SwTableBox* GetTableBox( const OUString& rName,
+ SW_DLLPUBLIC const SwTableBox* GetTableBox( const OUString& rName,
const bool bPerformValidCheck = false ) const;
// Copy selected boxes to another document.
bool MakeCopy( SwDoc&, const SwPosition&, const SwSelBoxes&,
@@ -301,7 +301,7 @@ public:
{ return const_cast<SwTable*>(this)->GetTableBox( nSttIdx ); }
// Returns true if table contains nestings.
- bool IsTableComplex() const;
+ SW_DLLPUBLIC bool IsTableComplex() const;
// Returns true if table or selection is balanced.
bool IsTableComplexForChart( std::u16string_view aSel ) const;
@@ -309,14 +309,14 @@ public:
// Search all content-bearing boxes of the base line on which this box stands.
// rBoxes as a return value for immediate use.
// bToTop = true -> up to base line, false-> else only line of box.
- static SwSelBoxes& SelLineFromBox( const SwTableBox* pBox,
+ SW_DLLPUBLIC static SwSelBoxes& SelLineFromBox( const SwTableBox* pBox,
SwSelBoxes& rBoxes, bool bToTop = true );
// Get information from client.
virtual bool GetInfo( SfxPoolItem& ) const override;
// Search in format for registered table.
- static SwTable * FindTable( SwFrameFormat const*const pFormat );
+ SW_DLLPUBLIC static SwTable * FindTable( SwFrameFormat const*const pFormat );
// Clean up structure of subtables a bit:
// convert row with 1 box with subtable; box with subtable with 1 row;
@@ -324,7 +324,7 @@ public:
void GCLines();
// Returns the table node via m_TabSortContentBoxes or pTableNode.
- SwTableNode* GetTableNode() const;
+ SW_DLLPUBLIC SwTableNode* GetTableNode() const;
void SetTableNode( SwTableNode* pNode ) { m_pTableNode = pNode; }
// Data server methods.
@@ -347,7 +347,7 @@ public:
void CheckConsistency() const;
#endif
- bool HasLayout() const;
+ SW_DLLPUBLIC bool HasLayout() const;
bool CanConvertSubtables() const;
void ConvertSubtables();
@@ -355,7 +355,7 @@ public:
// is it a table deleted completely with change tracking
bool IsDeleted() const;
// is it a table with a deleted row or cell
- bool HasDeletedRowOrCell() const;
+ SW_DLLPUBLIC bool HasDeletedRowOrCell() const;
// it doesn't contain box content (except single empty nested tables of the boxes
// which could remain after deletion of text content of the selected table)
bool IsEmpty() const;
diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx
index d58c361e24c9..e32fea4975db 100644
--- a/sw/inc/viewopt.hxx
+++ b/sw/inc/viewopt.hxx
@@ -244,7 +244,7 @@ struct SwViewColors
ViewOptFlags m_nAppearanceFlags;
};
-class SW_DLLPUBLIC SwViewOption
+class SwViewOption
{
SwViewColors m_aColorConfig;
static SwViewColors s_aInitialColorConfig;
@@ -301,9 +301,9 @@ class SW_DLLPUBLIC SwViewOption
#endif
public:
- SwViewOption(); // CTOR
- SwViewOption(const SwViewOption&);
- ~SwViewOption();
+ SW_DLLPUBLIC SwViewOption(); // CTOR
+ SW_DLLPUBLIC SwViewOption(const SwViewOption&);
+ SW_DLLPUBLIC ~SwViewOption();
static void Init(const OutputDevice* pWin); // Initializing of static data.
@@ -482,7 +482,7 @@ public:
{ m_nCoreOptions.bUseHeaderFooterMenu = b; }
//show/hide outline content visibility button
- bool IsShowOutlineContentVisibilityButton() const;
+ SW_DLLPUBLIC bool IsShowOutlineContentVisibilityButton() const;
void SetShowOutlineContentVisibilityButton(bool b)
{ m_nCoreOptions.bShowOutlineContentVisibilityButton = b; }
@@ -830,8 +830,8 @@ public:
bool IsShowPlaceHolderFields() const { return m_bShowPlaceHolderFields; }
void SetShowPlaceHolderFields(bool bSet) { m_bShowPlaceHolderFields = bSet; }
- const Color& GetDocColor() const;
- const Color& GetDocBoundariesColor() const;
+ SW_DLLPUBLIC const Color& GetDocColor() const;
+ SW_DLLPUBLIC const Color& GetDocBoundariesColor() const;
const Color& GetAppBackgroundColor() const;
const Color& GetObjectBoundariesColor() const;
const Color& GetTableBoundariesColor() const;
@@ -843,7 +843,7 @@ public:
const Color& GetGrammarColor() const;
const Color& GetSmarttagColor() const;
const Color& GetShadowColor() const;
- const Color& GetFontColor() const;
+ SW_DLLPUBLIC const Color& GetFontColor() const;
const Color& GetFieldShadingsColor() const;
const Color& GetSectionBoundColor() const;
const Color& GetPageBreakColor() const;
@@ -882,7 +882,7 @@ public:
void dumpAsXml(xmlTextWriterPtr pWriter) const;
// Useful for when getting the current view SwViewOption is not possible otherwise
- static const SwViewOption& GetCurrentViewOptions();
+ SW_DLLPUBLIC static const SwViewOption& GetCurrentViewOptions();
void SyncLayoutRelatedViewOptions(const SwViewOption& rOpt);
};
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index 9318c51196fe..a55da3bc1f69 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -107,7 +107,7 @@ struct SwVisiblePageNumbers
class SwView;
-class SW_DLLPUBLIC SwViewShell : public sw::Ring<SwViewShell>
+class SAL_DLLPUBLIC_RTTI SwViewShell : public sw::Ring<SwViewShell>
{
friend void SetOutDev( SwViewShell *pSh, OutputDevice *pOut );
friend void SetOutDevAndWin( SwViewShell *pSh, OutputDevice *pOut,
@@ -169,27 +169,27 @@ class SW_DLLPUBLIC SwViewShell : public sw::Ring<SwViewShell>
SwRootFramePtr mpLayout;
// Initialization; called by the diverse constructors.
- SAL_DLLPRIVATE void Init( const SwViewOption *pNewOpt );
+ void Init( const SwViewOption *pNewOpt );
inline void ResetInvalidRect();
- SAL_DLLPRIVATE void PaintDesktop(const vcl::RenderContext& rRenderContext, const SwRect&); // Collect values for painting of desktop
+ void PaintDesktop(const vcl::RenderContext& rRenderContext, const SwRect&); // Collect values for painting of desktop
// and calling.
// PaintDesktop split. This pars is also used by PreviewPage.
- SAL_DLLPRIVATE void PaintDesktop_(const SwRegionRects &rRegion);
+ void PaintDesktop_(const SwRegionRects &rRegion);
- SAL_DLLPRIVATE bool CheckInvalidForPaint( const SwRect & ); // Direct Paint or rather
+ bool CheckInvalidForPaint( const SwRect & ); // Direct Paint or rather
// trigger an action.
- SAL_DLLPRIVATE void PrepareForPrint( const SwPrintData &rOptions, bool bIsPDFExport = false );
+ void PrepareForPrint( const SwPrintData &rOptions, bool bIsPDFExport = false );
- SAL_DLLPRIVATE void ImplApplyViewOptions( const SwViewOption &rOpt );
+ void ImplApplyViewOptions( const SwViewOption &rOpt );
- SAL_DLLPRIVATE void InvalidateAll(std::vector<LockPaintReason>& rReasons);
+ void InvalidateAll(std::vector<LockPaintReason>& rReasons);
- SAL_DLLPRIVATE void InvalidatePageAndHFSubsidiaryLines();
+ void InvalidatePageAndHFSubsidiaryLines();
protected:
static ShellResource* spShellRes; ///< Resources for the Shell.
@@ -219,9 +219,9 @@ public:
// Bracketing of actions belonging together.
inline void StartAction();
- void ImplStartAction();
+ SW_DLLPUBLIC void ImplStartAction();
inline void EndAction( const bool bIdleEnd = false );
- void ImplEndAction( const bool bIdleEnd );
+ SW_DLLPUBLIC void ImplEndAction( const bool bIdleEnd );
sal_uInt16 ActionCount() const { return mnStartAction; }
bool ActionPend() const { return mnStartAction != 0; }
bool IsInEndAction() const { return mbInEndAction; }
@@ -241,7 +241,7 @@ public:
void FlushPendingLOKInvalidateTiles();
/// Invalidates complete Layout (ApplyViewOption).
- void Reformat();
+ SW_DLLPUBLIC void Reformat();
// #i72754# set of Pre/PostPaints with lock counter and initial target OutDev
protected:
@@ -295,33 +295,33 @@ public:
// Invalidate first visible page for all Shells in ring.
void SetFirstVisPageInvalid();
- SwRootFrame *GetLayout() const;
+ SW_DLLPUBLIC SwRootFrame* GetLayout() const;
bool IsNewLayout() const; // Has Layout been loaded or created?
Size GetDocSize() const; // Get document size.
virtual void CalcLayout(); // Force complete formatting of layout.
- sal_uInt16 GetPageCount() const;
+ SW_DLLPUBLIC sal_uInt16 GetPageCount() const;
- Size GetPageSize( sal_uInt16 nPageNum, bool bSkipEmptyPages ) const;
+ SW_DLLPUBLIC Size GetPageSize( sal_uInt16 nPageNum, bool bSkipEmptyPages ) const;
SwDoc *GetDoc() const { return mxDoc.get(); } //Never 0.
/** Provides access to the document setting interface
*/
const IDocumentSettingAccess& getIDocumentSettingAccess() const;
- IDocumentSettingAccess& getIDocumentSettingAccess();
+ SW_DLLPUBLIC IDocumentSettingAccess& getIDocumentSettingAccess();
/** Provides access to the document device interface
*/
const IDocumentDeviceAccess& getIDocumentDeviceAccess() const;
- IDocumentDeviceAccess& getIDocumentDeviceAccess();
+ SW_DLLPUBLIC IDocumentDeviceAccess& getIDocumentDeviceAccess();
/** Provides access to the document bookmark interface
*/
const IDocumentMarkAccess* getIDocumentMarkAccess() const;
- IDocumentMarkAccess* getIDocumentMarkAccess();
+ SW_DLLPUBLIC IDocumentMarkAccess* getIDocumentMarkAccess();
/** Provides access to the document draw model interface
*/
@@ -336,7 +336,7 @@ public:
/** Provides access to the document layout interface
*/
const IDocumentLayoutAccess& getIDocumentLayoutAccess() const;
- IDocumentLayoutAccess& getIDocumentLayoutAccess();
+ SW_DLLPUBLIC IDocumentLayoutAccess& getIDocumentLayoutAccess();
/** Provides access to the content operations interface
*/
@@ -344,7 +344,7 @@ public:
/** Provides access to the document style pool interface
*/
- IDocumentStylePoolAccess& getIDocumentStylePoolAccess();
+ SW_DLLPUBLIC IDocumentStylePoolAccess& getIDocumentStylePoolAccess();
/** Provides access to the document statistics interface
*/
@@ -355,8 +355,8 @@ public:
IDocumentUndoRedo const& GetIDocumentUndoRedo() const;
IDocumentUndoRedo & GetIDocumentUndoRedo();
- const IDocumentListItems* getIDocumentListItemsAccess() const;
- const IDocumentOutlineNodes* getIDocumentOutlineNodesAccess() const;
+ SW_DLLPUBLIC const IDocumentListItems* getIDocumentListItemsAccess() const;
+ SW_DLLPUBLIC const IDocumentOutlineNodes* getIDocumentOutlineNodesAccess() const;
// 1. GetRefDev: Either the printer or the virtual device from the doc
// 2. GetWin: Available if we not printing
@@ -396,11 +396,11 @@ public:
void CalcPagesForPrint( sal_uInt16 nMax );
// All about fields.
- void UpdateFields(bool bCloseDB = false);
+ SW_DLLPUBLIC void UpdateFields(bool bCloseDB = false);
bool IsAnyFieldInDoc() const;
/// Update the previews of all OLE objects.
- void UpdateOleObjectPreviews();
+ SW_DLLPUBLIC void UpdateOleObjectPreviews();
// Update all charts, for that exists any table.
void UpdateAllCharts();
@@ -409,43 +409,43 @@ public:
// DOCUMENT COMPATIBILITY FLAGS START
// Add or maximize paragraph spacing?
- void SetParaSpaceMax( bool bNew );
+ SW_DLLPUBLIC void SetParaSpaceMax( bool bNew );
// Add or maximize paragraph spacing?
- void SetParaSpaceMaxAtPages( bool bNew );
+ SW_DLLPUBLIC void SetParaSpaceMaxAtPages( bool bNew );
// Compatible behaviour of tabs.
- void SetTabCompat( bool bNew );
+ SW_DLLPUBLIC void SetTabCompat( bool bNew );
// Font metric attribute "External Leading" should be considered.
- void SetAddExtLeading( bool bNew );
+ SW_DLLPUBLIC void SetAddExtLeading( bool bNew );
// Adding paragraph and table spacing at bottom
// of table cells.
- void SetAddParaSpacingToTableCells( bool _bAddParaSpacingToTableCells );
+ SW_DLLPUBLIC void SetAddParaSpacingToTableCells( bool _bAddParaSpacingToTableCells );
// Former formatting of text lines with
// proportional line spacing or not.
- void SetUseFormerLineSpacing( bool _bUseFormerLineSpacing );
+ SW_DLLPUBLIC void SetUseFormerLineSpacing( bool _bUseFormerLineSpacing );
// Former object positioning.
- void SetUseFormerObjectPositioning( bool _bUseFormerObjPos );
+ SW_DLLPUBLIC void SetUseFormerObjectPositioning( bool _bUseFormerObjPos );
- void SetConsiderWrapOnObjPos( bool _bConsiderWrapOnObjPos );
+ SW_DLLPUBLIC void SetConsiderWrapOnObjPos( bool _bConsiderWrapOnObjPos );
- void SetUseFormerTextWrapping( bool _bUseFormerTextWrapping );
+ SW_DLLPUBLIC void SetUseFormerTextWrapping( bool _bUseFormerTextWrapping );
- void SetDoNotJustifyLinesWithManualBreak( bool _bDoNotJustifyLinesWithManualBreak );
+ SW_DLLPUBLIC void SetDoNotJustifyLinesWithManualBreak( bool _bDoNotJustifyLinesWithManualBreak );
- void SetProtectForm( bool _bProtectForm );
+ SW_DLLPUBLIC void SetProtectForm( bool _bProtectForm );
- void SetMsWordCompTrailingBlanks( bool _bMsWordCompTrailingBlanks );
+ SW_DLLPUBLIC void SetMsWordCompTrailingBlanks( bool _bMsWordCompTrailingBlanks );
- void SetSubtractFlysAnchoredAtFlys(bool bSubtractFlysAnchoredAtFlys);
+ SW_DLLPUBLIC void SetSubtractFlysAnchoredAtFlys(bool bSubtractFlysAnchoredAtFlys);
- void SetEmptyDbFieldHidesPara(bool bEmptyDbFieldHidesPara);
+ SW_DLLPUBLIC void SetEmptyDbFieldHidesPara(bool bEmptyDbFieldHidesPara);
- void SetNoGapAfterNoteNumber(bool bNew);
+ SW_DLLPUBLIC void SetNoGapAfterNoteNumber(bool bNew);
// DOCUMENT COMPATIBILITY FLAGS END
@@ -463,10 +463,10 @@ public:
const SwAccessibilityOptions* GetAccessibilityOptions() const { return mpAccOptions.get();}
static void SetShellRes( ShellResource* pRes ) { spShellRes = pRes; }
- static ShellResource* GetShellRes();
+ SW_DLLPUBLIC static ShellResource* GetShellRes();
static weld::Window* CareChildWin(SwViewShell const & rVSh);
- static void SetCareDialog(const std::shared_ptr<weld::Window>& rNew);
+ SW_DLLPUBLIC static void SetCareDialog(const std::shared_ptr<weld::Window>& rNew);
static weld::Window* GetCareDialog(SwViewShell const & rVSh)
{ return (*spCareDialog.get()) ? spCareDialog.get()->get() : CareChildWin(rVSh); }
@@ -507,7 +507,7 @@ public:
bool HasDrawViewDrag() const;
// DrawView may be used at UI.
- SdrView *GetDrawView();
+ SW_DLLPUBLIC SdrView *GetDrawView();
const SdrView *GetDrawView() const { return const_cast<SwViewShell*>(this)->GetDrawView(); }
// Take care that MarkList is up-to-date in any case (Bug 57153).
@@ -515,7 +515,7 @@ public:
// Query attribute pool.
inline const SfxItemPool& GetAttrPool() const;
- SfxItemPool& GetAttrPool();
+ SW_DLLPUBLIC SfxItemPool& GetAttrPool();
bool IsPreview() const { return mbPreview; }
@@ -584,7 +584,7 @@ public:
void DeleteReplacementBitmaps();
const SwPostItMgr* GetPostItMgr() const { return const_cast<SwViewShell*>(this)->GetPostItMgr(); }
- SwPostItMgr* GetPostItMgr();
+ SW_DLLPUBLIC SwPostItMgr* GetPostItMgr();
/// Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags
void ToggleHeaderFooterEdit();