txttxmrk.hxx (1d2dbeb0) txttxmrk.hxx (69a74367)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 28 unchanged lines hidden (view full) ---

37 xub_StrLen * m_pEnd; // 0 if SwTOXMark without AlternativeText
38
39public:
40 SwTxtTOXMark( SwTOXMark& rAttr,
41 xub_StrLen const nStart, xub_StrLen const*const pEnd = 0);
42 virtual ~SwTxtTOXMark();
43
44 virtual xub_StrLen *GetEnd(); // SwTxtAttr
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 28 unchanged lines hidden (view full) ---

37 xub_StrLen * m_pEnd; // 0 if SwTOXMark without AlternativeText
38
39public:
40 SwTxtTOXMark( SwTOXMark& rAttr,
41 xub_StrLen const nStart, xub_StrLen const*const pEnd = 0);
42 virtual ~SwTxtTOXMark();
43
44 virtual xub_StrLen *GetEnd(); // SwTxtAttr
45 inline const xub_StrLen* GetEnd() const { return m_pEnd; }
46
47 void CopyTOXMark( SwDoc* pDestDoc );
48
49 // get and set TxtNode pointer
50 inline const SwTxtNode* GetpTxtNd() const { return m_pTxtNode; }
51 inline const SwTxtNode& GetTxtNode() const;
52 void ChgTxtNode( SwTxtNode* pNew ) { m_pTxtNode = pNew; }
53};
54
55inline const SwTxtNode& SwTxtTOXMark::GetTxtNode() const
56{
57 ASSERT( m_pTxtNode, "SwTxtTOXMark: where is my TxtNode?" );
58 return *m_pTxtNode;
59}
60
61#endif
62
45
46 void CopyTOXMark( SwDoc* pDestDoc );
47
48 // get and set TxtNode pointer
49 inline const SwTxtNode* GetpTxtNd() const { return m_pTxtNode; }
50 inline const SwTxtNode& GetTxtNode() const;
51 void ChgTxtNode( SwTxtNode* pNew ) { m_pTxtNode = pNew; }
52};
53
54inline const SwTxtNode& SwTxtTOXMark::GetTxtNode() const
55{
56 ASSERT( m_pTxtNode, "SwTxtTOXMark: where is my TxtNode?" );
57 return *m_pTxtNode;
58}
59
60#endif
61