LibreOffice Module lotuswordpro (master) 1
lwpfribptr.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*************************************************************************
3 *
4 * The Contents of this file are made available subject to the terms of
5 * either of the following licenses
6 *
7 * - GNU Lesser General Public License Version 2.1
8 * - Sun Industry Standards Source License Version 1.1
9 *
10 * Sun Microsystems Inc., October, 2000
11 *
12 * GNU Lesser General Public License Version 2.1
13 * =============================================
14 * Copyright 2000 by Sun Microsystems, Inc.
15 * 901 San Antonio Road, Palo Alto, CA 94303, USA
16 *
17 * This library is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Lesser General Public
19 * License version 2.1, as published by the Free Software Foundation.
20 *
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Lesser General Public License for more details.
25 *
26 * You should have received a copy of the GNU Lesser General Public
27 * License along with this library; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
29 * MA 02111-1307 USA
30 *
31 *
32 * Sun Industry Standards Source License Version 1.1
33 * =================================================
34 * The contents of this file are subject to the Sun Industry Standards
35 * Source License Version 1.1 (the "License"); You may not use this file
36 * except in compliance with the License. You may obtain a copy of the
37 * License at http://www.openoffice.org/license.html.
38 *
39 * Software provided under this License is provided on an "AS IS" basis,
40 * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
41 * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
42 * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
43 * See the License for the specific provisions governing your rights and
44 * obligations concerning the Software.
45 *
46 * The Initial Developer of the Original Code is: IBM Corporation
47 *
48 * Copyright: 2008 by IBM Corporation
49 *
50 * All Rights Reserved.
51 *
52 * Contributor(s): _______________________________________
53 *
54 *
55 ************************************************************************/
56/*************************************************************************
57 * @file
58 * For LWP filter architecture prototype
59 ************************************************************************/
60
61#include "lwpfribptr.hxx"
62
63#include "lwpfribheader.hxx"
64#include "lwpfribtext.hxx"
65#include "lwppara.hxx"
66#include "lwpstory.hxx"
68#include <xfilter/xftabstop.hxx>
70#include "lwpfribsection.hxx"
71#include "lwpsection.hxx"
72#include "lwpfribbreaks.hxx"
73#include "lwpfribframe.hxx"
74#include "lwpfribtable.hxx"
77#include "lwphyperlinkmgr.hxx"
78#include "lwpfootnote.hxx"
79#include "lwpnotes.hxx"
80#include "lwpfribmark.hxx"
81#include <xfilter/xfchange.hxx>
82#include <lwpchangemgr.hxx>
83#include <lwpglobalmgr.hxx>
84#include <lwpdropcapmgr.hxx>
85
87 : m_pFribs(nullptr)
88 , m_pPara(nullptr)
89{
90}
91
93{
94 for (LwpFrib* pCurFrib = m_pFribs; pCurFrib;)
95 {
96 LwpFrib* pNextFrib = pCurFrib -> GetNext();
97 delete pCurFrib;
98 pCurFrib = pNextFrib;
99 }
100}
101
103{
104 LwpFrib* pCurFrib = m_pFribs = nullptr;
105 for(;;)
106 {
107 // Get the frib type
108 sal_uInt8 FribTag = pObjStrm->QuickReaduInt8();
109
110 sal_uInt8 FribType = FribTag & ~FRIB_TAG_TYPEMASK;
111
112 // Stop when we hit Elvis
113 if (FribType == FRIB_TAG_ELVIS)
114 break;
115
116 // skip the editor ID
117 //pObjStrm->SeekRel(sizeof(sal_uInt8));
118 sal_uInt8 FribEditor = pObjStrm->QuickReaduInt8();
119 if( FribType != FT_MAXIMUM )
120 {
121 LwpFrib* pFrib = LwpFrib::CreateFrib( m_pPara, pObjStrm, FribTag,FribEditor);
122 if(!m_pFribs)
123 {
124 m_pFribs = pFrib;
125 }
126 if(pCurFrib)
127 {
128 pCurFrib->SetNext(pFrib);
129 }
130 else//first frib in the para
131 {
132 if (pFrib->GetType() == FRIB_TAG_TEXT)
133 {
134 LwpFribText* pText = static_cast<LwpFribText*>(pFrib);
135 if (pFrib->GetModifiers())
136 m_pPara->SetFirstFrib(pText->GetText(),pText->GetModifiers()->FontID);
137 else
138 m_pPara->SetFirstFrib(pText->GetText(),0);
139 }
140 }
141 pCurFrib = pFrib;
142 }
143 }
144}
145
147{
148 LwpFrib* pFrib = m_pFribs;
149 while(pFrib)
150 {
151 sal_uInt8 nFribType = pFrib->GetType();
152 bool bRevisionFlag = pFrib->GetRevisionFlag();
153 OUString sChangeID;
154 if (bRevisionFlag)
155 {
156 if ( nFribType!= FRIB_TAG_TABLE && nFribType != FRIB_TAG_FIELD
157 && nFribType != FRIB_TAG_FRAME)
158 {
159 //sal_uInt8 nRevisionType = pFrib->GetRevisionType();
161 LwpChangeMgr* pChangeMgr = pGlobal->GetLwpChangeMgr();
162 sChangeID = pChangeMgr->GetChangeID(pFrib);
163 if (!sChangeID.isEmpty())
164 {
166 xChangeStart->SetChangeID(sChangeID);
167 m_pXFPara->Add(xChangeStart.get());
168 }
169 }
170 }
171
172 switch(nFribType)
173 {
174 case FRIB_TAG_TEXT:
175 {
176 LwpFribText* textFrib= static_cast<LwpFribText*>(pFrib);
177 textFrib->XFConvert(m_pXFPara.get(),m_pPara->GetStory());
178 }
179 break;
180 case FRIB_TAG_TAB:
181 {
182 LwpFribTab* tabFrib = static_cast<LwpFribTab*>(pFrib);
183 if (pFrib->m_ModFlag)
184 {
186 xSpan->SetStyleName(tabFrib->GetStyleName());
188 xSpan->Add(xTab.get());
189 m_pXFPara->Add(xSpan.get());
190 }
191 else
192 {
194 m_pXFPara->Add(xTab.get());
195 }
196 break;
197 }
198 case FRIB_TAG_SECTION:
199 {
200 LwpFribSection* pSectionFrib = static_cast<LwpFribSection*>(pFrib);
201 pSectionFrib->ParseSection();
202 break;
203 }
204
206 {
207 LwpFribPageBreak* pPageBreak = static_cast<LwpFribPageBreak*>(pFrib);
208 LwpPageLayout* pLayout = dynamic_cast<LwpPageLayout*>(pPageBreak->GetLayout().obj().get());
209 if(pLayout)
210 {
211 pPageBreak->ParseLayout();
212 }
213 else
214 {
215 if (pPageBreak->IsLastFrib())
216 {
217 m_pXFPara->SetStyleName( pPageBreak->GetStyleName() );
218 }
219 else
220 {
221 //parse pagebreak
223 xPara->SetStyleName(pFrib->GetStyleName());
224 SetXFPara(xPara.get());
225 m_pPara->AddXFContent(xPara.get());
226 }
227 }
228 break;
229 }
231 {
233 xPara->SetStyleName(pFrib->GetStyleName());
234 SetXFPara(xPara.get());
235 m_pPara->AddXFContent(xPara.get());
236 break;
237 }
239 {
241 m_pXFPara->Add(xLineBreak.get());
242 break;
243 }
244 case FRIB_TAG_UNICODE: //fall through
245 case FRIB_TAG_UNICODE2: //fall through
246 case FRIB_TAG_UNICODE3: //fall through
247 {
248 LwpFribUnicode* unicodeFrib= static_cast<LwpFribUnicode*>(pFrib);
249 unicodeFrib->XFConvert(m_pXFPara.get(), m_pPara->GetStory());
250 }
251 break;
253 {
254 OUString sHardSpace(u'\x00a0');
255 LwpStory *pStory = m_pPara->GetStory();
256 LwpHyperlinkMgr* pHyperlink = pStory ? pStory->GetHyperlinkMgr() : nullptr;
257 if (pHyperlink && pHyperlink->GetHyperlinkFlag())
258 pFrib->ConvertHyperLink(m_pXFPara.get(), pHyperlink,sHardSpace);
259 else
260 pFrib->ConvertChars(m_pXFPara.get(), sHardSpace);
261 }
262 break;
264 pFrib->ConvertChars(m_pXFPara.get(), u"\x00ad");
265 break;
266 case FRIB_TAG_FRAME:
267 {
268 LwpFribFrame* frameFrib= static_cast<LwpFribFrame*>(pFrib);
269 rtl::Reference<LwpObject> pLayout = frameFrib->GetLayout();
270 if (pLayout.is() && pLayout->GetTag() == VO_DROPCAPLAYOUT)
271 {
272 LwpFoundry* pFoundry = m_pPara->GetFoundry();
273 LwpDropcapMgr* pMgr = pFoundry ? &pFoundry->GetDropcapMgr() : nullptr;
274 if (pMgr)
275 pMgr->SetXFPara(m_pXFPara.get());
276 }
277 frameFrib->XFConvert(m_pXFPara.get());
278 break;
279 }
280 case FRIB_TAG_CHBLOCK:
281 {
282 LwpFribCHBlock* chbFrib = static_cast<LwpFribCHBlock*>(pFrib);
283 chbFrib->XFConvert(m_pXFPara.get(),m_pPara->GetStory());
284 }
285 break;
286 case FRIB_TAG_TABLE:
287 {
288 LwpFribTable* tableFrib = static_cast<LwpFribTable*>(pFrib);
289 //tableFrib->XFConvert(m_pPara->GetXFContainer());
290 tableFrib->XFConvert(m_pXFPara.get());
291 }
292 break;
294 {
295 LwpFribBookMark* bookmarkFrib = static_cast<LwpFribBookMark*>(pFrib);
296 bookmarkFrib->XFConvert(m_pXFPara.get());
297 }
298 break;
300 {
301 LwpFribFootnote* pFootnoteFrib = static_cast<LwpFribFootnote*>(pFrib);
302 pFootnoteFrib->XFConvert(m_pXFPara.get());
303 break;
304 }
305 case FRIB_TAG_FIELD:
306 {
307 LwpFribField* fieldFrib = static_cast<LwpFribField*>(pFrib);
308 fieldFrib->XFConvert(m_pXFPara.get());
309 break;
310 }
311 case FRIB_TAG_NOTE:
312 {
313 LwpFribNote* pNoteFrib = static_cast<LwpFribNote*>(pFrib);
314 pNoteFrib->XFConvert(m_pXFPara.get());
315 break;
316 }
318 {
319 LwpFribPageNumber* pagenumFrib = static_cast<LwpFribPageNumber*>(pFrib);
320 pagenumFrib->XFConvert(m_pXFPara.get());
321 break;
322 }
323 case FRIB_TAG_DOCVAR:
324 {
325 LwpFribDocVar* docFrib = static_cast<LwpFribDocVar*>(pFrib);
326 docFrib->XFConvert(m_pXFPara.get());
327 break;
328 }
330 {
331 LwpFribRubyMarker* rubyFrib = static_cast<LwpFribRubyMarker*>(pFrib);
332 rubyFrib->XFConvert(m_pXFPara.get());
333 break;
334 }
336 {
337 LwpFribRubyFrame* rubyfrmeFrib = static_cast<LwpFribRubyFrame*>(pFrib);
338 rubyfrmeFrib->XFConvert();
339 break;
340 }
341 default :
342 break;
343 }
344
345 if (bRevisionFlag )//&& pFrib->GetRevisionType() == LwpFrib::REV_INSERT)
346 {
347 if (nFribType!= FRIB_TAG_TABLE && nFribType != FRIB_TAG_FIELD
348 && nFribType != FRIB_TAG_FRAME)
349 {
350 if (!sChangeID.isEmpty())
351 {
353 xChangeEnd->SetChangeID(sChangeID);
354 m_pXFPara->Add(xChangeEnd.get());
355 }
356 }
357 }
358 pFrib = pFrib->GetNext();
359 }
360
361}
362
363/**************************************************************************
364 * @descr: Whether has a frib which type is nType
365**************************************************************************/
367{
368 LwpFrib* pFrib = m_pFribs;
369 while(pFrib)
370 {
371 if(pFrib->GetType()==nType)
372 {
373 return pFrib;
374 }
375 pFrib = pFrib->GetNext();
376 }
377 return nullptr;
378}
379
381{
382 LwpFrib* pFrib = m_pFribs;
383 while(pFrib)
384 {
385 switch(pFrib->GetType())
386 {
387 case FRIB_TAG_TEXT:
388 {
389 OUString sText = static_cast<LwpFribText*>(pFrib)->GetText();
390 m_pPara->SetAllText(sText);
391 break;
392 }
393 case FRIB_TAG_UNICODE: //fall through
394 case FRIB_TAG_UNICODE2: //fall through
395 case FRIB_TAG_UNICODE3: //fall through :
396 {
397 OUString sText = static_cast<LwpFribText*>(pFrib)->GetText();
398 m_pPara->SetAllText(sText);
399 break;
400 }
401 default :
402 break;
403 }
404 pFrib = pFrib->GetNext();
405 }
406}
407
409{
410 LwpFrib* pFrib = m_pFribs;
411 while(pFrib)
412 {
413 switch(pFrib->GetType())
414 {
415 case FRIB_TAG_TEXT:
416 {
418 OUString sText = static_cast<LwpFribText*>(pFrib)->GetText();
419 ProcessDropcap(m_pPara->GetStory(), pFrib,sText.getLength());
420 break;
421 }
422 case FRIB_TAG_TAB:
424 break;
425 case FRIB_TAG_SECTION:
426 {
427 //section registerstyle here;
428 LwpFribSection* pSectionFrib = static_cast<LwpFribSection*>(pFrib);
429 pSectionFrib->RegisterSectionStyle();
430 //for bullet
431 pSectionFrib->SetSectionName();
432 }
433 break;
435 {
436 LwpFribPageBreak* breakFrib = static_cast<LwpFribPageBreak*>(pFrib);
437 breakFrib->RegisterBreakStyle(m_pPara);
438 }
439 break;
441 {
442 LwpFribColumnBreak* breakFrib = static_cast<LwpFribColumnBreak*>(pFrib);
443 breakFrib->RegisterBreakStyle(m_pPara);
444 }
445 break;
446 case FRIB_TAG_UNICODE: //fall through
447 case FRIB_TAG_UNICODE2: //fall through
448 case FRIB_TAG_UNICODE3: //fall through :
449 {
451 OUString sText = static_cast<LwpFribUnicode*>(pFrib)->GetText();
452 ProcessDropcap(m_pPara->GetStory(), pFrib,sText.getLength());
453 break;
454 }
457 ProcessDropcap(m_pPara->GetStory(),pFrib,1);
458 break;
461 break;
462 case FRIB_TAG_FRAME:
463 {
464 LwpFribFrame* frameFrib = static_cast<LwpFribFrame*>(pFrib);
465 frameFrib->SetParaDropcap(m_pPara);
466 frameFrib->RegisterStyle(m_pPara->GetFoundry());
467 //register framelayout style, ,03/09/2005
468 //frameFrib->GetLayout()->RegisterStyle();
469 }
470 break;
471 case FRIB_TAG_CHBLOCK:
472 break;
473 case FRIB_TAG_TABLE:
474 {
475 LwpFribTable* tableFrib = static_cast<LwpFribTable*>(pFrib);
476 tableFrib->RegisterNewStyle();
477 }
478 break;
480 {
481 LwpFribFootnote* pFribFootnote = static_cast<LwpFribFootnote*>(pFrib);
482 pFribFootnote->RegisterNewStyle();
483 }
484 break;
485 case FRIB_TAG_NOTE:
486 {
487 LwpFribNote* pNoteFrib = static_cast<LwpFribNote*>(pFrib);
488 pNoteFrib->RegisterNewStyle();
489 break;
490 }
492 {
494 break;
495 }
496 case FRIB_TAG_DOCVAR:
497 {
498 LwpFribDocVar* docFrib = static_cast<LwpFribDocVar*>(pFrib);
499 docFrib->RegisterStyle(m_pPara->GetFoundry());
500 break;
501 }
502 case FRIB_TAG_FIELD:
503 {
504 LwpFribField* fieldFrib = static_cast<LwpFribField*>(pFrib);
505 fieldFrib->RegisterStyle(m_pPara->GetFoundry());
506 break;
507 }
509 {
510 LwpFribBookMark* bookmarkFrib = static_cast<LwpFribBookMark*>(pFrib);
511 bookmarkFrib->RegisterStyle(m_pPara->GetFoundry());
512 break;
513 }
515 {
516 LwpFribRubyFrame* rubyfrmeFrib = static_cast<LwpFribRubyFrame*>(pFrib);
517 rubyfrmeFrib->RegisterStyle(m_pPara->GetFoundry());
518 break;
519 }
520 default :
521 break;
522 }
523 if (pFrib->GetRevisionFlag() && pFrib->GetType()!= FRIB_TAG_FIELD)
524 {
526 LwpChangeMgr* pChangeMgr = pGlobal->GetLwpChangeMgr();
527 pChangeMgr->AddChangeFrib(pFrib);
528 }
529
530 pFrib = pFrib->GetNext();
531 }
532}
533
534void LwpFribPtr::ProcessDropcap(LwpStory* pStory, const LwpFrib* pFrib,sal_uInt32 nLen)
535{
536 if (pStory && pStory->GetDropcapFlag())
537 {
539 XFTextStyle* pFribStyle = pXFStyleManager->FindTextStyle(pFrib->GetStyleName());
540 pFribStyle->GetFont()->SetFontSize(0);
541
542 LwpDropcapLayout* pObj = dynamic_cast<LwpDropcapLayout*>(pStory->GetLayoutsWithMe().GetOnlyLayout().obj().get());
543 if (pObj)
544 pObj->SetChars(nLen);
545 }
546}
551bool LwpFribPtr::ComparePagePosition(LwpVirtualLayout const * pPreLayout, LwpVirtualLayout const * pNextLayout)
552{
553 if(!pPreLayout || !pNextLayout)
554 return true;
555
556 LwpFrib* pFrib = m_pFribs;
557 LwpVirtualLayout* pLayout = nullptr;
558 while(pFrib)
559 {
560 switch(pFrib->GetType())
561 {
562 case FRIB_TAG_SECTION:
563 {
564 LwpFribSection* pSectionFrib = static_cast<LwpFribSection*>(pFrib);
565 LwpSection* pSection = pSectionFrib->GetSection();
566 if(pSection)
567 {
568 pLayout = pSection->GetPageLayout();
569 }
570
571 break;
572 }
574 {
575 LwpFribPageBreak* pPageBreak = static_cast<LwpFribPageBreak*>(pFrib);
576 pLayout = dynamic_cast<LwpVirtualLayout*>(pPageBreak->GetLayout().obj().get());
577 break;
578 }
579 default:
580 break;
581 }
582
583 if(pLayout)
584 {
585 if(pPreLayout == pLayout)
586 return true;
587 if(pNextLayout == pLayout)
588 return false;
589 }
590 pFrib = pFrib->GetNext();
591 }
592
593 return true;
594}
595
596/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
LwpObjectID & GetOnlyLayout()
Definition: lwplayout.hxx:300
void AddChangeFrib(LwpFrib *pFrib)
OUString GetChangeID(LwpFrib *pFrib)
LwpAssociatedLayouts & GetLayoutsWithMe()
Definition: lwpcontent.hxx:117
void SetChars(sal_uInt32 nChars)
void SetXFPara(XFParagraph *pXFPara)
LwpDropcapMgr & GetDropcapMgr()
Definition: lwpfoundry.hxx:264
void RegisterStyle(LwpFoundry *pFoundry) override
: register bookmark frib
void XFConvert(XFContentContainer *pXFPara)
: convert bookmark frib
void XFConvert(XFContentContainer *pXFPara, LwpStory *pStory)
Definition: lwpfribmark.cxx:89
void RegisterBreakStyle(LwpPara *pPara)
void XFConvert(XFContentContainer *pXFPara)
: convert the doc info field
void RegisterStyle(LwpFoundry *pFoundry) override
: register style for doc field (text style,date style)
void RegisterStyle(LwpFoundry *pFoundry) override
void XFConvert(XFContentContainer *pXFPara)
void RegisterNewStyle()
@descr Register footnote style by calling LwpFootnote::RegisterStyle()
Definition: lwpfootnote.cxx:86
void XFConvert(XFContentContainer *pCont)
@descr Parse footnote by calling LwpFootnote::XFConvert()
void SetParaDropcap(LwpPara *pPara)
void RegisterStyle(LwpFoundry *pFoundry) override
@descr: register frame style
void XFConvert(XFContentContainer *pCont)
@descr: convert frame
rtl::Reference< LwpObject > GetLayout() const
@descr: Get the layout object which the frib points to
TAG_NOTE_FRIB object.
Definition: lwpnotes.hxx:72
void XFConvert(XFContentContainer *pCont)
@descr convert note
Definition: lwpnotes.cxx:100
void RegisterNewStyle()
@descr Register style
Definition: lwpnotes.cxx:84
void RegisterBreakStyle(LwpPara *pPara)
bool IsLastFrib() const
LwpObjectID & GetLayout()
void XFConvert(XFContentContainer *pXFPara)
void ReadPara(LwpObjectStream *pObjStrm)
Definition: lwpfribptr.cxx:102
LwpFrib * HasFrib(sal_uInt8 nType)
Definition: lwpfribptr.cxx:366
static void ProcessDropcap(LwpStory *pStory, const LwpFrib *pFrib, sal_uInt32 nLen)
Definition: lwpfribptr.cxx:534
void XFConvert()
Definition: lwpfribptr.cxx:146
void RegisterStyle()
Definition: lwpfribptr.cxx:408
rtl::Reference< XFParagraph > m_pXFPara
Definition: lwpfribptr.hxx:79
LwpPara * m_pPara
Definition: lwpfribptr.hxx:80
void GatherAllText()
Definition: lwpfribptr.cxx:380
void SetXFPara(XFParagraph *Para)
Definition: lwpfribptr.hxx:85
LwpFrib * m_pFribs
Definition: lwpfribptr.hxx:78
bool ComparePagePosition(LwpVirtualLayout const *pPreLayout, LwpVirtualLayout const *pNextLayout)
@descr: If the position of pPreLayout is earlier than pNextLayout, return true, or return false,...
Definition: lwpfribptr.cxx:551
void RegisterStyle(LwpFoundry *pFoundry) override
@descr: Register Ruby frame style
void XFConvert()
@descr: convert Ruby frame
void XFConvert(XFContentContainer *pXFPara)
void ParseSection()
@descr: XFConvert section
LwpSection * GetSection()
@descr: Get section pointer
void RegisterSectionStyle()
@descr: Register section style
void SetSectionName()
@descr: Register section style
void RegisterNewStyle()
void XFConvert(XFContentContainer *pCont)
const OUString & GetText() const
Definition: lwpfribtext.hxx:76
void XFConvert(XFContentContainer *pXFPara, LwpStory *pStory)
Definition: lwpfribtext.cxx:99
void XFConvert(XFContentContainer *pXFPara, LwpStory *pStory)
const OUString & GetStyleName() const
Definition: lwpfrib.hxx:112
LwpFrib * GetNext()
Definition: lwpfrib.hxx:96
void ConvertHyperLink(XFContentContainer *pXFPara, const LwpHyperlinkMgr *pHyperlink, const OUString &text)
Definition: lwpfrib.cxx:396
virtual void RegisterStyle(LwpFoundry *pFoundry)
Definition: lwpfrib.cxx:223
sal_uInt8 GetType() const
Definition: lwpfrib.hxx:98
bool m_ModFlag
Definition: lwpfrib.hxx:111
ModifierInfo * GetModifiers()
Definition: lwpfrib.hxx:114
bool GetRevisionFlag() const
Definition: lwpfrib.hxx:123
void SetNext(LwpFrib *next)
Definition: lwpfrib.hxx:97
static LwpFrib * CreateFrib(LwpPara *pPara, LwpObjectStream *pObjStrm, sal_uInt8 fribtag, sal_uInt8 editID)
Definition: lwpfrib.cxx:97
void ConvertChars(XFContentContainer *pXFPara, const OUString &text)
Definition: lwpfrib.cxx:380
XFStyleManager * GetXFStyleManager()
LwpChangeMgr * GetLwpChangeMgr()
static LwpGlobalMgr * GetInstance(LwpSvStream *pSvStream=nullptr)
bool GetHyperlinkFlag() const
rtl::Reference< LwpObject > obj(VO_TYPE tag=VO_INVALID) const
@descr get object from object factory per the object id
Definition: lwpobjid.cxx:183
stream class for LwpObject body data provide stream like interface to read object data
Definition: lwpobjstrm.hxx:77
sal_uInt8 QuickReaduInt8(bool *pFailure=nullptr)
@descr Quick read sal_uInt8
Definition: lwpobjstrm.cxx:230
LwpFoundry * GetFoundry()
Definition: lwpobj.hxx:136
void SetAllText(std::u16string_view sText)
set text of paragraph
Definition: lwppara1.cxx:102
void SetFirstFrib(const OUString &Content, sal_uInt32 FontID)
set first frib content
Definition: lwppara1.cxx:110
void AddXFContent(XFContent *pCont)
Definition: lwppara.hxx:315
LwpStory * GetStory()
Definition: lwppara.hxx:337
LwpPageLayout * GetPageLayout()
@descr Get page layout pointer
Definition: lwpsection.hxx:112
bool GetDropcapFlag() const
Definition: lwpstory.hxx:113
LwpHyperlinkMgr * GetHyperlinkMgr()
Definition: lwpstory.hxx:117
Paragraph object for SODC.
Definition: xfparagraph.hxx:73
Style manager for the filter.
XFTextStyle * FindTextStyle(std::u16string_view name)
const rtl::Reference< XFFont > & GetFont() const
Definition: xftextstyle.hxx:91
float u
@ VO_DROPCAPLAYOUT
Definition: lwpdefs.hxx:150
For LWP filter architecture prototype - footnote.
@ FRIB_TAG_CHBLOCK
@ FRIB_TAG_FRAME
@ FRIB_TAG_UNICODE
@ FRIB_TAG_DOCVAR
@ FRIB_TAG_RUBYFRAME
@ FRIB_TAG_PAGENUMBER
@ FRIB_TAG_PAGEBREAK
@ FRIB_TAG_LINEBREAK
@ FRIB_TAG_RUBYMARKER
@ FRIB_TAG_SOFTHYPHEN
@ FRIB_TAG_FOOTNOTE
@ FRIB_TAG_COLBREAK
@ FRIB_TAG_BOOKMARK
@ FRIB_TAG_TEXT
@ FRIB_TAG_UNICODE3
@ FRIB_TAG_FIELD
@ FRIB_TAG_NOTE
@ FRIB_TAG_TAB
@ FRIB_TAG_TABLE
@ FRIB_TAG_SECTION
@ FRIB_TAG_UNICODE2
@ FRIB_TAG_HARDSPACE
#define FRIB_TAG_ELVIS
#define FT_MAXIMUM
For LWP filter architecture prototype - notes.
QPRO_FUNC_TYPE nType
sal_uInt32 FontID
Definition: lwpfrib.hxx:74
unsigned char sal_uInt8