| OpenOffice :: Oodoc :: Document. OpenOffice :: Oodoc :: Document´Â ÄÜÅÙÃ÷ ¹× ·¹À̾ƿô 󸮸¦À§ÇÑ ÃÖ»óÀ§ ±¸¼º ¿ä¼ÒÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
OpenOffice :: Oodoc :: Document. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Jean-Marie Gouarne
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~jmgdoc/OpenOffice-OODoc-2.032/OODoc/Meta.pod
OpenOffice :: Oodoc :: Document. ű×
OpenOffice :: Oodoc :: Document. ¼³¸í
OpenOffice :: Oodoc :: Document´Â ÄÜÅÙÃ÷ ¹× ·¹À̾ƿô 󸮸¦À§ÇÑ ÃÖ»óÀ§ ±¸¼º ¿ä¼ÒÀÔ´Ï´Ù. OpenOffice :: Oodoc :: Document´Â ÄÜÅÙÃ÷ ¹× ·¹À̾ƿô 󸮸¦À§ÇÑ ÃÖ»óÀ§ ¼öÁØ ±¸¼º ¿ä¼ÒÀÔ´Ï´Ù .Snopsis # OOO ÆÄÀÏ Ã³¸®±â¸¦ ¾òÀ¸½Ê½Ã¿À. $ ooofile = ooofile ( "myfile.odt"); # ³»¿ë ÁýÁßÀû ÀÎ ¹®¼ ÀÎÅÍÆäÀ̽º¸¦ ¿¬°áÇϽʽÿÀ. ³» $ content = oodocument (file => $ ooofile, ¸â¹ö => 'ÄÜÅÙÃ÷'); # ½ºÅ¸ÀÏ ÁýÁßµÈ ¹®¼ ÀÎÅÍÆäÀ̽º¸¦ ¿¬°áÇϽʽÿÀ. $ styles = oodocument (file => $ ooofile, ¸â¹ö => '½ºÅ¸ÀÏ'); # ¸ðµç ÄÜÅÙÃ÷ ¹× ½ºÅ¸ÀÏ ¿ä¼Ò ÇÁ·Î¼¼½º $ Content-> AppEndParagraph (Ãß°¡ ´Ü¶ô ", ½ºÅ¸ÀÏ =>"Bluestyle "Ãß°¡ ´Ü¶ô); $ ½ºÅ¸ÀÏ -> createstyle ( "bluestyle", parent => 'text body', family => '´Ü¶ô', ¼Ó¼º => {¿µ¿ª => 'ÅؽºÆ®', 'FO : »ö»ó'=> rgb2oo ( 'blue')} ); # ÆÄÀÏ Ã³¸®±â $ oofile-> ÀúÀåÀ» »ç¿ëÇÏ¿© º¯°æ »çÇ×À» È®¾àÇϽʽÿÀ.ÀÌ ¸ðµâÀº ¸ðµç Á¾·ùÀÇ ÄÜÅÙÃ÷ ¹× ÇÁ¸®Á¨ Å×ÀÌ¼Ç Ã³¸®¸¦ Çã¿ëÇÏ´Â Ä¿³ØÅÍ ÀÎ ÃÖ»óÀ§ ¹®¼ Ŭ·¡½º¸¦ Á¤ÀÇÇÕ´Ï´Ù. Oodoc :: XPath, Oodoc :: text, ooodoc :: styles ¹× ooodoc :: Image.The ¹®¼ÀÇ ±¸¼º¿ø¿¡ ¾×¼¼½º ÇÒ ¼öÀÖ´Â ´ëºÎºÐÀÇ ÀϹÝÀûÀÎ ÁöħÀÌ ÀÖ¾î¾ßÇÕ´Ï´Ù. ¸ÞŸ µ¥ÀÌÅÍ (meta.xml)°¡ ÀÖ¾î¾ßÇÏ´Â °æ¿ì ¿¹¿Ü°¡ ÀÖ½À´Ï´Ù. ³» $ doc = oodocument ();ÀÌ »ý¼ºÀÚ´Â ¼º°øÇÑ °æ¿ì ½ºÅ¸ÀÏ, À̹ÌÁö ¹× text¸¦ ó¸®ÇÏ´Â "¸â¹ö"¿É¼Ç¿¡ µû¶ó »ç¿ëµÉ ¼öÀÖ´Â °´Ã¼¸¦ ¹ÝȯÇÕ´Ï´Ù.ÀÌ ¸ðµâÀº ´Ü¼øÈ÷ oodoc :: text, ooodoc :: À̹ÌÁö, ooodoc :: styles ¹× ooodoc :: xpath (ÀÀ¿ë ÇÁ·Î±×·¥¿¡¼ Á÷Á¢ È£ÃâÇؼ´Â ¾ÈµË´Ï´Ù)ÀÇ ¸ðµç ±â´ÉÀ» Æ÷ÇÔÇÏ´Â °´Ã¼¸¦ ¸¸µì´Ï´Ù. ³» $ styles = oodocument (file => ") source.odt ", ¸â¹ö =>"½ºÅ¸ÀÏ "); ÀϹÝÀûÀ¸·Î ³» ½ºÅ¸ÀϺ¸´Ù = oostyles (file =>"source.odt ")º¸´Ù ³´½À´Ï´Ù. ooodoc :: ¹®¼´Â ÀÌ·¯ÇÑ Å¬·¡½ºÀÇ ¸ðµç ¸Þ¼Òµå¿Í ¼Ó¼ºÀ» »ó¼ÓÇÕ´Ï´Ù. ´ÙÀ½ ¼öµ¿ ÆäÀÌÁö¿¡¼ º»ÁúÀûÀ¸·Î Á¦°øµË´Ï´Ù. OpenOffice :: Oodoc :: text -> ÅؽºÆ® ³»¿ë OpenOffice :: Oodoc :: ½ºÅ¸ÀÏ -> ½ºÅ¸ÀÏ ¹× ·¹À̾ƿô OpenOffice :: Oodoc :: À̹ÌÁö -> ±×·¡ÇÈ °´Ã¼ OpenOffice :: Oodoc :: XPath -> °øÅë ±â´É ¹× ·Î¿ì ·¹º§ Á¦°ø, À§ÀÇ ½Ã³ñ½Ã½º¿¡¼ »ç¿ëµÇ´Â appendParagraph () ¹× createstyle () ¸Þ¼µå´Â °¢°¢ OpenOffice :: Oodoc :: Text ¹× OpenOffice¿¡¼ °¢°¢ ¼³¸íµË´Ï´Ù. :: ooodoc :: styles.The ÇöÀç ¸Å´º¾ó ÆäÀÌÁö´Â ·¹À̾ƿô ¹× ÄÜÅÙÃ÷ 󸮸¦ °áÇÕÇÏ´Â ¹æ¹ý (°ÅÀÇ ¾øÀ½) ¸¸ ¼³¸íÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
OpenOffice :: Oodoc :: Document. °ü·Ã ¼ÒÇÁÆ®¿þ¾î